/* ==========================================================================
   Fondation AS-SAFINAT — feuille de style
   ========================================================================== */

:root {
  --green-deep: #1f2945;
  --green-dark: #22304a;
  --green: #c09d51;
  --green-light: #d4b66e;
  --green-pale: #f7f5ef;
  --gold: #c09d51;
  --gold-light: #d4b66e;
  --cream: #fafafa;
  --paper: #ffffff;
  --ink: #1f2945;
  --ink-soft: #5d6473;
  --line: #e6e7eb;
  --shadow-sm: 0 6px 18px rgba(31, 41, 69, 0.08);
  --shadow-md: 0 18px 40px rgba(31, 41, 69, 0.14);
  --radius: 8px;
  --radius-sm: 4px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Montserrat', 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  overflow-x: hidden;
}

h1, h2, h3, h4, .display {
  font-family: 'Poppins', 'Montserrat', sans-serif;
  color: var(--green-deep);
  margin: 0 0 .5em;
  line-height: 1.2;
}

p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 100px 0; position: relative; }
.section-alt { background: var(--paper); }
.section-dark {
  background: linear-gradient(160deg, var(--green-deep), var(--green-dark));
  color: #eef7ef;
}
.section-dark h2, .section-dark h3, .section-dark p { color: #fff; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: '';
  width: 26px;
  height: 2px;
  background: var(--gold);
  display: inline-block;
}

.section-head { max-width: 680px; margin: 0 0 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.section-head p { color: var(--ink-soft); font-size: 1.05rem; }
.section-dark .section-head p { color: rgba(255, 255, 255, .76); }

/* ---------- Islamic geometric pattern backgrounds ---------- */
.pattern-bg {
  position: relative;
}
.pattern-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: .08;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='84' height='84' viewBox='0 0 84 84'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='1.4'%3E%3Cpath d='M42 2 L74 22 L74 62 L42 82 L10 62 L10 22 Z'/%3E%3Cpath d='M42 2 L42 82 M10 22 L74 62 M74 22 L10 62'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 84px 84px;
}
.section-alt.pattern-bg::before,
.section:not(.section-dark).pattern-bg::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='84' height='84' viewBox='0 0 84 84'%3E%3Cg fill='none' stroke='%230b4a30' stroke-width='1.2'%3E%3Cpath d='M42 2 L74 22 L74 62 L42 82 L10 62 L10 22 Z'/%3E%3Cpath d='M42 2 L42 82 M10 22 L74 62 M74 22 L10 62'/%3E%3C/g%3E%3C/svg%3E");
  opacity: .045;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: 100px;
  font-weight: 700;
  font-size: .95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-gold {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,.6);
  color: inherit;
}
.btn-outline:hover { background: rgba(255,255,255,.14); }
.btn-outline-dark {
  background: transparent;
  border-color: var(--green-deep);
  color: var(--green-deep);
}
.btn-outline-dark:hover { background: var(--green-pale); }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: background .3s ease, box-shadow .3s ease, padding .3s ease;
}
.navbar.is-scrolled {
  background: rgba(255, 253, 249, .96);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 18px rgba(31,41,69,.1);
  padding: 10px 0;
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.08rem;
  color: #fff;
  flex-shrink: 0;
  line-height: 1;
}
.navbar.is-scrolled .brand { color: var(--green-deep); }
.brand img { height: 42px; width: auto; }
.brand-logo-light { display: none; }
.navbar.is-scrolled .brand-logo-dark { display: none; }
.navbar.is-scrolled .brand-logo-light { display: block; }
.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex: 1 1 auto;
  min-width: 0;
}
.nav-links a {
  font-weight: 600;
  font-size: .8rem;
  color: #fff;
  position: relative;
  padding: 4px 0;
  white-space: nowrap;
  line-height: 1.2;
  display: inline-block;
}
.navbar.is-scrolled .nav-links a { color: var(--ink); }
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width .25s ease;
}
.nav-links a:hover::after { width: 100%; }
.nav-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-shrink: 0;
}
.nav-actions .btn-gold {
  padding: 10px 16px;
  font-size: .72rem;
  line-height: 1.2;
  white-space: nowrap;
  min-width: 0;
  border-radius: 999px;
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span { width: 26px; height: 2px; background: #fff; border-radius: 2px; }
.navbar.is-scrolled .nav-toggle span { background: var(--green-deep); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: #fff;
  background: linear-gradient(155deg, #172039 0%, #1f2945 55%, #263556 100%);
  overflow: hidden;
  padding-top: 110px;
}
.hero::after {
  content: '';
  position: absolute;
  right: -12%;
  top: -18%;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(192,157,81,.28), transparent 70%);
  pointer-events: none;
  animation: glowPulse 6s ease-in-out infinite;
}
@keyframes glowPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.12); opacity: .75; }
}
.hero .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 40px;
  align-items: center;
}
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: none; }
}
@keyframes heroScaleIn {
  from { opacity: 0; transform: scale(.82); }
  to { opacity: 1; transform: none; }
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes spinReverse {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}
.hero-tag,
.hero h1,
.hero p.lead,
.hero-cta,
.hero-stats {
  opacity: 0;
  animation: heroFadeUp .8s cubic-bezier(.22, 1, .36, 1) forwards;
}
.hero-tag { animation-delay: .05s; }
.hero h1 { animation-delay: .18s; }
.hero p.lead { animation-delay: .32s; }
.hero-cta { animation-delay: .46s; }
.hero-stats { animation-delay: .6s; }

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  padding: 8px 18px;
  border-radius: 100px;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 26px;
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.3rem, 4.6vw, 3.6rem);
  font-weight: 800;
  margin-bottom: 22px;
}
.hero h1 span { color: var(--green-light); }
.hero p.lead {
  font-size: 1.15rem;
  color: rgba(255,255,255,.82);
  max-width: 540px;
  margin-bottom: 34px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 46px; }
