/*
 * DUE Facile par Odito : charte graphique (lot 1).
 * Valeurs reprises de odito.fr. Polices auto-hébergées dans public/fonts
 * (aucun appel à Google Fonts : l'adresse IP des visiteurs ne sort pas).
 * Un parcours partenaire redéfinit --df-accent et --df-bouton dans le layout.
 */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/fraunces-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: italic; font-weight: 400 600; font-display: swap; src: url("../fonts/fraunces-latin-600-italic.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); }

:root {
  /* Couleurs */
  --df-black: #0A0A0A;
  --df-charcoal: #1A1A1A;
  --df-charcoal-2: #242424;
  --df-white: #FFFFFF;
  --df-off: #FAFAF7;
  --df-paper: #F4F1EA;
  --df-accent: #FF5A1F;
  --df-accent-dark: #D94717;
  --df-accent-light: #FFE9DF;
  --df-accent-text: #C63F12;
  --df-border: #E8E5DE;
  --df-border-soft: #F0EDE5;
  --df-text: #0A0A0A;
  --df-text-soft: #4A4A4A;
  --df-text-muted: #767676;
  --df-success: #15803D;
  --df-danger: #B42318;
  --df-danger-light: #FEF2F2;
  --df-bouton: var(--df-black);
  --df-bouton-survol: var(--df-charcoal);

  /* Typographie */
  --df-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --df-sans: "Inter", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --df-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Espacement (base 4) */
  --df-space-1: 4px;
  --df-space-2: 8px;
  --df-space-3: 12px;
  --df-space-4: 16px;
  --df-space-5: 24px;
  --df-space-6: 32px;
  --df-space-7: 48px;
  --df-space-8: 72px;
  --df-space-9: 96px;

  /* Formes, ombres, mouvement */
  --df-radius-pill: 999px;
  --df-radius-card: 16px;
  --df-radius-field: 12px;
  --df-shadow-card: 0 1px 2px rgba(10, 10, 10, .04), 0 8px 24px rgba(10, 10, 10, .04);
  --df-shadow-raised: 0 12px 32px rgba(10, 10, 10, .10);
  --df-ease: cubic-bezier(.22, 1, .36, 1);
  --df-ease-io: cubic-bezier(.65, 0, .35, 1);
  --df-dur-fast: 150ms;
  --df-dur: 240ms;
  --df-container: 1120px;
  --df-container-narrow: 760px;

  /* Anciens noms, encore utilisés par les pages : ils pointent vers la charte. */
  --accent: var(--df-accent);
  --fond: var(--df-off);
  --texte: var(--df-text);
  --doux: var(--df-text-soft);
  --bord: var(--df-border);
  --carte: var(--df-white);
}

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

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

body {
  margin: 0;
  background: var(--df-off);
  color: var(--df-text);
  font: 400 16px/1.6 var(--df-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3 { font-family: var(--df-serif); font-weight: 600; color: var(--df-black); }
h1 { font-size: 44px; line-height: 1.08; letter-spacing: -0.035em; }
h2 { font-size: 36px; line-height: 1.1; letter-spacing: -0.03em; }
h3 { font-size: 22px; line-height: 1.25; letter-spacing: -0.01em; }
h1 em, h2 em, h3 em {
  font-style: italic;
  text-decoration: underline;
  text-decoration-color: var(--df-accent);
  text-decoration-thickness: .12em;
  text-underline-offset: .08em;
}

a { color: var(--df-accent-text); text-underline-offset: .15em; }
a:hover { color: var(--df-black); }

:focus-visible { outline: 2px solid var(--df-accent); outline-offset: 2px; }

::selection { background: var(--df-accent-light); color: var(--df-black); }

/* En-tête */
header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--df-space-4);
  padding: 0 var(--df-space-5);
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--df-border);
}
.marque-bloc { display: flex; align-items: baseline; gap: var(--df-space-2); min-width: 0; }
.marque {
  display: inline-flex;
  align-items: center;
  gap: var(--df-space-3);
  font-family: var(--df-serif);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.03em;
  color: var(--df-black);
  text-decoration: none;
  white-space: nowrap;
}
.marque:hover { color: var(--df-black); }
.marque img { height: 28px; }
.marque b { color: var(--df-accent); font-weight: 600; }
.signature {
  font-family: var(--df-sans);
  font-size: 13px;
  color: var(--df-text-muted);
  text-decoration: none;
  white-space: nowrap;
}
a.signature:hover { color: var(--df-black); text-decoration: underline; }
.entete-droite { display: flex; align-items: center; gap: var(--df-space-3); }
.entete-droite form { margin: 0; }
.reference {
  font-family: var(--df-mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--df-text-muted);
}
.compact { display: none; }

