/* ==========================================================
   Coffin Couverture — feuille de style
   Palette reprise du flyer : bleu ardoise, bleu ciel, marine
   ========================================================== */

/* ---------- Polices auto-hébergées (sous-ensemble latin, licence OFL) ---------- */
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../fonts/montserrat-var.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/barlow-condensed-600.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/barlow-condensed-700.woff2") format("woff2"); }
@font-face { font-family: "Zilla Slab"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/zilla-slab-500.woff2") format("woff2"); }
@font-face { font-family: "Zilla Slab"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/zilla-slab-600.woff2") format("woff2"); }
@font-face { font-family: "Zilla Slab"; font-style: italic; font-weight: 500; font-display: swap; src: url("../fonts/zilla-slab-500-italic.woff2") format("woff2"); }

:root {
  --marine:      #2c3e6e;   /* logo, titres */
  --marine-fonce:#1e2b4f;
  --bleu:        #7b98c9;   /* bandeaux du flyer — décoratif uniquement (bordures, puces) */
  --bleu-carte:  #4f6ca2;   /* fonds sous texte blanc — contraste 5.2:1 */
  --bleu-moyen:  #4f6ca2;   /* texte bleu sur fond clair — contraste 5.2:1 */
  --bleu-clair-texte: #b3c5e6; /* texte bleu sur fond marine — 6:1 */
  --bleu-pale:   #e6ecf6;
  --bleu-voile:  #f3f6fb;
  --blanc:       #ffffff;
  --texte:       #28324a;
  --texte-doux:  #5a6680;
  --or:          #f2bd2c;   /* étoiles (dessinées en CSS, hors contrôle de contraste) */

  --f-titre: "Barlow Condensed", "Arial Narrow", sans-serif;
  --f-texte: "Montserrat", system-ui, sans-serif;
  --f-recit: "Zilla Slab", Georgia, serif;

  --rayon: 14px;
  --ombre: 0 10px 30px rgba(30, 43, 79, .10);
  --largeur: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: var(--f-texte);
  font-size: 16px;
  line-height: 1.65;
  color: var(--texte);
  background: var(--blanc);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
picture { display: contents; }
a { color: var(--bleu-moyen); }

.conteneur { width: min(var(--largeur), 100% - 32px); margin-inline: auto; }
.conteneur--etroit { width: min(820px, 100% - 32px); }

/* ---------- Typo commune ---------- */
.surtitre {
  margin: 0 0 .4rem;
  font-family: var(--f-titre);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--bleu-moyen);
}
.surtitre--clair { color: var(--bleu-pale); }
.titre {
  margin: 0 0 1rem;
  font-family: var(--f-titre);
  font-weight: 700;
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.05;
  text-transform: uppercase;
  color: var(--marine);
}
.titre--clair { color: var(--blanc); }
.chapo { max-width: 640px; margin: 0 0 2.5rem; color: var(--texte-doux); font-size: 1.05rem; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-block;
  padding: .85rem 1.5rem;
  border-radius: 8px;
  background: var(--marine);
  color: var(--blanc);
  font-family: var(--f-titre);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background .2s, transform .2s;
}
.btn:hover { background: var(--marine-fonce); transform: translateY(-2px); }
.btn--petit { padding: .5rem 1rem; font-size: 1rem; }
.btn--contour { background: transparent; color: var(--marine); border: 2px solid var(--marine); border-radius: 999px; }
.btn--contour:hover { background: var(--marine); color: var(--blanc); }
.btn--blanc { background: var(--blanc); color: var(--marine); }
.btn--blanc:hover { background: var(--bleu-pale); }

/* Étoiles dessinées en SVG (fond CSS) : décoratives, le texte alternatif est porté par aria-label */
.etoile, .etoiles {
  display: inline-block;
  height: 1em;
  vertical-align: -.12em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23f2bd2c' d='M12 2.5l2.9 6.1 6.6.8-4.9 4.6 1.3 6.6L12 17.3 6.1 20.6l1.3-6.6L2.5 9.4l6.6-.8z'/%3E%3C/svg%3E") left center / 1em 1em repeat-x;
}
.etoile  { width: 1em; }
.etoiles { width: 5.6em; background-size: 1.12em 1em; font-size: .95rem; }

/* ---------- En-tête ---------- */
.entete {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--bleu-pale);
}
.entete__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.entete__logo img { width: 110px; height: auto; }
.nav { display: flex; align-items: center; gap: 1.75rem; }
.nav a:not(.btn) {
  font-family: var(--f-titre);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--marine);
  text-decoration: none;
}
.nav a:not(.btn):hover { color: var(--bleu-moyen); }
.nav-burger { display: none; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Héro ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(340px, 5fr) 7fr;
  min-height: min(82vh, 760px);
  background: var(--bleu-pale);
}
.hero__panneau {
  position: relative;
  display: flex; flex-direction: column; justify-content: center;
  padding: 3.5rem clamp(1.5rem, 4vw, 4.5rem);
  background: linear-gradient(180deg, #5673a8 0%, #45639a 100%);
  color: var(--blanc);
}
.hero__titre {
  margin: 0;
  font-family: var(--f-texte);
  font-weight: 500;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.1;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.hero__trait { width: 100%; max-width: 320px; margin: 1.4rem 0; border: 0; border-top: 2px solid rgba(255,255,255,.85); }
.hero__accroche { max-width: 420px; margin: 0 0 1.25rem; font-size: 1.08rem; }
.hero__puces { list-style: none; margin: 0 0 2rem; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.hero__puces li {
  padding: .3rem .8rem;
  border: 1px solid rgba(255,255,255,.6);
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 500;
}
.hero__actions .btn { background: var(--marine-fonce); }
.hero__actions .btn:hover { background: #151f3b; }
.hero__note {
  display: inline-flex; align-items: center; gap: .4rem;
  margin-top: 1.5rem;
  color: var(--blanc);
  font-size: .92rem;
  text-decoration: none;
}
.hero__note:hover { text-decoration: underline; }
.hero__photo { position: relative; overflow: hidden; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 45% 40%; }

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.section--pale { background: var(--bleu-voile); }
.section--bleu { background: linear-gradient(135deg, #4a679c, var(--marine)); color: var(--blanc); }

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.service {
  display: flex; flex-direction: column;
  padding: 2rem;
  background: var(--blanc);
  border: 1px solid var(--bleu-pale);
  border-radius: var(--rayon);
  box-shadow: var(--ombre);
}
.service__tete { display: flex; align-items: center; gap: 1rem; margin-bottom: .75rem; }
.service__icone {
  flex: none;
  display: grid; place-items: center;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--bleu-pale);
  color: var(--marine);
}
.service h3 {
  margin: 0;
  font-family: var(--f-titre);
  font-weight: 700;
  font-size: 1.6rem;
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--marine);
}
.service > p { margin: 0 0 1rem; color: var(--texte-doux); }
.service__liste {
  list-style: none; margin: 0 0 1.5rem; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: .35rem 1rem;
  font-family: var(--f-recit);
  font-weight: 500;
  color: var(--marine);
}
.service__liste li { position: relative; padding-left: 1rem; }
.service__liste li::before {
  content: ""; position: absolute; left: 0; top: .65em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--bleu);
}
.avis-mini {
  margin: auto 0 0;
  padding: 1rem 1.2rem;
  background: var(--bleu-carte);
  color: var(--blanc);
  border-radius: 0 var(--rayon) var(--rayon) var(--rayon);
  font-size: .9rem;
}
.avis-mini + .avis-mini { margin-top: .75rem; }
.avis-mini p { margin: 0 0 .5rem; }
.avis-mini footer { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-size: .82rem; }
.avis-mini cite { font-style: normal; font-weight: 600; }

/* ---------- Parcours ---------- */
.parcours { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.parcours__photo img {
  width: 100%; aspect-ratio: 8 / 9; object-fit: cover;
  border-radius: 50% 50% var(--rayon) var(--rayon) / 38% 38% var(--rayon) var(--rayon);
  border: 6px solid rgba(255,255,255,.25);
}
.parcours__texte p { color: var(--blanc); }
.jalons { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.jalons li { padding: 1rem; border-top: 2px solid rgba(255,255,255,.6); }
.jalons__chiffre { display: block; font-family: var(--f-titre); font-weight: 700; font-size: 2.6rem; line-height: 1; }
.jalons__legende { display: block; margin-top: .35rem; font-size: .85rem; line-height: 1.4; opacity: .9; }

/* ---------- Histoire ---------- */
.histoire__recit { font-family: var(--f-recit); font-weight: 500; font-size: 1.2rem; line-height: 1.7; color: var(--texte); }
.histoire__recit p { margin: 0 0 1.2rem; }
.lettrine::first-letter {
  float: left;
  margin: .08em .12em 0 0;
  font-family: var(--f-titre);
  font-weight: 700;
  font-size: 3.6em;
  line-height: .8;
  color: var(--bleu-moyen);
}
.histoire__phrase {
  margin: 2rem 0 !important;
  padding-left: 1.2rem;
  border-left: 4px solid var(--bleu);
  font-style: italic;
  font-size: 1.6rem;
  color: var(--marine);
}
.histoire__signature { text-align: right; font-style: italic; color: var(--texte-doux); }

.comparatif { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 2.5rem 0; }
.comparatif__case {
  display: flex; flex-direction: column; gap: .4rem;
  padding: 1.4rem 1.2rem;
  border-radius: var(--rayon);
  text-align: center;
}
.comparatif__case--autres { background: var(--bleu-voile); border: 1px dashed #c3cfe3; color: var(--texte-doux); }
.comparatif__case--coffin { background: var(--marine); color: var(--blanc); box-shadow: var(--ombre); transform: scale(1.04); }
.comparatif__montant { font-family: var(--f-titre); font-weight: 700; font-size: 2.3rem; line-height: 1; }
.comparatif__legende { font-size: .85rem; line-height: 1.4; }

.avant-apres { margin: 3rem 0 0; }
.avant-apres__grille { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.avant-apres__item { position: relative; border-radius: var(--rayon); overflow: hidden; }
.avant-apres__item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.badge {
  position: absolute; left: .8rem; top: .8rem;
  padding: .3rem .75rem;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  color: var(--marine);
  font-family: var(--f-titre);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.badge--plein { background: var(--marine); color: var(--blanc); }
.avant-apres figcaption { margin-top: .8rem; font-size: .88rem; color: var(--texte-doux); text-align: center; }

/* ---------- Avis ---------- */
.avis-note {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem;
  margin: 0 0 2.5rem;
  padding: 1.5rem 2rem;
  background: var(--blanc);
  border-radius: var(--rayon);
  box-shadow: var(--ombre);
}
.avis-note__valeur { font-family: var(--f-titre); font-weight: 700; font-size: 2.6rem; line-height: 1; color: var(--marine); }
.avis-note__valeur small { font-size: 1.2rem; color: var(--texte-doux); }
.avis-note__base { flex: 1; color: var(--texte-doux); }

.avis-grille { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.avis-carte {
  display: flex; gap: 1rem;
  margin: 0;
  padding: 1.4rem;
  background: var(--bleu-carte);
  color: var(--blanc);
  border-radius: 999px var(--rayon) var(--rayon) 999px;
  border-radius: 60px var(--rayon) var(--rayon) 60px;
}
.avis-carte__avatar {
  flex: none;
  display: grid; place-items: center;
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--bleu-pale);
  color: var(--marine);
  font-family: var(--f-titre);
  font-weight: 700;
  font-size: 1.8rem;
  border: 3px solid var(--blanc);
}
.avis-carte cite { display: block; font-style: normal; font-weight: 600; }
.avis-carte p { margin: .3rem 0 .5rem; font-size: .9rem; line-height: 1.5; }

/* ---------- Contact ---------- */
.contact { background: var(--marine); color: var(--blanc); }
.contact__inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem; align-items: center; }
.contact p { color: rgba(255,255,255,.88); font-size: 1.05rem; }
.contact__carte {
  padding: 2rem;
  border-radius: var(--rayon);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.2);
}
.contact__ligne { display: flex; flex-direction: column; margin: 0 0 1rem !important; }
.contact__lib { font-family: var(--f-titre); font-weight: 600; font-size: .95rem; letter-spacing: .14em; text-transform: uppercase; color: var(--bleu-clair-texte); }
.contact__ligne a { color: var(--blanc); font-size: 1.4rem; font-weight: 600; text-decoration: none; }
.contact__carte .btn { margin-top: .5rem; }

/* ---------- Pied ---------- */
.pied { padding: 2.5rem 0; background: var(--marine-fonce); color: rgba(255,255,255,.75); font-size: .85rem; }
.pied__inner { display: flex; flex-direction: column; align-items: center; gap: .6rem; text-align: center; }
.pied__inner img { width: 120px; margin-bottom: .5rem; }
.pied p { margin: 0; }
.pied a { color: var(--blanc); }
.pied__credit { opacity: .7; }

/* ---------- Bouton d'appel flottant (mobile) ---------- */
.appel-flottant {
  display: none;
  position: fixed; right: 16px; bottom: 16px; z-index: 60;
  width: 58px; height: 58px;
  place-items: center;
  border-radius: 50%;
  background: var(--marine);
  color: var(--blanc);
  box-shadow: 0 8px 22px rgba(30,43,79,.35);
}

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero__photo { order: -1; aspect-ratio: 16 / 9; }
  .services { grid-template-columns: 1fr; }
  .parcours { grid-template-columns: 1fr; }
  .parcours__photo { max-width: 380px; margin-inline: auto; }
  .avis-grille { grid-template-columns: 1fr; }
  .contact__inner { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav-burger {
    display: grid; place-items: center;
    width: 44px; height: 44px; padding: 0; cursor: pointer;
    background: none; border: 0; border-radius: 8px;
  }
  .nav-burger:focus-visible { outline: 3px solid var(--bleu-moyen); outline-offset: 2px; }
  .nav-burger__barres, .nav-burger__barres::before, .nav-burger__barres::after {
    display: block; width: 24px; height: 2px; background: var(--marine);
    position: relative; content: ""; transition: transform .2s;
  }
  .nav-burger__barres::before { position: absolute; top: -7px; }
  .nav-burger__barres::after  { position: absolute; top: 7px; }
  .nav-burger[aria-expanded="true"] .nav-burger__barres { background: transparent; }
  .nav-burger[aria-expanded="true"] .nav-burger__barres::before { top: 0; transform: rotate(45deg); }
  .nav-burger[aria-expanded="true"] .nav-burger__barres::after  { top: 0; transform: rotate(-45deg); }
  .nav {
    position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column; gap: 0;
    padding: .5rem 16px 1.25rem;
    background: var(--blanc);
    border-bottom: 1px solid var(--bleu-pale);
    box-shadow: var(--ombre);
    display: none;
  }
  .nav a:not(.btn) { padding: .75rem 0; width: 100%; border-bottom: 1px solid var(--bleu-voile); }
  .nav .btn { margin-top: 1rem; width: 100%; text-align: center; }
  .nav.est-ouverte { display: flex; }

  .service { padding: 1.5rem; }
  .service__liste { grid-template-columns: 1fr; }
  .jalons { grid-template-columns: 1fr; }
  .comparatif { grid-template-columns: 1fr; }
  .comparatif__case--coffin { transform: none; }
  .avant-apres__grille { grid-template-columns: 1fr; }
  .histoire__recit { font-size: 1.1rem; }
  .avis-carte { border-radius: 40px var(--rayon) var(--rayon) 40px; }
  .appel-flottant { display: grid; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

/* ---------- Intertitres du récit ---------- */
.histoire__recit h3 {
  margin: 2.2rem 0 .6rem;
  font-family: var(--f-titre);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--marine);
}

/* ==========================================================
   Ajouts v4 — index-4.php et temoignage.php
   ========================================================== */

/* Ligne « métier » dans le H1 du héro */
.hero__metier {
  display: block;
  margin-top: .7rem;
  font-family: var(--f-titre);
  font-weight: 600;
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  line-height: 1.2;
  letter-spacing: .14em;
}

/* Étoiles pour une note inférieure à 5 (la largeur suit le nombre d'étoiles) */
.etoiles--4 { width: 4.48em; }
.etoiles--3 { width: 3.36em; }
.etoiles--2 { width: 2.24em; }
.etoiles--1 { width: 1.12em; }

/* Zone d'intervention */
.zone__communes {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: flex; flex-wrap: wrap; gap: .6rem;
}
.zone__communes li {
  padding: .4rem .95rem;
  background: var(--blanc);
  border: 1px solid var(--bleu-pale);
  border-radius: 999px;
  font-family: var(--f-recit);
  font-weight: 500;
  color: var(--marine);
}
.zone__note { margin: 0; color: var(--texte-doux); }
.zone__note a { font-weight: 600; }

/* Page témoignage : fil d'Ariane et intertitres du récit (h2 sous le h1 de la page) */
.ariane { margin: 0 0 1.5rem; font-size: .85rem; color: var(--texte-doux); }
.ariane a { color: var(--bleu-moyen); }
.histoire__recit .h-recit {
  margin: 2.2rem 0 .6rem;
  font-family: var(--f-titre);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.2;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--marine);
}
