/* ==========================================================================
   OG.fr — Histoire des Jeux Olympiques
   Feuille de style principale
   Polices requises (chargées depuis index.html) : "Fraunces" (display) et
   "Inter" (texte courant), via Google Fonts.
   ========================================================================== */

/* -------------------------------------------------- 1. Design tokens -- */
:root {
  /* Couleurs — marbre antique, encre nocturne, bronze/or, bleu Égée */
  --marble:        #F2ECDD;
  --marble-deep:   #E8DFC6;
  --marble-line:   #DAD0B4;
  --ink:           #1B2233;
  --ink-soft:      #262F45;
  --ink-softer:    #34405C;
  --gold:          #C9A227;
  --gold-soft:     #E4C766;
  --gold-dim:      #9C7F27;
  --aegean:        #21486B;
  --terracotta:    #B0532E;
  --text-dark:     #24211C;
  --text-muted:    #6B6456;
  --text-light:    #F2ECDD;
  --text-light-muted: #C7C1AE;

  --success:       #3F7D52;
  --error:         #B0342C;

  /* Typographie */
  --font-display: "Playfair Display", "Iowan Old Style", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Rythme */
  --container: 1180px;
  --radius-s: 6px;
  --radius-m: 12px;
  --radius-l: 22px;

  /* Motif méandre grec (fil conducteur visuel du site) */
  --meander-h: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 24'%3E%3Cpath d='M0,12 H8 V4 H16 V12 H24 V20 H32 V12 H40 H48' fill='none' stroke='%23C9A227' stroke-width='2.5'/%3E%3C/svg%3E");
  --meander-h-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 24'%3E%3Cpath d='M0,12 H8 V4 H16 V12 H24 V20 H32 V12 H40 H48' fill='none' stroke='%23E4C766' stroke-width='2.5'/%3E%3C/svg%3E");
  --meander-v-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 48'%3E%3Cpath d='M12,0 V8 H4 V16 H12 V24 H20 V32 H12 V40 V48' fill='none' stroke='%23E4C766' stroke-width='2.5'/%3E%3C/svg%3E");
}

/* -------------------------------------------------------- 2. Reset ---- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
body {
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--marble);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 1.75rem; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-body); font-weight: 700; font-size: 0.78rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-dim);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--gold); display: inline-block; }
section.on-dark .eyebrow { color: var(--gold-soft); }

.section-head { max-width: 700px; margin-bottom: 3rem; }
.section-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin: 0.6rem 0 1rem; letter-spacing: -0.01em; }
.section-head p { color: var(--text-muted); font-size: 1.08rem; max-width: 60ch; }
section.on-dark .section-head p { color: var(--text-light-muted); }
section.on-dark .section-head h2 { color: var(--text-light); }

section { padding: 6rem 0; position: relative; }
.on-dark { background: var(--ink); color: var(--text-light); }

.divider-meander {
  height: 24px; width: 100%;
  background-image: var(--meander-h);
  background-repeat: repeat-x; background-position: center; background-size: 48px 24px;
  opacity: 0.55;
}
.on-dark + .divider-meander, .divider-meander.on-dark-edge { background-image: var(--meander-h-light); }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.9rem 1.9rem; border-radius: 999px; font-weight: 600; font-size: 0.98rem;
  text-decoration: none; border: 2px solid transparent; transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(201, 162, 39, 0.35); }
.btn-outline { border-color: rgba(242, 236, 221, 0.4); color: var(--text-light); background: transparent; }
.btn-outline:hover { border-color: var(--gold-soft); color: var(--gold-soft); transform: translateY(-2px); }
.btn:disabled { opacity: 0.65; cursor: not-allowed; transform: none !important; }

/* ------------------------------------------------------------ 3. Nav -- */
#mainNav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 1.15rem 0; transition: background 0.35s ease, padding 0.35s ease, box-shadow 0.35s ease, transform 0.3s ease;
}
#mainNav .container { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
#mainNav.scrolled { background: rgba(27, 34, 51, 0.92); backdrop-filter: blur(10px); padding: 0.75rem 0; box-shadow: 0 8px 24px rgba(0,0,0,0.18); }
#mainNav.hidden { transform: translateY(-100%); }

