/* ==========================================================================
   Clinique Synergek — page de destination « Rendez-vous »
   Couleurs et polices reprises du site (Montserrat / Open Sans, rouge #f4313e)
   ========================================================================== */

:root {
  --rouge: #f4313e;          /* rouge Synergek : grandes surfaces, cercles */
  --rouge-bouton: #e01f2d;   /* boutons : contraste AA avec le texte blanc */
  --rouge-texte: #d0182a;    /* liens et texte rouge sur fond clair */
  --rouge-pale: #fdecee;
  --encre: #23242a;
  --texte: #4a4c53;
  --doux: #6b6e76;
  --ligne: #e3e3e6;
  --champ: #c9cace;
  --fond: #f6f6f7;
  --pied: #222222;
  --ambre: #f5a623;

  --titre: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --corps: "Open Sans", "Helvetica Neue", Arial, sans-serif;

  --rayon: 8px;
  --largeur: 1180px;
  --entete-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--entete-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  font-family: var(--corps);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--texte);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--rouge-texte); text-underline-offset: 3px; }
a:hover { color: var(--encre); }
h1, h2, h3 { font-family: var(--titre); color: var(--encre); margin: 0; line-height: 1.2; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 3px solid var(--rouge-texte); outline-offset: 2px; }

.ico { width: 1.15em; height: 1.15em; fill: currentColor; flex-shrink: 0; }

.enveloppe { width: 100%; max-width: var(--largeur); margin-inline: auto; padding-inline: 20px; }

