/* ============================================================
   CFDT DOAG — Section Orange Antilles Guyane
   Feuille de style du site indépendant.
   Fondations (couleurs + typographie) reprises telles quelles
   du design system : Charte graphique CFDT (éd. 2013 enrichie).
   ============================================================ */

/* ----------  FONTS (réelles, fournies par la CFDT)  --------- */
@font-face {
  font-family: "Gotham";
  src: url("../fonts/Gotham-Light.otf") format("opentype");
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Gotham Condensed";
  src: url("../fonts/GothamCondensed-Medium.otf") format("opentype");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Gotham Condensed";
  src: url("../fonts/GothamCondensed-Light.otf") format("opentype");
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Ponctuation CFDT";
  src: url("../fonts/PonctuationCFDT.ttf") format("truetype");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Gotham Narrow";
  src: url("../fonts/GothamNarrow-Bold.otf") format("opentype");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Gotham Narrow";
  src: url("../fonts/GothamNarrow-BoldItalic.otf") format("opentype");
  font-weight: 700; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Gotham Narrow";
  src: url("../fonts/GothamNarrow-Black.otf") format("opentype");
  font-weight: 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Gotham Narrow";
  src: url("../fonts/GothamNarrow-BlackItalic.otf") format("opentype");
  font-weight: 900; font-style: italic; font-display: swap;
}

:root {
  /* ----------  PRIMARY COLORS  ------------------------------ */
  --cfdt-orange:        #E7591C; /* Pantone 166 · THE brand color */
  --cfdt-orange-ink:    #C8430D; /* darker orange — text-on-light & press */
  --cfdt-noir:          #555554; /* Pantone Black 7 (warm 80% black) */
  --cfdt-true-black:    #1A1A18;
  --cfdt-blanc:         #FFFFFF;

  /* ----------  ACCOMPANYING (secondary only) --------------- */
  --acc-teal:           #00455E; /* Pantone 3035C */
  --acc-indigo:         #474090; /* Pantone 2746C */
  --acc-maroon:         #6B3A3F; /* Pantone 7630C */
  --acc-amber:          #F6A924;
  --acc-peach:          #FBD6B9;

  /* ----------  SEMANTIC SURFACE / INK  ---------------------- */
  --bg:                 #FFFFFF;
  --bg-orange:          var(--cfdt-orange);
  --bg-soft:            #FBF6F2; /* barely-warm paper */
  --fg1:                #2A2A28;
  --fg2:                #555554;
  --fg3:                #8C8A86;
  --on-orange:          #FFFFFF;
  --line:               #E7E2DC;
  --line-strong:        #CFC9C2;

  /* ----------  TYPE FAMILIES  ------------------------------- */
  --font-display:  "Gotham Narrow", "Gotham", system-ui, sans-serif;
  --font-sans:     "Gotham", "Gotham Narrow", system-ui, sans-serif;
  --font-condensed:"Gotham Condensed", "Oswald", system-ui, sans-serif;
  --font-accent:   "Ponctuation CFDT", sans-serif;

  /* ----------  TYPE SCALE  ---------------------------------- */
  --step-h1:       clamp(2.25rem, 4vw, 3.5rem);
  --step-h2:       clamp(1.75rem, 2.6vw, 2.5rem);
  --step-h3:       1.5rem;
  --step-body:     1.0625rem;
  --step-small:    0.9375rem;
  --step-caption:  0.8125rem;

  /* ----------  RADII  --------------------------------------- */
  --r-xs: 4px; --r-sm: 8px; --r-md: 12px; --r-lg: 20px; --r-pill: 999px;

  /* ----------  SPACING (8pt base) --------------------------- */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px;
  --sp-5: 24px; --sp-6: 32px; --sp-7: 48px; --sp-8: 64px; --sp-9: 96px;

  /* ----------  ELEVATION  ----------------------------------- */
  --shadow-sm: 0 1px 2px rgba(42,42,40,.06), 0 1px 3px rgba(42,42,40,.10);
  --shadow-md: 0 4px 12px rgba(42,42,40,.08), 0 2px 4px rgba(42,42,40,.06);
  --shadow-lg: 0 12px 32px rgba(42,42,40,.12), 0 4px 8px rgba(42,42,40,.06);
  --shadow-orange: 0 8px 24px rgba(231,89,28,.28);

  /* ----------  MOTION  -------------------------------------- */
  --ease: cubic-bezier(.22,.61,.36,1);
  --dur: 180ms;

  --maxw: 1180px;
}

