/* =====================================================================
   Cédric Moniot — Graphothérapeute
   Feuille de style — approche MOBILE FIRST
   Palette : pastel (bleu d'eau, vert sauge) + accents chauds (moutarde, terre cuite)
   ===================================================================== */

/* ---------- Variables ---------- */
:root {
  /* Dominantes pastel */
  --bleu-eau:        #7FB3B8;
  --bleu-eau-clair:  #E3F0F1;
  --bleu-eau-fonce:  #4E8A90;
  --vert-sauge:      #A7BFA3;
  --vert-sauge-clair:#EBF1E9;
  --vert-sauge-fonce:#728E6E;

  /* Accents chauds (CTA, enfance) */
  --moutarde:        #E0A82E;
  --moutarde-fonce:  #C2901F;
  --terre-cuite:     #D97B57;
  --terre-cuite-fonce:#C0603C;

  /* Neutres */
  --encre:    #2E3A3B;   /* texte principal */
  --gris:     #5C6B6C;   /* texte secondaire */
  --blanc:    #FFFFFF;
  --creme:    #FCFBF7;   /* fond doux */
  --bordure:  #E2E8E6;

  /* Mise en forme */
  --rayon:    16px;
  --rayon-sm: 10px;
  --ombre:    0 10px 30px rgba(46, 58, 59, 0.08);
  --ombre-forte: 0 16px 40px rgba(46, 58, 59, 0.14);
  --max-large:1140px;
  --transition: 0.25s ease;

  --police-titre: 'Quicksand', system-ui, sans-serif;
  --police-corps: 'Nunito', system-ui, -apple-system, sans-serif;
  --police-manuscrite: 'Caveat', cursive;
}

/* ---------- Reset léger ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--police-corps);
  font-size: 1.0625rem;          /* lisible sans zoom sur mobile */
  line-height: 1.65;
  color: var(--encre);
  background: var(--creme);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--bleu-eau-fonce); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--police-titre);
  line-height: 1.2;
  color: var(--encre);
  font-weight: 700;
}

ul { list-style: none; }

.container { width: 100%; max-width: var(--max-large); margin-inline: auto; padding-inline: 1.25rem; }

/* ---------- Accessibilité ---------- */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 1000;
  background: var(--encre); color: #fff; padding: 0.75rem 1rem; border-radius: 0 0 var(--rayon-sm) 0;
}
.skip-link:focus { left: 0; }

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

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--police-titre); font-weight: 700; font-size: 1rem;
  padding: 0.85rem 1.5rem; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  text-align: center; line-height: 1.2;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-lg { padding: 1rem 1.85rem; font-size: 1.0625rem; }
.btn-block { width: 100%; }

.btn-primary {
  background: var(--terre-cuite); color: #fff;
  box-shadow: 0 8px 20px rgba(217, 123, 87, 0.35);
}
.btn-primary:hover { background: var(--terre-cuite-fonce); box-shadow: 0 12px 26px rgba(217, 123, 87, 0.45); }

.btn-ghost {
  background: transparent; color: var(--bleu-eau-fonce); border-color: var(--bleu-eau);
}
.btn-ghost:hover { background: var(--bleu-eau-clair); }

/* ---------- En-tête / Navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(252, 251, 247, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--bordure);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 66px; }

.logo { display: flex; align-items: center; gap: 0.6rem; color: var(--encre); }
.logo:hover { text-decoration: none; }
.logo-mark {
  font-size: 1.5rem; width: 42px; height: 42px; flex: 0 0 42px;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--bleu-eau-clair); color: var(--bleu-eau-fonce);
}
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-text strong { font-family: var(--police-titre); font-size: 1.05rem; }
.logo-text small { color: var(--gris); font-size: 0.78rem; }

/* Menu mobile : bouton hamburger */
.nav-toggle {
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; background: transparent; border: 0; cursor: pointer; padding: 8px;
}
.nav-toggle-bar { display: block; height: 3px; width: 100%; background: var(--encre); border-radius: 3px; transition: var(--transition); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.nav-menu {
  position: fixed; inset: 66px 0 auto 0;
  background: var(--blanc);
  display: flex; flex-direction: column; gap: 0.25rem;
  padding: 1rem 1.25rem 1.5rem; box-shadow: var(--ombre);
  transform: translateY(-130%); transition: transform 0.3s ease; visibility: hidden;
  border-bottom: 1px solid var(--bordure);
}
.nav-menu.open { transform: translateY(0); visibility: visible; }
.nav-menu li { width: 100%; }
.nav-menu a {
  display: block; padding: 0.85rem 0.5rem; color: var(--encre); font-family: var(--police-titre);
  font-weight: 600; border-radius: var(--rayon-sm);
}
.nav-menu a:hover { background: var(--bleu-eau-clair); text-decoration: none; }
.nav-cta {
  background: var(--moutarde); color: var(--encre) !important; text-align: center;
  margin-top: 0.5rem; font-weight: 700 !important;
}
.nav-cta:hover { background: var(--moutarde-fonce); }

/* ---------- HERO ---------- */
.hero { position: relative; background: var(--creme); }

/* Bandeau image pleine largeur — la « porte d'entrée » du site */
.hero-banner { position: relative; width: 100%; line-height: 0; }
.hero-banner img {
  width: 100%; height: auto; display: block;
  /* Sur mobile, l'image entière reste visible (le mot « Écrire » toujours lisible) */
}
/* Fondu doux du bas de l'image vers le fond crème pour intégrer le bandeau */
.hero-banner::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 26%;
  background: linear-gradient(to bottom, rgba(252,251,247,0) 0%, var(--creme) 100%);
  pointer-events: none;
}