.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--text-light); font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; letter-spacing: 0.01em; }

/* Nav wordmark — "OG.fr" set in the Olympic ring colours, sampled from the logo */
.brand-wordmark {
  font-family: var(--font-body); font-weight: 800; font-size: 1.55rem; letter-spacing: -0.01em;
  gap: 0; transition: transform 0.2s ease;
}
.brand-wordmark:hover { transform: translateY(-1px); }
.wm-o { color: #3396CE; }
.wm-g { color: #F3AB28; }
.wm-dot {
  color: #12161B;
  text-shadow: 0 0 3px rgba(242,236,221,0.9), 0 0 6px rgba(242,236,221,0.55), 0 0 1px rgba(242,236,221,0.95);
}
.wm-f { color: #34AD64; }
.wm-r { color: #F0565D; }

.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a { color: var(--text-light); text-decoration: none; font-size: 0.95rem; font-weight: 500; opacity: 0.88; transition: opacity 0.2s ease; }
.nav-links a:hover { opacity: 1; color: var(--gold-soft); }

.nav-lang { display: flex; align-items: center; gap: 0.35rem; margin-left: 0.5rem; }
.lang-btn {
  background: transparent; border: 1px solid rgba(242,236,221,0.35); color: var(--text-light);
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em; padding: 0.3rem 0.6rem; border-radius: 999px;
  transition: all 0.2s ease;
}
.lang-btn.active { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.lang-btn:not(.active):hover { border-color: var(--gold-soft); color: var(--gold-soft); }

.mobile-menu-btn { display: none; background: none; border: none; color: var(--text-light); font-size: 1.5rem; }

/* ---------------------------------------------------------- 4. Hero --- */
.hero {
  min-height: 100vh; display: flex; align-items: center; position: relative; overflow: hidden;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(201,162,39,0.16), transparent 55%),
    radial-gradient(ellipse at 80% 75%, rgba(33,72,107,0.35), transparent 55%),
    linear-gradient(160deg, #1B2233 0%, #131923 100%);
  color: var(--text-light);
  padding: 8rem 0 4rem;
}
.hero::after {
  content: ""; position: absolute; inset: 0; opacity: 0.10; pointer-events: none;
  background-image: var(--meander-h-light); background-repeat: repeat; background-size: 96px 48px;
  mix-blend-mode: overlay;
}
.hero .container { position: relative; z-index: 2; }
.hero-inner { max-width: 760px; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); margin: 0.9rem 0 1.2rem; letter-spacing: -0.02em; }
.hero h1 em { font-style: italic; color: var(--gold-soft); }
.hero p.subtitle { font-size: 1.2rem; color: var(--text-light-muted); max-width: 54ch; margin-bottom: 2.3rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 4rem; }

.milestone-spine { display: flex; align-items: flex-start; gap: 0; position: relative; margin-top: 1rem; }
.milestone-spine::before {
  content: ""; position: absolute; top: 9px; left: 9px; right: 9px; height: 2px;
  background-image: var(--meander-h-light); background-repeat: repeat-x; background-size: 32px 16px; opacity: 0.5;
}
.milestone { flex: 1; position: relative; padding-top: 2rem; min-width: 0; }
.milestone::before { content: ""; position: absolute; top: 0; left: 0; width: 18px; height: 18px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(27,34,51,1), 0 0 0 5px rgba(201,162,39,0.4); }
.milestone .m-year { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--gold-soft); }
.milestone .m-label { display: block; font-size: 0.85rem; color: var(--text-light-muted); margin-top: 0.15rem; padding-right: 0.6rem; }

/* ------------------------------------------------------ 5. Intro/About */
.intro { background: var(--marble); }
.intro-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 4rem; align-items: start; }
.intro-text h2 { font-size: clamp(1.9rem, 3.4vw, 2.5rem); margin: 0.6rem 0 1.4rem; }
.intro-text p { color: var(--text-muted); margin-bottom: 1.1rem; font-size: 1.05rem; max-width: 56ch; }
.pillars { display: grid; gap: 1.4rem; }
.pillar { background: var(--marble-deep); border: 1px solid var(--marble-line); border-radius: var(--radius-m); padding: 1.5rem 1.6rem; }
.pillar .p-icon { font-size: 1.5rem; margin-bottom: 0.5rem; }
.pillar h3 { font-size: 1.1rem; margin-bottom: 0.3rem; color: var(--ink); }
.pillar p { color: var(--text-muted); font-size: 0.95rem; }

/* --------------------------------------------------- 6. History timeline */
.history { background: var(--ink); color: var(--text-light); }
.timeline { position: relative; margin-top: 1rem; }

.timeline-items { position: relative; z-index: 2; }
.timeline-items::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 24px;
  width: 3px; background-image: var(--meander-v-light); background-repeat: repeat-y; background-size: 24px 48px;
  opacity: 0.5;
}

/* Ligne de progression pointillée, animée au scroll (voir main.js) */
.timeline-progress {
  position: absolute; top: 0; left: 24px; width: 4px; height: 0;
  background: repeating-linear-gradient(to bottom, var(--gold-soft) 0 8px, transparent 8px 18px);
  box-shadow: 0 0 14px 1px rgba(228, 199, 102, 0.55);
  border-radius: 3px; z-index: 1; transition: height 0.15s linear;
}

.t-item { position: relative; padding-left: 66px; padding-bottom: 3rem; }
.t-item:last-child { padding-bottom: 0; }
.t-item::before {
  content: ""; position: absolute; left: 15px; top: 4px; width: 19px; height: 19px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 0 5px var(--ink), 0 0 0 6px rgba(201,162,39,0.35);
  transition: background 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease;
}
.t-item.active::before {
  background: var(--gold-soft);
  box-shadow: 0 0 0 5px var(--ink), 0 0 0 6px rgba(201,162,39,0.45), 0 0 22px 5px rgba(228,199,102,0.8);
  transform: scale(1.18);
}
.t-era {
  display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink); background: var(--gold-soft); padding: 0.18rem 0.65rem; border-radius: 999px; margin-bottom: 0.6rem;
}
.t-year { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: var(--gold-soft); display: block; margin-bottom: 0.15rem; }
.t-item h3 { font-size: 1.25rem; margin-bottom: 0.5rem; color: var(--text-light); }
.t-item p { color: var(--text-light-muted); max-width: 62ch; font-size: 1rem; }

