/* =====================================================================
   Cabinet infirmier de L'Espace Doré
   Palette tirée des photos du cabinet : le rose poudré du fond de la
   photo d'équipe, le terracotta des chaises, le bois clair du sol.
   Volontairement pas de bleu médical : le cabinet est chaleureux, le
   site doit l'être aussi.
   ===================================================================== */

:root{
  --rose:       #c98a86;
  --rose-fonce: #a86b67;
  --rose-clair: #f3e3e1;
  --rose-pale:  #faf3f2;
  --terre:      #c25f4a;
  --terre-fonce:#a44a37;
  --vert:       #5c7a6b;
  --bois:       #d9c3a5;
  --ink:        #2c2422;
  --ink-soft:   #6b5f5c;
  --line:       #e8ddda;
  --white:      #fff;
  --bg:         #f7f0ee;
  --maxw:       1140px;
  --radius:     14px;
}

*{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

body{
  margin: 0;
  background: var(--bg);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.65;
}

img{ max-width: 100%; height: auto; display: block; }
a{ color: var(--rose-fonce); }

.wrap{ max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Titres ---------- */
h1, h2, h3, h4{ font-family: 'Poppins', sans-serif; line-height: 1.2; margin: 0; }
h1{ font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h2{ font-size: clamp(1.35rem, 2.6vw, 1.75rem); color: var(--rose-fonce); margin-bottom: 8px; }
h3{ font-size: 1.05rem; color: var(--rose-fonce); margin-bottom: 6px; }
h4{ font-size: .95rem; color: var(--rose-fonce); margin-bottom: 5px; }
p{ margin: 0 0 14px; }
p:last-child{ margin-bottom: 0; }

/* ---------- Barre du haut ---------- */
.topbar{ background: var(--rose-fonce); color: #fff; font-size: .84rem; }
.topbar .wrap{ display: flex; justify-content: space-between; align-items: center;
               gap: 16px; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; }
.topbar a{ color: #fff; text-decoration: none; }
.topbar-info{ display: flex; align-items: center; gap: 8px; }
.topbar-info svg{ width: 15px; height: 15px; flex: none; }
.topbar-tel{ font-weight: 700; font-size: .95rem; }

/* ---------- Entête ---------- */
.site-header{
  background: var(--white); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 200;
}
.site-header .wrap{ display: flex; align-items: center; justify-content: space-between;
                    gap: 20px; padding-top: 14px; padding-bottom: 14px; }
.marque{ text-decoration: none; display: block; }
.marque .nom{ font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 1.02rem;
              color: var(--rose-fonce); line-height: 1.15; display: block; white-space: nowrap; }
.marque .lieu{ white-space: nowrap; }
/* Le bouton du menu ne doit jamais etre pousse hors de l'ecran */
.marque{ min-width: 0; overflow: hidden; }
.marque .lieu{ font-size: .76rem; color: var(--ink-soft); letter-spacing: .03em; }

.nav{ display: flex; align-items: center; gap: 4px; }
.nav a{
  color: var(--ink); text-decoration: none; font-size: .87rem; font-weight: 500;
  padding: 8px 10px; border-radius: 8px; white-space: nowrap;
  transition: background .22s ease, color .22s ease;
}
.nav a:hover{ background: var(--rose-pale); color: var(--rose-fonce); }
.nav a.actif{ color: var(--rose-fonce); font-weight: 700; background: var(--rose-pale); }

.burger{ display: none; background: none; border: 1px solid var(--line); border-radius: 8px;
         padding: 8px 10px; cursor: pointer; color: var(--rose-fonce); }
.burger svg{ width: 20px; height: 20px; display: block; }

/* ---------- Boutons ---------- */
.btn{
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: 'Poppins', sans-serif; font-weight: 600; font-size: .92rem;
  text-decoration: none; padding: 0 24px; min-height: 48px; border-radius: 10px;
  border: 2px solid transparent; cursor: pointer;
  transition: background .22s ease, color .22s ease, transform .22s ease, border-color .22s ease;
}
.btn svg{ width: 17px; height: 17px; flex: none; }
.btn:hover{ transform: translateY(-2px); }
.btn-rose{ background: var(--rose-fonce); color: #fff; border-color: var(--rose-fonce); }
.btn-rose:hover{ background: #96605c; border-color: #96605c; }
.btn-terre{ background: var(--terre); color: #fff; border-color: var(--terre); }
.btn-terre:hover{ background: var(--terre-fonce); border-color: var(--terre-fonce); }
.btn-contour{ background: transparent; color: var(--rose-fonce); border-color: var(--rose); }
.btn-contour:hover{ background: var(--rose-fonce); color: #fff; border-color: var(--rose-fonce); }

/* ---------- Sections ---------- */
.section{ padding: 56px 0; }
.section-pale{ background: var(--rose-pale); }
.section-tete{ text-align: center; max-width: 720px; margin: 0 auto 34px; }
.section-tete p{ color: var(--ink-soft); font-size: .97rem; }

/* ---------- Bandeau d'accueil ---------- */
.hero{ background: var(--white); padding: 52px 0; }
.hero-in{ display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px; align-items: center; }
.hero h1{ color: var(--rose-fonce); margin-bottom: 14px; }
.hero h1 em{ font-style: normal; color: var(--terre); }
.hero-sous{ font-size: 1.05rem; color: var(--ink); margin-bottom: 12px; }
.hero p{ color: var(--ink-soft); }
.hero-actions{ display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.hero-photo{ border-radius: 20px; overflow: hidden; box-shadow: 0 18px 46px rgba(160,110,105,.20); }

/* Bande de repères sous le bandeau */
.reperes{ display: flex; background: var(--rose-clair); border-radius: 14px; margin-top: 30px; }
.reperes > div{ flex: 1; padding: 16px 20px; display: flex; align-items: center; gap: 12px;
                color: var(--ink-soft); font-size: .87rem; line-height: 1.4; position: relative; }
.reperes > div + div::before{ content: ""; position: absolute; left: 0; top: 22%; bottom: 22%;
                              width: 1px; background: rgba(168,107,103,.22); }
.reperes svg{ width: 20px; height: 20px; flex: none; color: var(--terre); }
.reperes strong{ display: block; color: var(--rose-fonce); font-family: 'Poppins', sans-serif;
                 font-weight: 700; font-size: .93rem; }

/* ---------- Cartes ---------- */
.grille{ display: grid; gap: 20px; }
.g2{ grid-template-columns: repeat(2, 1fr); }
.g3{ grid-template-columns: repeat(3, 1fr); }
.g4{ grid-template-columns: repeat(4, 1fr); }

.carte{
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px;
  transition: transform .32s cubic-bezier(.2,.8,.2,1), box-shadow .32s ease, border-color .28s ease;
}
.carte:hover{ transform: translateY(-4px); box-shadow: 0 14px 34px rgba(160,110,105,.13);
              border-color: var(--rose); }
.carte .ic{
  width: 56px; height: 56px; border-radius: 16px; background: var(--rose-clair);
  display: flex; align-items: center; justify-content: center; color: var(--rose-fonce);
  margin-bottom: 14px;
  transition: background .32s ease, color .32s ease, transform .45s cubic-bezier(.2,.9,.3,1.3);
}
.carte .ic svg{ width: 28px; height: 28px; }
.carte:hover .ic{ background: var(--rose-fonce); color: #fff; transform: rotate(-5deg) scale(1.06); }
.carte p{ color: var(--ink-soft); font-size: .91rem; }

/* ---------- Les trois infirmières ---------- */
.inf{ background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
      padding: 26px 24px; text-align: center; }
.inf .rond{
  width: 68px; height: 68px; border-radius: 50%; margin: 0 auto 14px;
  background: var(--rose-clair); color: var(--rose-fonce);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 1.3rem;
}
.inf h3{ margin-bottom: 4px; }
.inf .role{ font-size: .84rem; color: var(--ink-soft); margin-bottom: 14px; }
.inf .rpps{ font-size: .74rem; color: var(--ink-soft); font-family: monospace;
            padding-top: 12px; border-top: 1px solid var(--line); margin-top: 14px; }

/* ---------- Listes ---------- */
.liste{ list-style: none; margin: 0; padding: 0; }
.liste li{ position: relative; padding: 7px 0 7px 26px; color: var(--ink-soft); font-size: .93rem; }
.liste li::before{
  content: ""; position: absolute; left: 5px; top: 15px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--terre);
}
.liste strong{ color: var(--ink); }

/* ---------- Encadrés ---------- */
.encadre{
  background: var(--rose-pale); border-radius: var(--radius); padding: 22px 26px;
  border-left: 3px solid var(--rose);
}
.encadre h3{ margin-bottom: 8px; }
.encadre p{ color: var(--ink-soft); font-size: .93rem; }

.urgence{
  background: #fdf4f2; border-left: 3px solid var(--terre); border-radius: 0 12px 12px 0;
  padding: 18px 22px; display: flex; gap: 14px; align-items: flex-start;
  color: #8a3a2a; font-size: .93rem; line-height: 1.65;
}
.urgence svg{ width: 22px; height: 22px; flex: none; margin-top: 2px; color: var(--terre); }
.urgence strong{ color: #6d2a1d; }

/* ---------- Bandeau de page ---------- */
.page-tete{ background: var(--rose-fonce); color: #fff; padding: 44px 0 40px; text-align: center; }
.page-tete h1{ color: #fff; margin-bottom: 8px; }
.page-tete p{ color: #f3e3e1; max-width: 720px; margin: 0 auto; }
.fil{ font-size: .82rem; color: #e5c9c6; margin-bottom: 16px; }
.fil a{ color: #e5c9c6; text-decoration: none; }
.fil a:hover{ color: #fff; }

/* ---------- Formulaire ---------- */
.form-cadre{
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 32px;
}
.form-l2{ display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.champ{ margin-bottom: 18px; }
.champ label{ display: block; font-family: 'Poppins', sans-serif; font-weight: 600;
              font-size: .87rem; color: var(--rose-fonce); margin-bottom: 6px; }
.champ label .fac{ font-weight: 400; color: var(--ink-soft); font-size: .8rem; }
.champ input, .champ select, .champ textarea{
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  font-family: inherit; font-size: .95rem; color: var(--ink); background: var(--white);
  transition: border-color .22s ease, box-shadow .22s ease;
}
.champ input:focus, .champ select:focus, .champ textarea:focus{
  outline: none; border-color: var(--rose); box-shadow: 0 0 0 3px rgba(201,138,134,.15);
}
.aide{ font-size: .8rem; color: var(--ink-soft); margin: 6px 0 0; }
.form-note{
  background: var(--rose-pale); border-radius: 10px; padding: 14px 18px;
  font-size: .87rem; line-height: 1.6; color: var(--ink-soft); margin-bottom: 20px;
}
.form-note strong{ color: var(--rose-fonce); }
.alerte-form{
  background: #fdf4f2; border-left: 3px solid var(--terre); border-radius: 0 10px 10px 0;
  padding: 14px 18px; margin-bottom: 20px; color: #8a3a2a; font-size: .9rem;
}

/* ---------- Pied de page ---------- */
.site-footer{ background: var(--rose-fonce); color: #f3e3e1; padding: 44px 0 0; margin-top: 20px; }
.footer-grille{ display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 34px; }
.site-footer h4{ color: #fff; font-size: .88rem; text-transform: uppercase;
                 letter-spacing: .06em; margin-bottom: 14px; }
.site-footer a{ color: #f3e3e1; text-decoration: none; }
.site-footer a:hover{ color: #fff; text-decoration: underline; }
.footer-liens{ list-style: none; margin: 0; padding: 0; }
.footer-liens li{ padding: 4px 0; font-size: .89rem; }
.footer-info{ font-size: .89rem; line-height: 1.8; }
.footer-info div{ display: flex; gap: 10px; align-items: flex-start; padding: 3px 0; }
.footer-info svg{ width: 16px; height: 16px; flex: none; margin-top: 4px; opacity: .8; }
.footer-bas{
  margin-top: 34px; padding: 18px 0; border-top: 1px solid rgba(255,255,255,.16);
  font-size: .8rem; color: #e0c4c1; display: flex; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.footer-bas a{ color: #e0c4c1; }

/* ---------- Bouton d'appel flottant ---------- */
.appel-flottant{
  position: fixed; right: 20px; bottom: 20px; z-index: 300;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--terre); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 22px rgba(194,95,74,.42);
  transition: transform .25s ease, background .25s ease;
}
.appel-flottant:hover{ transform: scale(1.07); background: var(--terre-fonce); }
.appel-flottant svg{ width: 25px; height: 25px; }

/* ---------- Animation d'arrivée ---------- */
[data-anim] > *{
  opacity: 0; transform: translateY(16px);
  transition: opacity .7s ease, transform .8s cubic-bezier(.2,.8,.2,1),
              box-shadow .32s ease, border-color .28s ease;
}
[data-anim].joue > *{ opacity: 1; transform: none; }
[data-anim].joue > *:nth-child(2){ transition-delay: .09s; }
[data-anim].joue > *:nth-child(3){ transition-delay: .18s; }
[data-anim].joue > *:nth-child(4){ transition-delay: .27s; }
[data-anim].joue > *:nth-child(5){ transition-delay: .36s; }
[data-anim].joue > *:nth-child(6){ transition-delay: .45s; }

/* ---------- Adaptation aux écrans ---------- */
@media (max-width: 980px){
  .hero-in{ grid-template-columns: 1fr; gap: 32px; }
  .hero-photo{ max-width: 480px; margin: 0 auto; }
  .g4{ grid-template-columns: repeat(2, 1fr); }
  .footer-grille{ grid-template-columns: 1fr 1fr; gap: 28px; }
  .reperes{ flex-wrap: wrap; }
  .reperes > div{ flex: 1 1 46%; }
}

/* Avec sept entrees, le menu ne tient plus en une ligne sous 1040 px */
@media (max-width: 1040px){
  .nav{
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; padding: 10px 24px 18px;
    box-shadow: 0 12px 26px rgba(160,110,105,.12);
  }
  .nav.ouvert{ display: flex; }
  .nav a{ padding: 12px 14px; font-size: .93rem; }
  .burger{ display: block; }
  .site-header .wrap{ position: relative; }
}

@media (max-width: 760px){
  .marque .nom{ white-space: normal; font-size: .95rem; }
  .marque .lieu{ white-space: normal; font-size: .72rem; }
  .nav{
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; padding: 10px 24px 18px;
    box-shadow: 0 12px 26px rgba(160,110,105,.12);
  }
  .nav.ouvert{ display: flex; }
  .nav a{ padding: 12px 14px; }
  .burger{ display: block; }
  .site-header .wrap{ position: relative; }
  .g2, .g3, .g4{ grid-template-columns: 1fr; }
  .form-l2{ grid-template-columns: 1fr; gap: 0; }
  .section{ padding: 40px 0; }
  .reperes{ flex-direction: column; }
  .reperes > div{ flex: 1 1 auto; }
  .reperes > div + div::before{ left: 20px; right: 20px; top: 0; bottom: auto;
                                width: auto; height: 1px; }
  .footer-grille{ grid-template-columns: 1fr; }
  .form-cadre{ padding: 22px 20px; }
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  [data-anim] > *{ opacity: 1; transform: none; transition: none; }
  .carte:hover, .btn:hover, .appel-flottant:hover{ transform: none; }
}




/* --- Questions frequentes ---------------------------------------------
   Les reponses sont repliees : la page reste lisible d'un coup d'oeil,
   et le visiteur ouvre ce qui le concerne.
   ---------------------------------------------------------------------- */
.faq{
  background: var(--white); border: 1px solid var(--line); border-radius: 12px;
  margin-bottom: 10px; overflow: hidden;
  transition: border-color .28s ease, box-shadow .3s ease;
}
.faq:hover{ border-color: var(--rose); box-shadow: 0 8px 22px rgba(160,110,105,.09); }
.faq[open]{ border-color: var(--rose); }

.faq summary{
  padding: 16px 46px 16px 20px; cursor: pointer; position: relative;
  font-family: 'Poppins', sans-serif; font-weight: 600; font-size: .96rem;
  color: var(--rose-fonce); list-style: none;
}
.faq summary::-webkit-details-marker{ display: none; }
.faq summary::marker{ content: ""; }

/* Le chevron pivote a l'ouverture */
.faq summary::after{
  content: ""; position: absolute; right: 20px; top: 50%;
  width: 9px; height: 9px; margin-top: -6px;
  border-right: 2px solid var(--rose); border-bottom: 2px solid var(--rose);
  transform: rotate(45deg); transition: transform .28s ease;
}
.faq[open] summary::after{ transform: rotate(-135deg); margin-top: -2px; }
.faq summary:hover{ background: var(--rose-pale); }

.faq-corps{ padding: 0 20px 18px; }
.faq-corps p{ color: var(--ink-soft); font-size: .93rem; margin-bottom: 10px; }
.faq-corps p:last-child{ margin-bottom: 0; }
.faq-corps strong{ color: var(--ink); }

/* --- Le numero se copie au clic ---------------------------------------
   Sur ordinateur, cliquer un lien « tel: » ouvre une application, ce qui
   deroute. Le clic copie le numero a la place, et une petite etiquette
   le confirme. Rien de tout cela sur telephone, ou l'appel direct est
   le bon geste.
   ---------------------------------------------------------------------- */
.tel-copiable{ position: relative; cursor: pointer; }

.tel-copiable::after{
  content: "Numéro copié";
  position: absolute; left: 50%; bottom: calc(100% + 8px);
  transform: translateX(-50%) translateY(4px);
  background: var(--vert); color: #fff;
  font-family: 'Inter', sans-serif; font-size: .74rem; font-weight: 600;
  padding: 5px 11px; border-radius: 7px; white-space: nowrap;
  opacity: 0; pointer-events: none;
  transition: opacity .22s ease, transform .28s ease;
  z-index: 400;
}
.tel-copiable.copie::after{ opacity: 1; transform: translateX(-50%) translateY(0); }

/* La pointe de l'etiquette */
.tel-copiable::before{
  content: ""; position: absolute; left: 50%; bottom: calc(100% + 3px);
  margin-left: -5px; border: 5px solid transparent; border-top-color: var(--vert);
  opacity: 0; pointer-events: none; transition: opacity .22s ease; z-index: 400;
}
.tel-copiable.copie::before{ opacity: 1; }

/* Dans un bouton, l'etiquette se place au-dessus sans deformer le cadre */
.btn.tel-copiable{ overflow: visible; }


/* --- Sommaire des questions -------------------------------------------
   Sur une page de vingt-trois questions, il evite de faire defiler pour
   trouver son sujet. Le compteur annonce ce qu'on va trouver.
   ---------------------------------------------------------------------- */
.faq-sommaire{
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  margin-bottom: 34px;
}
.faq-sommaire a{
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--rose-pale); border: 1px solid var(--line); border-radius: 11px;
  padding: 13px 16px; text-decoration: none;
  font-family: 'Poppins', sans-serif; font-weight: 600; font-size: .87rem;
  color: var(--rose-fonce); line-height: 1.3;
  transition: background .22s ease, border-color .22s ease, transform .25s ease;
}
.faq-sommaire a:hover{
  background: var(--rose-clair); border-color: var(--rose); transform: translateY(-2px);
}
.faq-sommaire .n{
  flex: none; min-width: 24px; height: 24px; border-radius: 20px;
  background: var(--rose-fonce); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: .76rem; font-weight: 700;
}

/* Le titre vise par le sommaire ne doit pas passer sous l'entete collante */
.faq-sommaire ~ h2[id]{ scroll-margin-top: 90px; }

@media (max-width: 900px){ .faq-sommaire{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px){ .faq-sommaire{ grid-template-columns: 1fr; } }


/* --- Le logo dans l'entete --------------------------------------------
   Un SVG plutot qu'une image : net a toutes les tailles, et quelques
   centaines d'octets seulement.
   ---------------------------------------------------------------------- */
.marque{ display: flex; align-items: center; gap: 12px; }
.marque-logo{ width: 46px; height: 46px; flex: none; }
.marque-texte{ display: block; min-width: 0; }

@media (max-width: 760px){
  .marque-logo{ width: 38px; height: 38px; }
  .marque{ gap: 10px; }
}


/* Le numero de version, discret, en pied de page */
.pied-version{
  display: inline-block; margin-left: 8px; padding: 1px 8px;
  border-radius: 20px; background: rgba(255,255,255,.14);
  font-size: .72rem; font-family: monospace; color: #f3e3e1; opacity: .8;
}