.hero-cta .btn { transition: transform .25s ease, box-shadow .25s ease; }
.hero-cta .btn:hover { transform: translateY(-3px) scale(1.03); }
.hero-stats { display: flex; gap: 34px; flex-wrap: wrap; }
.hero-stats div strong { display: block; font-size: 1.6rem; font-weight: 800; color: #fff; }
.hero-stats div span { font-size: .85rem; color: rgba(255,255,255,.72); }

.hero-emblem {
  position: relative;
  width: min(100%, 420px);
  aspect-ratio: 1;
  justify-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  animation: heroScaleIn .9s cubic-bezier(.22, 1, .36, 1) forwards;
  animation-delay: .3s;
}
.hero-emblem .ring {
  position: absolute;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1.5px dashed rgba(255,255,255,.35);
  animation: spin 50s linear infinite;
}
.hero-emblem .ring.small {
  width: 76.2%;
  border-color: rgba(255,255,255,.2);
  animation: spinReverse 36s linear infinite;
}
.emblem-verse {
  position: absolute;
  z-index: 1;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.emblem-verse__arabic {
  fill: rgba(255,255,255,.9);
  font-family: "Noto Naskh Arabic", "Amiri", "Traditional Arabic", serif;
  font-size: 17px;
}
.emblem-verse__translation {
  fill: rgba(255,255,255,.75);
  font-family: inherit;
  font-size: 10.5px;
  letter-spacing: .1px;
}
.hero-emblem .plate {
  position: relative;
  z-index: 2;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 50%;
  width: 300px;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 34px;
  backdrop-filter: blur(6px);
}
.hero-emblem img { width: 100%; }

.scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: .75rem;
  color: rgba(255,255,255,.72);
  letter-spacing: .08em;
  text-transform: uppercase;
  z-index: 2;
}
.scroll-cue .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green-light);
  animation: bob 1.6s ease-in-out infinite;
}
@keyframes bob { 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(8px);} }

/* ---------- About / mission-vision ---------- */
.mv-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin-top: 40px;
}
.mv-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.mv-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 5px; height: 100%;
  background: linear-gradient(180deg, var(--green), var(--gold));
}
.mv-card h3 { font-size: 1.25rem; }
.mv-card p { color: var(--ink-soft); margin: 0; }
.intro-lead {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 760px;
}
.values-section {
  margin: 0 0 56px;
  max-width: 980px;
}
.values-section .eyebrow { margin-bottom: 8px; }
.values-intro {
  color: var(--ink-soft);
  font-size: 1.05rem;
  max-width: 760px;
  margin-bottom: 18px;
}
.values-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 0;
}
.value-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--cream);
  box-shadow: 0 3px 10px rgba(31,41,69,.05);
}
.value-card h3 {
  margin: 0 0 2px;
  font-family: 'Poppins', 'Cairo', sans-serif;
  font-size: 1.05rem;
  color: var(--green-deep);
}
.value-card span {
  display: block;
  margin-bottom: 12px;
  color: var(--gold);
  font-weight: 800;
  font-size: .82rem;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.value-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: .9rem;
  line-height: 1.55;
}

/* ---------- Pillars ---------- */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}
.pillar-card {
  background: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  transition: transform .25s ease, box-shadow .25s ease;
}
.pillar-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.pillar-card summary {
  display: block;
  padding: 38px 32px;
  cursor: pointer;
  list-style: none;
}
.pillar-card summary::-webkit-details-marker { display: none; }
.pillar-icon {
  width: 64px; height: 64px;
  border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  background: var(--green-pale);
  margin-bottom: 22px;
  color: var(--green-dark);
}
.pillar-icon svg { width: 30px; height: 30px; }
.pillar-card h3 { font-size: 1.2rem; }
.pillar-card p { color: var(--ink-soft); margin: 0; }
.pillar-card .num {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: .8rem;
  color: var(--gold);
  letter-spacing: .1em;
  margin-bottom: 10px;
  display: block;
}
.pillar-card__toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  color: var(--green-dark);
  font-size: .84rem;
  font-weight: 800;
}
.pillar-card__toggle::after {
  content: '⌄';
  font-size: 1.15rem;
  line-height: 1;
  transition: transform .2s ease;
}
.pillar-card[open] .pillar-card__toggle::after { transform: rotate(180deg); }
.pillar-card__details {
  padding: 0 32px 32px;
  border-top: 1px solid var(--line);
}
.pillar-card__details ul {
  display: grid;
  gap: 12px;
  margin: 22px 0;
}
.pillar-card__details li {
  position: relative;
  padding-left: 18px;
  color: var(--ink-soft);
  font-size: .88rem;
  line-height: 1.55;
}
.pillar-card__details li strong { color: var(--green-deep); font-weight: 700; }
.pillar-card__details li::before {
  content: '';
  position: absolute;
  top: .65em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
}
.pillar-card__details .btn { padding: 11px 18px; font-size: .82rem; }

/* ---------- Stats ---------- */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}
.stat-card {
  text-align: center;
  padding: 26px 12px 18px;
  border-radius: 18px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 8px 18px rgba(0,0,0,.08);
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.stat-card .value {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: clamp(1.9rem, 2.6vw, 2.8rem);
  color: var(--gold-light);
  display: block;
  margin-bottom: 8px;
}
.stat-card .label {
  font-size: .84rem;
  line-height: 1.5;
  color: rgba(255,255,255,.74);
  margin: 0 auto;
  max-width: 165px;
}
.section-dark .section-head h2 {
  font-size: clamp(2.3rem, 3vw, 3.2rem);
  color: #fff;
  margin-bottom: 12px;
}
.section-dark .section-head p {
  max-width: 720px;
  margin: 0 auto;
  color: rgba(255,255,255,.8);
}

/* ---------- Campaigns ---------- */
.campaign-tabs {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 46px;
  flex-wrap: wrap;
}
.campaign-tab {
  padding: 12px 26px;
  border-radius: 100px;
  border: 2px solid var(--line);
  font-weight: 700;
  cursor: pointer;
  background: var(--paper);
  color: var(--ink-soft);
  transition: all .2s ease;
}
.campaign-tab.is-active,
.campaign-tab:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  color: #fff;
}
.campaign-panel { display: none; }
.campaign-panel.is-active { display: block; animation: fadeIn .4s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.campaign-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  background: var(--green-pale);
  border-radius: var(--radius);
  padding: 30px 34px;
  margin-bottom: 30px;
}
.campaign-head h3 { margin-bottom: 6px; }
.campaign-head .period { color: var(--ink-soft); font-weight: 600; }
.campaign-head .period-note { display: block; margin-top: 4px; color: var(--ink-soft); font-size: .9rem; font-style: italic; }
.campaign-head .goal { text-align: right; }
.campaign-head .goal strong {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: 1.8rem;
  color: var(--green-deep);
}
.campaign-head .goal span { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--gold); font-weight: 700; }

.campaign-items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.campaign-items .campaign-item:only-child { grid-column: 1 / -1; }
.campaign-item {
  display: flex;
  gap: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 22px;
}
.campaign-item .badge {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--green-dark);
  color: #fff;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.campaign-item h4 { margin: 0 0 6px; font-size: 1.02rem; }