/* ----------  RESET / BASE  ---------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { -webkit-font-smoothing: antialiased; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: var(--step-body);
  line-height: 1.6;
  color: var(--fg2);
}
img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3 { margin: 0; color: var(--fg1); text-transform: uppercase; }
h1 { font-family: var(--font-display); font-weight: 900; font-size: var(--step-h1);
     line-height: 1.02; letter-spacing: -.005em; text-wrap: balance; }
h2 { font-family: var(--font-display); font-weight: 700; font-size: var(--step-h2); line-height: 1.08; }
h3 { font-family: var(--font-display); font-weight: 700; font-size: var(--step-h3); line-height: 1.2; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--sp-6); }

/* Eyebrow / label — condensed caps */
.label {
  font-family: var(--font-condensed); font-weight: 500; text-transform: uppercase;
  letter-spacing: .06em; color: var(--cfdt-orange);
}

/* ----------  BUTTONS  --------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-family: var(--font-condensed); font-weight: 500; text-transform: uppercase;
  letter-spacing: .05em; font-size: var(--step-small); text-decoration: none;
  border: none; border-radius: var(--r-pill); padding: 13px 26px;
  cursor: pointer; transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.btn svg { width: 16px; height: 16px; }
.btn-primary { color: #fff; background: var(--cfdt-orange); box-shadow: var(--shadow-orange); }
.btn-primary:hover { background: var(--cfdt-orange-ink); }
.btn-primary:active { transform: translateY(1px); }
.btn-outline {
  color: var(--cfdt-orange); background: transparent; border: 2px solid var(--cfdt-orange);
  padding: 11px 24px;
}
.btn-outline:hover { background: var(--cfdt-orange); color: #fff; }
.btn-ghost {
  font-family: var(--font-condensed); font-weight: 500; text-transform: uppercase;
  letter-spacing: .05em; font-size: var(--step-small); color: var(--cfdt-orange);
  background: #fff; border: 1.5px solid var(--line-strong); border-radius: var(--r-pill);
  padding: 11px 26px; cursor: pointer; transition: border-color var(--dur) var(--ease);
}
.btn-ghost:hover { border-color: var(--cfdt-orange); }

/* ----------  BADGE  ----------------------------------------- */
.badge {
  display: inline-flex; align-items: center;
  font-family: var(--font-condensed); font-weight: 500; text-transform: uppercase;
  letter-spacing: .05em; font-size: 11px; line-height: 1;
  color: #fff; background: var(--cfdt-orange); border-radius: var(--r-pill);
  padding: 5px 10px;
}
.badge.navy { background: var(--acc-teal); }
.badge.outline { background: transparent; color: var(--cfdt-orange); border: 1.5px solid var(--cfdt-orange); }

/* ----------  SECTION SHELL  --------------------------------- */
.section { padding-block: var(--sp-8); }
.section-white { background: var(--bg); }
.section-soft  { background: var(--bg-soft); }
.section-dark  { background: var(--cfdt-true-black); }
.section-head { display: flex; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-6); }
.section-head .bar { width: 6px; height: 30px; background: var(--cfdt-orange); border-radius: var(--r-pill); flex: none; }
.section-dark h2 { color: #fff; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 12px var(--sp-6);
  display: flex; align-items: center; gap: var(--sp-5);
}
.brand { display: flex; align-items: center; gap: var(--sp-3); text-decoration: none; }
.brand img { width: 52px; height: 52px; }
.brand .denom {
  font-family: var(--font-condensed); font-weight: 500; text-transform: uppercase;
  letter-spacing: .04em; font-size: 14px; line-height: 1.05; color: var(--cfdt-orange);
}
.header-spacer { margin-left: auto; }
.header-cta { } /* uses .btn .btn-primary, smaller */
.header-cta.btn { padding: 10px 20px; font-size: 14px; }

