/* ============================================================
   CALÉTHO — Base commune (tokens de marque)
   Partagée par la porte d'entrée, Pro et Care.
   ============================================================ */

:root {
  /* Palette officielle */
  --socle:        #1A365D;
  --socle-soft:   #24476f;
  --socle-deep:   #14263c;
  --albatre:      #F8F9FA;
  --sauge:        #7B9E87;
  --sauge-soft:   #e8efe9;
  --terracotta:   #D97757;
  --terracotta-dk:#c4623f;

  --ink:      #16283f;
  --ink-soft: #4a5a6f;
  --line:     #e3e7ec;
  --card:     #ffffff;

  --font-display: 'Montserrat', system-ui, sans-serif;
  --font-body:    'Atkinson Hyperlegible', system-ui, sans-serif;

  --wrap: 1140px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 2px 12px rgba(26,54,93,.06);
  --shadow-md: 0 18px 48px rgba(26,54,93,.10);
  --ease: cubic-bezier(.22,.61,.36,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--albatre);
  line-height: 1.65;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--socle);
  line-height: 1.12;
  margin: 0;
  letter-spacing: -0.01em;
}
p { margin: 0 0 1rem; }
a { color: inherit; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.accent-e { color: var(--terracotta); }

/* Accessibilité */
.skip-link {
  position: absolute; left: 1rem; top: -3rem;
  background: var(--socle); color: var(--albatre);
  padding: .6rem 1rem; border-radius: 0 0 12px 12px;
  z-index: 999; transition: top .2s var(--ease);
}
.skip-link:focus { top: 0; }
:focus-visible { outline: 3px solid var(--terracotta); outline-offset: 3px; border-radius: 6px; }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  text-decoration: none; padding: .85rem 1.6rem; border-radius: 999px;
  border: 2px solid transparent; cursor: pointer;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--terracotta); color: #fff; box-shadow: 0 8px 20px rgba(217,119,87,.28); }
.btn-primary:hover { background: var(--terracotta-dk); }
.btn-ghost { background: transparent; color: var(--socle); border-color: rgba(26,54,93,.22); }
.btn-ghost:hover { border-color: var(--socle); background: rgba(26,54,93,.04); }
.btn-outline { background: transparent; border-color: currentColor; padding: .7rem 1.3rem; font-size: .95rem; }
.btn-block { width: 100%; }

/* En-tête commun */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(248,249,250,.86); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.logo { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.logo-text {
  font-family: var(--font-display); font-weight: 700; font-size: 1.35rem;
  letter-spacing: .12em; color: var(--socle);
}
.logo-sub {
  font-family: var(--font-display); font-weight: 600; font-size: .7rem;
  letter-spacing: .18em; text-transform: uppercase; margin-left: .1rem;
  padding: .15rem .5rem; border-radius: 999px;
}

.site-nav { display: flex; align-items: center; }
.nav-list { display: flex; align-items: center; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.nav-list a {
  font-family: var(--font-display); font-weight: 500; font-size: .98rem;
  text-decoration: none; color: var(--ink-soft); transition: color .15s var(--ease);
}
.nav-list a:hover { color: var(--socle); }
.nav-back {
  display: inline-flex; align-items: center; gap: .4rem;
  font-family: var(--font-display); font-weight: 500; font-size: .9rem;
  text-decoration: none; color: var(--ink-soft);
}
.nav-back:hover { color: var(--socle); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: .4rem; }
.nav-toggle span { width: 26px; height: 2.5px; background: var(--socle); border-radius: 2px; transition: transform .25s var(--ease), opacity .25s var(--ease); }

/* Sections génériques */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-eyebrow {
  font-family: var(--font-display); font-weight: 600; font-size: .85rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--sauge); margin-bottom: .9rem;
}
.section-title { font-size: clamp(1.8rem, 4vw, 2.9rem); font-weight: 700; max-width: 22ch; margin-bottom: 1.2rem; }
.section-intro { font-size: 1.15rem; max-width: 60ch; color: var(--ink-soft); margin-bottom: 2.8rem; }

/* Pied de page commun */
.site-footer { background: var(--socle-deep); color: rgba(248,249,250,.7); padding: clamp(3rem, 6vw, 4.5rem) 0 2rem; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem; margin-bottom: 2.5rem; }
.footer-logo { color: #fff; display: inline-block; margin-bottom: 1rem; }
.footer-brand p { max-width: 42ch; margin: 0; }
.footer-col h4 { color: #fff; font-size: 1rem; margin-bottom: 1rem; letter-spacing: .04em; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.footer-col a { text-decoration: none; transition: color .15s var(--ease); }
.footer-col a:hover { color: var(--terracotta); }
.footer-legal {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem;
  padding-top: 1.6rem; border-top: 1px solid rgba(255,255,255,.1); font-size: .9rem;
}
.footer-legal p { margin: 0; }

/* Formulaire commun */
.field { margin-bottom: 1.3rem; }
.field label {
  display: block; font-family: var(--font-display); font-weight: 600;
  font-size: .92rem; color: var(--socle); margin-bottom: .5rem;
}
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  padding: .8rem 1rem; border: 2px solid var(--line); border-radius: 12px;
  background: var(--albatre); transition: border-color .15s var(--ease), background .15s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--sauge); background: #fff; }
.field textarea { resize: vertical; }
.field-error { display: block; color: var(--terracotta-dk); font-size: .85rem; margin-top: .35rem; min-height: 1em; }
.field.invalid input, .field.invalid textarea { border-color: var(--terracotta); }
.form-status { margin: 1rem 0 0; font-size: .95rem; text-align: center; color: var(--sauge); font-weight: 600; }

/* Responsive commun */
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-list {
    position: fixed; inset: 74px 0 auto 0; flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--albatre); border-bottom: 1px solid var(--line);
    padding: 1rem 1.25rem 1.5rem; transform: translateY(-120%);
    transition: transform .3s var(--ease); box-shadow: var(--shadow-md);
  }
  .nav-list.open { transform: translateY(0); }
  .nav-list li { width: 100%; }
  .nav-list a { display: block; padding: .85rem 0; width: 100%; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
  .footer-inner { grid-template-columns: 1fr; gap: 1.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
