/* ==========================================================================
   R.O.S.E.S. — global.css
   Design atelier informatique professionnel. Sobre, éditorial, crédible.
   Angles droits. Typographie forte. Zéro effet superflu.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Lora:ital,wght@0,400;0,600;1,400&display=swap');

:root {
  /* ── Couleurs — palette R.O.S.E.S. ── */
  --c-bg:          #f9f8f6;       /* Blanc légèrement chaud, pas clinique */
  --c-bg-soft:     #f2f1ef;
  --c-bg-tint:     #eceae7;
  --c-surface:     #ffffff;
  --c-border:      #d8d5d0;       /* Gris chaud, visible mais discret */
  --c-border-soft: #e8e6e2;

  --c-text:        #1a1a1a;       /* Noir quasi-pur */
  --c-text-soft:   #4a4a4a;
  --c-text-muted:  #8a8a8a;

  /* Bleu nuit R.O.S.E.S. — couleur principale */
  --c-brand:       #112b5e;
  --c-brand-mid:   #1a3a78;
  --c-brand-light: #1d4691;
  --c-brand-soft:  #e8edf7;
  --c-brand-tint:  #f2f5fb;

  /* Accent violet très discret */
  --c-accent:      #4b3f8c;
  --c-accent-soft: #f0eefa;

  /* États */
  --c-success:     #1a5c38;
  --c-success-bg:  #f0faf4;
  --c-warning:     #7c4a0e;
  --c-warning-bg:  #fdf8ee;
  --c-danger:      #8c1a1a;
  --c-danger-bg:   #fdf0f0;

  /* ── Typographie ── */
  --font:         'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-serif:   'Lora', Georgia, 'Times New Roman', serif;

  /* ── Géométrie — minimal, angles droits par défaut ── */
  --r:    3px;    /* Arrondi quasi-inexistant — élément standard */
  --r-sm: 2px;    /* Presque rien */
  --r-md: 4px;    /* Très léger */
  --r-lg: 6px;    /* Réservé aux badges et pills */

  /* ── Ombres — discrètes, réelles ── */
  --sh-xs: 0 1px 2px rgba(0,0,0,.06);
  --sh-sm: 0 1px 4px rgba(0,0,0,.08);
  --sh:    0 2px 8px rgba(0,0,0,.08);
  --sh-md: 0 4px 16px rgba(0,0,0,.09);

  /* ── Mise en page ── */
  --w:        1140px;
  --w-narrow: 720px;
  --tr:       140ms ease;
}

/* ── Reset propre ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.65;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: color var(--tr); }
button, input, select, textarea { font: inherit; color: inherit; }
ul, ol { list-style: none; }

/* ── Typographie ─────────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: var(--font);
  color: var(--c-text);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(1.75rem, 3.5vw, 2.6rem); font-weight: 800; }
h2 { font-size: clamp(1.35rem, 2.5vw, 1.85rem); font-weight: 700; }
h3 { font-size: clamp(.95rem,  1.8vw, 1.2rem);  font-weight: 600; }
h4 { font-size: .9rem; font-weight: 600; }
p  { color: var(--c-text-soft); line-height: 1.72; }

.lead {
  font-size: clamp(.92rem, 1.4vw, 1.05rem);
  color: var(--c-text-soft);
  line-height: 1.78;
  max-width: 60ch;
}

/* Numéro éditorial (01, 02…) */
.num {
  font-size: .7rem; font-weight: 700;
  letter-spacing: .08em; color: var(--c-text-muted);
  display: block; margin-bottom: 6px;
}

/* Label section */
.label {
  display: inline-block;
  font-size: .68rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--c-text-muted);
  margin-bottom: 12px;
}

/* ── Layout ──────────────────────────────────────────────────────────────── */
.container        { width: 100%; max-width: var(--w);        margin: 0 auto; padding: 0 28px; }
.container-narrow { width: 100%; max-width: var(--w-narrow); margin: 0 auto; padding: 0 28px; }
.section       { padding: clamp(56px,8vw,96px) 0; }
.section-tight { padding: clamp(36px,5vw,60px) 0; }
.section-soft  { background: var(--c-bg-soft); }
.section-dark  { background: var(--c-text); }

/* Ligne séparatrice ── utilisée à la place du décor */
.line { height: 1px; background: var(--c-border); margin: 0; }

/* ── Grilles ─────────────────────────────────────────────────────────────── */
.grid   { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2,1fr); }
.grid-3 { grid-template-columns: repeat(3,1fr); }
.grid-4 { grid-template-columns: repeat(4,1fr); }
@media (max-width:840px) { .grid-3,.grid-4 { grid-template-columns:repeat(2,1fr); } }
@media (max-width:500px) { .grid-2,.grid-3,.grid-4 { grid-template-columns:1fr; } }

