/* ==========================================================================
   Clinique Paradoxe — feuille de style principale
   Système de design : couleurs, typographie, espacements, composants.
   Tout se règle à partir des variables ci-dessous.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Jetons de design
   -------------------------------------------------------------------------- */
:root {
  /* Couleurs de marque */
  --paper:        #F6F2E9;  /* fond principal, « papier » */
  --paper-warm:   #EFEADC;  /* fond alterné, un ton plus chaud */
  --surface:      #FFFCF5;  /* cartes, surfaces surélevées */
  --forest:       #3C4A34;  /* pied de page, grands aplats */
  --forest-deep:  #2E3A28;  /* survol sur fond forêt */
  --sage:         #7E8E68;  /* touches, filets, icônes */
  --sage-pale:    #DDE2D2;  /* fonds secondaires, étiquettes */
  --bark:         #6E5747;  /* titres */
  --clay:         #A25E35;  /* accent : boutons et liens, rien d'autre */
  --clay-deep:    #8A4E2B;  /* survol de l'accent */

  /* Encre */
  --ink:          #2E3328;
  --ink-soft:     #5D6353;
  --ink-faint:    #8A8E7C;
  --rule:         #DCD5C3;

  /* Typographie */
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body:    "Karla", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-script:  "Petit Formal Script", "Snell Roundhand", cursive;

  /* Échelle typographique fluide */
  --t-xs:   0.8125rem;
  --t-sm:   0.9375rem;
  --t-base: 1.0625rem;
  --t-md:   clamp(1.125rem, 0.5vw + 1rem, 1.25rem);
  --t-lg:   clamp(1.375rem, 1vw + 1.1rem, 1.75rem);
  --t-xl:   clamp(1.875rem, 2.2vw + 1.2rem, 2.75rem);
  --t-2xl:  clamp(2.5rem, 5vw + 1rem, 4.25rem);

  /* Espacements */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --s-9: 6rem;

  /* Mise en page */
  --wrap:       1140px;
  --wrap-text:  40rem;   /* ~65 caractères */
  --gutter:     clamp(1.25rem, 4vw, 3rem);
  --radius:     4px;
  --radius-lg:  8px;
  --shadow:     0 1px 2px rgba(46, 51, 40, .05), 0 12px 32px -22px rgba(46, 51, 40, .35);
  --shadow-lift:0 2px 4px rgba(46, 51, 40, .06), 0 20px 44px -24px rgba(46, 51, 40, .42);
}

/* --------------------------------------------------------------------------
   2. Réinitialisation
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--t-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 3px;
  border-radius: 2px;
}

/* --------------------------------------------------------------------------
   3. Typographie
   -------------------------------------------------------------------------- */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.12;
  text-wrap: balance;
  color: var(--bark);
}

h1 { font-size: var(--t-2xl); letter-spacing: -.015em; }
h2 { font-size: var(--t-xl); }
h3 { font-size: var(--t-lg); }

a { color: var(--clay); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--clay-deep); }

strong { font-weight: 700; }

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--sage);
}

.lede {
  font-size: var(--t-md);
  color: var(--ink-soft);
  max-width: var(--wrap-text);
}

.script {
  font-family: var(--font-script);
  font-weight: 400;
  color: var(--bark);
  line-height: 1.4;
}

/* Marqueur de contenu à remplacer — visible exprès.
   Supprimer la règle .todo quand tous les crochets seront remplis. */