/* ============================================================
   HERO
   ============================================================ */
.hero { background: var(--bg-soft); border-bottom: 1px solid var(--line); overflow: hidden; }
.hero-inner {
  max-width: var(--maxw); margin: 0 auto; padding: var(--sp-9) var(--sp-6) var(--sp-8);
  display: grid; grid-template-columns: 1.1fr .9fr; gap: var(--sp-7); align-items: center;
}
.hero-notif {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-family: var(--font-condensed); font-weight: 500; text-transform: uppercase;
  letter-spacing: .04em; font-size: 12px; color: var(--cfdt-orange-ink);
  background: var(--acc-peach); border-radius: var(--r-pill); padding: 6px 14px; margin-bottom: var(--sp-5);
}
.hero-notif svg { width: 14px; height: 14px; }
.hero h1 { font-size: clamp(2.4rem, 4.6vw, 3.6rem); }
.hero h1 em { color: var(--cfdt-orange); font-style: normal; }
.hero-sub { font-size: 1.125rem; color: var(--fg2); margin: var(--sp-5) 0 var(--sp-6); max-width: 38ch; }
.hero-ctas { display: flex; gap: var(--sp-3); flex-wrap: wrap; }
.hero-visual { position: relative; display: flex; flex-direction: column; align-items: center; gap: var(--sp-5); }
.hero-visual .disc { width: 300px; height: 300px; filter: drop-shadow(0 16px 32px rgba(231,89,28,.28)); }
.hero-visual .islands { width: 200px; }
.hero-visual .kilibi {
  position: absolute; top: 0; left: 0; width: 58px; height: auto; z-index: 3;
  pointer-events: none; will-change: transform;
  filter: drop-shadow(0 6px 10px rgba(42,42,40,.25));
}
@media (prefers-reduced-motion: reduce) { .hero-visual .kilibi { transition: none; } }

/* ============================================================
   CANAL D'INFORMATION
   ============================================================ */