@media (min-width: 900px) {
  .timeline-items::before { left: 50%; margin-left: -1.5px; }
  .timeline-progress { left: 50%; margin-left: -2px; }
  .t-item { width: 46%; padding-left: 0; padding-bottom: 3.5rem; }
  .t-item::before { left: auto; }
  .t-item:nth-child(odd) { margin-right: 54%; text-align: right; }
  .t-item:nth-child(odd)::before { right: -73px; left: auto; }
  .t-item:nth-child(even) { margin-left: 54%; }
  .t-item:nth-child(even)::before { left: -73px; }
  .t-item:nth-child(odd) p { margin-left: auto; }
}

/* --------------------------------------------------------- 7. Symbols - */
.symbols { background: var(--marble); }
.symbol-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.6rem; }
.symbol-card { background: var(--ink); color: var(--text-light); border-radius: var(--radius-l); padding: 2.1rem; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.symbol-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(27,34,51,0.25); }
.symbol-card .s-icon {
  width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--gold); color: var(--gold-soft);
  display: flex; align-items: center; justify-content: center; font-size: 1.3rem; margin-bottom: 1.1rem;
}
.symbol-card h3 { font-size: 1.2rem; margin-bottom: 0.65rem; color: var(--text-light); }
.symbol-card p { color: var(--text-light-muted); font-size: 0.96rem; }