/* Contenu */
main { width: 100%; max-width: 860px; margin: 0 auto; padding: var(--df-space-5) var(--df-space-4) var(--df-space-7); flex: 1 0 auto; }

/* Sur-titre */
.eyebrow {
  display: inline-block;
  font-family: var(--df-mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--df-accent-text);
}

/* Boutons */
.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--df-space-2);
  min-height: 44px;
  padding: 12px 22px;
  border: 1px solid var(--df-bouton);
  border-radius: var(--df-radius-pill);
  background: var(--df-bouton);
  color: var(--df-white);
  font: 500 14px/1.2 var(--df-sans);
  text-decoration: none;
  cursor: pointer;
  transition: background var(--df-dur-fast) var(--df-ease), border-color var(--df-dur-fast) var(--df-ease), color var(--df-dur-fast) var(--df-ease), transform var(--df-dur-fast) var(--df-ease);
}
.bouton:hover { background: var(--df-bouton-survol); border-color: var(--df-bouton-survol); color: var(--df-white); }
.bouton:active { transform: translateY(1px); }
.bouton.secondaire { background: transparent; color: var(--df-black); border-color: var(--df-black); }
.bouton.secondaire:hover { background: var(--df-black); color: var(--df-white); }
.bouton.accent { background: var(--df-accent); border-color: var(--df-accent); }
.bouton.accent:hover { background: var(--df-accent-dark); border-color: var(--df-accent-dark); }
.bouton.petit-bouton { min-height: 36px; padding: 8px 16px; font-size: 13px; }
.bouton:disabled, .bouton[aria-disabled="true"] { opacity: .45; cursor: default; transform: none; }

/* Cartes */
.carte {
  background: var(--df-white);
  border: 1px solid var(--df-border);
  border-radius: var(--df-radius-card);
  padding: var(--df-space-5);
  box-shadow: var(--df-shadow-card);
}

/* Champs */
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="password"], textarea, select {
  font: inherit;
  color: var(--df-text);
  background: var(--df-white);
  border: 1px solid var(--df-border);
  border-radius: var(--df-radius-field);
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--df-black); box-shadow: 0 0 0 3px var(--df-accent-light); }

/* Utilitaires */
.doux { color: var(--df-text-soft); }
.muet { color: var(--df-text-muted); }
.petit { font-size: 14px; line-height: 1.5; }
.tres-petit { font-size: 12px; line-height: 1.5; }
.ornement { color: var(--df-accent); }
[x-cloak] { display: none !important; }

/* Pied de page */
footer.site {
  background: var(--df-black);
  color: rgba(255, 255, 255, .6);
  font-size: 13px;
  line-height: 1.6;
  padding: var(--df-space-7) var(--df-space-5);
}
footer.site .pied { max-width: var(--df-container); margin: 0 auto; display: grid; gap: var(--df-space-4); }
footer.site .pied-marque { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--df-space-2) var(--df-space-3); }
footer.site .pied-marque strong {
  font-family: var(--df-serif);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.03em;
  color: var(--df-white);
}
footer.site .pied-marque strong b { color: var(--df-accent); font-weight: 600; }
footer.site nav { display: flex; flex-wrap: wrap; gap: var(--df-space-2) var(--df-space-5); padding: var(--df-space-4) 0; border-top: 1px solid var(--df-charcoal-2); border-bottom: 1px solid var(--df-charcoal-2); }
footer.site nav a { color: rgba(255, 255, 255, .78); text-decoration: none; }
footer.site nav a:hover { color: var(--df-white); text-decoration: underline; }
footer.site a:focus-visible { outline-color: var(--df-accent); }

/* Mobile */
@media (max-width: 640px) {
  header.site { padding: 0 var(--df-space-4); }
  .marque { font-size: 20px; }
  .signature { font-size: 12px; }
  .reference { display: none; }
  .complet { display: none; }
  .compact { display: inline; }
  h1 { font-size: 32px; }
  h2 { font-size: 28px; }
  h3 { font-size: 20px; }
  footer.site { padding: var(--df-space-6) var(--df-space-4); }
  footer.site nav { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0ms !important; animation-duration: 0ms !important; scroll-behavior: auto !important; }
}