.hero-content { padding: 1.75rem 1.25rem 3rem; text-align: center; }

.hero-eyebrow {
  display: inline-block; font-family: var(--police-titre); font-weight: 600;
  color: var(--bleu-eau-fonce); background: rgba(127,179,184,0.18);
  padding: 0.35rem 0.9rem; border-radius: 999px; font-size: 0.9rem; margin-bottom: 1rem;
}
.hero h1 { font-size: clamp(2.1rem, 7vw, 3.3rem); margin-bottom: 1rem; }
.hero h1 .accent { color: var(--terre-cuite-fonce); white-space: nowrap; }
.hero-lead { font-size: 1.15rem; color: var(--gris); margin: 0 auto 1.5rem; max-width: 52ch; }
.hero-lead strong { color: var(--encre); }

.hero-points {
  display: flex; flex-direction: column; gap: 0.6rem; margin: 0 auto 1.8rem;
  max-width: 30rem; text-align: left;
}
.hero-points li { display: flex; align-items: flex-start; gap: 0.65rem; font-weight: 600; }
.check {
  flex: 0 0 24px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--vert-sauge); color: #fff; display: grid; place-items: center;
  font-size: 0.8rem; font-weight: 700; margin-top: 2px;
}

.hero-actions { display: flex; flex-direction: column; gap: 0.85rem; margin-bottom: 1.5rem; }

.hero-zone {
  font-size: 0.98rem; color: var(--gris);
  background: rgba(255,255,255,0.6); border: 1px dashed var(--bleu-eau);
  padding: 0.7rem 1rem; border-radius: var(--rayon-sm); display: inline-block;
}

/* ---------- Sections génériques ---------- */
section { padding: 3.5rem 0; }
.section-soft { background: var(--bleu-eau-clair); }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 2.5rem; }
.section-eyebrow {
  font-family: var(--police-titre); font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.08em; font-size: 0.82rem; color: var(--terre-cuite); margin-bottom: 0.5rem;
}
.section-head h2 { font-size: clamp(1.7rem, 5.5vw, 2.4rem); margin-bottom: 0.85rem; }
.section-intro { color: var(--gris); font-size: 1.08rem; }

h2 { font-size: clamp(1.7rem, 5.5vw, 2.4rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }

/* ---------- Présentation ---------- */
.presentation-inner { display: flex; flex-direction: column; gap: 2rem; align-items: center; }
.photo-cedric {
  width: 220px; height: 220px; border-radius: 50%; object-fit: cover;
  box-shadow: var(--ombre); border: 5px solid var(--blanc);
  outline: 2px solid var(--bleu-eau-clair);
}
.presentation-text h2 { margin-bottom: 1rem; }
.presentation-text p { margin-bottom: 1rem; color: var(--gris); }
.presentation-text strong { color: var(--encre); }
.presentation-signature {
  font-family: var(--police-manuscrite); font-size: 2rem; color: var(--bleu-eau-fonce); margin-top: 0.5rem;
}

/* ---------- Pourquoi : grille de signes ---------- */
.cards-title { text-align: center; margin-bottom: 1.5rem; font-size: 1.25rem; color: var(--vert-sauge-fonce); }
.signs-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-bottom: 3rem; }
.sign-card {
  background: var(--blanc); border: 1px solid var(--bordure); border-radius: var(--rayon);
  padding: 1.5rem; box-shadow: var(--ombre); transition: transform var(--transition), box-shadow var(--transition);
}
.sign-card:hover { transform: translateY(-4px); box-shadow: var(--ombre-forte); }
.sign-icon {
  font-size: 1.8rem; width: 54px; height: 54px; display: grid; place-items: center;
  background: var(--vert-sauge-clair); border-radius: 14px; margin-bottom: 0.85rem;
}
.sign-card h4 { margin-bottom: 0.4rem; }
.sign-card p { color: var(--gris); font-size: 0.98rem; }