.todo {
  background: #FBE9D8;
  color: var(--clay-deep);
  padding: .05em .35em;
  border-radius: 2px;
  font-weight: 700;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   4. Mise en page
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section--tint { background: var(--paper-warm); }
.section--surface { background: var(--surface); }

.stack   { display: flex; flex-direction: column; gap: var(--s-4); }
.stack-5 { display: flex; flex-direction: column; gap: var(--s-5); }
.stack-6 { display: flex; flex-direction: column; gap: var(--s-6); }

.section-head {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  align-items: center;
  text-align: center;
  max-width: 46rem;
  margin-inline: auto;
  margin-bottom: var(--s-7);
}
.section-head p { color: var(--ink-soft); font-size: var(--t-md); }

.rule {
  width: 56px;
  height: 1px;
  background: var(--sage);
  border: 0;
  margin: var(--s-2) 0 0;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: var(--s-4);
  top: -4rem;
  z-index: 100;
  background: var(--forest);
  color: var(--paper);
  padding: var(--s-3) var(--s-5);
  border-radius: var(--radius);
  text-decoration: none;
  transition: top .15s ease;
}
.skip-link:focus { top: var(--s-4); color: var(--paper); }

/* --------------------------------------------------------------------------
   5. Boutons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: .8em 1.6em;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: var(--t-sm);
  font-weight: 700;
  letter-spacing: .01em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--forest);
  color: var(--paper);
}
.btn--primary:hover { background: var(--forest-deep); color: var(--paper); }

.btn--accent {
  background: var(--clay);
  color: #FFF9F2;
}
.btn--accent:hover { background: var(--clay-deep); color: #FFF9F2; }

.btn--ghost {
  background: transparent;
  color: var(--bark);
  border-color: var(--rule);
}
.btn--ghost:hover { background: var(--sage-pale); color: var(--bark); border-color: var(--sage); }

.link-quiet {
  font-size: var(--t-sm);
  color: var(--bark);
  text-decoration: underline;
  text-decoration-color: var(--rule);
}
.link-quiet:hover { color: var(--clay); text-decoration-color: currentColor; }

/* --------------------------------------------------------------------------
   6. En-tête et navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 242, 233, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  min-height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  text-decoration: none;
  color: var(--bark);
  flex: none;
}
.logo svg { width: 30px; height: 38px; flex: none; }
.logo__name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.05;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.logo__name b { display: block; font-weight: 600; font-size: 1.45rem; letter-spacing: .1em; }
.logo__tag {
  display: block;
  font-family: var(--font-body);
  font-size: .5rem;
  letter-spacing: .2em;
  color: var(--sage);
  margin-top: 2px;
}

/* Sur très petit écran, le logo respire mieux sans sa signature */
@media (max-width: 24rem) {
  .logo__tag { display: none; }
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: .55em 1em;
  font-size: var(--t-sm);
  font-weight: 700;
  color: var(--bark);
  cursor: pointer;
}
.nav-toggle:hover { border-color: var(--sage); }

.nav { display: none; }
.nav ul { display: flex; flex-direction: column; gap: var(--s-1); }
.nav a {
  display: block;
  padding: var(--s-3) 0;
  color: var(--ink);
  text-decoration: none;
  font-size: var(--t-sm);
  font-weight: 500;
  border-bottom: 1px solid var(--rule);
}
.nav a:hover { color: var(--clay); }
.nav a[aria-current="page"] { color: var(--bark); font-weight: 700; }

.site-header__cta { display: none; }

/* Menu ouvert sur petit écran */
.site-header.is-open .nav {
  display: block;
  padding-bottom: var(--s-5);
}
.site-header.is-open .nav .btn { margin-top: var(--s-4); width: 100%; }

@media (min-width: 62rem) {
  .nav-toggle { display: none; }
  .nav { display: block; }
  .nav ul { flex-direction: row; gap: clamp(var(--s-4), 1.8vw, var(--s-6)); }
  .nav a { padding: 0; border-bottom: 2px solid transparent; }
  .nav a[aria-current="page"] { border-bottom-color: var(--sage); }
  .nav .btn { display: none; }
  .site-header__cta { display: inline-flex; }
}

/* --------------------------------------------------------------------------
   7. Bandeau d'accueil
   -------------------------------------------------------------------------- */
.hero {
  background:
    radial-gradient(120% 90% at 88% 12%, rgba(126, 142, 104, .22), transparent 62%),
    linear-gradient(168deg, var(--paper) 0%, var(--paper-warm) 100%);
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
}

.hero__grid {
  display: grid;
  gap: var(--s-7);
  padding-block: clamp(3rem, 7vw, 5.5rem);
  align-items: center;
}

.hero__title {
  font-size: var(--t-2xl);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--bark);
  font-weight: 400;
}
.hero__title b {
  display: block;
  font-weight: 600;
  letter-spacing: .04em;
}
.hero__sub {
  font-family: var(--font-display);
  font-size: var(--t-lg);
  color: var(--bark);
  margin-top: var(--s-2);
}
.hero__lede { margin-top: var(--s-4); }
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-top: var(--s-6);
}

