/* =========================================================================
   Cabinet Mathieu Afsharian — Refonte "Option 1 bleu ciel"
   New homepage hero + global header restyle.
   Loaded LAST, after mathieu-afsharian.webflow.css, so it overrides cleanly.
   No edits to the generated Webflow CSS.
   ========================================================================= */

:root {
  /* Palette "Option 1" — vert sauge / teal du maquette (marque verte). */
  --sky: #5aa08c;          /* teal/sauge de base                        */
  --sky-deep: #3f7d6a;     /* teal profond : titres / hover CTA         */
  --sky-cta: #4a8f79;      /* CTA principal / bouton Doctolib           */
  --sky-light: #eef5f2;    /* wash vert très clair                      */
  --sky-lighter: #cfe3db;
  --bar-blue: #6e9e8f;     /* teal désaturé de la barre d'annonce       */
  --ink: #1f2a2f;
  --ink-soft: #5c6b66;
  --gold: #efa63d;
  --yellow: #f3d98a;

  /* --- Remap de la charte Webflow : tous les BLEUS deviennent VERTS --- */
  /* Ces variables sont définies par le thème Webflow ; on les redéfinit ici  */
  /* (redesign.css chargé en dernier) pour verdir tout le site d'un coup.      */
  --secondary--teals--base: #57a68f;
  --secondary--teals--darker: #2f6a5a;
  --secondary--teals--light: #eef5f2;
  --secondary--teals--lighter: #cfe3db;
  --primary--darker: #3f7d6a;      /* couleur des boutons/CTA : indigo -> vert profond */
  --primary--light: #eef5f2;
  --primary--lighter: #cfe3db;
  --state--green-success--light: #4a8f79;
  --state--green-success--lighter: #cfe3db;
}

/* Sélecteurs Webflow avec un bleu #6daac4 codé en dur -> vert (override) */
.cta-block { background-color: var(--sky-deep); }
.button-home { background-color: var(--sky-cta); }
.banner { background-color: var(--sky-lighter); }
.section-service-header { background-color: var(--sky-deep); background-image: none; }
.image-cover { background-color: var(--sky-lighter); }

/* ------------------------------------------------------------------ *
 * 1. ANNOUNCEMENT BAR (top strip, all pages)
 * ------------------------------------------------------------------ */