.canal-intro {
  display: flex; gap: var(--sp-5); align-items: flex-start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: var(--sp-6); margin-bottom: var(--sp-6); box-shadow: var(--shadow-sm);
}
.canal-intro .icon {
  flex: none; width: 56px; height: 56px; border-radius: var(--r-md);
  background: var(--cfdt-orange); color: #fff; display: flex; align-items: center; justify-content: center;
}
.canal-intro .icon svg { width: 28px; height: 28px; }
.canal-intro h3 { margin-bottom: var(--sp-2); }
.canal-intro p { margin: 0 0 var(--sp-4); color: var(--fg2); max-width: 70ch; }
.chips { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.chip {
  font-family: var(--font-condensed); font-weight: 500; text-transform: uppercase;
  letter-spacing: .04em; font-size: 12px; color: var(--fg2);
  background: var(--bg-soft); border: 1px solid var(--line-strong);
  border-radius: var(--r-pill); padding: 6px 13px;
}

.feed-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); }
.post-card {
  display: flex; flex-direction: column; background: #fff;
  border-radius: var(--r-lg); box-shadow: var(--shadow-md); overflow: hidden;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.post-img { width: 100%; aspect-ratio: 16/10; object-fit: cover; background: var(--bg-soft); }
.post-img-ph {
  width: 100%; aspect-ratio: 16/10; background: var(--bg-soft);
  display: flex; align-items: center; justify-content: center; color: var(--cfdt-orange);
}
.post-img-ph svg { width: 40px; height: 40px; opacity: .35; }
/* Carrousel d'images dans un post (style Instagram) */
.post-carousel { position: relative; width: 100%; --swiper-theme-color: #fff; }
.post-carousel .swiper-slide { aspect-ratio: 16/10; }
.post-carousel .post-img { height: 100%; }
.post-carousel .swiper-pagination { position: absolute; bottom: 8px; }
.post-carousel .swiper-pagination-bullet { background: #fff; opacity: .5; box-shadow: 0 0 3px rgba(0,0,0,.4); }
.post-carousel .swiper-pagination-bullet-active { opacity: 1; }
.post-body { padding: var(--sp-4) var(--sp-5) var(--sp-5); display: flex; flex-direction: column; flex: 1; }
.post-meta { display: flex; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-3); }
.post-date {
  font-family: var(--font-condensed); font-weight: 500; text-transform: uppercase;
  letter-spacing: .04em; font-size: 12px; color: var(--fg3);
}
.post-text { margin: 0; font-size: var(--step-small); line-height: 1.55; color: var(--fg2); }
.post-title { margin: 0 0 var(--sp-2); font-size: 1.0625rem; line-height: 1.12; }
.post-link {
  margin-top: auto; padding-top: var(--sp-4);
  font-family: var(--font-condensed); font-weight: 500; text-transform: uppercase;
  letter-spacing: .04em; font-size: 12px; color: var(--cfdt-orange); text-decoration: none;
}
.post-link:hover { color: var(--cfdt-orange-ink); }
.load-more { display: flex; justify-content: center; margin-top: var(--sp-6); }
.feed-empty { text-align: center; color: var(--fg3); padding: var(--sp-7) 0; grid-column: 1 / -1; }

/* ============================================================
   APPLICATION MOBILE
   ============================================================ */
.app-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-8); align-items: center; }
.section-dark .app-text p { color: rgba(255,255,255,.8); }
.app-features { list-style: none; padding: 0; margin: var(--sp-5) 0 var(--sp-6); display: grid; gap: var(--sp-3); }
.app-features li {
  position: relative; padding-left: 28px; color: rgba(255,255,255,.88); font-size: var(--step-small);
}
.app-features li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 18px; height: 18px;
  background: var(--cfdt-orange); border-radius: 50%;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/12px no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/12px no-repeat;
}
.store-btns { display: flex; gap: var(--sp-3); flex-wrap: wrap; }
.store-btn {
  display: inline-flex; align-items: center; gap: var(--sp-3); text-decoration: none;
  background: #fff; color: var(--fg1); border-radius: var(--r-md); padding: 10px 18px;
  box-shadow: var(--shadow-md); transition: transform var(--dur) var(--ease);
}
.store-btn:hover { transform: translateY(-2px); }
.store-btn img { width: 26px; height: 26px; object-fit: contain; }
.store-btn-text { display: flex; flex-direction: column; line-height: 1.15; }
.store-btn-text small { font-family: var(--font-condensed); text-transform: uppercase; letter-spacing: .04em; font-size: 10px; color: var(--fg3); }
.store-btn-text { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: 15px; }

.app-visual { position: relative; display: flex; justify-content: center; align-items: center; min-height: 380px; }
.app-phone {
  border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-lg);
  border: 4px solid #2a2a28; background: #2a2a28;
}
.app-phone img { width: 157px; height: 340px; object-fit: cover; }
.app-phone.side { position: absolute; opacity: .9; }
.app-phone.side.left  { transform: rotate(-5deg) translate(-115px, 18px); }
.app-phone.side.right { transform: rotate(5deg) translate(115px, 18px); }
.app-phone.main { position: relative; z-index: 2; }

/* ============================================================
   TRACTS & DOCUMENTS (Swiper)
   ============================================================ */