.hero__aside {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-4);
  text-align: center;
}
.hero__script { font-size: clamp(1.6rem, 4vw, 2.2rem); }

.hero-art {
  width: 100%;
  max-width: 340px;
  color: var(--sage);
  opacity: .9;
}

/* Bandeau de repères */
.markers {
  border-top: 1px solid var(--rule);
  background: rgba(255, 252, 245, .5);
}
.markers ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-5) var(--s-4);
  padding-block: var(--s-6);
}
.markers li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-2);
  text-align: center;
  font-size: var(--t-sm);
  color: var(--ink-soft);
  line-height: 1.4;
}
.markers svg { width: 28px; height: 28px; color: var(--bark); }
.markers b { display: block; color: var(--ink); font-weight: 700; }

@media (min-width: 48rem) {
  .markers ul { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 62rem) {
  .hero__grid { grid-template-columns: 1.35fr 1fr; gap: var(--s-8); }
}

/* --------------------------------------------------------------------------
   8. Cartes des professionnelles
   -------------------------------------------------------------------------- */
.pros {
  display: grid;
  gap: var(--s-5);
}
@media (min-width: 56rem) {
  .pros { grid-template-columns: repeat(2, 1fr); }
}

.pro {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow .2s ease;
}
.pro:hover { box-shadow: var(--shadow-lift); }

.pro__photo {
  position: relative;
  aspect-ratio: 4 / 3;
  max-width: 100%;
  background: linear-gradient(150deg, var(--sage-pale), #C9D2BB);
  display: grid;
  place-items: center;
  gap: var(--s-2);
  color: var(--forest);
  text-align: center;
  padding: var(--s-4);
}
.pro__photo svg { width: 46px; height: 46px; opacity: .55; }
.pro__photo span {
  font-size: var(--t-xs);
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 700;
  opacity: .75;
}

.pro__body {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  padding: var(--s-5);
  flex: 1;
}
.pro__name { font-size: var(--t-lg); }
.pro__title {
  font-size: var(--t-sm);
  color: var(--ink-soft);
  margin-top: var(--s-1);
}
.pro__body > p { color: var(--ink-soft); }

.tags { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.tag {
  background: var(--sage-pale);
  color: var(--forest);
  font-size: var(--t-xs);
  font-weight: 500;
  padding: .35em .85em;
  border-radius: 999px;
}

.pro__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s-3);
  margin-top: auto;
  padding-top: var(--s-2);
}
.pro__actions .btn { width: 100%; }

/* --------------------------------------------------------------------------
   9. Cartes de services
   -------------------------------------------------------------------------- */
.cards {
  display: grid;
  gap: var(--s-4);
}
@media (min-width: 48rem) { .cards { grid-template-columns: repeat(3, 1fr); } }

.card {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  padding: var(--s-6) var(--s-5);
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  transition: border-color .2s ease, transform .2s ease;
}
a.card:hover { border-color: var(--sage); transform: translateY(-2px); }
.card svg { width: 32px; height: 32px; color: var(--sage); }
.card h3 { font-size: var(--t-md); }
.card p { color: var(--ink-soft); font-size: var(--t-sm); flex: 1; }
.card__more { font-size: var(--t-sm); font-weight: 700; color: var(--clay); }

.band {
  margin-top: var(--s-5);
  padding: var(--s-5);
  background: var(--sage-pale);
  border-radius: var(--radius-lg);
  text-align: center;
  font-family: var(--font-display);
  font-size: var(--t-md);
  color: var(--forest);
}

/* --------------------------------------------------------------------------
   10. Étapes
   -------------------------------------------------------------------------- */
.steps {
  display: grid;
  gap: var(--s-6);
  counter-reset: step;
}
@media (min-width: 48rem) { .steps { grid-template-columns: repeat(3, 1fr); gap: var(--s-5); } }

.step {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  position: relative;
  padding-top: var(--s-5);
  border-top: 1px solid var(--rule);
}
.step::before {
  counter-increment: step;
  content: counter(step);
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1;
  color: var(--sage);
}
.step h3 { font-size: var(--t-md); }
.step p { color: var(--ink-soft); }

/* --------------------------------------------------------------------------
   11. Mission
   -------------------------------------------------------------------------- */
.mission {
  display: grid;
  gap: var(--s-6);
  padding: clamp(2rem, 5vw, 3.5rem);
  background: var(--sage-pale);
  border-radius: var(--radius-lg);
  align-items: center;
  text-align: center;
}
.mission p { color: var(--forest); font-size: var(--t-md); max-width: 34rem; margin-inline: auto; }
.mission__script { font-size: clamp(1.5rem, 3.5vw, 2rem); }

@media (min-width: 56rem) {
  .mission { grid-template-columns: 1.8fr 1fr; text-align: left; }
  .mission p { margin-inline: 0; }
  .mission__aside {
    border-left: 1px solid rgba(60, 74, 52, .25);
    padding-left: var(--s-6);
    text-align: center;
  }
}

/* --------------------------------------------------------------------------
   12. Questions fréquentes
   -------------------------------------------------------------------------- */
.faq { max-width: 48rem; margin-inline: auto; display: flex; flex-direction: column; gap: var(--s-3); }

.faq details {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: var(--s-4) var(--s-5);
}
.faq details[open] { border-color: var(--sage); }

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  cursor: pointer;
  font-weight: 700;
  color: var(--bark);
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--font-display);
  font-size: 1.6rem;
  line-height: 1;
  color: var(--sage);
  flex: none;
}
.faq details[open] summary::after { content: "–"; }
.faq details > p {
  margin-top: var(--s-4);
  color: var(--ink-soft);
  max-width: var(--wrap-text);
}