.announcement-bar {
  z-index: 60;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 46px;
  padding: 9px 5%;
  background-color: var(--bar-blue);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -.01em;
  text-align: center;
}
.announcement-bar__icon { width: 18px; height: 18px; flex: 0 0 auto; }
.announcement-bar__cta {
  margin-left: 6px;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .2);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  white-space: nowrap;
  transition: background .3s, color .3s;
}
.announcement-bar__cta:hover { background: #fff; color: var(--sky-deep); }

/* ------------------------------------------------------------------ *
 * 2. HEADER / NAV restyle + Doctolib button
 * ------------------------------------------------------------------ */
.navigation { background-color: #fff !important; }
.navigation-top-wrapper { box-shadow: 0 1px 0 rgba(20, 60, 90, .06); }

.nav-link { color: var(--ink); }
.nav-link:hover,
.nav-link.w--current { color: var(--sky-deep); }

/* Doctolib pill — filled sky blue with clock icon */
.button-navigation {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--sky-cta) !important;
  border-radius: 999px;
  background-color: var(--sky-cta) !important;
  color: #fff !important;
  white-space: nowrap;
}
.button-navigation:hover {
  background-color: var(--sky-deep) !important;
  border-color: var(--sky-deep) !important;
  color: #fff !important;
}
.button-navigation svg { width: 16px; height: 16px; flex: 0 0 auto; }

/* ------------------------------------------------------------------ *
 * 3. HERO (homepage) — .section-home.hero-redesign
 * ------------------------------------------------------------------ */
.hero-redesign {
  position: relative;
  padding: 0 !important;       /* override .section-home 140px / 5% */
  display: flex;
  flex-direction: column;
  min-height: 640px;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-color: var(--sky-lighter);   /* fallback before photo lands */
  background-image:
    linear-gradient(100deg,
      rgba(255, 255, 255, .94) 0%,
      rgba(236, 248, 254, .78) 38%,
      rgba(236, 248, 254, .2) 66%,
      rgba(255, 255, 255, 0) 100%),
    linear-gradient(180deg, rgba(82, 190, 244, .06), rgba(82, 190, 244, .06)),
    url('../images/hero-cabinet-mathieu-afsharian.jpg');
  background-size: cover, cover, cover;
  background-position: center, center, center right;
  background-repeat: no-repeat;
}

/* 3b. Hero inner layout */
.hero-inner {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 54px 5% 64px;
}
.hero-content { max-width: 640px; }
.hero-content h1 {
  margin: 0 0 16px;
  color: var(--sky-deep);
  font-size: 56px;
  line-height: 1.08;
  letter-spacing: -.03em;
}
.hero-subtitle {
  margin: 0 0 30px;
  max-width: 440px;
  color: var(--ink-soft);
  font-size: 20px;
  line-height: 1.5;
}

/* 3c. Trust cards */
.hero-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 34px;
}
.hero-card {
  flex: 1 1 180px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, .85);
  border-radius: 16px;
  background: rgba(255, 255, 255, .72);
  backdrop-filter: blur(6px);
  box-shadow: 0 10px 26px rgba(20, 60, 90, .1);
}
.hero-card__icon {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--sky-light);
  color: var(--sky-cta);
}
.hero-card__icon svg { width: 24px; height: 24px; }
.hero-card__title {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.15;
}
.hero-card--rating .hero-card__title { color: var(--sky-deep); }
.hero-card__stars { color: var(--gold); font-size: 12px; letter-spacing: 1px; }
.hero-card__text { margin-top: 3px; color: var(--ink-soft); font-size: 13px; line-height: 1.35; }
.hero-card__title .google-g { width: 16px; height: 16px; }

/* 3d. CTAs */
.hero-cta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px;
}
.hero-btn-primary {
  display: inline-flex;
  align-items: center;
  min-height: 50px;
  padding: 13px 30px;
  border-radius: 999px;
  background: var(--sky-cta);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .03em;
  text-transform: uppercase;
  transition: background .3s;
}
.hero-btn-primary:hover { background: var(--sky-deep); }
.hero-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .03em;
  text-transform: uppercase;
  transition: color .3s;
}
.hero-link:hover { color: var(--sky-deep); }
.hero-link img { width: 16px; }