.info-block {
  background: var(--blanc); border-radius: var(--rayon); padding: 2rem 1.5rem;
  box-shadow: var(--ombre); border-left: 6px solid var(--bleu-eau);
}
.info-block h3 { color: var(--bleu-eau-fonce); margin-bottom: 0.85rem; }
.info-block p { margin-bottom: 1rem; color: var(--gris); }
.info-block strong { color: var(--encre); }
.info-reassure {
  background: rgba(224, 168, 46, 0.12); border-radius: var(--rayon-sm);
  padding: 1rem 1.25rem; color: var(--encre) !important; margin-bottom: 0 !important;
  display: flex; gap: 0.6rem; align-items: flex-start;
}

/* ---------- Déroulement : étapes ---------- */
.steps { display: flex; flex-direction: column; gap: 1.25rem; counter-reset: step; }
.step-card {
  display: flex; gap: 1.1rem; background: var(--blanc); border: 1px solid var(--bordure);
  border-radius: var(--rayon); padding: 1.5rem; box-shadow: var(--ombre); position: relative;
}
.step-number {
  flex: 0 0 48px; width: 48px; height: 48px; border-radius: 50%;
  background: var(--moutarde); color: var(--encre);
  font-family: var(--police-titre); font-weight: 700; font-size: 1.4rem;
  display: grid; place-items: center;
}
.step-body h3 { margin-bottom: 0.35rem; color: var(--encre); }
.step-meta { font-size: 0.9rem; color: var(--terre-cuite-fonce); font-weight: 700; margin-bottom: 0.7rem; }
.step-body p { color: var(--gris); margin-bottom: 0.7rem; }
.step-body p:last-child { margin-bottom: 0; }
.step-body strong { color: var(--encre); }
.deroulement-cta { text-align: center; margin-top: 2.25rem; }

/* ---------- Professionnels ---------- */
.pros-inner { display: flex; flex-direction: column; gap: 2rem; }
.pros-text h2 { margin: 0.4rem 0 1rem; }
.pros-text p { color: var(--gris); margin-bottom: 1rem; }
.pros-text strong { color: var(--encre); }
.pros-list { display: flex; flex-direction: column; gap: 0.7rem; margin-bottom: 1.25rem; }
.pros-list li { display: flex; gap: 0.65rem; align-items: flex-start; }
.inline-link { font-weight: 700; color: var(--terre-cuite-fonce); text-decoration: underline; }

.pros-aside {
  background: var(--blanc); border-radius: var(--rayon); padding: 1.75rem 1.5rem;
  box-shadow: var(--ombre); border-top: 6px solid var(--vert-sauge);
}
.pros-aside h3 { color: var(--vert-sauge-fonce); margin-bottom: 0.75rem; }
.pros-aside p { color: var(--gris); margin-bottom: 0.6rem; }
.pros-aside ul { display: flex; flex-direction: column; gap: 0.5rem; }
.pros-aside li { position: relative; padding-left: 1.4rem; color: var(--encre); }
.pros-aside li::before { content: "✎"; position: absolute; left: 0; color: var(--bleu-eau-fonce); }

/* ---------- Contact ---------- */
.contact-grid { display: flex; flex-direction: column; gap: 2rem; }

.contact-info, .contact-form-wrap {
  background: var(--blanc); border: 1px solid var(--bordure); border-radius: var(--rayon);
  padding: 1.75rem 1.5rem; box-shadow: var(--ombre);
}
.contact-info h3, .contact-form-wrap h3 { margin-bottom: 1.25rem; color: var(--bleu-eau-fonce); }

.contact-list { display: flex; flex-direction: column; gap: 1.1rem; }
.contact-list li { display: flex; gap: 0.9rem; align-items: flex-start; }
.contact-ic {
  flex: 0 0 44px; width: 44px; height: 44px; border-radius: 12px;
  background: var(--bleu-eau-clair); display: grid; place-items: center; font-size: 1.25rem;
}
.contact-list small { display: block; color: var(--gris); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.04em; }
.contact-list a { font-size: 1.2rem; font-weight: 700; }
.contact-list strong { display: block; font-size: 1.05rem; }
.contact-list em { color: var(--gris); font-size: 0.92rem; font-style: normal; }