/* --------------------------------------------------------------------------
   13. Appel à l'action final
   -------------------------------------------------------------------------- */
.cta {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-4);
}
.cta h2 { color: var(--bark); }
.cta p { color: var(--ink-soft); font-size: var(--t-md); max-width: 32rem; }

/* --------------------------------------------------------------------------
   14. Bandeau d'urgence
   -------------------------------------------------------------------------- */
.urgence {
  background: var(--bark);
  color: #F2E9E0;
}
.urgence__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--s-2) var(--s-4);
  padding-block: var(--s-4);
  font-size: var(--t-sm);
  line-height: 1.5;
}
.urgence b { color: #FFF; }
.urgence a { color: #F6D9C2; }
.urgence a:hover { color: #FFF; }

/* --------------------------------------------------------------------------
   15. Pied de page
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--forest);
  color: #D8DCCF;
  font-size: var(--t-sm);
}
.site-footer a { color: #D8DCCF; text-decoration: none; }
.site-footer a:hover { color: #FFF; text-decoration: underline; }

.site-footer__top {
  display: grid;
  gap: var(--s-6);
  padding-block: var(--s-7);
}
@media (min-width: 56rem) {
  .site-footer__top { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: var(--s-5); }
}

.site-footer .logo { color: var(--paper); }
.site-footer .logo__tag { color: var(--sage); }

.site-footer h4 {
  font-family: var(--font-body);
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: var(--s-3);
}
.site-footer ul { display: flex; flex-direction: column; gap: var(--s-2); }

.site-footer__legal {
  border-top: 1px solid rgba(216, 220, 207, .18);
  padding-block: var(--s-5);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  font-size: var(--t-xs);
  color: #AFB8A4;
  line-height: 1.6;
}
.site-footer__legal ul { flex-direction: row; flex-wrap: wrap; gap: var(--s-4); }