/* 3e. NOUVEAU promo card */
.hero-promo {
  align-self: flex-end;
  flex: 0 0 auto;
  width: 310px;
  max-width: 42%;
  padding: 26px 24px;
  border-radius: 18px;
  background: rgba(47, 147, 196, .82);
  backdrop-filter: blur(4px);
  color: #fff;
  box-shadow: 0 14px 34px rgba(10, 40, 60, .28);
}
.hero-promo__badge {
  display: inline-block;
  margin-bottom: 14px;
  padding: 4px 13px;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.hero-promo__title { margin: 0 0 10px; font-size: 23px; font-weight: 600; line-height: 1.25; }
.hero-promo__title em { font-style: italic; }
.hero-promo__text { margin: 0 0 18px; font-size: 14px; line-height: 1.5; opacity: .95; }
.hero-promo__cta {
  display: inline-block;
  padding: 9px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .2);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  transition: background .3s, color .3s;
}
.hero-promo__cta:hover { background: #fff; color: var(--sky-deep); }

/* ------------------------------------------------------------------ *
 * 4. AVIS + FAQ placeholder anchor sections (homepage)
 * ------------------------------------------------------------------ */
.section-anchor { padding: 84px 5%; }
.avis-section { background: #f3fafd; }
.section-head { max-width: 700px; margin: 0 auto 48px; text-align: center; }
.section-head .eyebrow {
  margin-bottom: 8px;
  color: var(--sky-deep);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.section-head h2 { margin: 0; color: var(--ink); font-size: 40px; letter-spacing: -.02em; }

.avis-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1080px;
  margin: 0 auto;
}
.avis-card {
  padding: 28px;
  border: 1px solid #e4e8f1;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(20, 60, 90, .05);
}
.avis-card__stars { margin-bottom: 12px; color: var(--gold); letter-spacing: 2px; }
.avis-card__text { margin: 0 0 16px; color: #364259; font-size: 15px; line-height: 1.6; }
.avis-card__name { color: var(--ink); font-weight: 700; }

.faq-list { display: flex; flex-direction: column; gap: 12px; max-width: 760px; margin: 0 auto; }
.faq-item { overflow: hidden; border: 1px solid #e4e8f1; border-radius: 12px; background: #fff; }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  cursor: pointer;
  list-style: none;
  color: var(--ink);
  font-size: 17px;
  font-weight: 600;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--sky-deep); font-size: 26px; line-height: 1; }
.faq-item[open] summary::after { content: "\2013"; }
.faq-item p { margin: 0; padding: 0 24px 22px; color: #364259; line-height: 1.6; }

/* ------------------------------------------------------------------ *
 * 5. RESPONSIVE (match existing breakpoints 991 / 767 / 479)
 * ------------------------------------------------------------------ */
@media screen and (max-width: 991px) {
  .hero-bg {
    background-image:
      linear-gradient(180deg, rgba(255, 255, 255, .9) 0%, rgba(236, 248, 254, .72) 55%, rgba(236, 248, 254, .5) 100%),
      url('../images/hero-cabinet-mathieu-afsharian.jpg');
    background-position: center, center;
  }
  .hero-inner { flex-direction: column; align-items: stretch; }
  .hero-content { max-width: none; }
  .hero-content h1 { font-size: 44px; }
  .hero-promo { align-self: stretch; width: 100%; max-width: none; margin-top: 28px; }
  .avis-grid { grid-template-columns: 1fr 1fr; }
}

@media screen and (max-width: 767px) {
  .announcement-bar { flex-wrap: wrap; gap: 6px; font-size: 12px; }
  .hero-content h1 { font-size: 34px; }
  .hero-subtitle { font-size: 18px; }
  .hero-cards { flex-direction: column; }
  .hero-card { flex: 1 1 auto; }
  .avis-grid { grid-template-columns: 1fr; }
  .section-head h2 { font-size: 30px; }
  .section-anchor { padding: 60px 5%; }
}

@media screen and (max-width: 479px) {
  .hero-cta-row { flex-direction: column; align-items: flex-start; gap: 16px; }
  .hero-btn-primary { width: 100%; justify-content: center; }
}

/* =========================================================================
   COMPOSANTS REFONTE (accueil : bande haute, actualités, avis Google, équipe)
   Restructuration légère — s'appuie sur les classes Webflow + variables :root.
   ========================================================================= */

/* --- Bande verte 3 colonnes (page « Les cabinets ») --- */
.section-feature { background-color: var(--sky-deep); }
.grid-feature {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  grid-column-gap: 16px;
  grid-row-gap: 16px;
  align-items: stretch;
}
.grid-feature .feature-block { align-items: flex-start; }
@media screen and (max-width: 767px) { .grid-feature { grid-template-columns: 1fr; } }

/* Lien « ← Tous les articles » des pages blog */
.feature-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  color: var(--sky-deep);
  font-size: 14px;
  font-weight: 600;
}
.feature-link:hover { text-decoration: underline; }

/* ------------------------------------------------------------------ *
 * INFOS PRATIQUES (accueil) — bande sous le hero.
 * Signature : les deux cabinets se partagent une même semaine, rendue
 * par la bande L M M J V S D dont les jours ouverts sont en doré.
 * ------------------------------------------------------------------ */
.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;
}

.pratique {
  padding: 76px 5%;
  background-color: var(--sky-deep);
  color: #fff;
}
.pratique-wrap { max-width: 1180px; margin: 0 auto; }

.pratique-head { margin-bottom: 48px; }
.pratique-eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .16em;
}
.pratique-title {
  max-width: 26ch;
  margin: 0;
  color: #fff;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.025em;
  text-wrap: balance;
}