/* -------------------------------------------------------- 8. Editions - */
.editions { background: var(--ink); color: var(--text-light); }
.edition-carousel { position: relative; padding: 0 54px; }
.edition-scroller { display: flex; gap: 1.4rem; overflow-x: auto; padding: 0.5rem 0.2rem 1.5rem; scroll-snap-type: x proximity; }
.edition-scroller::-webkit-scrollbar { height: 8px; }
.edition-scroller::-webkit-scrollbar-thumb { background: var(--gold-dim); border-radius: 999px; }
.carousel-arrow {
  position: absolute; top: 42%; transform: translateY(-50%); z-index: 6;
  width: 46px; height: 46px; border-radius: 50%; border: none;
  background: var(--gold); color: var(--ink); font-family: var(--font-body);
  font-size: 1.5rem; line-height: 1; display: flex; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: 0 12px 26px rgba(0,0,0,0.4); transition: background 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}
.carousel-arrow:hover { background: var(--gold-soft); transform: translateY(-50%) scale(1.08); }
.carousel-arrow:disabled { opacity: 0.3; cursor: not-allowed; }
.carousel-arrow:disabled:hover { background: var(--gold); transform: translateY(-50%); }
.carousel-arrow-left { left: 0; }
.carousel-arrow-right { right: 0; }
@media (max-width: 640px) {
  .edition-carousel { padding: 0 42px; }
  .carousel-arrow { width: 36px; height: 36px; font-size: 1.15rem; }
  .carousel-arrow-left { left: 0; }
  .carousel-arrow-right { right: 0; }
}
.edition-card {
  flex: 0 0 300px; scroll-snap-align: start; background: var(--ink-soft); border: 1px solid var(--ink-softer);
  border-radius: var(--radius-l); padding: 1.8rem; display: flex; flex-direction: column;
}
.e-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.e-flag { font-size: 1.6rem; }
.e-tag { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; color: var(--gold-soft); border: 1px solid var(--gold-dim); border-radius: 999px; padding: 0.2rem 0.6rem; }
.e-year { font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; color: var(--text-light); }
.e-city { color: var(--text-light-muted); font-size: 0.95rem; margin-bottom: 0.9rem; }
.edition-card h3 { font-size: 1.08rem; margin-bottom: 0.5rem; }
.edition-card p { color: var(--text-light-muted); font-size: 0.93rem; }

/* ---------------------------------------------------------- 9. Impact - */
.impact { background: var(--marble); }
.impact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.6rem; }
.impact-card { background: var(--marble-deep); border-left: 4px solid var(--terracotta); border-radius: var(--radius-m); padding: 1.8rem; }
.impact-card h3 { font-size: 1.12rem; margin-bottom: 0.55rem; color: var(--ink); }
.impact-card p { color: var(--text-muted); font-size: 0.97rem; }

