/* ==========================================================================
   atelier-lancement.css
   Feuille de styles commune aux pages de l'atelier-lancement.
   DNA visuel hérité de l'atelier-charte-graphique :
   palette terracotta, polices Inter / Lora / Lato, composants épurés.
   ========================================================================== */

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

/* ================================================
   1. Reset et setup global
   ================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--f-ui);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'ss01', 'cv01', 'cv11';
}

img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }

/* ================================================
   2. Variables CSS — palette terracotta hérité
   ================================================ */
:root {
  /* --- Couleurs UI (charte-graphique) --- */
  --accent: #C65D4A;
  --accent-dark: #A84A3A;
  --accent-soft: rgba(198, 93, 74, 0.08);

  --ink: #0F0F0F;
  --ink-soft: #1A1A1A;
  --grey: #555555;
  --grey-soft: #888888;

  --bg: #FAFAF7;
  --bg-soft: #F5F2EC;
  --border: #E0DCD4;
  --border-soft: #EFEBE3;

  --good: #2E7D5F;
  --good-bg: #E8F5EF;
  --bad: #B23A48;
  --bad-bg: #FBEAEC;
  --warning: #C77F0E;
  --warning-bg: #FFF6E5;

  /* --- Polices --- */
  --f-ui: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --f-titre: 'Lora', Georgia, serif;
  --f-corps: 'Lato', -apple-system, sans-serif;

  /* --- Géométrie --- */
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --pill: 999px;

  /* --- Catégories checklist (harmonisées sur terracotta) --- */
  --cat-reglages:   #C65D4A;  /* terracotta — base */
  --cat-contenu:    #5A7FA8;  /* bleu sourd */
  --cat-nav:        #8B5E83;  /* mauve sourd */
  --cat-securite:   #B23A48;  /* rouge brique */
  --cat-seo:        #4F7D5C;  /* vert sauge */
  --cat-affichage:  #C28840;  /* ocre */
  --cat-final:      #2C2C2C;  /* anthracite */
}

/* ================================================
   3. Typographie globale
   ================================================ */
h1, h2, h3, h4 {
  font-family: var(--f-ui);
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -0.01em;
}
h1 {
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
}
h2 {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 700;
  letter-spacing: -0.015em;
}
h3 {
  font-size: 1.15rem;
  font-weight: 600;
}
h4 {
  font-size: 0.95rem;
  font-weight: 600;
}
p { color: var(--ink-soft); line-height: 1.6; }

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 150ms ease, color 150ms ease;
}
a:hover { border-bottom-color: var(--accent); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }

.kicker {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

small, .small { font-size: 0.85rem; color: var(--grey); }

code, kbd, pre, .mono {
  font-family: var(--f-ui);
  font-feature-settings: 'tnum';
}

/* ================================================
   4. Layout commun
   ================================================ */
.page {
  min-height: 100vh;
  background: var(--bg);
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-wide { max-width: 1200px; }

/* --- Header --- */
.page-header {
  background: white;
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
}
.page-header .container {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex: 1;
  min-width: 0;
}
.brand-logo {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: var(--accent);
  color: white;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}
.brand-text { min-width: 0; }
.brand-text h1 {
  font-size: 1.25rem;
  line-height: 1.2;
  letter-spacing: -0.015em;
}
.brand-text .subtitle {
  font-size: 0.85rem;
  color: var(--grey);
  margin-top: 0.15rem;
}

/* --- Main et footer --- */
.page-main { flex: 1; padding: 1rem 0 2rem; }

.page-footer {
  padding: 1.5rem 0 2rem;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.85rem;
  color: var(--grey);
  background: white;
}

/* ================================================
   5. Composants
   ================================================ */

/* --- Carte / panel --- */
.card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
.card + .card { margin-top: 1.25rem; }
.card-header {
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border-soft);
}
.card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
}
.card-subtitle {
  font-size: 0.85rem;
  color: var(--grey);
  margin-top: 0.25rem;
}

/* --- Boutons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.2rem;
  font-family: var(--f-ui);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease, transform 100ms ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-primary {
  background: var(--accent);
  color: white;
}
.btn-primary:hover { background: var(--accent-dark); }

.btn-secondary {
  background: white;
  color: var(--ink);
  border-color: var(--border);
}
.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-ghost {
  background: transparent;
  color: var(--grey);
}
.btn-ghost:hover { color: var(--accent); background: var(--accent-soft); }

.btn-block { width: 100%; }
.btn-sm { padding: 0.5rem 0.9rem; font-size: 0.85rem; }
.btn-lg { padding: 0.9rem 1.5rem; font-size: 1rem; }

/* --- Inputs --- */
.input, .textarea, .select {
  width: 100%;
  padding: 0.65rem 0.9rem;
  font-family: var(--f-ui);
  font-size: 0.95rem;
  color: var(--ink);
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.textarea { resize: vertical; min-height: 5rem; line-height: 1.5; }
.field { margin-bottom: 1rem; }
.field-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.4rem;
}
.field-help {
  font-size: 0.8rem;
  color: var(--grey);
  margin-top: 0.35rem;
}

/* --- Badges / tags --- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.65rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--grey);
  background: var(--bg-soft);
  border-radius: var(--pill);
}
.badge-accent { background: var(--accent-soft); color: var(--accent); }
.badge-good { background: var(--good-bg); color: var(--good); }
.badge-bad { background: var(--bad-bg); color: var(--bad); }

/* --- Callouts --- */
.callout {
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  border-left: 4px solid;
  background: var(--bg-soft);
  border-color: var(--grey);
  color: var(--ink-soft);
}
.callout-title {
  font-weight: 700;
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
}
.callout.ok   { background: var(--good-bg);    border-color: var(--good);    color: #1B5E3F; }
.callout.warn { background: var(--warning-bg); border-color: var(--warning); color: #6B4500; }
.callout.bad  { background: var(--bad-bg);     border-color: var(--bad);     color: #7A1F2A; }

/* ================================================
   6. Utilitaires
   ================================================ */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

.text-center { text-align: center; }
.text-grey { color: var(--grey); }
.text-accent { color: var(--accent); }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.hidden { display: none !important; }
.no-print { /* utilisé par les règles print ci-dessous */ }

/* ================================================
   7. Impression
   ================================================ */
@media print {
  :root { --bg: #FFFFFF; }
  body {
    background: white;
    color: #000;
    font-size: 11pt;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .no-print { display: none !important; }
  .page-header, .page-footer { border-color: #ccc; background: white; }
  .card { border-color: #ccc; box-shadow: none; page-break-inside: avoid; }
  a { color: var(--accent); }
  a[href]::after { content: ""; }
}