/* Formulaire */
.contact-form { display: flex; flex-direction: column; gap: 1.1rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field-row { display: flex; flex-direction: column; gap: 1.1rem; }
.field label { font-weight: 700; font-size: 0.95rem; }
.req { color: var(--terre-cuite); }
.field input, .field textarea {
  font-family: var(--police-corps); font-size: 1rem; color: var(--encre);
  padding: 0.8rem 0.9rem; border: 2px solid var(--bordure); border-radius: var(--rayon-sm);
  background: var(--creme); transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--bleu-eau); box-shadow: 0 0 0 3px rgba(127,179,184,0.25); background: #fff;
}
.field input:invalid:not(:placeholder-shown) { border-color: var(--terre-cuite); }
.field textarea { resize: vertical; min-height: 120px; }

.form-note { font-size: 0.85rem; color: var(--gris); margin-top: 0.25rem; }
.form-status { font-weight: 700; font-size: 0.95rem; min-height: 1.2em; }
.form-status.success { color: var(--vert-sauge-fonce); }
.form-status.error { color: var(--terre-cuite-fonce); }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--encre); color: #d7dedd; padding-top: 2.5rem; }
.footer-inner { display: flex; flex-direction: column; gap: 1.5rem; }
.footer-brand { display: flex; align-items: center; gap: 0.75rem; }
.footer-brand .logo-mark { background: rgba(255,255,255,0.12); color: #fff; }
.footer-brand strong { display: block; font-family: var(--police-titre); color: #fff; font-size: 1.05rem; }
.footer-brand small { color: #aebbb9; }

.footer-nav { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; }
.footer-nav a { color: #d7dedd; font-weight: 600; }
.footer-nav a:hover { color: var(--moutarde); }

.footer-contact { display: flex; flex-direction: column; gap: 0.3rem; }
.footer-contact a { color: #fff; font-weight: 700; }
.footer-contact span { color: #aebbb9; font-size: 0.92rem; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12); margin-top: 1.5rem;
  padding: 1.2rem 0; text-align: center;
}
.footer-bottom p { font-size: 0.85rem; color: #9fadab; }

/* ---------- Bouton flottant d'appel (mobile) ---------- */
.floating-call {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--terre-cuite); color: #fff; font-size: 1.5rem;
  display: grid; place-items: center; box-shadow: 0 8px 20px rgba(217,123,87,0.5);
  animation: pulse 2.5s infinite;
}
.floating-call:hover { background: var(--terre-cuite-fonce); text-decoration: none; }
@keyframes pulse {
  0%   { box-shadow: 0 8px 20px rgba(217,123,87,0.5), 0 0 0 0 rgba(217,123,87,0.4); }
  70%  { box-shadow: 0 8px 20px rgba(217,123,87,0.5), 0 0 0 14px rgba(217,123,87,0); }
  100% { box-shadow: 0 8px 20px rgba(217,123,87,0.5), 0 0 0 0 rgba(217,123,87,0); }
}

/* =====================================================================
   TABLETTE  ≥ 640px
   ===================================================================== */
@media (min-width: 640px) {
  .hero-actions { flex-direction: row; justify-content: center; }
  .field-row { flex-direction: row; }
  .field-row .field { flex: 1; }
  .signs-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; }
  .presentation-inner { flex-direction: row; align-items: center; text-align: left; }
  .presentation-photo { flex: 0 0 auto; }
}

/* =====================================================================
   ORDINATEUR  ≥ 900px
   ===================================================================== */
@media (min-width: 900px) {
  /* Navigation desktop : on masque le hamburger */
  .nav-toggle { display: none; }
  .nav-menu {
    position: static; inset: auto; flex-direction: row; align-items: center; gap: 0.4rem;
    padding: 0; box-shadow: none; transform: none; visibility: visible; background: transparent;
    border: 0;
  }
  .nav-menu a { padding: 0.5rem 0.85rem; }
  .nav-cta { margin-top: 0; padding: 0.6rem 1.2rem !important; border-radius: 999px; }

  /* Bandeau cinématique : on plafonne la hauteur sur grand écran */
  .hero-banner img { max-height: 540px; object-fit: cover; object-position: center 35%; }
  .hero-content { max-width: 860px; margin-inline: auto; padding: 2.75rem 1.25rem 3.5rem; }

  .signs-grid { grid-template-columns: repeat(3, 1fr); }

  .steps { gap: 1.5rem; }
  .step-card { padding: 2rem; }

  .pros-inner { flex-direction: row; align-items: flex-start; }
  .pros-text { flex: 1 1 60%; }
  .pros-aside { flex: 1 1 40%; position: sticky; top: 90px; }

  .contact-grid { flex-direction: row; align-items: flex-start; }
  .contact-info { flex: 1 1 40%; }
  .contact-form-wrap { flex: 1 1 60%; }

  .floating-call { display: none; }     /* numéro déjà visible dans la nav sur desktop */
}

/* =====================================================================
   Préférences de mouvement réduit
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; transition: none !important; }
}
