/* ================================================================
   GUIDE IATUTO PUBLIC — Page de garde
   Palette AMBER/TEAL — Dark-first, accessible (WCAG AA)
   ================================================================ */

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

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

/* ================================================================
   DESIGN TOKENS — dark default (AMBER accent, TEAL secondary)
   ================================================================ */
:root {
  --bg:       #0A0800;
  --surface:  #110E00;
  --surface2: #181200;
  --surface3: #221900;
  --text:       #F5EDD8;
  --text-light: #8C7A50;
  --border:      rgba(180, 130, 30, 0.14);
  --shadow:      0 4px 24px rgba(0,0,0,0.6), 0 0 0 1px rgba(180,130,30,0.06);
  --shadow-card: 0 8px 32px rgba(0,0,0,0.55);
  --radius:     16px;
  --transition: 0.25s cubic-bezier(0.4,0,0.2,1);
  --accent:      #F59E0B;
  --accent-soft: rgba(245,158,11,0.1);
  --accent-dark: #D97706;
  --teal:        #14B8A6;
  --teal-soft:   rgba(20,184,166,0.1);
  --success: #10B981;
  --warning-bg:     rgba(245,158,11,0.08);
  --warning-border: rgba(245,158,11,0.25);
  --warning-text:   #FCD34D;
  --info-bg:        rgba(20,184,166,0.06);
  --info-border:    rgba(20,184,166,0.2);
  --info-text:      #5EEAD4;
  --ch1: #F59E0B; --ch6: #14B8A6;
}

[data-theme="light"] {
  --bg:#FFFBF0; --surface:#FFFFFF; --surface2:#FEF3C7; --surface3:#FDE68A;
  --text:#1C1400; --text-light:#6B5A2A;
  --border:rgba(180,130,30,0.15);
  --shadow:0 4px 20px rgba(100,70,0,0.08); --shadow-card:0 8px 32px rgba(100,70,0,0.1);
  --accent:#B45309; --accent-soft:rgba(180,83,9,0.08); --accent-dark:#92400E;
  --teal:#0F766E; --teal-soft:rgba(15,118,110,0.08);
  --warning-bg:#FFFBEB; --warning-border:#FDE68A; --warning-text:#92400E;
  --info-bg:#F0FDFA; --info-border:#CCFBF1; --info-text:#0F766E;
  --ch1:#B45309; --ch6:#0F766E;
}

/* BASE */
body {
  font-family:system-ui,-apple-system,'Segoe UI',Roboto,Arial,sans-serif;
  font-size:18px; line-height:1.65; color:var(--text); background:var(--bg); min-height:100vh;
  transition:background var(--transition),color var(--transition); padding-bottom:60px;
}

/* ================================================================ HERO */
.hero {
  background:linear-gradient(135deg,#0A0800 0%,#150E00 40%,#1E1400 70%,#2A1C00 100%);
  color:white; padding:48px 24px 80px; text-align:center; position:relative; overflow:hidden;
}
.hero::before {
  content:''; position:absolute; inset:0;
  background-image:radial-gradient(rgba(245,158,11,0.15) 1px,transparent 1px);
  background-size:32px 32px; pointer-events:none;
}
.hero::after {
  content:''; position:absolute; top:-120px; left:50%; transform:translateX(-50%);
  width:600px; height:400px;
  background:radial-gradient(ellipse,rgba(245,158,11,0.1) 0%,transparent 70%);
  pointer-events:none;
}
.hero-top {
  display:flex; justify-content:flex-end; align-items:center;
  max-width:900px; margin:0 auto 40px; position:relative; z-index:1;
}
.hero-content { position:relative; z-index:1; }
.hero-title {
  font-size:clamp(28px,5vw,52px); font-weight:900; letter-spacing:-1px; line-height:1.1;
  background:linear-gradient(135deg,#ffffff 0%,#FDE68A 50%,#F59E0B 100%);
  -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text;
}
.hero-subtitle { font-size:18px; color:rgba(255,255,255,0.65); margin-top:12px; }

.hero-nodes { display:flex; justify-content:center; gap:20px; margin-top:32px; flex-wrap:wrap; }
.hero-node { display:flex; flex-direction:column; align-items:center; gap:6px; }
.node-circle {
  width:52px; height:52px; border-radius:50%;
  border:2px solid rgba(245,158,11,0.4); background:rgba(245,158,11,0.08);
  display:flex; align-items:center; justify-content:center; font-size:22px;
  box-shadow:0 0 16px rgba(245,158,11,0.2);
}
.node-label { font-size:10px; font-weight:800; text-transform:uppercase; letter-spacing:0.8px; color:rgba(255,255,255,0.4); }

[data-theme="light"] .hero { background:linear-gradient(135deg,#1C1400 0%,#B45309 100%); }

/* ================================================================ THEME BUTTON */
.theme-btn {
  background:rgba(255,255,255,0.06); border:1px solid rgba(255,255,255,0.15); color:white;
  padding:10px 18px; border-radius:50px; cursor:pointer; font-size:15px; font-weight:600;
  display:flex; align-items:center; gap:8px; transition:background var(--transition); backdrop-filter:blur(8px);
}
.theme-btn:hover { background:rgba(255,255,255,0.14); }

/* ================================================================ STATS BAR */
.stats-bar { max-width:900px; margin:-36px auto 0; padding:0 24px; position:relative; z-index:10; }
.stats-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(160px,1fr)); gap:12px; }
.stat-card {
  background:var(--surface); border-radius:var(--radius); padding:22px 16px; text-align:center;
  box-shadow:var(--shadow); border:1px solid var(--border);
  transition:transform var(--transition),box-shadow var(--transition);
  position:relative; overflow:hidden;
}
.stat-card::before {
  content:''; position:absolute; top:0; left:0; right:0; height:2px;
  background:linear-gradient(90deg,var(--ch1),var(--ch6));
}
.stat-card:hover { transform:translateY(-3px); }
.stat-num {
  font-size:34px; font-weight:900;
  background:linear-gradient(135deg,var(--accent),var(--teal));
  -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text;
}
.stat-label { font-size:13px; color:var(--text-light); margin-top:4px; font-weight:500; }

/* ================================================================ CONTAINER */
.container { max-width:900px; margin:0 auto; padding:48px 24px 80px; }

/* ================================================================ SECTION TITLE */
.section-title {
  font-size:20px; font-weight:800; margin-bottom:20px; display:flex; align-items:center; gap:12px;
  text-transform:uppercase; letter-spacing:0.5px;
}
.section-title::after { content:''; flex:1; height:1px; background:linear-gradient(90deg,var(--border),transparent); }

/* ================================================================ HOW GRID */
.how-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(190px,1fr)); gap:16px; }
.how-card {
  background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:24px 20px;
  text-align:center; transition:transform var(--transition),border-color var(--transition);
}
.how-card:hover { transform:translateY(-3px); border-color:rgba(245,158,11,0.3); }
.how-icon { font-size:28px; margin-bottom:12px; }
.how-title { font-weight:700; margin-bottom:6px; font-size:16px; }
.how-desc { font-size:14px; color:var(--text-light); line-height:1.5; }