.campaign-item p { margin: 0 0 8px; color: var(--ink-soft); font-size: .92rem; }
.campaign-item .meta { display: flex; justify-content: space-between; font-size: .84rem; }
.campaign-item .meta .amount { font-weight: 800; color: var(--green-dark); }
.campaign-item .meta .date { color: var(--gold); font-weight: 600; }
.campaign-cta {
  width: 100%;
  margin: 48px auto 16px auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 18px;
}
.campaign-cta-btn {
  margin: 0 auto;
  padding: 16px 38px;
  font-size: 1.02rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow: 0 6px 20px rgba(192, 157, 81, 0.28);
  transition: transform .2s ease, box-shadow .2s ease;
}
.campaign-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(192, 157, 81, 0.38);
}
.campaign-acknowledgement {
  margin: 0 auto;
  max-width: 680px;
  color: var(--ink-soft);
  font-style: italic;
  font-size: .95rem;
  line-height: 1.6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  padding: 4px 16px;
}
.campaign-acknowledgement .ack-icon {
  flex-shrink: 0;
  color: var(--green-dark);
}

/* ---------- Témoignages (Testimonials) ---------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px 26px;
  position: relative;
  transition: transform .25s ease, box-shadow .25s ease;
}
.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
}
.testimonial-quote-mark {
  font-family: 'Amiri', Georgia, serif;
  font-size: 3.2rem;
  line-height: 1;
  color: var(--gold-light);
  opacity: .45;
  margin-bottom: -12px;
}
.testimonial-text {
  color: var(--ink);
  font-style: italic;
  font-size: .95rem;
  line-height: 1.65;
  margin-bottom: 24px;
  flex-grow: 1;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--green-pale);
  color: var(--green-deep);
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: .92rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(31, 41, 69, 0.1);
}
.testimonial-info {
  flex-grow: 1;
  min-width: 0;
}
.testimonial-info h4 {
  margin: 0;
  font-size: .96rem;
  color: var(--green-deep);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.testimonial-info span {
  display: block;
  font-size: .8rem;
  color: var(--ink-soft);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.testimonial-tag {
  font-size: .72rem;
  font-weight: 700;
  color: var(--gold);
  background: rgba(192, 157, 81, .08);
  border: 1px solid rgba(192, 157, 81, .2);
  padding: 4px 10px;
  border-radius: 100px;
  flex-shrink: 0;
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* ---------- Perspectives (Legacy) ---------- */
.persp-list { display: grid; gap: 18px; }
.persp-item {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 24px 28px;
  transition: box-shadow .2s ease, transform .2s ease;
}
.persp-item:hover { box-shadow: var(--shadow-sm); transform: translateX(4px); }
.persp-item .idx {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--green-light);
  -webkit-text-stroke: 1px var(--green-dark);
  text-align: center;
}
.persp-item h4 { margin: 0 0 4px; font-size: 1.05rem; }
.persp-item p { margin: 0; color: var(--ink-soft); font-size: .93rem; }