/* Padding symétrique : les 3 colonnes gardent la même largeur utile,
   sinon la bande de la semaine passe à la ligne dans la 2e colonne. */
.pratique-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 0;
  row-gap: 40px;
}
.pratique-col { padding: 0 28px; }
.pratique-col:first-child { padding-left: 0; }
.pratique-col:last-child { padding-right: 0; }
.pratique-grid > * + * { border-left: 1px solid rgba(255, 255, 255, .18); }

.pratique-col__name {
  margin: 0 0 18px;
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.015em;
}

/* La semaine : un jour = une pastille. .is-on = cabinet ouvert. */
.semaine {
  display: flex;
  flex-wrap: nowrap;
  gap: 5px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}
.semaine li {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  color: rgba(255, 255, 255, .5);
  font-size: 13px;
  font-weight: 600;
}
.semaine li.is-on {
  background: var(--gold);
  color: var(--ink);
  font-weight: 700;
}

.pratique-col__adr {
  margin: 0 0 20px;
  color: rgba(255, 255, 255, .82);
  font-size: 16px;
  line-height: 1.55;
}

/* Tarifs : lignes à points de conduite, valeurs alignées à droite. */
.tarifs-list { margin: 0 0 22px; padding: 0; }
.tarif-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 7px 0;
}
.tarif-row dt {
  order: 0;
  color: rgba(255, 255, 255, .82);
  font-size: 15px;
}
.tarif-row::before {
  content: "";
  order: 1;
  flex: 1 1 auto;
  min-width: 12px;
  border-bottom: 1px dotted rgba(255, 255, 255, .34);
  transform: translateY(-4px);
}
.tarif-row dd {
  order: 2;
  margin: 0;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.pratique-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 3px;
  border-bottom: 1px solid rgba(255, 255, 255, .4);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  transition: border-color .25s;
}
.pratique-link:hover { border-color: var(--gold); }
.pratique-link span { transition: transform .25s; }
.pratique-link:hover span { transform: translateX(4px); }
.pratique-link:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }

/* En dessous de ~1100px, 3 colonnes ne laissent plus la place aux 7 jours :
   les tarifs passent sur toute la largeur, sous les deux cabinets. */
@media screen and (max-width: 1100px) {
  .pratique-title { font-size: 32px; }
  .pratique-grid { grid-template-columns: 1fr 1fr; }
  .pratique-col:last-child { padding-right: 28px; }
  .pratique-grid > .pratique-col--tarifs {
    grid-column: 1 / -1;
    padding: 36px 0 0;
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, .18);
  }
  .pratique-col--tarifs .tarifs-list { max-width: 460px; }
}

@media screen and (max-width: 640px) {
  .pratique { padding: 56px 5%; }
  .pratique-head { margin-bottom: 36px; }
  .pratique-title { font-size: 28px; }
  .pratique-grid { grid-template-columns: 1fr; row-gap: 0; }
  .pratique-col,
  .pratique-col:first-child,
  .pratique-col:last-child { padding: 0; }
  .pratique-grid > * + * {
    margin-top: 32px;
    padding-top: 32px;
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, .18);
  }
}

@media (prefers-reduced-motion: reduce) {
  .pratique-link,
  .pratique-link span { transition: none; }
}

