/* ============================================================
   TAWASOL — Feuille de style principale
   Plateforme médiatique numérique
   Palette inspirée du logo : sarcelle profond, terracotta, camel, or
   ============================================================ */

:root {
  /* Couleurs */
  --teal:          #1E4A44;
  --teal-deep:     #143430;
  --teal-soft:     #2E5E57;
  --terracotta:    #BC5C3A;
  --terracotta-2:  #CE7355;
  --camel:         #C2A47C;
  --gold:          #BF9A4E;
  --cream:         #FAF6EF;
  --cream-deep:    #F1E8DA;
  --paper:         #FFFFFF;
  --ink:           #221E1A;
  --ink-soft:      #5C5349;
  --line:          #E6DBC9;

  /* Typographie */
  --font-display: 'Fraunces', 'Playfair Display', Georgia, serif;
  --font-body:    'Mulish', system-ui, -apple-system, sans-serif;
  --font-arabic:  'Noto Kufi Arabic', 'Mulish', sans-serif;

  /* Mesures */
  --maxw: 1180px;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 18px 50px -24px rgba(20,52,48,.45);
  --shadow-sm: 0 8px 24px -16px rgba(20,52,48,.5);
}

/* ---------- Reset ---------- */
*,*::before,*::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background-color: var(--cream);
  background-image:
    radial-gradient(circle at 18% -10%, rgba(194,164,124,.16), transparent 42%),
    radial-gradient(circle at 100% 0%, rgba(188,92,58,.08), transparent 38%);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; padding: 0; }

/* Grain de papier subtil */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 1;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Typographie générale ---------- */
h1,h2,h3,h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; color: var(--teal-deep); letter-spacing: 0; }
h1 { font-size: 3.2rem; }
h2 { font-size: 2.3rem; }
h3 { font-size: 1.45rem; }
p { color: var(--ink-soft); }
strong { color: var(--ink); }
.arabic { font-family: var(--font-arabic); direction: rtl; }
body.is-rtl { font-family: var(--font-arabic); }
body.is-rtl h1,
body.is-rtl h2,
body.is-rtl h3,
body.is-rtl h4 { font-family: var(--font-arabic); }
body.is-rtl .eyebrow,
body.is-rtl .tag,
body.is-rtl .cat-badge,
body.is-rtl .footer-col h4 { letter-spacing: 0; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; position: relative; z-index: 2; }

/* Étiquette de section / sur-titre */
.eyebrow {
  font-family: var(--font-body);
  font-weight: 800; font-size: .74rem; letter-spacing: 0; text-transform: uppercase;
  color: var(--terracotta); display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content:""; width: 26px; height: 2px; background: var(--terracotta); display:inline-block; }