/* ── Boutons ── angles droits, aspect sobre ──────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 20px;
  font-size: .86rem; font-weight: 600;
  letter-spacing: .01em;
  border: 1.5px solid transparent;
  border-radius: var(--r);   /* 3px seulement */
  cursor: pointer;
  transition: background var(--tr), border-color var(--tr), color var(--tr);
  text-decoration: none; white-space: nowrap; line-height: 1;
}
/* Remplir — noir */
.btn-primary  { background: var(--c-text); color: #fff; border-color: var(--c-text); }
.btn-primary:hover { background: #2a2a2a; border-color: #2a2a2a; }
/* Remplir — bleu nuit */
.btn-brand    { background: var(--c-brand); color: #fff; border-color: var(--c-brand); }
.btn-brand:hover { background: var(--c-brand-mid); border-color: var(--c-brand-mid); }
/* Contour */
.btn-ghost    { background: transparent; border-color: var(--c-border); color: var(--c-text-soft); }
.btn-ghost:hover { background: var(--c-bg-soft); color: var(--c-text); border-color: var(--c-border); }
/* Contour blanc (sur fond sombre) */
.btn-outline  { background: transparent; border-color: rgba(255,255,255,.35); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.6); }
/* Blanc */
.btn-light    { background: #fff; border-color: var(--c-border); color: var(--c-text); }
.btn-light:hover { background: var(--c-bg-soft); }
/* Texte seul */
.btn-link     { background: transparent; color: var(--c-brand-light); padding: 0; border: none; font-weight: 500; }
.btn-link:hover { color: var(--c-brand); }
.btn-sm    { padding: 7px 13px; font-size: .79rem; }
.btn-lg    { padding: 12px 24px; font-size: .93rem; }
.btn-block { display: flex; width: 100%; justify-content: center; }

/* ── Formulaires ─────────────────────────────────────────────────────────── */
.form-stack { display: flex; flex-direction: column; gap: 14px; }
.form-row   { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width:520px) { .form-row { grid-template-columns: 1fr; } }

.form-group label {
  display: block; font-size: .82rem; font-weight: 600;
  color: var(--c-text); margin-bottom: 6px;
}
.form-control {
  width: 100%; padding: 10px 12px;
  border: 1.5px solid var(--c-border);
  border-radius: var(--r);
  background: var(--c-surface);
  font-size: .9rem; color: var(--c-text);
  transition: border-color var(--tr);
  box-sizing: border-box;
}
.form-control:focus {
  outline: none; border-color: var(--c-brand-light);
  box-shadow: 0 0 0 2px rgba(29,70,145,.1);
}
textarea.form-control { min-height: 120px; resize: vertical; }
.form-help { font-size: .75rem; color: var(--c-text-muted); margin-top: 4px; }

/* ── Alertes ─────────────────────────────────────────────────────────────── */
.alert {
  padding: 10px 14px; border-radius: var(--r);
  font-size: .87rem; border-left: 3px solid;
}
.alert-success { background: var(--c-success-bg); color: var(--c-success); border-color: var(--c-success); }
.alert-error   { background: var(--c-danger-bg);  color: var(--c-danger);  border-color: var(--c-danger); }
.alert-info    { background: var(--c-brand-tint);  color: var(--c-brand);   border-color: var(--c-brand); }

/* ── Badges (usage limité) ───────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center;
  padding: 2px 7px; border-radius: var(--r-lg);
  font-size: .68rem; font-weight: 600;
  background: var(--c-bg-tint); color: var(--c-text-soft);
}
.badge-brand   { background: var(--c-brand-soft);  color: var(--c-brand); }
.badge-success { background: var(--c-success-bg);  color: var(--c-success); }
.badge-danger  { background: var(--c-danger-bg);   color: var(--c-danger); }

/* ── Utilities ───────────────────────────────────────────────────────────── */
.text-center { text-align: center; }
.mt-2{margin-top:10px} .mt-3{margin-top:16px} .mt-4{margin-top:24px} .mt-6{margin-top:40px}
.mb-2{margin-bottom:10px} .mb-3{margin-bottom:16px}

/* ── Legal ───────────────────────────────────────────────────────────────── */
.legal-content h2 { font-size:1.1rem; margin:28px 0 10px; }
.legal-content h2:first-child { margin-top:0; }
.legal-content p { margin-bottom:12px; line-height:1.75; }
.legal-content a { color:var(--c-brand-light); text-decoration:underline; text-underline-offset:3px; }
.legal-content .legal-list { margin:10px 0 16px 20px; display:flex; flex-direction:column; gap:6px; }
.legal-content .legal-list li { list-style:disc; font-size:.92rem; color:var(--c-text-soft); }
.legal-content ol.legal-list li { list-style:decimal; }
.legal-content .legal-meta { margin-top:36px; padding-top:14px; border-top:1px solid var(--c-border-soft); font-size:.77rem; color:var(--c-text-muted); }

/* ── Auth ────────────────────────────────────────────────────────────────── */
.auth-shell {
  display: flex; align-items: center; justify-content: center;
  min-height: 60vh; padding: clamp(24px,5vw,48px) 16px;
}
.auth-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  padding: clamp(24px,5vw,40px);
  width: 100%; max-width: 400px;
}