.evitement {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--encre); color: #fff; padding: 10px 16px; border-radius: var(--rayon);
}
.evitement:focus { top: 12px; color: #fff; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: .75rem 1.35rem;
  font-family: var(--titre); font-weight: 600; font-size: 1rem; line-height: 1.2;
  text-decoration: none; text-align: center;
  border: 2px solid transparent; border-radius: var(--rayon);
  cursor: pointer; transition: background-color .15s, border-color .15s, color .15s;
}
.btn--plein { background: var(--rouge-bouton); color: #fff; }
.btn--plein:hover { background: #b8121f; color: #fff; }
.btn--contour { background: #fff; color: var(--encre); border-color: var(--champ); }
.btn--contour:hover { border-color: var(--rouge-texte); color: var(--rouge-texte); }
.btn--blanc { background: #fff; color: var(--rouge-texte); }
.btn--blanc:hover { background: var(--encre); color: #fff; }
.btn--contour-blanc { background: transparent; color: #fff; border-color: rgba(255,255,255,.85); }
.btn--contour-blanc:hover { background: #fff; color: var(--rouge-texte); }
.btn--large { font-size: 1.125rem; min-height: 56px; padding: .9rem 1.6rem; }
.btn[disabled] { opacity: .7; cursor: progress; }

/* ---------- En-tête ---------- */
.entete { background: #fff; border-bottom: 1px solid var(--ligne); position: relative; z-index: 20; }
.entete__int { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--entete-h); }
.entete__logo img { height: 46px; width: auto; }
.entete__actions { display: flex; align-items: center; gap: 10px; }
.entete__tel { padding-inline: .9rem; }
.entete__cta { display: none; }

@media (min-width: 900px) {
  .entete { position: sticky; top: 0; }
  .entete__cta { display: inline-flex; }
  .entete__logo img { height: 52px; }
}
@media (max-width: 420px) {
  .entete__logo img { height: 36px; }
  .entete__tel { font-size: .95rem; padding-inline: .7rem; }
}

/* ---------- Héros ---------- */
.heros { position: relative; overflow-x: clip; padding: 32px 0 48px; }
.heros__grille { display: grid; gap: 28px; }

.heros__titre {
  font-size: clamp(2rem, 1.35rem + 2.6vw, 3.15rem);
  font-weight: 700; line-height: 1.08; letter-spacing: -.015em;
  max-width: 15ch;
}
.heros__intro { margin-top: 16px; font-size: 1.125rem; line-height: 1.55; max-width: 33em; }

.preuves { display: grid; gap: 12px; margin-top: 24px; }
.preuves li { display: flex; align-items: flex-start; gap: 12px; }
.preuves strong { color: var(--encre); }
.preuves__ico {
  display: inline-grid; place-items: center; flex-shrink: 0;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--rouge-pale); color: var(--rouge-texte);
}
.preuves__ico--etoiles { width: auto; height: auto; padding: 4px 0; background: none; border-radius: 0; display: inline-flex; color: var(--ambre); }
.preuves__ico--etoiles .ico { width: 15px; height: 15px; }

.equipe-apercu { display: flex; align-items: center; gap: 14px; margin-top: 26px; }
.equipe-apercu__photos { display: flex; flex-shrink: 0; }
.equipe-apercu__photos img {
  width: 46px; height: 46px; border-radius: 50%; object-fit: cover; object-position: center 30%;
  border: 3px solid #fff; margin-left: -12px; background: var(--fond);
}
.equipe-apercu__photos img:first-child { margin-left: 0; }
.equipe-apercu p { font-size: .95rem; line-height: 1.4; }
.equipe-apercu strong { color: var(--encre); }

.heros__formulaire { position: relative; }
.heros__cercle {
  position: absolute; z-index: 0; border-radius: 50%; background: var(--rouge);
  width: 420px; height: 420px; top: -60px; right: -230px;
}
.heros__photo { display: none; }

/* Sur mobile, le formulaire passe juste sous le titre et l'introduction */
@media (max-width: 899px) {
  .heros__texte { display: contents; }
  .heros__grille > * { min-width: 0; }
  .heros__titre { order: 1; }
  .heros__intro { order: 2; margin-top: -12px; font-size: 1.05rem; }
  .heros__formulaire { order: 3; }
  .preuves { order: 4; margin-top: 4px; }
  .equipe-apercu { order: 5; margin-top: 0; }
}

@media (min-width: 900px) {
  .heros { padding: 40px 0 80px; }
  .heros__grille { grid-template-columns: minmax(0, 1fr) 470px; gap: 64px; align-items: start; }
  .heros__texte { padding-top: 48px; }
  .heros__cercle { width: 600px; height: 600px; top: -110px; right: -250px; }
  .heros__photo {
    display: block; position: absolute; z-index: 0;
    width: 220px; height: 220px; left: -120px; bottom: -36px;
    border-radius: 50%; object-fit: cover; border: 8px solid #fff;
    box-shadow: 0 12px 30px -12px rgba(35,36,42,.35);
  }
}

/* ---------- Carte du formulaire ---------- */
.carte-form {
  position: relative; z-index: 1;
  background: #fff; border-radius: 14px; padding: 24px 20px;
  box-shadow: 0 26px 60px -24px rgba(35,36,42,.45), 0 2px 8px rgba(35,36,42,.06);
}
.carte-form:focus { outline: none; }
@media (min-width: 480px) { .carte-form { padding: 30px 30px 26px; } }

.carte-form__titre { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.45rem); font-weight: 700; }
.insecable { white-space: nowrap; }
.carte-form__sous { color: var(--doux); margin-top: 2px; }

.alerte {
  margin-top: 16px; padding: 10px 14px;
  background: var(--rouge-pale); border-left: 4px solid var(--rouge-bouton); border-radius: 6px;
  color: #8a0f19; font-size: .95rem;
}
.alerte a { color: #8a0f19; font-weight: 700; }

.form { display: grid; gap: 14px; margin-top: 18px; }
.form__rangee { display: grid; gap: 14px; }
.form__rangee--toujours { grid-template-columns: 1fr 1fr; }
@media (min-width: 520px) { .form__rangee { grid-template-columns: 1fr 1fr; } }

.champ { display: grid; gap: 5px; min-width: 0; align-content: start; }
.champ label, .champ legend { font-weight: 600; font-size: .95rem; color: var(--encre); }
.facultatif { font-weight: 400; color: var(--doux); }

.champ input, .champ select, .champ textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--encre);
  background: #fff; border: 1.5px solid var(--champ); border-radius: var(--rayon);
  transition: border-color .15s, box-shadow .15s;
}
.champ input, .champ select { height: 48px; padding: 0 14px; }
.champ textarea { padding: 11px 14px; min-height: 76px; resize: vertical; line-height: 1.45; }
.champ select {
  appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2323242a'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 22px;
}
.champ input::placeholder, .champ textarea::placeholder { color: #9a9ca3; }
.champ input:focus, .champ select:focus, .champ textarea:focus {
  outline: none; border-color: var(--rouge-bouton); box-shadow: 0 0 0 3px rgba(224,31,45,.18);
}
.champ--erreur input, .champ--erreur select, .champ--erreur textarea { border-color: #c2121f; }
.champ__erreur { color: #b3121f; font-size: .875rem; font-weight: 600; }
.champ__aide { color: var(--doux); font-size: .82rem; line-height: 1.4; }

.choix { border: 0; padding: 0; margin: 0; }
.choix legend { padding: 0; margin-bottom: 5px; }
.choix__options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choix__option { position: relative; display: block; cursor: pointer; }
.choix__option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choix__option span {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; border: 1.5px solid var(--champ); border-radius: var(--rayon);
  font-weight: 600; color: var(--texte); transition: border-color .15s, background-color .15s, color .15s;
}
.choix__option input:checked + span { border-color: var(--rouge-bouton); background: var(--rouge-pale); color: var(--rouge-texte); }
.choix__option input:focus-visible + span { outline: 3px solid var(--rouge-texte); outline-offset: 2px; }

.piege { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form__envoyer { width: 100%; margin-top: 4px; }
.form__note { font-size: .8rem; line-height: 1.45; color: var(--doux); }
.form__note a { color: var(--doux); }

/* ---------- Sections ---------- */
.titre-section { font-size: clamp(1.6rem, 1.25rem + 1.3vw, 2.2rem); font-weight: 700; letter-spacing: -.01em; }
.intro-section { margin-top: 10px; font-size: 1.05rem; max-width: 40em; }

.etapes, .conditions, .avis { background: var(--fond); }
.etapes, .services, .conditions, .equipe, .avis, .emplacement { padding: 56px 0; }
@media (min-width: 900px) {
  .etapes, .services, .conditions, .equipe, .avis, .emplacement { padding: 80px 0; }
}

/* Étapes : vraie séquence, donc numérotée */
.etapes__liste { counter-reset: etape; display: grid; gap: 22px; margin-top: 28px; }
.etapes__liste li { counter-increment: etape; display: grid; grid-template-columns: 48px 1fr; column-gap: 16px; align-items: start; }
.etapes__liste li::before {
  content: counter(etape); grid-row: span 2;
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: var(--rouge); color: #fff; font-family: var(--titre); font-weight: 700; font-size: 1.25rem;
}
.etapes__liste h3 { font-size: 1.1rem; padding-top: 4px; }
.etapes__liste p { margin-top: 4px; }
@media (min-width: 900px) {
  .etapes__liste { grid-template-columns: repeat(3, 1fr); gap: 40px; }
}

/* Services */
.services__grille { display: grid; gap: 22px; margin-top: 32px; }
.service { display: grid; grid-template-columns: 88px 1fr; column-gap: 16px; align-items: start; }
.service__image {
  grid-row: span 3; width: 88px; height: 88px; border-radius: 50%; object-fit: cover; background: var(--fond);
}
.service__nom { font-size: 1.1rem; }
.service__texte { margin-top: 4px; font-size: .95rem; }
.service__choisir { margin-top: 6px; font-weight: 600; justify-self: start; }

@media (min-width: 640px) {
  .services__grille { grid-template-columns: repeat(2, 1fr); column-gap: 32px; row-gap: 36px; }
}
@media (min-width: 1000px) {
  .services__grille { grid-template-columns: repeat(4, 1fr); column-gap: 28px; row-gap: 48px; }
  .service { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .service__image { grid-row: auto; width: 168px; height: 168px; margin-bottom: 16px; }
  .service__choisir { justify-self: center; }
}

.services__autres { margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--ligne); }
.services__autres h3 { font-size: 1.05rem; }
.services__autres ul { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.services__autres a {
  display: inline-block; padding: 8px 16px; border: 1.5px solid var(--champ); border-radius: 999px;
  color: var(--encre); text-decoration: none; font-size: .95rem; font-weight: 600;
}
.services__autres a:hover { border-color: var(--rouge-texte); color: var(--rouge-texte); }

/* Conditions : liste traitée comme un bloc typographique */
.conditions__int { display: grid; gap: 18px; }
.conditions__liste { font-family: var(--titre); font-weight: 600; color: var(--encre); font-size: clamp(1.15rem, 1rem + .7vw, 1.55rem); line-height: 1.5; }
.conditions__liste li { display: inline; }
.conditions__liste li:not(:last-child)::after { content: ", "; color: var(--rouge); }
.conditions__liste li:last-child { color: var(--rouge-texte); }
.conditions__liste li:nth-last-child(2)::after { content: " "; }
.conditions__liste li:last-child::after { content: "."; }
@media (min-width: 900px) {
  .conditions__int { grid-template-columns: 280px 1fr; gap: 48px; align-items: start; }
}

/* Équipe */
.equipe__grille { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px 16px; margin-top: 32px; }
@media (min-width: 700px) { .equipe__grille { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .equipe__grille { grid-template-columns: repeat(4, 1fr); gap: 32px 24px; } }
.membre img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 25%; border-radius: 10px; background: var(--fond); }
.membre__nom { margin-top: 10px; font-family: var(--titre); font-weight: 600; color: var(--encre); line-height: 1.3; }
.membre__role { font-size: .9rem; color: var(--doux); line-height: 1.4; }
.js .equipe__grille:not(.ouvert) .membre[data-surplus] { display: none; }
.equipe__plus { margin-top: 28px; }

/* Avis */
.avis__note { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.avis__note strong { color: var(--encre); }
.etoiles { display: inline-flex; color: var(--ambre); }
.etoiles .ico { width: 18px; height: 18px; }
.avis__grille { display: grid; gap: 28px; margin-top: 32px; }
@media (min-width: 900px) { .avis__grille { grid-template-columns: repeat(3, 1fr); gap: 36px; } }
.temoignage { margin: 0; padding-left: 18px; border-left: 3px solid var(--rouge); }
.temoignage blockquote { margin: 0; font-size: 1.05rem; color: var(--encre); line-height: 1.55; }
.temoignage figcaption { margin-top: 12px; display: grid; font-size: .92rem; }
.temoignage figcaption strong { color: var(--encre); }
.temoignage figcaption span { color: var(--doux); }

/* Emplacement */
.emplacement__grille { display: grid; gap: 28px; }
.infos { display: grid; gap: 14px; margin-top: 22px; }
.infos li { display: flex; gap: 12px; align-items: flex-start; }
.infos .ico { width: 22px; height: 22px; color: var(--rouge-texte); margin-top: 2px; }
.infos strong { color: var(--encre); }
.emplacement__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.emplacement__carte { min-height: 320px; border-radius: 12px; overflow: hidden; background: var(--fond); }
.emplacement__carte iframe { display: block; width: 100%; height: 100%; min-height: 320px; border: 0; }
.emplacement__photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.emplacement__photos img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 10px; background: var(--fond); }
@media (min-width: 900px) {
  .emplacement__grille { grid-template-columns: 400px 1fr; gap: 48px; }
  .emplacement__carte, .emplacement__carte iframe { min-height: 420px; }
  .emplacement__photos { grid-column: 1 / -1; gap: 20px; }
}

/* Appel à l'action final */
.cta-final { position: relative; overflow: hidden; background: var(--rouge-bouton); color: #fff; padding: 64px 0; text-align: center; }
.cta-final::before, .cta-final::after {
  content: ""; position: absolute; border-radius: 50%; border: 2px solid rgba(255,255,255,.22); pointer-events: none;
}
.cta-final::before { width: 520px; height: 520px; left: -220px; top: -260px; }
.cta-final::after { width: 380px; height: 380px; right: -140px; bottom: -220px; }
.cta-final__int { position: relative; }
.cta-final h2 { color: #fff; font-size: clamp(1.8rem, 1.3rem + 2vw, 2.6rem); font-weight: 700; }
.cta-final p { margin-top: 10px; font-size: 1.15rem; }
.cta-final__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 26px; }
.cta-final :focus-visible { outline-color: #fff; }

/* Pied de page */
.pied { background: var(--pied); color: #cfcfd3; font-size: .95rem; padding-top: 48px; }
.pied a { color: #fff; }
.pied a:hover { color: #ffb3b8; }
.pied__int { display: grid; gap: 28px; padding-bottom: 36px; }
.pied__marque img { height: 52px; width: auto; }
.pied__marque p { margin-top: 12px; max-width: 26em; }
.pied__titre { color: #fff; font-size: 1rem; margin-bottom: 8px; }
.pied__int p + p { margin-top: 8px; }
.pied__bas { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding-top: 18px; padding-bottom: 22px; border-top: 1px solid #3a3a3a; font-size: .85rem; }
.pied__bas p { display: flex; flex-wrap: wrap; gap: 6px 20px; }
@media (min-width: 900px) { .pied__int { grid-template-columns: 1.4fr 1fr 1fr; } }

/* Barre fixe mobile */
.barre-mobile { display: none; }
@media (max-width: 899px) {
  .page-rdv { padding-bottom: 76px; }
  .barre-mobile {
    display: grid; grid-template-columns: 1fr 1.7fr; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: #fff; box-shadow: 0 -6px 20px rgba(35,36,42,.12);
    transform: translateY(0); transition: transform .2s ease;
  }
  .barre-mobile.cachee { transform: translateY(115%); }
  .barre-mobile .btn { padding-inline: .6rem; font-size: .95rem; }
}

/* ---------- Page Merci ---------- */
.merci { background: var(--fond); padding: 48px 0 64px; }
.merci__int { display: grid; place-items: center; }
.merci__carte {
  width: 100%; max-width: 640px; background: #fff; border-radius: 16px; padding: 36px 22px; text-align: center;
  box-shadow: 0 22px 50px -26px rgba(35,36,42,.35);
}
@media (min-width: 560px) { .merci__carte { padding: 44px 48px; } }
.merci__pastille {
  display: inline-grid; place-items: center; width: 84px; height: 84px; border-radius: 50%;
  background: var(--rouge); color: #fff; margin-bottom: 20px;
}
.merci__pastille .ico { width: 44px; height: 44px; }
.merci__titre { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.2rem); font-weight: 700; }
.merci__texte { margin-top: 12px; font-size: 1.125rem; }
.merci__ref { margin-top: 10px; color: var(--doux); font-size: .92rem; }
.merci__urgent { margin-top: 28px; padding: 24px 20px; background: var(--rouge-pale); border-radius: 12px; }
.merci__urgent h2 { font-size: 1.25rem; }
.merci__urgent p { margin-top: 4px; }
.merci__urgent .btn { margin-top: 16px; }
.merci__heures { font-size: .9rem; color: var(--texte); margin-top: 14px !important; }
.merci__911 { margin-top: 20px; font-size: .9rem; color: var(--doux); }
.merci__retour { margin-top: 18px; font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