.tracts-intro {
  display: flex; gap: var(--sp-5); align-items: flex-start; margin-bottom: var(--sp-6);
}
.tracts-intro .icon {
  flex: none; width: 56px; height: 56px; border-radius: var(--r-md);
  background: var(--cfdt-orange); color: #fff; display: flex; align-items: center; justify-content: center;
}
.tracts-intro .icon svg { width: 28px; height: 28px; }
.tracts-intro h3 { margin-bottom: var(--sp-2); }
.tracts-intro p { margin: 0 0 var(--sp-4); max-width: 70ch; }

.swiper-wrap { position: relative; }
.swiper-nav {
  position: absolute; top: 38%; z-index: 10; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-strong);
  background: #fff; color: var(--cfdt-orange); cursor: pointer; box-shadow: var(--shadow-sm);
  display: flex; align-items: center; justify-content: center;
}
.swiper-nav:hover { background: var(--cfdt-orange); color: #fff; border-color: var(--cfdt-orange); }
.swiper-nav.prev { left: -8px; }
.swiper-nav.next { right: -8px; }
.swiper-nav svg { width: 16px; height: 16px; }

.tract-card {
  background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-md);
  overflow: hidden; cursor: pointer; display: flex; flex-direction: column; height: 100%;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.tract-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.tract-thumb { position: relative; aspect-ratio: 3/4; background: var(--bg-soft); overflow: hidden; }
.tract-thumb img { width: 100%; height: 100%; object-fit: cover; }
.tract-thumb-fallback {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
}
.tract-thumb-fallback .pdf-card {
  width: 54px; height: 70px; background: rgba(255,255,255,.16); border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 12px; letter-spacing: .1em; color: rgba(255,255,255,.9);
}
.tract-thumb-overlay {
  position: absolute; inset: 0; background: rgba(26,26,24,.35);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity var(--dur) var(--ease);
}
.tract-card:hover .tract-thumb-overlay { opacity: 1; }
.preview-pill {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-family: var(--font-condensed); font-weight: 500; text-transform: uppercase; letter-spacing: .04em;
  font-size: 12px; color: var(--cfdt-orange); background: #fff; border-radius: var(--r-pill); padding: 8px 16px;
}
.preview-pill svg { width: 14px; height: 14px; }
.tract-info { padding: var(--sp-4) var(--sp-4) var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-2); flex: 1; }
.tract-title { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: 15px; line-height: 1.12; color: var(--fg1); }
.tract-meta { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); }
.tract-date { font-family: var(--font-condensed); font-weight: 500; text-transform: uppercase; letter-spacing: .04em; font-size: 12px; color: var(--fg3); }
.dl-btn {
  margin-top: auto; display: inline-flex; align-items: center; gap: 6px; text-decoration: none;
  font-family: var(--font-condensed); font-weight: 500; text-transform: uppercase; letter-spacing: .04em;
  font-size: 11px; color: var(--cfdt-orange);
}
.dl-btn svg { width: 12px; height: 12px; }
.swiper-pagination { position: static; margin-top: var(--sp-5); }
.tracts-swiper { --swiper-theme-color: var(--cfdt-orange); padding-bottom: 4px; }

/* ============================================================
   RÉSEAUX SOCIAUX
   ============================================================ */
