/* ==========================================================================
   Jeanneau Immobilier : charte « Heritage & Warmth »
   Évolution validée le 2026-08-09 de la variante B : fond sable, vert forêt
   plus profond, accent terracotta, typographie à trois voix.
   Référence : charte/variante-B/charte.md + charte/heritage-warmth.md
   Tous les ratios ci-dessous sont CALCULÉS (WCAG 2.x), jamais estimés.
   ========================================================================== */

:root {
  /* Vert forêt : marque, titres, CTA principal */
  --jnu-primary:        #125238; /* blanc dessus : 9,17 · sur sable : 8,72 */
  --jnu-primary-hover:  #0d3f2b; /* survol du CTA */
  --jnu-primary-deep:   #125238; /* alias historique, conservé pour les composants */
  --jnu-primary-container: #2f6b4f; /* blanc dessus : 6,29 */

  /* Terracotta : accent secondaire, badges, actions « visite » */
  --jnu-accent:         #63411c; /* blanc dessus : 9,12 · sur sable : 8,67 */
  --jnu-accent-hover:   #7e5831; /* blanc dessus : 6,31 */

  /* Surfaces sable */
  --jnu-surface:                #fff8f3; /* fond de page */
  --jnu-surface-container:      #ffffff; /* cartes, champs */
  --jnu-surface-container-low:  #faf2eb; /* sections alternées */
  --jnu-surface-container-high: #f4ede5; /* placeholders, blocs d'appoint */
  --jnu-inverse-surface:        #33302b; /* pied de page */
  --jnu-inverse-on-surface:     #f7efe8; /* texte du pied : 11,55 */

  /* Texte */
  --jnu-on-surface:         #1e1b17; /* sur sable : 16,31 */
  --jnu-on-surface-variant: #404943; /* sur sable :  8,87 */

  /* Divers */
  --jnu-border: #c0c9c1; /* filets taupe : usage non textuel */
  --jnu-outline: #707972; /* sur sable : 4,28. Bordures et icônes seulement, jamais de texte courant */
  --jnu-error:  #ba1a1a; /* blanc dessus : 6,46 · sur sable : 6,14 */
  --jnu-error-container: #ffdad6;
  --jnu-primary-fixed: #b1f0cd;    /* fond du badge Disponible (DESIGN.md) */
  --jnu-on-primary-fixed: #002113; /* texte du badge Disponible */

  /* Typographie à trois voix (polices auto-hébergées) */
  --jnu-font-titres:     "Archivo Narrow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --jnu-font-editorial:  "Literata", Georgia, "Times New Roman", serif;
  --jnu-font:            "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Rayons : 12 px, plus doux que la version précédente */
  --jnu-radius-sm: 12px;
  --jnu-radius-md: 12px;
  --jnu-radius-pill: 9999px;

  /* Profondeur par couches tonales : ombres très diffuses et teintées vert,
     jamais du noir pur. */
  --jnu-shadow-1: 0 1px 2px rgba(18, 82, 56, .06);
  --jnu-shadow-2: 0 8px 24px rgba(18, 82, 56, .10);

  /* Grille & rythme */
  --jnu-container: 1280px;
  --jnu-gutter: 24px;
  --jnu-section-gap: 96px;

  /* Motion */
  --jnu-ease: cubic-bezier(0.2, 0, 0, 1);
  --jnu-dur-micro: 160ms;
  --jnu-dur-panel: 260ms;
}

@media (max-width: 1024px) { :root { --jnu-section-gap: 72px; } }
@media (max-width:  768px) { :root { --jnu-section-gap: 56px; } }

/* Aucun mouvement imposé : sous prefers-reduced-motion, tout est statique.
   Rappel de charte : aucun reveal au scroll ne masque le contenu par défaut. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

/* --- Typographie appliquée à Divi ---------------------------------------- */

body,
.et_pb_module,
input, select, textarea, button {
  font-family: var(--jnu-font);
}

h1, h2, h3, h4, h5, h6,
.et_pb_module h1, .et_pb_module h2, .et_pb_module h3 {
  font-family: var(--jnu-font-titres);
  font-weight: 600;
  color: var(--jnu-on-surface);
}

h1 { font-size: clamp(1.75rem, 4vw, 3rem); line-height: 1.1; font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.2; }
h3 { font-size: clamp(1.125rem, 2vw, 1.375rem); line-height: 1.3; }

body { background: var(--jnu-surface); color: var(--jnu-on-surface); }

a { color: var(--jnu-primary); }
a:hover { color: var(--jnu-accent); }

/* Chapô éditorial en serif : la voix « Literata » de la charte */
.jnu-chapo {
  font-family: var(--jnu-font-editorial);
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.6;
  color: var(--jnu-on-surface-variant);
  max-width: 65ch;
}

/* Icônes Material Symbols (police auto-hébergée) */
.material-symbols-outlined:not(.jnu-icone) {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
  font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
  vertical-align: middle;
}