/* ================================================================ ACCESS CARD */
.access-card {
  background:var(--surface); border:1px solid var(--accent-soft);
  border-left:4px solid var(--accent);
  border-radius:var(--radius); padding:32px 28px; margin-bottom:40px;
  position:relative; overflow:hidden;
}
.access-card::before {
  content:''; position:absolute; top:0; left:0; right:0; height:2px;
  background:linear-gradient(90deg,var(--accent),var(--teal));
}
.access-card-title {
  font-size:20px; font-weight:800; margin-bottom:12px;
  display:flex; align-items:center; gap:10px;
}
.access-card-body { font-size:16px; color:var(--text-light); line-height:1.7; margin-bottom:16px; }
.access-card-contact {
  display:inline-flex; align-items:center; gap:8px;
  background:var(--accent-soft); border:1px solid rgba(245,158,11,0.25);
  color:var(--accent); padding:10px 20px; border-radius:50px;
  font-size:15px; font-weight:700; text-decoration:none;
  transition:background var(--transition),filter var(--transition);
}
.access-card-contact:hover { background:rgba(245,158,11,0.18); filter:brightness(1.1); }

/* ================================================================ NOTICE BOX */
.notice-box {
  background:var(--info-bg); border:1px solid var(--info-border);
  border-radius:12px; padding:16px 20px; margin-bottom:32px;
  font-size:15px; line-height:1.6; color:var(--info-text);
  display:flex; align-items:flex-start; gap:12px;
}
.notice-icon { font-size:20px; flex-shrink:0; margin-top:1px; }

/* ================================================================ FOOTER */
footer {
  text-align:center; padding:32px 24px; font-size:14px;
  color:var(--text-light); border-top:1px solid var(--border);
}

/* ================================================================ SCROLLBAR */
::-webkit-scrollbar { width:6px; height:6px; }
::-webkit-scrollbar-track { background:var(--bg); }
::-webkit-scrollbar-thumb { background:var(--surface3); border-radius:3px; }
::-webkit-scrollbar-thumb:hover { background:var(--accent); }

/* ================================================================ BACK TO TOP */
.btn-top {
  position:fixed; bottom:24px; right:24px; z-index:1000;
  background:var(--accent); color:#000; border:none; border-radius:50px;
  padding:12px 20px; font-size:14px; font-weight:800; cursor:pointer;
  box-shadow:0 4px 20px color-mix(in srgb,var(--accent) 50%,transparent);
  transition:transform 0.2s ease,filter 0.2s ease;
  display:flex; align-items:center; gap:8px;
}
.btn-top:hover { transform:translateY(-3px); filter:brightness(1.15); }
[data-theme="light"] .btn-top { color:#fff; background:#B45309; }