.social-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--sp-5); }
.social-item {
  display: flex; flex-direction: column; align-items: center; gap: var(--sp-3);
  text-decoration: none; color: rgba(255,255,255,.8);
}
.social-icon {
  width: 64px; height: 64px; border-radius: 50%; background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14); display: flex; align-items: center; justify-content: center;
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease);
}
.social-item:hover .social-icon { transform: translateY(-3px); background: rgba(255,255,255,.14); }
.social-icon.white-bg { background: #fff; border-color: #fff; }
.social-item:hover .social-icon.white-bg { background: #fff; }
.social-icon img { width: 30px; height: 30px; object-fit: contain; }
.social-name {
  font-family: var(--font-condensed); font-weight: 500; text-transform: uppercase;
  letter-spacing: .04em; font-size: 12px; color: rgba(255,255,255,.7);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--cfdt-true-black); color: #fff; padding: var(--sp-7) 0 var(--sp-5); }
.footer-inner {
  max-width: var(--maxw); margin: 0 auto; padding-inline: var(--sp-6);
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-5); flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: var(--sp-3); }
.footer-brand img { width: 52px; height: 52px; }
.footer-brand .denom { font-family: var(--font-condensed); font-weight: 500; text-transform: uppercase; letter-spacing: .04em; font-size: 14px; color: var(--cfdt-orange); line-height: 1.1; }
.footer-brand .sig { font-family: var(--font-condensed); font-weight: 500; text-transform: uppercase; letter-spacing: .03em; font-size: 12px; color: rgba(255,255,255,.6); margin-top: 4px; }
.adhesion-link { display: inline-flex; }
.footer-base {
  max-width: var(--maxw); margin: var(--sp-6) auto 0; padding: var(--sp-4) var(--sp-6) 0;
  border-top: 1px solid rgba(255,255,255,.14);
  display: flex; justify-content: space-between; align-items: center; gap: var(--sp-3); flex-wrap: wrap;
}
.footer-web { font-family: var(--font-condensed); font-weight: 500; text-transform: uppercase; letter-spacing: .06em; font-size: 14px; color: var(--cfdt-orange); text-decoration: none; }
.footer-legal { font-size: 12px; color: rgba(255,255,255,.5); }

/* ============================================================
   PDF MODAL
   ============================================================ */
.modal-back {
  position: fixed; inset: 0; z-index: 100; background: rgba(26,26,24,.6);
  display: none; align-items: center; justify-content: center; padding: var(--sp-5);
}
.modal-back.open { display: flex; }
.modal {
  background: #fff; border-radius: var(--r-lg); width: min(880px, 100%); height: min(90vh, 1000px);
  display: flex; flex-direction: column; overflow: hidden; box-shadow: var(--shadow-lg);
}
.modal-head { display: flex; align-items: center; gap: var(--sp-4); padding: var(--sp-4) var(--sp-5); border-bottom: 1px solid var(--line); }
.modal-title { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: 15px; color: var(--fg1); flex: 1; }
.modal-actions { display: flex; align-items: center; gap: var(--sp-3); }
.modal-dl {
  display: inline-flex; align-items: center; gap: 6px; text-decoration: none;
  font-family: var(--font-condensed); font-weight: 500; text-transform: uppercase; letter-spacing: .04em;
  font-size: 12px; color: #fff; background: var(--cfdt-orange); border-radius: var(--r-pill); padding: 8px 16px;
}
.modal-dl svg { width: 13px; height: 13px; }
.modal-close { border: none; background: var(--bg-soft); color: var(--fg2); width: 32px; height: 32px; border-radius: 50%; cursor: pointer; font-size: 16px; }
.modal-close:hover { background: var(--line); }
.modal-body { flex: 1; }
.modal-body iframe { width: 100%; height: 100%; border: 0; }

/* ============================================================
   ADHÉSION MODAL
   ============================================================ */
.adh-card {
  position: relative; background: #fff; border-radius: var(--r-lg);
  width: min(480px, 100%); max-height: 92vh; overflow-y: auto;
  padding: var(--sp-7) var(--sp-6) var(--sp-6); box-shadow: var(--shadow-lg);
}
.adh-x { position: absolute; top: 14px; right: 14px; }
.adh-head { text-align: center; margin-bottom: var(--sp-4); }
.adh-roundel { width: 56px; height: 56px; margin: 0 auto var(--sp-3); }
.adh-head .label { display: block; margin-bottom: 4px; font-size: 12px; }
.adh-head h3 { font-size: 1.6rem; }
.adh-msg { font-size: var(--step-small); line-height: 1.55; color: var(--fg2); text-align: center; margin: 0 0 var(--sp-5); }
.adh-label { display: block; font-family: var(--font-condensed); font-weight: 500; text-transform: uppercase; letter-spacing: .05em; font-size: 12px; color: var(--fg2); margin: 0 0 var(--sp-2); }
.adh-opt { color: var(--fg3); text-transform: none; letter-spacing: 0; }
.adh-deps { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-bottom: var(--sp-5); }
.adh-dep {
  font-family: var(--font-condensed); font-weight: 500; text-transform: uppercase; letter-spacing: .04em;
  font-size: 13px; color: var(--fg2); background: #fff; border: 1.5px solid var(--line-strong);
  border-radius: var(--r-pill); padding: 9px 16px; cursor: pointer;
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.adh-dep:hover { border-color: var(--cfdt-orange); color: var(--cfdt-orange); }
.adh-dep.on { color: #fff; background: var(--cfdt-orange); border-color: var(--cfdt-orange); }
.adh-input {
  width: 100%; box-sizing: border-box; font-family: var(--font-sans); font-size: 15px; color: var(--fg1);
  padding: 12px 14px; border: 1.5px solid var(--line-strong); border-radius: var(--r-sm);
  background: #fff; outline: none; margin-bottom: var(--sp-5); transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.adh-input:focus { border-color: var(--cfdt-orange); box-shadow: 0 0 0 3px rgba(231,89,28,.14); }
.adh-send { width: 100%; justify-content: center; }
.adh-note { font-size: 12px; color: var(--fg3); text-align: center; line-height: 1.5; margin: var(--sp-3) 0 0; }
.adh-bulletin {
  display: block; text-align: center; margin-top: var(--sp-3);
  font-family: var(--font-condensed); font-weight: 500; text-transform: uppercase; letter-spacing: .04em;
  font-size: 12px; color: var(--cfdt-orange); text-decoration: none;
}
.adh-bulletin:hover { color: var(--cfdt-orange-ink); }

/* ============================================================
   TOAST
   ============================================================ */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px);
  z-index: 120; background: var(--cfdt-true-black); color: #fff; padding: 12px 22px;
  border-radius: var(--r-pill); font-family: var(--font-condensed); font-weight: 500;
  letter-spacing: .02em; font-size: 14px; box-shadow: var(--shadow-lg);
  opacity: 0; pointer-events: none; transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============================================================
   PWA SLIDE-IN
   ============================================================ */
.pwa-prompt {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 110; max-width: 420px;
  margin-inline: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg); padding: var(--sp-4) var(--sp-5);
  display: none; align-items: flex-start; gap: var(--sp-3);
  transform: translateY(24px); opacity: 0; transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.pwa-prompt.show { display: flex; opacity: 1; transform: translateY(0); }
.pwa-icon { flex: none; width: 40px; height: 40px; border-radius: var(--r-md); background: var(--acc-peach); display: flex; align-items: center; justify-content: center; color: var(--cfdt-orange-ink); }
.pwa-icon svg { width: 22px; height: 22px; }
.pwa-content strong { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: 14px; color: var(--fg1); }
.pwa-content p { margin: 4px 0 0; font-size: 13px; color: var(--fg2); }
.pwa-steps { margin-top: var(--sp-2); font-size: 13px; color: var(--fg2); }
.pwa-close { border: none; background: none; color: var(--fg3); font-size: 16px; cursor: pointer; padding: 2px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: var(--sp-6); }
  .hero-visual { order: -1; }
  .hero-visual .disc { width: 220px; height: 220px; }
  .feed-grid { grid-template-columns: repeat(2, 1fr); }
  .app-grid { grid-template-columns: 1fr; gap: var(--sp-6); }
  .app-visual { min-height: 360px; }
  .social-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .header-inner { gap: var(--sp-3); }
  .brand .denom { font-size: 12px; }
  .feed-grid { grid-template-columns: 1fr; }
  .canal-intro, .tracts-intro { flex-direction: column; }
  .social-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-base { justify-content: center; text-align: center; }
}