/* Pastille catégorie (rappel des "points" du logo) */
.tag {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .72rem; font-weight: 800; letter-spacing: 0; text-transform: uppercase;
  color: var(--teal); 
}
.tag::before { content:""; width: 7px; height: 7px; border-radius: 50%; background: var(--terracotta); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 26px; border-radius: 100px; font-weight: 800; font-size: .95rem;
  transition: transform .25s ease, box-shadow .25s ease, background .25s;
  white-space: nowrap;
}
.btn-primary { background: var(--terracotta); color: #fff; box-shadow: 0 10px 24px -12px rgba(188,92,58,.8); }
.btn-primary:hover { transform: translateY(-2px); background: #a94e30; }
.btn-ghost { background: transparent; color: var(--teal-deep); border: 1.5px solid var(--teal); }
.btn-ghost:hover { background: var(--teal); color: #fff; transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--teal-deep); }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn .arrow { transition: transform .25s; }
.btn:hover .arrow { transform: translateX(4px); }
body.is-rtl .btn:hover .arrow { transform: translateX(-4px); }

/* ============================================================
   EN-TÊTE / NAVIGATION
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250,246,239,.85);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 12px 24px; max-width: 1320px; margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 46px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav-links a {
  padding: 9px 13px; border-radius: 100px; font-weight: 700; font-size: .92rem;
  color: var(--teal-deep); transition: background .2s, color .2s; position: relative;
}
.nav-links a:hover { background: var(--cream-deep); }
.nav-links a.active { color: var(--terracotta); }
.nav-cta, .nav-links a.nav-cta.active { color: #fff; }
.nav-cta { margin-left: 6px; }
.nav-cta:hover { background: #a94e30; }
.nav-toggle { display: none; font-size: 1.6rem; color: var(--teal-deep); padding: 6px 10px; }
.language-switch {
  display: inline-flex; align-items: center; gap: 2px; padding: 3px;
  border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.58);
  margin-left: 8px;
}
.lang-btn {
  min-width: 38px; padding: 6px 9px; border-radius: 999px;
  color: var(--teal-deep); font-size: .78rem; font-weight: 900;
}
.lang-btn.active { background: var(--teal); color: #fff; }
body.is-rtl .nav-cta,
body.is-rtl .language-switch { margin-left: 0; margin-right: 8px; }

@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; inset: 0 0 0 auto; width: min(320px, 84vw);
    background: var(--cream); flex-direction: column; align-items: stretch;
    padding: 90px 22px 30px; gap: 6px; transform: translateX(110%);
    transition: transform .35s cubic-bezier(.4,0,.2,1); box-shadow: var(--shadow);
    border-left: 1px solid var(--line); z-index: 60; overflow-y: auto;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { padding: 13px 16px; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-cta { margin: 12px 0 0; }
  .language-switch { margin: 12px 0 0; align-self: flex-start; }
  body.is-rtl .nav-links {
    inset: 0 auto 0 0; transform: translateX(-110%);
    border-left: 0; border-right: 1px solid var(--line);
  }
  body.is-rtl .nav-links.open { transform: translateX(0); }
}

/* ============================================================
   HÉRO (page d'accueil)
   ============================================================ */
.hero { padding: clamp(48px, 8vw, 92px) 0 60px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero-titre { font-size: 4rem; line-height: 1.04; margin-bottom: 22px; }
.hero-titre .accent { color: var(--terracotta); font-style: italic; }
.hero p.lead { font-size: 1.18rem; max-width: 46ch; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-figure {
  position: relative; border-radius: 22px; overflow: hidden;
  aspect-ratio: 4/5; box-shadow: var(--shadow);
  background: linear-gradient(150deg, var(--teal) 0%, var(--teal-deep) 100%);
}
.hero-figure.has-image {
  aspect-ratio: auto;
  background: transparent;
}
.hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 22px;
}
.hero-figure .deco-dots { position: absolute; inset: 0; }
.hero-badge {
  position: absolute; bottom: 18px; left: 18px; right: 18px;
  background: rgba(255,255,255,.94); border-radius: 14px; padding: 16px 18px;
  backdrop-filter: blur(4px);
}
.hero-badge .tag { margin-bottom: 6px; }
.hero-badge h3 { font-size: 1.15rem; }

/* Apparition au chargement */
.reveal { opacity: 0; transform: translateY(22px); animation: rise .8s cubic-bezier(.2,.7,.2,1) forwards; }
.reveal.d1 { animation-delay: .08s; } .reveal.d2 { animation-delay: .18s; }
.reveal.d3 { animation-delay: .28s; } .reveal.d4 { animation-delay: .4s; }
@keyframes rise { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .reveal { animation: none; opacity: 1; transform: none; } }

/* ============================================================
   SECTIONS
   ============================================================ */
section.block { padding: clamp(46px, 6vw, 76px) 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 34px; flex-wrap: wrap; }
.section-head .titles h2 { margin-top: 8px; }
.section-link { font-weight: 800; color: var(--terracotta); display: inline-flex; gap: 8px; align-items: center; }
.section-link:hover { gap: 12px; }

/* ---------- Grilles de cartes ---------- */
.grid { display: grid; gap: 28px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px){ .grid-3 { grid-template-columns: repeat(2,1fr);} }
@media (max-width: 620px){ .grid-3,.grid-2 { grid-template-columns: 1fr;} .hero-grid{ grid-template-columns: 1fr; } .hero-figure{ aspect-ratio: 16/12;} }

/* Carte de contenu */
.card {
  background: var(--paper); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); display: flex; flex-direction: column;
  transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s;
  height: 100%;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card .cover { aspect-ratio: 16/10; overflow: hidden; position: relative; background: var(--cream-deep); }
.card .cover img, .card .cover svg { width: 100%; height: 100%; object-fit: cover; display:block; transition: transform .5s; }
.card .cover img.cover-contain,
.feature .cover img.cover-contain,
.article-hero-cover .frame img.cover-contain { object-fit: contain; background: var(--cream); }
.card:hover .cover img { transform: scale(1.05); }
.card .cover .cat-badge {
  position: absolute; top: 12px; left: 12px; background: rgba(255,255,255,.94);
  padding: 5px 12px; border-radius: 100px; font-size: .68rem; font-weight: 800;
  letter-spacing: 0; text-transform: uppercase; color: var(--teal-deep);
}
body.is-rtl .card .cover .cat-badge { left: auto; right: 12px; }
.card .body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card .body h3 { font-size: 1.28rem; line-height: 1.18; }
.card:hover .body h3 { color: var(--terracotta); }
.card .chapo { font-size: .96rem; color: var(--ink-soft); flex: 1; }
.card .meta { font-size: .8rem; color: var(--ink-soft); display: flex; gap: 8px; align-items: center; margin-top: auto; padding-top: 6px; }
.card .meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--camel); }

/* Carte "à la une" (large) */
.feature {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 0;
  background: var(--paper); border-radius: 20px; overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.feature .cover { min-height: 340px; position: relative; }
.feature .cover img, .feature .cover svg { width: 100%; height: 100%; object-fit: cover; }
.feature .body { padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.feature .body h2 { font-size: 2.3rem; }
.feature .body p { font-size: 1.05rem; }
@media (max-width: 760px){ .feature { grid-template-columns: 1fr; } .feature .cover{ min-height: 230px;} }

/* ---------- Bloc média optionnel ---------- */
.listen-block { background: var(--teal-deep); color: #fff; border-radius: 24px; overflow: hidden; position: relative; }
.listen-inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; padding: clamp(30px,5vw,56px); align-items: center; }
.listen-block h2 { color: #fff; }
.listen-block p { color: rgba(255,255,255,.78); }
.listen-block .eyebrow { color: var(--camel); }
.listen-block .eyebrow::before { background: var(--camel); }
.player {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.15);
  border-radius: 16px; padding: 22px;
}
.player .ep-tag { color: var(--gold); font-weight: 800; font-size: .8rem; letter-spacing: 0; text-transform: uppercase; }
.player h3 { color: #fff; font-size: 1.35rem; margin: 8px 0 14px; }
.player audio { width: 100%; margin-top: 6px; filter: saturate(0); }
.listen-block .deco-dots { position: absolute; right: -40px; top: -40px; opacity: .25; }
@media (max-width: 760px){ .listen-inner { grid-template-columns: 1fr; gap: 26px; } }

/* ---------- Section "Comprendre" / valeurs ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
@media (max-width: 860px){ .tiles { grid-template-columns: repeat(2,1fr);} }
@media (max-width: 480px){ .tiles { grid-template-columns: 1fr;} }
.tile {
  display: block; color: inherit;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px; transition: transform .3s, border-color .3s;
}
.tile:hover { transform: translateY(-4px); border-color: var(--camel); }
.tile .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--cream-deep); margin-bottom: 14px; color: var(--terracotta); }
.tile h3 { font-size: 1.15rem; margin-bottom: 6px; }
.tile p { font-size: .92rem; }

/* ---------- Bandeau CTA témoignage ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--terracotta) 0%, #a94e30 100%);
  color: #fff; border-radius: 24px; padding: clamp(34px,5vw,60px);
  text-align: center; position: relative; overflow: hidden;
}
.cta-band h2 { color: #fff; max-width: 18ch; margin: 0 auto 14px; }
.cta-band p { color: rgba(255,255,255,.9); max-width: 52ch; margin: 0 auto 26px; }

/* ============================================================
   PAGES DE LISTE
   ============================================================ */
.page-head { padding: clamp(46px,7vw,80px) 0 30px; position: relative; }
.page-head h1 { margin: 12px 0 14px; }
.page-head p { max-width: 60ch; font-size: 1.1rem; }
.page-head .breadcrumb { font-size: .85rem; color: var(--ink-soft); margin-bottom: 6px; }
.page-head .breadcrumb a:hover { color: var(--terracotta); }

/* Filtres */
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin: 8px 0 36px; }
.filter-btn {
  padding: 8px 16px; border-radius: 100px; font-weight: 700; font-size: .85rem;
  border: 1px solid var(--line); color: var(--ink-soft); background: var(--paper); transition: all .2s;
}
.filter-btn:hover { border-color: var(--camel); }
.filter-btn.active { background: var(--teal); color: #fff; border-color: var(--teal); }

/* ============================================================
   PAGE CONTENU (article / portrait / entretien / format)
   ============================================================ */
.article-wrap { max-width: 760px; margin: 0 auto; padding: 40px 24px 0; position: relative; z-index: 2; }
.article-hero-cover { max-width: 1100px; margin: 28px auto 0; padding: 0 24px; position: relative; z-index: 2; }
.article-hero-cover .frame { border-radius: 20px; overflow: hidden; aspect-ratio: 21/9; box-shadow: var(--shadow); }
.article-hero-cover .frame img, .article-hero-cover .frame svg { width: 100%; height: 100%; object-fit: cover; }
.article-hero-cover .frame:has(img.cover-frame-auto) {
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  aspect-ratio: auto;
  background: transparent;
}
.article-hero-cover .frame img.cover-frame-auto {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(760px, calc(100vh - 120px));
  object-fit: contain;
}
.article-title { font-size: 3rem; line-height: 1.08; margin: 14px 0 18px; }
.article-chapo { font-size: 1.28rem; font-family: var(--font-display); color: var(--teal); line-height: 1.5; margin-bottom: 24px; }
.article-byline { display: flex; align-items: center; gap: 12px; font-size: .9rem; color: var(--ink-soft); padding-bottom: 24px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.article-byline .avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--teal); color:#fff; display: grid; place-items: center; font-weight: 800; font-family: var(--font-display); }
.article-body { font-size: 1.12rem; line-height: 1.8; padding: 30px 0; }
.article-body p { color: var(--ink); margin-bottom: 1.3em; }
.article-body h2, .article-body h3 { margin: 1.6em 0 .5em; }
.article-body h3 { font-size: 1.5rem; }
.article-body a { color: var(--terracotta); text-decoration: underline; text-underline-offset: 3px; }
.article-body img { border-radius: 14px; margin: 1.5em 0; }
.article-body ul.bullets { list-style: disc; padding-left: 1.4em; margin-bottom: 1.3em; color: var(--ink); }
.article-body ul.bullets li { margin-bottom: .5em; }
body.is-rtl .article-body ul.bullets { padding-left: 0; padding-right: 1.4em; }
.pullquote {
  font-family: var(--font-display); font-size: 1.8rem; line-height: 1.3;
  color: var(--teal-deep); border-left: 4px solid var(--terracotta);
  padding: 6px 0 6px 26px; margin: 1.6em 0; font-style: italic;
}
body.is-rtl .pullquote {
  border-left: 0; border-right: 4px solid var(--terracotta);
  padding: 6px 26px 6px 0;
}
.encadre {
  background: var(--cream-deep); border-radius: var(--radius); padding: 24px 26px;
  margin: 2em 0; border: 1px solid var(--line);
}
.encadre .tag { margin-bottom: 10px; }
.encadre h4 { font-family: var(--font-display); font-size: 1.2rem; margin-bottom: 8px; color: var(--teal-deep); }
.encadre p, .encadre li { font-size: .98rem; color: var(--ink-soft); }
.sources { font-size: .88rem; color: var(--ink-soft); border-top: 1px solid var(--line); padding-top: 20px; margin-top: 10px; }
.sources li { margin-bottom: 4px; padding-left: 16px; position: relative; }
.sources li::before { content:"—"; position:absolute; left:0; color: var(--camel); }
body.is-rtl .sources li { padding-left: 0; padding-right: 16px; }
body.is-rtl .sources li::before { left: auto; right: 0; }
.media-embed { position: relative; aspect-ratio: 16/9; border-radius: 14px; overflow: hidden; margin: 1.6em 0; box-shadow: var(--shadow-sm); }
.media-embed iframe { width: 100%; height: 100%; border: 0; }
.media-note { font-size: .9rem; color: var(--ink-soft); margin: -1em 0 1.4em; }
.media-note a { color: var(--terracotta); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.youtube-card {
  position: relative; display: block; aspect-ratio: 16/9; overflow: hidden;
  border-radius: 14px; margin: 1.6em 0; background: var(--teal-deep);
  box-shadow: var(--shadow-sm);
}
.youtube-card img { width: 100%; height: 100%; object-fit: cover; opacity: .78; }
.youtube-play {
  position: absolute; inset: 50% auto auto 50%; transform: translate(-50%, -50%);
  width: 74px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--terracotta); color: #fff; font-size: 1.35rem; box-shadow: var(--shadow-sm);
}
.youtube-text {
  position: absolute; left: 18px; bottom: 18px; right: 18px;
  color: #fff; font-weight: 900; font-size: 1rem; text-shadow: 0 1px 10px rgba(0,0,0,.4);
}
body.is-rtl .youtube-text { text-align: right; }
.video-player { background: var(--cream-deep); border:1px solid var(--line); border-radius: 14px; padding: 12px; margin: 1.6em 0; }
.video-player video { width: 100%; display: block; border-radius: 10px; }
.audio-player { background: var(--cream-deep); border-radius: 14px; padding: 18px 20px; margin: 1.6em 0; border:1px solid var(--line); }
.audio-player audio { width: 100%; }

.related { padding-top: 10px; }

/* ============================================================
   FORMULAIRE / CONTACT
   ============================================================ */
.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: clamp(26px,4vw,40px); box-shadow: var(--shadow-sm); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 7px; color: var(--teal-deep); }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 10px;
  font-family: inherit; font-size: 1rem; background: var(--cream); color: var(--ink); transition: border-color .2s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--terracotta); }
.field textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: .85rem; color: var(--ink-soft); margin-top: 14px; }
.contact-aside { display: flex; flex-direction: column; gap: 18px; }
.contact-item { display: flex; gap: 14px; align-items: flex-start; }
.contact-item .ic { width: 42px; height: 42px; border-radius: 12px; background: var(--cream-deep); color: var(--terracotta); display: grid; place-items: center; flex-shrink: 0; }
.contact-item h4 { font-family: var(--font-body); font-size: .95rem; color: var(--teal-deep); }
.contact-item a, .contact-item span { font-size: .95rem; color: var(--ink-soft); }
.contact-item a:hover { color: var(--terracotta); }

/* ============================================================
   PAGE À PROPOS
   ============================================================ */
.prose { max-width: 760px; margin: 0 auto; }
.prose p { font-size: 1.1rem; line-height: 1.8; margin-bottom: 1.3em; color: var(--ink); }
.prose h2 { margin: 1.5em 0 .4em; }
.values-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin: 24px 0; }
@media (max-width:640px){ .values-grid{ grid-template-columns: repeat(2,1fr);} .values-grid .vchip:last-child{ grid-column: span 2; } }
.vchip { background: var(--paper); border:1px solid var(--line); border-radius: 12px; padding: 18px; text-align:center; font-weight:800; color: var(--teal-deep); }
.vchip span { display:block; font-size:1.6rem; margin-bottom:4px; }