/* --------------------------------------------------------- 10. Contact  */
.contact { background: var(--ink); color: var(--text-light); }
.contact-wrap { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 3.5rem; align-items: start; }
.contact-intro p { color: var(--text-light-muted); font-size: 1.05rem; margin-top: 1rem; max-width: 42ch; }
.contact-form { background: var(--marble); color: var(--text-dark); border-radius: var(--radius-l); padding: 2.3rem; box-shadow: 0 25px 60px rgba(0,0,0,0.3); }
.form-group { margin-bottom: 1.3rem; }
.form-group label { display: block; margin-bottom: 0.4rem; font-weight: 600; font-size: 0.92rem; color: var(--ink); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 0.75rem 0.9rem; border: 2px solid var(--marble-line); border-radius: var(--radius-s);
  font-size: 0.98rem; font-family: inherit; background: #fff; color: var(--text-dark); transition: border-color 0.25s ease;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--aegean); }
.form-group textarea { resize: vertical; min-height: 110px; }
.error-message { color: var(--error); font-size: 0.82rem; margin-top: 0.3rem; display: none; }
.form-group.error input, .form-group.error select, .form-group.error textarea { border-color: var(--error); }
.form-group.error .error-message { display: block; }
.alert-message { padding: 1rem 1.1rem; border-radius: var(--radius-s); margin-bottom: 1.4rem; font-weight: 600; display: none; }
.alert-message.success { background: rgba(63,125,82,0.14); color: var(--success); border: 1px solid rgba(63,125,82,0.35); display: block; }
.alert-message.error { background: rgba(176,52,44,0.1); color: var(--error); border: 1px solid rgba(176,52,44,0.3); display: block; }
.contact-form button[type="submit"] { width: 100%; justify-content: center; }

/* --------------------------------------------------------- 11. Footer - */
footer { background: var(--ink); border-top: 1px solid rgba(242,236,221,0.08); padding: 3.5rem 0 2rem; color: var(--text-light); }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2.5rem; margin-bottom: 2.5rem; }
.footer-brand { max-width: 340px; }
.footer-brand p { color: var(--text-light-muted); font-size: 0.94rem; }
.footer-logo-link { display: inline-block; margin-bottom: 1rem; }
.footer-logo {
  height: 118px; width: auto; display: block;
  filter: drop-shadow(0 0 16px rgba(228,199,102,0.45)) drop-shadow(0 0 36px rgba(201,162,39,0.3));
  transition: filter 0.3s ease;
}
.footer-logo-link:hover .footer-logo {
  filter: drop-shadow(0 0 20px rgba(228,199,102,0.6)) drop-shadow(0 0 44px rgba(201,162,39,0.4));
}
@media (max-width: 768px) { .footer-logo { height: 88px; } }
.footer-nav h4 { font-family: var(--font-body); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 1rem; }
.footer-nav ul { display: flex; flex-direction: column; gap: 0.65rem; }
.footer-nav a { color: var(--text-light-muted); text-decoration: none; font-size: 0.95rem; }
.footer-nav a:hover { color: var(--gold-soft); }
.footer-legal { border-top: 1px solid rgba(242,236,221,0.08); padding-top: 1.6rem; color: var(--text-light-muted); font-size: 0.85rem; line-height: 1.8; }
.footer-legal a { color: var(--gold-soft); text-decoration: none; }
.footer-legal a:hover { text-decoration: underline; }