/* ---------- Donate / payment ---------- */
.donate-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}
.donate-copy .btn { margin-top: 8px; }
.payment-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.payment-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.payment-card .qr {
  width: 110px;
  height: 110px;
  margin: 0 auto 14px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #ffffff 0%, #f7f9f8 100%);
  padding: 10px;
  box-sizing: border-box;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.03);
}
.payment-card .qr img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  border-radius: 10px;
  background: #fff;
  padding: 2px;
}
.payment-card .qr.placeholder {
  background: var(--green-pale);
  color: var(--green-dark);
  font-weight: 800;
  font-size: 1.6rem;
}
.payment-card h4 { margin: 0 0 4px; font-size: 1rem; }
.payment-card .number { color: var(--gold); font-weight: 700; letter-spacing: .01em; white-space: nowrap; font-size: .85rem; }
.payment-card .account-name { display: block; margin-top: 6px; font-size: .8rem; line-height: 1.35; color: var(--ink-soft); }
.payment-card .account-name strong { color: var(--ink); }
.whatsapp-card {
  margin-top: 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
}
.whatsapp-card { gap: 24px; padding: 20px 24px; }
.whatsapp-qr { flex: 0 0 190px; display: block; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-md); }
.whatsapp-qr img { display: block; width: 100%; height: auto; }
a.whatsapp-qr { transition: transform .2s ease; }
a.whatsapp-qr:hover { transform: translateY(-2px); }
.whatsapp-copy strong { display: block; font-size: 1.1rem; }
.whatsapp-copy span { display: block; color: var(--ink-soft); font-size: .9rem; margin: 4px 0 14px; }
.whatsapp-copy .btn { padding: 11px 22px; }
@media (max-width: 520px) {
  .whatsapp-card { flex-direction: column; text-align: center; }
  .whatsapp-qr { flex-basis: auto; width: min(260px, 100%); }
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 44px;
}
.contact-info-item {
  display: flex;
  gap: 16px;
  margin-bottom: 26px;
}
.contact-info-item .ic {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: rgba(255,255,255,.12);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-info-item h4 { margin: 0 0 4px; font-size: 1rem; color: #fff; }
.contact-info-item p { margin: 0; color: rgba(255,255,255,.76); font-size: .92rem; }

.contact-form {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 38px;
  box-shadow: var(--shadow-md);
  color: var(--ink);
}
.form-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; font-size: .88rem; margin-bottom: 6px; color: var(--green-deep); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: 10px;
  border: 1.5px solid var(--line);
  font-family: inherit;
  font-size: .95rem;
  background: #fff;
  color: var(--ink);
  transition: border-color .2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--green);
}
.field .errorlist { list-style: none; padding: 0; margin: 6px 0 0; color: #c0392b; font-size: .82rem; }

.alert {
  padding: 14px 20px;
  border-radius: 12px;
  margin-bottom: 22px;
  font-weight: 600;
  background: var(--green-pale);
  color: var(--green-deep);
  border: 1px solid rgba(192,157,81,.35);
}

/* ---------- Footer ---------- */
.footer {
  background: #172039;
  color: rgba(255,255,255,.75);
  padding: 60px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 36px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; font-weight: 800; font-size: 1.1rem; color: #fff; }
.footer-brand img { height: 40px; }
.footer p { color: rgba(255,255,255,.66); font-size: .92rem; }
.footer h5 { color: #fff; font-size: .95rem; letter-spacing: .05em; text-transform: uppercase; margin-bottom: 16px; }
.footer ul li { margin-bottom: 10px; }
.footer ul li a { color: rgba(255,255,255,.74); font-size: .92rem; }
.footer ul li a:hover { color: var(--green-light); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 22px;
  font-size: .84rem;
  color: rgba(255,255,255,.5);
}
.dua-banner {
  text-align: center;
  font-style: italic;
  color: var(--gold-light);
  margin: 0 0 30px;
  font-size: 1rem;
}

/* ---------- Utilities ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

.eyebrow-on-dark { color: var(--green-light); }
.anchor-offset { position: absolute; top: 0; }
.contact-intro { max-width: 420px; margin-bottom: 34px; }
.testimonials-cta { margin-top: 48px; text-align: center; }
.testimonials-cta p { color: var(--ink-soft); font-size: .95rem; margin-bottom: 14px; }
.btn.btn-disabled { opacity: .55; cursor: not-allowed; pointer-events: none; }

/* Piège à robots (honeypot) : invisible pour les humains, mais présent dans le DOM. */
.hp-field-wrap { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { scroll-behavior: auto !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .nav-links {
    gap: 10px;
  }
  .nav-links a {
    font-size: .72rem;
  }
  .nav-actions .btn-gold {
    padding: 9px 14px;
    font-size: .68rem;
  }
}
@media (max-width: 1040px) {
  .navbar .container {
    gap: 8px;
  }
  .nav-links {
    gap: 8px;
  }
  .nav-links a {
    font-size: .66rem;
  }
  .nav-actions .btn-gold {
    padding: 8px 12px;
    font-size: .64rem;
  }
}
@media (max-width: 980px) {
  .hero .container { grid-template-columns: minmax(0, 1fr); }
  .hero-emblem { order: -1; margin-bottom: 10px; }
  .hero-emblem .plate { width: 210px; height: 210px; }
  .values-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mv-grid, .pillars-grid, .donate-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .stats-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .campaign-items { grid-template-columns: minmax(0, 1fr); }
  .testimonials-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .payment-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .nav-links {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
  .navbar.nav-open .nav-links {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    background: rgba(255, 253, 249, .98);
    padding: 18px 24px 22px;
    box-shadow: var(--shadow-md);
    gap: 14px;
    border-top: 1px solid rgba(31,41,69,.08);
  }
  .navbar.nav-open .nav-links a {
    color: var(--ink);
    font-size: .82rem;
  }
}
@media (max-width: 760px) {
  .values-cards { grid-template-columns: minmax(0, 1fr); }
  .nav-actions .btn-gold {
    padding: 9px 12px;
    font-size: .66rem;
  }
  .section { padding: 70px 0; }
  .stats-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-row { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .campaign-head { flex-direction: column; align-items: flex-start; }
  .campaign-head .goal { text-align: left; }
  .campaign-cta { margin-top: 26px; gap: 12px; }
  .campaign-cta-btn { width: 100%; max-width: 320px; justify-content: center; }
  .campaign-acknowledgement { font-size: .86rem; padding: 0 8px; }
  .impact-report .btn {
    white-space: normal;
    text-align: center;
  }
}
@media (max-width: 420px) {
  .brand-name { display: none; }
  .nav-actions { gap: 6px; }
  .nav-actions .btn-gold {
    padding: 8px 10px;
    font-size: .62rem;
  }
}

/* ===========================================================================
   Identité visuelle AS-SAFINAT
   Bleu profond, or clair et compositions épurées.
   ========================================================================== */
.navbar {
  padding: 10px 0;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(31, 41, 69, .08);
  box-shadow: 0 2px 14px rgba(31, 41, 69, .05);
}
.navbar.is-scrolled { background: rgba(255, 255, 255, .98); box-shadow: 0 4px 20px rgba(31, 41, 69, .10); }
.brand { color: var(--green-deep); font-size: 1rem; letter-spacing: .08em; }
.brand img { height: 48px; }
.brand img[hidden] + img[hidden] + .brand-name::before { content: 'AS'; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; margin-right: 10px; border: 2px solid var(--gold); border-radius: 50%; color: var(--gold); font-family: 'Amiri', serif; font-size: 1.3rem; letter-spacing: 0; }
.brand-logo-dark { display: none; }
.brand-logo-light { display: block; }
.navbar.is-scrolled .brand-logo-dark { display: none; }
.navbar.is-scrolled .brand-logo-light { display: block; }
.nav-links { gap: 20px; }
.nav-links a, .navbar.is-scrolled .nav-links a { color: var(--green-deep); font-size: .76rem; font-weight: 700; letter-spacing: .025em; }
.nav-links a::after { height: 3px; background: var(--gold); bottom: -8px; }
.nav-actions .btn-gold { padding: 10px 15px; font-size: .68rem; letter-spacing: .02em; }
.nav-toggle span, .navbar.is-scrolled .nav-toggle span { background: var(--green-deep); }

.section { padding: 110px 0; }
.section-alt { background: #f7f7f5; }
.section-dark { background: var(--green-deep); }
.section-dark .section-head p, .contact-info-item p { color: rgba(255, 255, 255, .76); }
.section-head { max-width: 720px; }
.section-head h2 { font-size: clamp(2rem, 3vw, 2.8rem); letter-spacing: -.035em; }
.section-head.center h2 { max-width: 650px; margin-left: auto; margin-right: auto; }
.eyebrow { color: var(--gold); font-size: .72rem; letter-spacing: .16em; }
.eyebrow::before { width: 42px; height: 4px; }
.intro-lead, .section-head p { font-family: 'Montserrat', sans-serif; line-height: 1.8; }
.pattern-bg::before { opacity: .045; }

.btn { border-radius: 4px; padding: 14px 26px; font-family: 'Poppins', sans-serif; font-size: .83rem; letter-spacing: .015em; }
.btn-primary { background: var(--green-deep); }
.btn-gold { background: var(--gold); color: #fff; box-shadow: 0 7px 18px rgba(192, 157, 81, .24); }
.btn-outline-dark { border-color: var(--green-deep); color: var(--green-deep); }
.btn-outline-dark:hover { background: var(--green-deep); color: #fff; }

.hero { min-height: 760px; padding-top: 112px; background: linear-gradient(132deg, #172039 0%, #1f2945 58%, #263556 100%); }
.hero::after { width: 660px; height: 660px; right: -18%; top: -15%; background: radial-gradient(circle, rgba(192, 157, 81, .25), transparent 68%); }
.hero::before { content: ''; position: absolute; right: -8vw; bottom: -28vw; width: 55vw; height: 55vw; border: 2px solid rgba(212, 182, 110, .55); border-radius: 50%; pointer-events: none; }
.hero h1 { font-size: clamp(2.7rem, 5vw, 5rem); letter-spacing: -.055em; max-width: 780px; }
.hero h1 span { color: var(--gold-light); }
.hero-tag { border-color: rgba(212, 182, 110, .65); background: rgba(255, 255, 255, .06); color: #fff; letter-spacing: .05em; }
.hero p.lead { max-width: 610px; color: rgba(255, 255, 255, .8); font-family: 'Montserrat', sans-serif; }
.hero-stats div strong { color: var(--gold-light); }
.hero-stats div span { color: rgba(255, 255, 255, .72); }
.hero-emblem .ring { border-color: rgba(212, 182, 110, .78); }
.hero-emblem .ring.small { border-color: rgba(255, 255, 255, .32); }
.hero-emblem .plate {
  background: rgba(255, 255, 255, .16);
  border-color: rgba(212, 182, 110, .85);
  box-shadow: 0 0 0 12px rgba(192, 157, 81, .85), 0 20px 45px rgba(0, 0, 0, .22);
  backdrop-filter: none;
}
.emblem-fallback { display: none; align-items: center; justify-content: center; position: absolute; inset: 0; color: var(--green-deep); font-family: 'Amiri', serif; font-size: 4.5rem; }
.hero-emblem .plate img[hidden] + .emblem-fallback { display: flex; }

.value-card, .pillar-card, .campaign-item, .testimonial-card, .payment-card, .whatsapp-card { border-radius: 4px; border-color: rgba(31, 41, 69, .11); }
.value-card { background: #fff; border-top: 4px solid var(--gold); padding: 24px; }
.value-card h3, .pillar-card h3, .testimonial-info h4 { color: var(--green-deep); }
.value-card span { color: var(--gold); }
.pillar-card { box-shadow: none; }
.pillar-card:hover { box-shadow: var(--shadow-md); transform: translateY(-5px); }
.pillar-card summary { padding: 34px 30px; }
.pillar-icon { border-radius: 4px; background: var(--green-pale); color: var(--green-deep); }
.pillar-card .num, .pillar-card__toggle { color: var(--gold); }
.stats-strip { gap: 18px; background: transparent; }
.stat-card {
  border: 1px solid rgba(212, 182, 110, .6);
  border-radius: 6px;
  background: rgba(255, 255, 255, .09);
  box-shadow: 0 12px 26px rgba(8, 15, 34, .2);
}
.stat-card .value { color: var(--gold); }
.stat-card .label { color: rgba(255, 255, 255, .86); }
.impact-report { display: flex; justify-content: center; margin-top: 34px; }
.impact-report .btn { border-color: var(--gold-light); color: #fff; }

.impact-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 56px; }
@media (max-width: 980px) {
  .impact-gallery { grid-template-columns: minmax(0, 1fr); gap: 16px; }
}
.impact-photo {
  margin: 0;
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(212, 182, 110, .35);
  box-shadow: 0 14px 32px rgba(8, 15, 34, .32);
}
.impact-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.impact-photo:hover img { transform: scale(1.06); }
.impact-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(23, 32, 57, 0) 50%, rgba(10, 15, 30, .82) 100%);
  pointer-events: none;
}
.impact-photo__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  margin: 0;
  padding: 14px 16px;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: .8rem;
  line-height: 1.35;
  letter-spacing: .01em;
}
.impact-photo.is-placeholder { border-style: dashed; box-shadow: none; }
.impact-photo__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: rgba(255, 255, 255, .4);
  background: rgba(255, 255, 255, .05);
  font-size: .78rem;
  letter-spacing: .03em;
}

.campaign-tab { border-radius: 4px; color: var(--green-deep); }
.campaign-tab.is-active, .campaign-tab:hover { background: var(--green-deep); border-color: var(--green-deep); }
.campaign-head { background: var(--green-pale); border-radius: 4px; border-left: 5px solid var(--gold); }
.campaign-head .goal strong, .campaign-item .meta .amount { color: var(--green-deep); }
.campaign-head .goal span, .campaign-item .meta .date { color: var(--gold); }
.campaign-item .badge { border-radius: 4px; background: var(--green-deep); }
.campaign-cta-btn { box-shadow: 0 8px 20px rgba(192, 157, 81, .25); }
.campaign-acknowledgement .ack-icon { color: var(--gold); }
.testimonial-card { box-shadow: none; }
.testimonial-card:hover { box-shadow: var(--shadow-sm); }
.testimonial-quote-mark, .testimonial-tag { color: var(--gold); }
.testimonial-avatar { border-radius: 4px; background: var(--green-pale); color: var(--green-deep); }
.testimonial-tag { background: rgba(192, 157, 81, .1); border-color: rgba(192, 157, 81, .3); }

.payment-card { background: #fff; }
.payment-card .qr.placeholder { background: var(--green-pale); color: var(--green-deep); }
.payment-card .number { color: var(--gold); }
.whatsapp-card { border-left: 4px solid var(--gold); }
.contact-form { border-radius: 4px; }
.field label { color: var(--green-deep); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(192, 157, 81, .14); }

.footer { background: #172039; color: rgba(255, 255, 255, .75); border-top: 5px solid var(--gold); }
.footer p { color: rgba(255, 255, 255, .66); }
.footer h5, .footer-brand { color: #fff; }
.footer ul li a { color: rgba(255, 255, 255, .74); }
.footer ul li a:hover { color: var(--gold-light); }
.footer-bottom { color: rgba(255, 255, 255, .5); }
.dua-banner { color: var(--gold-light); }

@media (max-width: 1200px) {
  .nav-links { gap: 12px; }
  .nav-links a, .navbar.is-scrolled .nav-links a { font-size: .7rem; }
}
@media (max-width: 860px) {
  .navbar.nav-open .nav-links { background: #fff; border-top-color: rgba(31, 41, 69, .1); }
  .navbar.nav-open .nav-links a { font-size: .82rem; color: var(--green-deep); }
  .hero { min-height: auto; }
}

/* ---------- Newsletter ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.newsletter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 8px;
  padding: 24px 28px;
  margin-bottom: 40px;
}
.newsletter-copy h5 { margin: 0 0 4px; color: #fff; font-size: .95rem; letter-spacing: .05em; text-transform: uppercase; }
.newsletter-copy p { margin: 0; color: rgba(255, 255, 255, .66); font-size: .9rem; }
.newsletter-form { display: flex; flex-wrap: wrap; gap: 10px; }
.newsletter-form input[type="email"] {
  min-width: 240px;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .08);
  color: #fff;
  font-family: inherit;
  font-size: .9rem;
}
.newsletter-form input[type="email"]::placeholder { color: rgba(255, 255, 255, .5); }
.newsletter-form input[type="email"]:focus {
  outline: none;
  border-color: var(--gold-light);
  background: rgba(255, 255, 255, .12);
}
.newsletter-form .btn { padding: 12px 24px; font-size: .85rem; white-space: nowrap; }
.newsletter-feedback { flex-basis: 100%; margin: 0; font-size: .85rem; }
.newsletter-feedback--success, .newsletter-feedback--exists { color: var(--gold-light); }
.newsletter-feedback--error, .newsletter-feedback--throttled { color: #ffb4b4; }
@media (max-width: 760px) {
  .newsletter-bar { flex-direction: column; align-items: stretch; text-align: center; padding: 20px; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form input[type="email"] { min-width: 0; width: 100%; }
  .newsletter-form .btn { width: 100%; justify-content: center; }
}

/* ---------- Newsletter : section dédiée + case du formulaire de contact ---------- */
.newsletter-section { padding: 64px 0; }
.newsletter-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 40px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(212, 182, 110, .35);
  border-radius: 8px;
  padding: 44px 48px;
}
.newsletter-card-copy h2 { margin: 8px 0 12px; }
.newsletter-card-copy p { margin: 0; color: rgba(255, 255, 255, .78); }
.newsletter-points { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 6px; }
.newsletter-points li { color: rgba(255, 255, 255, .72); font-size: .88rem; padding-left: 22px; position: relative; }
.newsletter-points li::before { content: "✓"; position: absolute; left: 0; color: var(--gold-light); font-weight: 700; }
.newsletter-card-form .newsletter-form { flex-direction: column; gap: 12px; }
.newsletter-card-form .newsletter-form input[type="email"] { min-width: 0; width: 100%; padding: 16px 20px; font-size: 1rem; }
.newsletter-card-form .newsletter-form .btn { width: 100%; justify-content: center; padding: 16px 24px; font-size: .95rem; }
.newsletter-card-form .newsletter-feedback { margin-top: 14px; font-size: .92rem; }
.field-check label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 400;
  font-size: .86rem;
  line-height: 1.45;
  cursor: pointer;
}
.field-check input[type="checkbox"] { width: auto; margin-top: 3px; flex: none; accent-color: var(--gold); }
@media (max-width: 860px) {
  .newsletter-card { grid-template-columns: 1fr; gap: 28px; padding: 28px 22px; }
}

/* ---------- Médaillon : transition Alkawsar -> AS-SAFINAT ---------- */
.plate-fx { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; }
.plate-old, .plate-new { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 34px; }
.plate-old { background: #fef6f4; padding: 56px 36px; }
.plate-old img, .plate-new img { width: 100%; height: auto; }
.plate-new {
  background: #465069;
  --wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 100' preserveAspectRatio='none'%3E%3Cpath d='M150 0C175 12 125 25 150 38S175 62 150 75S125 92 150 100L300 100L300 0Z' fill='%23000'/%3E%3C/svg%3E");
  -webkit-mask-image: var(--wave); mask-image: var(--wave);
  -webkit-mask-size: 300% 100%; mask-size: 300% 100%;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: 0% 0; mask-position: 0% 0;
  animation: plateReveal 2.6s cubic-bezier(.65, 0, .35, 1) 1.7s forwards;
}
.plate-wave {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 100' preserveAspectRatio='none'%3E%3Cg fill='none' stroke-linecap='round'%3E%3Cpath d='M150 0C175 12 125 25 150 38S175 62 150 75S125 92 150 100' stroke='%23d4b66e' stroke-width='3' vector-effect='non-scaling-stroke'/%3E%3Cpath d='M158 0C183 12 133 25 158 38S183 62 158 75S133 92 158 100' stroke='%23d4b66e' stroke-opacity='.45' stroke-width='1.5' vector-effect='non-scaling-stroke'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 300% 100%; background-repeat: no-repeat; background-position: 0% 0;
  animation: plateWave 2.6s cubic-bezier(.65, 0, .35, 1) 1.7s forwards;
}
.plate-was {
  position: absolute; right: 2%; bottom: 2%; z-index: 3;
  width: 27%; aspect-ratio: 1; border-radius: 50%;
  background: #fef6f4; border: 3px solid var(--gold);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .28);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  padding: 10px 8px 6px;
  opacity: 0; transform: scale(.7);
  animation: plateWas .7s cubic-bezier(.22, 1, .36, 1) 4.2s forwards;
}
.plate-was img { width: 100%; }
.plate-was span { font-size: .56rem; font-weight: 700; color: #7a5a2a; letter-spacing: .02em; white-space: nowrap; }
@keyframes plateReveal { to { -webkit-mask-position: 100% 0; mask-position: 100% 0; } }
@keyframes plateWave { 0% { opacity: 1; background-position: 0% 0; } 94% { opacity: 1; } 100% { opacity: 0; background-position: 100% 0; } }
@keyframes plateWas { to { opacity: 1; transform: none; } }
@media (max-width: 860px) {
  .plate-was { right: 0; bottom: 0; }
  .plate-old { padding: 36px 30px; }
  .plate-new { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .plate-new { animation: none; -webkit-mask-position: 100% 0; mask-position: 100% 0; }
  .plate-wave { display: none; }
  .plate-was { animation: none; opacity: 1; transform: none; }
}

.footer-formerly { margin: -6px 0 10px; font-size: .85rem; font-style: italic; color: var(--gold-light) !important; }

/* ---------- Page webinaire ---------- */
.webinar-hero { padding: 112px 0 72px; overflow: hidden; }
.webinar-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: 56px; align-items: start; }
.webinar-hero h1 { color: #fff; font-size: clamp(2.1rem, 5vw, 3.4rem); line-height: 1.08; margin: 12px 0 16px; }
.webinar-hero h1 span { color: var(--gold-light); }
.webinar-lead { color: rgba(255, 255, 255, .82) !important; font-size: 1.1rem; max-width: 44ch; margin: 0 0 28px; }

.webinar-facts { list-style: none; margin: 0 0 30px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.webinar-facts li {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 8px;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12);
  color: #fff; font-weight: 600; font-size: .95rem; line-height: 1.3;
}
.webinar-facts svg { width: 26px; height: 26px; flex: none; fill: none; stroke: var(--gold-light); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.webinar-facts small { display: block; font-weight: 400; color: rgba(255, 255, 255, .7); font-size: .8rem; }

.countdown-label { margin: 0 0 10px !important; color: rgba(255, 255, 255, .7) !important; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; }
.countdown-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 76px)); gap: 10px; }
.countdown-grid div { background: rgba(255, 255, 255, .08); border: 1px solid rgba(212, 182, 110, .45); border-radius: 8px; padding: 12px 4px 8px; text-align: center; }
.countdown-grid strong { display: block; font-family: 'Poppins', sans-serif; font-size: 1.7rem; line-height: 1.1; color: var(--gold-light); font-variant-numeric: tabular-nums; }
.countdown-grid span { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }

.webinar-card-wrap { scroll-margin-top: 90px; }
.webinar-card {
  background: #fff; color: var(--ink);
  border-radius: 8px; border-top: 4px solid var(--gold);
  padding: 32px 34px 30px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .3);
}
.webinar-form-head h2 { margin: 0 0 4px; font-size: 1.5rem; color: var(--green-deep) !important; }
.webinar-form-head p { margin: 0 0 20px; color: var(--ink-soft) !important; font-size: .88rem; }

.stepper { margin: 0 0 22px; }
.stepper-top { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 8px; font-size: .82rem; }
.stepper-top span:first-child { font-weight: 800; color: var(--gold); letter-spacing: .08em; text-transform: uppercase; }
.stepper-top span:last-child { color: var(--ink-soft); font-weight: 600; }
.stepper-bar { height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; }
.stepper-bar span { display: block; height: 100%; width: 33%; border-radius: inherit; background: linear-gradient(90deg, var(--gold), var(--gold-light)); transition: width .4s ease; }

.webinar-step { border: 0; margin: 0; padding: 0; min-width: 0; }
.webinar-step + .webinar-step { margin-top: 8px; padding-top: 18px; border-top: 1px solid var(--line); }
.webinar-step legend { padding: 0; margin-bottom: 14px; font-weight: 800; color: var(--gold); letter-spacing: .08em; text-transform: uppercase; font-size: .8rem; }
.is-stepper .webinar-step { margin: 0; padding: 0; border: 0; }
.is-stepper .webinar-step legend { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
.webinar-step[hidden] { display: none; }

.webinar-card .field { margin-bottom: 20px; }
.webinar-card .field-label, .webinar-card .field label:not(.choice) {
  display: block; font-weight: 700; font-size: .9rem; margin-bottom: 8px; color: var(--green-deep);
}
.webinar-card .field-label small { font-weight: 400; color: var(--ink-soft); }
.webinar-card .field input[type="text"], .webinar-card .field input[type="email"], .webinar-card .field textarea {
  padding: 14px 16px; background: #fbfbfa;
}
.webinar-card .field input[type="text"]:focus, .webinar-card .field input[type="email"]:focus, .webinar-card .field textarea:focus, .phone-row select:focus {
  outline: none; background: #fff; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(192, 157, 81, .18);
}
.field-help { margin: 6px 0 0; font-size: .82rem; color: var(--ink-soft); line-height: 1.45; }
.phone-row { display: grid; grid-template-columns: minmax(0, 13rem) minmax(0, 1fr); gap: 10px; }
.phone-row select {
  width: 100%; padding: 14px 12px; border-radius: 10px; border: 1.5px solid var(--line);
  font-family: inherit; font-size: .95rem; background: #fbfbfa; color: var(--ink);
}
.choice-list { display: grid; gap: 8px; }
.choice {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px;
  cursor: pointer; font-weight: 400 !important; font-size: .94rem !important; line-height: 1.4;
  background: #fff; transition: border-color .2s ease, background .2s ease;
}
.choice:hover { border-color: var(--gold); }
.choice:has(input:checked) { border-color: var(--gold); background: #fbf6ea; }
.choice input { width: 20px !important; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--gold); padding: 0 !important; border: 0 !important; border-radius: 0 !important; background: none !important; box-shadow: none !important; }
.choice-consent { border-style: dashed; }
.webinar-card .errorlist { list-style: none; padding: 0; margin: 6px 0 0; color: #c0392b; font-size: .85rem; font-weight: 600; }
.webinar-alert { padding: 14px 18px; border-radius: 10px; background: #fdecea; color: #a93226; font-weight: 600; margin-bottom: 18px; }

.privacy-note { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 6px; padding: 12px 14px; border-radius: 8px; background: #f4f6fa; color: var(--ink-soft) !important; font-size: .82rem; line-height: 1.45; }
.privacy-note svg { width: 18px; height: 18px; flex: none; margin-top: 1px; fill: none; stroke: var(--gold); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.step-nav { display: flex; gap: 12px; justify-content: flex-end; margin-top: 8px; }
.step-nav .btn-next, .step-nav .btn-prev { display: none; }
.is-stepper .step-nav .btn-next, .is-stepper .step-nav .btn-prev { display: inline-flex; }
.step-nav .btn { padding: 14px 26px; font-size: .95rem; }
.step-nav .btn-next, .step-nav-last .btn:last-child { flex: 1; justify-content: center; }
.step-nav-last { margin-top: 18px; }
.btn-ghost { background: transparent; color: var(--ink-soft); border: 1.5px solid var(--line); box-shadow: none; }
.btn-ghost:hover { border-color: var(--gold); color: var(--green-deep); }
.webinar-form .btn[disabled] { opacity: .45; cursor: not-allowed; box-shadow: none; transform: none; }
.webinar-closed { text-align: center; }
.webinar-closed .btn { margin-top: 12px; }

.webinar-program-section { background: #f7f7f5; }
.program-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 18px; counter-reset: p; }
.program-card { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 26px 22px 24px; position: relative; transition: transform .25s ease, box-shadow .25s ease; }
.program-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.program-num { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: var(--green-deep); color: var(--gold-light); font-family: 'Poppins', sans-serif; font-weight: 700; margin-bottom: 14px; }
.program-card h3 { margin: 0 0 6px; font-size: 1.05rem; line-height: 1.3; color: var(--green-deep); }
.program-card p { margin: 0; color: var(--ink-soft); font-size: .9rem; }
.program-cta { text-align: center; margin-top: 36px; }

/* ----- Confirmation ----- */
.webinar-container { max-width: 760px; }
.webinar-confirm-hero { padding: 120px 0 90px; min-height: 80vh; }
.webinar-confirm { text-align: center; padding: 38px 36px 34px; }
.confirm-check { width: 76px; height: 76px; margin: 0 auto 14px; }
.confirm-check svg { width: 100%; height: 100%; fill: none; stroke: #1fa855; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.confirm-check circle { stroke-dasharray: 152; stroke-dashoffset: 152; animation: confirmDraw .7s ease-out forwards; }
.confirm-check path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: confirmDraw .4s ease-out .5s forwards; }
@keyframes confirmDraw { to { stroke-dashoffset: 0; } }
.webinar-confirm h1 { margin: 0 0 8px; color: var(--green-deep); font-size: clamp(1.8rem, 5vw, 2.5rem); }
.webinar-confirm-lead { font-size: 1.08rem; font-weight: 600; color: var(--ink-soft) !important; margin: 0 0 22px; }
.confirm-when { display: inline-flex; align-items: center; gap: 16px; padding: 12px 20px 12px 14px; background: #fbf6ea; border: 1px solid rgba(192, 157, 81, .4); border-radius: 10px; margin-bottom: 28px; text-align: left; }
.confirm-date { display: flex; flex-direction: column; align-items: center; min-width: 58px; padding: 6px 8px; border-radius: 8px; background: var(--green-deep); color: #fff; line-height: 1.1; }
.confirm-date span { font-size: .68rem; letter-spacing: .12em; color: var(--gold-light); }
.confirm-date strong { font-family: 'Poppins', sans-serif; font-size: 1.6rem; }
.confirm-when-text strong { display: block; color: var(--green-deep); }
.confirm-when-text span { font-size: .88rem; color: var(--ink-soft); }
.confirm-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; text-align: left; }
.confirm-steps li { display: flex; gap: 16px; padding: 18px 18px 18px 16px; border: 1px solid var(--line); border-radius: 10px; }
.confirm-step-num { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--green-deep); color: var(--gold-light); display: inline-flex; align-items: center; justify-content: center; font-family: 'Poppins', sans-serif; font-weight: 700; }
.confirm-steps h2 { margin: 4px 0 6px; font-size: 1.02rem; color: var(--green-deep) !important; }
.confirm-steps p { margin: 0 0 10px; color: var(--ink-soft) !important; font-size: .9rem; }
.webinar-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.webinar-actions .btn { box-sizing: border-box; padding: 12px 18px; font-size: .88rem; }
.webinar-tip { margin: 10px 0 0 !important; font-size: .82rem !important; font-style: italic; }
.btn-whatsapp { background: #1fa855; color: #fff; }
.btn-facebook { background: #1877f2; color: #fff; }
.btn-whatsapp:hover, .btn-facebook:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

@media (max-width: 960px) {
  .webinar-hero { padding: 96px 0 48px; }
  .webinar-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .webinar-lead { margin-bottom: 20px; }
  .webinar-facts { margin-bottom: 22px; }
  .countdown-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .webinar-facts { grid-template-columns: 1fr; gap: 8px; }
  .webinar-facts li { padding: 10px 12px; }
  .webinar-card { padding: 24px 18px 22px; }
  .phone-row { grid-template-columns: 1fr; }
  .step-nav .btn { padding: 14px 18px; }
  .confirm-steps li { flex-direction: column; gap: 10px; }
  .webinar-actions .btn { width: 100%; justify-content: center; text-align: center; }
  .confirm-when { width: 100%; box-sizing: border-box; }
}

.webinar-card label.choice { display: flex; margin-bottom: 0; color: var(--ink); }
.webinar-card .choice input { margin-top: 2px; }

.webinar-card p { color: var(--ink-soft); }
.webinar-card h2, .webinar-card h3 { color: var(--green-deep); }

/* ---------- Annonce du webinaire : bandeau + carte d'accueil ---------- */
:root { --announce-h: 46px; }
.announce {
  position: absolute; top: 0; left: 0; right: 0; height: var(--announce-h); z-index: 110;
  background: linear-gradient(90deg, #b8923f, #d4b66e, #b8923f); color: #1f2945;
  display: flex; align-items: center;
}
.announce-link {
  flex: 1; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 14px;
  padding: 0 52px 0 16px; color: inherit; text-decoration: none; font-weight: 600; font-size: .9rem; white-space: nowrap;
}
.announce-badge { flex: none; background: #1f2945; color: var(--gold-light); padding: 4px 11px; border-radius: 999px; font-size: .7rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.announce-text { overflow: hidden; text-overflow: ellipsis; }
.announce-text small { font-weight: 500; opacity: .8; }
.announce-cta { flex: none; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.announce-link:hover .announce-cta { text-decoration-thickness: 2px; }
.announce-close {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; border: 0; border-radius: 50%; background: rgba(31, 41, 69, .12);
  color: #1f2945; font-size: 1.3rem; line-height: 1; cursor: pointer;
}
.announce-close:hover { background: rgba(31, 41, 69, .25); }
body.has-announce .navbar { top: var(--announce-h); }
body.has-announce .hero { padding-top: calc(112px + var(--announce-h)); }
body.has-announce .webinar-hero { padding-top: 112px; }
@media (max-width: 560px) {
  :root { --announce-h: 44px; }
  .announce-link { gap: 8px; font-size: .78rem; padding: 0 44px 0 10px; }
  .announce-badge { font-size: .62rem; padding: 3px 8px; }
  .announce-text small { display: none; }
}

.webinar-teaser { padding: 64px 0; }
.teaser-card {
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 40px; align-items: center;
  padding: 40px 44px; border: 1px solid rgba(212, 182, 110, .45); border-radius: 8px; background: rgba(255, 255, 255, .06);
}
.teaser-copy h2 { margin: 10px 0 8px; color: #fff; font-size: clamp(1.8rem, 3.6vw, 2.6rem); line-height: 1.1; }
.teaser-copy h2 span { color: var(--gold-light); }
.teaser-when { margin: 0 0 18px !important; color: rgba(255, 255, 255, .85) !important; font-weight: 600; }
.teaser-program { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.teaser-program li { padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(212, 182, 110, .5); color: #fff; font-size: .82rem; background: rgba(255, 255, 255, .05); }
.teaser-side { display: grid; gap: 18px; justify-items: stretch; }
.teaser-side .btn { justify-content: center; padding: 16px 24px; }
.teaser-side .countdown-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 860px) {
  .webinar-teaser { padding: 40px 0; }
  .teaser-card { grid-template-columns: minmax(0, 1fr); gap: 26px; padding: 26px 20px; }
}