/* --- Encart Actualités --- */
.actus-section { padding: 64px 5%; background: var(--sky-light); }
.actus-wrap { max-width: 900px; margin: 0 auto; }
.actus-list { display: flex; flex-direction: column; gap: 18px; margin-top: 28px; }
.actus-card {
  display: flex;
  gap: 18px;
  padding: 22px 24px;
  border: 1px solid var(--sky-lighter);
  border-left: 4px solid var(--sky-cta);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 6px 20px rgba(20, 60, 90, .05);
}
.actus-card__date {
  flex: 0 0 auto;
  min-width: 96px;
  color: var(--sky-deep);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.actus-card__title { margin: 0 0 6px; color: var(--ink); font-size: 19px; font-weight: 700; }
.actus-card__text { margin: 0; color: var(--ink-soft); font-size: 15px; line-height: 1.55; }
.actus-empty {
  margin-top: 24px;
  padding: 28px;
  border: 1px dashed var(--sky-lighter);
  border-radius: 14px;
  background: #fff;
  color: var(--ink-soft);
  text-align: center;
}

/* --- Bloc Avis Google --- */
.avis-google { padding: 64px 5%; text-align: center; }
.avis-google__inner {
  max-width: 640px;
  margin: 0 auto;
  padding: 40px 32px;
  border: 1px solid var(--sky-lighter);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(20, 60, 90, .07);
}
.avis-google__stars { color: var(--gold); font-size: 26px; letter-spacing: 4px; }
.avis-google__note { margin: 10px 0 4px; color: var(--ink); font-size: 34px; font-weight: 800; }
.avis-google__note span { color: var(--ink-soft); font-size: 18px; font-weight: 500; }
.avis-google__text { margin: 0 0 22px; color: var(--ink-soft); font-size: 16px; }
.avis-google__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 999px;
  background: var(--sky-cta);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  transition: background .3s;
}
.avis-google__cta:hover { background: var(--sky-deep); }

/* --- Section Équipe --- */
.equipe-section { padding: 84px 5%; background: var(--sky-light); }
.equipe-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1080px;
  margin: 40px auto 0;
}
.equipe-card {
  padding: 26px;
  border: 1px solid var(--sky-lighter);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(20, 60, 90, .05);
  text-align: center;
}
.equipe-card__photo {
  width: 120px;
  height: 120px;
  margin: 0 auto 16px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--sky-lighter);
}
.equipe-card__name { margin: 0 0 4px; color: var(--ink); font-size: 20px; font-weight: 700; }
.equipe-card__role {
  display: block;
  margin-bottom: 12px;
  color: var(--sky-deep);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.equipe-card__lines { margin: 0; color: var(--ink-soft); font-size: 15px; line-height: 1.55; }

/* --- Encart Équipe cliquable (teaser) --- */
.equipe-teaser {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
  padding: 26px 32px;
  border-radius: 18px;
  background: var(--sky-cta);
  color: #fff;
  transition: background .3s;
}
.equipe-teaser:hover { background: var(--sky-deep); }
.equipe-teaser h3 { margin: 0 0 4px; color: #fff; font-size: 24px; }
.equipe-teaser p { margin: 0; opacity: .92; font-size: 15px; }
.equipe-teaser .equipe-teaser__arrow { font-size: 28px; flex: 0 0 auto; }

/* --- Galerie photos du cabinet --- */
.photo-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 1080px;
  margin: 40px auto 0;
}
.photo-gallery img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(20, 60, 90, .07);
}
.photo-gallery figure { margin: 0; }
.photo-gallery figcaption {
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 13px;
  text-align: center;
}

@media screen and (max-width: 991px) {
  .equipe-grid { grid-template-columns: 1fr; max-width: 460px; }
  .photo-gallery { grid-template-columns: 1fr 1fr; }
}
@media screen and (max-width: 479px) {
  .photo-gallery { grid-template-columns: 1fr; }
}
@media screen and (max-width: 767px) {
  .actus-card { flex-direction: column; gap: 6px; }
  .actus-card__date { min-width: 0; }
  .equipe-teaser { flex-direction: column; text-align: center; }
}