/* ============================================================
   RESSOURCES
   ============================================================ */
.res-section { margin-bottom: 46px; }
.res-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; }
@media (max-width:640px){ .res-grid{ grid-template-columns:1fr;} }
.res-item { display: block; background: var(--paper); border:1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; color: inherit; transition: border-color .2s, transform .2s, box-shadow .2s; }
.res-item:hover { border-color: var(--camel); transform: translateY(-3px); }
.res-item h4 { font-family: var(--font-display); font-size: 1.15rem; color: var(--teal-deep); margin-bottom: 6px; }
.res-item p { font-size: .94rem; }
.res-item .section-link { margin-top: 12px; font-size: .82rem; }
.resource-wrap { padding-top: 70px; }

/* ============================================================
   PIED DE PAGE
   ============================================================ */
.site-footer { background: var(--teal-deep); color: rgba(255,255,255,.8); margin-top: 70px; position: relative; z-index: 2; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.4fr; gap: 40px; padding: 56px 0; }
@media (max-width: 860px){ .footer-top { grid-template-columns: 1fr 1fr; gap: 32px;} }
@media (max-width: 520px){ .footer-top { grid-template-columns: 1fr;} }
.footer-top img { height: 52px; margin-bottom: 16px; background: #fff; padding: 8px 12px; border-radius: 10px; }
.footer-top p { color: rgba(255,255,255,.7); font-size: .95rem; max-width: 34ch; }
.footer-col h4 { color: #fff; font-family: var(--font-body); font-size: .8rem; letter-spacing: 0; text-transform: uppercase; margin-bottom: 16px; }
.footer-col a { display: block; color: rgba(255,255,255,.72); padding: 5px 0; font-size: .95rem; transition: color .2s, padding .2s; }
.footer-col a:hover { color: var(--camel); padding-left: 5px; }
body.is-rtl .footer-col a:hover { padding-left: 0; padding-right: 5px; }
.newsletter input { width: 100%; padding: 12px 14px; border-radius: 10px; border: none; margin-bottom: 10px; font-family: inherit; }
.social { display: flex; gap: 10px; margin-top: 16px; }
.social a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.1); display: grid; place-items: center; color:#fff; transition: background .2s, transform .2s; }
.social a:hover { background: var(--terracotta); transform: translateY(-3px); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 22px 0; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem; color: rgba(255,255,255,.6); }

/* Toast (feedback formulaire) */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(120%); background: var(--teal-deep); color:#fff; padding: 14px 24px; border-radius: 100px; box-shadow: var(--shadow); z-index: 999; transition: transform .4s cubic-bezier(.2,.7,.2,1); font-weight:700; }
.toast.show { transform: translateX(-50%) translateY(0); }

/* États vides */
.empty { text-align: center; padding: 60px 20px; color: var(--ink-soft); }
.coming-soon {
  max-width: 720px; margin: 0 auto; text-align: center;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 20px; padding: 56px 28px; box-shadow: var(--shadow-sm);
}
.coming-soon h2 { margin: 12px 0; }
.coming-soon p { font-size: 1.08rem; }

/* Utilitaires */
.center { text-align: center; }
.mt-s { margin-top: 14px; } .mt-m { margin-top: 30px; } .mt-l { margin-top: 50px; }
.muted { color: var(--ink-soft); }

@media (max-width: 760px) {
  h1 { font-size: 2.35rem; }
  h2 { font-size: 1.8rem; }
  h3 { font-size: 1.28rem; }
  .hero-titre { font-size: 2.7rem; }
  .feature .body h2 { font-size: 1.75rem; }
  .article-title { font-size: 2.2rem; }
  .pullquote { font-size: 1.45rem; }
}