/* --------------------------------------------------- 12. Cookie banner  */
#cookieConsent {
  position: fixed; bottom: 0; left: 0; right: 0; background: rgba(19, 25, 35, 0.97); backdrop-filter: blur(10px);
  z-index: 10000; padding: 1.8rem; box-shadow: 0 -10px 40px rgba(0,0,0,0.35);
  transform: translateY(100%); transition: transform 0.45s cubic-bezier(0.4,0,0.2,1);
}
#cookieConsent.show { transform: translateY(0); }
.cookie-container { max-width: var(--container); margin: 0 auto; display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; }
.cookie-text { flex: 1; min-width: 280px; }
.cookie-text h3 { font-size: 1.25rem; margin-bottom: 0.4rem; color: var(--text-light); }
.cookie-text p { font-size: 0.92rem; color: var(--text-light-muted); margin-bottom: 0.4rem; }
.cookie-text a { color: var(--gold-soft); }
.cookie-buttons { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.cookie-btn { padding: 0.75rem 1.4rem; border: none; border-radius: var(--radius-s); font-weight: 600; font-size: 0.92rem; }
.cookie-btn-accept { background: var(--gold); color: var(--ink); }
.cookie-btn-accept:hover { background: var(--gold-soft); }
.cookie-btn-refuse { background: transparent; color: var(--text-light); border: 2px solid rgba(242,236,221,0.3); }
.cookie-btn-refuse:hover { border-color: rgba(242,236,221,0.55); }
.cookie-btn-customize { background: transparent; color: var(--gold-soft); border: 2px solid var(--gold-dim); }
.cookie-btn-customize:hover { background: rgba(201,162,39,0.12); }

#cookieModal { display: none; position: fixed; inset: 0; background: rgba(10,13,20,0.82); z-index: 10001; padding: 2rem; overflow-y: auto; }
#cookieModal.show { display: flex; align-items: center; justify-content: center; }
.modal-content { background: var(--marble); border-radius: var(--radius-l); max-width: 640px; width: 100%; padding: 2.4rem; box-shadow: 0 25px 70px rgba(0,0,0,0.4); animation: slideIn 0.3s ease; }
@keyframes slideIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.6rem; padding-bottom: 1rem; border-bottom: 2px solid var(--marble-line); }
.modal-header h2 { font-size: 1.5rem; color: var(--ink); }
.modal-close { background: none; border: none; font-size: 1.8rem; color: var(--text-muted); width: 34px; height: 34px; border-radius: 50%; }
.modal-close:hover { background: var(--marble-deep); color: var(--ink); }
.cookie-category { background: var(--marble-deep); border: 2px solid var(--marble-line); border-radius: var(--radius-m); padding: 1.3rem 1.4rem; margin-bottom: 1.1rem; }
.category-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.6rem; gap: 1rem; }
.category-header h3 { font-family: var(--font-body); font-size: 1.02rem; color: var(--ink); font-weight: 700; }
.category-description { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 0.4rem; }
.category-examples { font-size: 0.8rem; color: var(--text-muted); font-style: italic; opacity: 0.85; }
.required-badge { display: inline-block; background: var(--success); color: #fff; padding: 0.15rem 0.6rem; border-radius: 999px; font-size: 0.7rem; font-weight: 700; margin-left: 0.5rem; }
.toggle-switch { position: relative; display: inline-block; width: 48px; height: 26px; flex: none; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider { position: absolute; inset: 0; background: #cbd5c8; border-radius: 26px; transition: 0.25s; cursor: pointer; }
.toggle-slider::before { content: ""; position: absolute; height: 18px; width: 18px; left: 4px; bottom: 4px; background: #fff; border-radius: 50%; transition: 0.25s; }
input:checked + .toggle-slider { background: var(--gold); }
input:checked + .toggle-slider::before { transform: translateX(22px); }
input:disabled + .toggle-slider { opacity: 0.6; cursor: not-allowed; }
.modal-footer { display: flex; gap: 0.9rem; margin-top: 1.6rem; justify-content: flex-end; flex-wrap: wrap; }
.modal-footer .cookie-btn-refuse { background: #fff; color: var(--ink); border: 2px solid var(--marble-line); }

/* --------------------------------------------------- 12b. Scroll reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ------------------------------------------------------- 13. Responsive */
@media (max-width: 900px) {
  .intro-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact-wrap { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (max-width: 768px) {
  section { padding: 4.5rem 0; }
  .hero { padding-top: 7rem; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { justify-content: center; }
  .milestone-spine { flex-wrap: wrap; gap: 1.5rem 0; }
  .milestone { flex: 1 1 45%; }
  .milestone-spine::before { display: none; }
  .mobile-menu-btn { display: block; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: flex-start;
    background: rgba(19,25,35,0.98); padding: 1.4rem 1.75rem; gap: 1.1rem; box-shadow: 0 12px 30px rgba(0,0,0,0.35);
  }
  .nav-links.active { display: flex; }
  .nav-lang { margin-left: 0; margin-top: 0.4rem; }
  .footer-top { flex-direction: column; }
  .contact-form { padding: 1.7rem; }
}
