/* ==========================================================================
   Afak-Ice — feuille de styles principale
   Conception : mobile d'abord, propriétés logiques (compatibles RTL),
   animations sobres respectant « prefers-reduced-motion ».
   Aucune dépendance externe.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Jetons de design
   -------------------------------------------------------------------------- */
:root {
  /* Palette « glace » : bleus profonds, cyan lumineux, blancs purs */
  --ink-950: #04121f;
  --ink-900: #071b2c;
  --ink-800: #0b2740;
  --ink-700: #10395a;
  --ice-600: #0a7fb8;
  --ice-500: #12a4d9;
  --ice-400: #35cdf5;
  --ice-200: #b6e7fa;
  --ice-100: #ddf3fd;
  --frost: #f5fbff;
  --white: #ffffff;

  --text: #10202e;
  --text-muted: #557080;
  --text-on-dark: #eaf6ff;
  --text-on-dark-muted: #a9c6da;

  --whatsapp: #1fa855;
  --whatsapp-dark: #157f40;

  --border: #d7e6f0;
  --border-dark: rgba(255, 255, 255, 0.14);

  --shadow-sm: 0 1px 2px rgba(4, 18, 31, 0.06), 0 2px 8px rgba(4, 18, 31, 0.05);
  --shadow-md: 0 10px 30px -12px rgba(4, 18, 31, 0.22);
  --shadow-lg: 0 24px 60px -24px rgba(4, 18, 31, 0.42);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --wrap: 1180px;
  --wrap-narrow: 780px;

  --font-display: "Poppins", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-arabic: "IBM Plex Sans Arabic", "Inter", system-ui, sans-serif;

  --step: clamp(1rem, 0.96rem + 0.2vw, 1.05rem);
  --space-section: clamp(3.5rem, 6vw, 6rem);

  --header-h: 68px;
  --quickbar-h: 64px;
}

/* Police arabe : appliquée uniquement aux documents arabes */
html[lang^="ar"] {
  --font-display: var(--font-arabic);
  --font-body: var(--font-arabic);
}

/* --------------------------------------------------------------------------
   2. Réinitialisation raisonnée
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step);
  line-height: 1.65;
  color: var(--text);
  background: var(--frost);
  overflow-x: hidden;
}

img,
picture,
svg {
  max-width: 100%;
}

img {
  height: auto;
  display: block;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  line-height: 1.18;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
  color: inherit;
  text-wrap: balance;
}

h1 {
  font-size: clamp(1.9rem, 1.2rem + 3.1vw, 3.25rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.1rem);
  font-weight: 700;
}

h3 {
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.3rem);
  font-weight: 600;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--ice-600);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--ice-500);
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

:where([id]) {
  scroll-margin-block: calc(var(--header-h) + 1rem) calc(var(--quickbar-h) + 2rem);
}

:focus-visible {
  outline: 3px solid var(--ice-400);
  outline-offset: 2px;
  border-radius: 4px;
}

::selection {
  background: var(--ice-200);
  color: var(--ink-950);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  inset-inline-start: 1rem;
  top: -100px;
  z-index: 200;
  background: var(--white);
  color: var(--ink-900);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  font-weight: 600;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0.75rem;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

.wrap--narrow {
  max-width: var(--wrap-narrow);
}

/* --------------------------------------------------------------------------
   3. Boutons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  min-height: 46px;
  padding: 0.7rem 1.15rem;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease,
    border-color 0.16s ease, color 0.16s ease;
}

.btn svg {
  width: 1.15em;
  height: 1.15em;
  flex: none;
}

.btn--lg {
  min-height: 54px;
  padding: 0.9rem 1.5rem;
  font-size: 1rem;
}

.btn--sm {
  min-height: 40px;
  padding: 0.5rem 0.95rem;
  font-size: 0.875rem;
}

.btn--block {
  width: 100%;
  margin-bottom: 0.6rem;
}

.btn--accent {
  background: linear-gradient(120deg, var(--ice-500), var(--ice-600));
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.btn--accent:hover {
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-dark);
  color: var(--text-on-dark);
  backdrop-filter: blur(6px);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.16);
  color: var(--white);
}

.btn--outline {
  background: transparent;
  border-color: var(--border);
  color: var(--ink-800);
}

.btn--outline:hover {
  border-color: var(--ice-500);
  color: var(--ice-600);
  background: var(--white);
}

.btn--whatsapp {
  background: var(--whatsapp);
  color: var(--white);
}

.btn--whatsapp:hover {
  background: var(--whatsapp-dark);
  color: var(--white);
  transform: translateY(-1px);
}

.btn[disabled],
.btn[aria-disabled="true"] {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Flèche directionnelle : inversée en RTL */
[dir="rtl"] .icon-arrow {
  transform: scaleX(-1);
}

/* --------------------------------------------------------------------------
   4. En-tête
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(4, 18, 31, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-dark);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  margin-inline-end: auto;
}

.brand__mark {
  width: 40px;
  height: 40px;
  flex: none;
}

.brand__accent {
  color: var(--ice-400);
}

.site-nav {
  display: none;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.site-nav a {
  display: block;
  padding: 0.5rem 0.8rem;
  border-radius: var(--radius-pill);
  color: var(--text-on-dark);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: background-color 0.16s ease, color 0.16s ease;
}

.site-nav a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.site-nav a[aria-current="page"] {
  background: rgba(53, 205, 245, 0.16);
  color: var(--white);
}

.navtoggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-dark);
  border-radius: 12px;
  color: var(--white);
  cursor: pointer;
}

.navtoggle svg {
  width: 24px;
  height: 24px;
}

.navtoggle__close {
  display: none;
}

.navtoggle[aria-expanded="true"] .navtoggle__open {
  display: none;
}

.navtoggle[aria-expanded="true"] .navtoggle__close {
  display: block;
}

.site-header__aside {
  display: none;
  align-items: center;
  gap: 0.75rem;
}

.langswitcher {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  padding: 0.15rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-pill);
}

.langswitcher a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 34px;
  padding: 0 0.55rem;
  border-radius: var(--radius-pill);
  color: var(--text-on-dark-muted);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.langswitcher a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.langswitcher a.is-active {
  background: var(--white);
  color: var(--ink-900);
}

/* Panneau de navigation mobile */
@media (max-width: 999px) {
  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 0;
    z-index: 99;
    display: block;
    padding: 1.25rem clamp(1rem, 4vw, 2rem) calc(var(--quickbar-h) + 1.5rem);
    background: rgba(4, 18, 31, 0.98);
    overflow-y: auto;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }

  .site-nav.is-open {
    transform: none;
    opacity: 1;
    visibility: visible;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
  }

  .site-nav a {
    padding: 0.9rem 1rem;
    font-size: 1.05rem;
    border-radius: var(--radius-sm);
  }

  .site-nav__foot {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-dark);
  }

  .site-nav__foot .btn {
    width: 100%;
  }
}

@media (min-width: 1000px) {
  .site-nav {
    display: block;
  }

  .site-nav__foot {
    display: none;
  }

  .navtoggle {
    display: none;
  }

  .site-header__aside {
    display: flex;
  }
}

/* --------------------------------------------------------------------------
   5. Sections
   -------------------------------------------------------------------------- */
.section {
  padding-block: var(--space-section);
  background: var(--frost);
}

.section--alt {
  background: linear-gradient(180deg, #eaf5fc, var(--frost) 70%);
}

.section--dark {
  background:
    radial-gradient(80% 120% at 12% 0%, rgba(18, 164, 217, 0.22), transparent 60%),
    var(--ink-950);
  color: var(--text-on-dark);
}

.section--dark h2,
.section--dark h3 {
  color: var(--white);
}

.section--dark .lead,
.section--dark p {
  color: var(--text-on-dark-muted);
}

.section__head {
  max-width: 42rem;
  margin-bottom: clamp(1.75rem, 3vw, 2.75rem);
}

.section__head p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.section--dark .section__head p {
  color: var(--text-on-dark-muted);
}

.section__cta {
  margin-top: 2rem;
}

.section__note {
  margin-top: 1.5rem;
  padding-inline-start: 1rem;
  border-inline-start: 3px solid var(--ice-400);
  color: var(--text-muted);
  font-size: 0.95rem;
}

.prose p {
  font-size: 1.05rem;
  color: #23384a;
}

.section--dark .prose p {
  color: var(--text-on-dark-muted);
}

.prose-block + .prose-block {
  margin-top: 2.25rem;
}

/* --------------------------------------------------------------------------
   6. Héros — composition plein cadre
   --------------------------------------------------------------------------
   Le visuel occupe toute la surface ; un voile dégradé assure la lisibilité
   du texte sans masquer les glaçons à droite. Trois couches superposées :
   la plaque photographique, deux nappes de lumière froide, un grain de givre.
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--ink-950);
  color: var(--text-on-dark);
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 76% center;
}

/* Voile : dense du côté du texte, quasi nul du côté des glaçons */
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(4, 18, 31, 0.97) 0%,
    rgba(4, 18, 31, 0.93) 24%,
    rgba(4, 18, 31, 0.74) 46%,
    rgba(4, 18, 31, 0.34) 68%,
    rgba(4, 18, 31, 0.14) 100%
  );
}

/* Deux nappes de lumière froide : profondeur et éclat cyan */
.hero__glow {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(60% 70% at 8% 12%, rgba(18, 164, 217, 0.32), transparent 66%),
    radial-gradient(46% 58% at 88% 78%, rgba(53, 205, 245, 0.24), transparent 68%);
  mix-blend-mode: screen;
  pointer-events: none;
}

/* Grain de givre : fines ponctuations, évitent l'aspect « aplat » */
.hero__grain {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    radial-gradient(circle at 20% 24%, rgba(255, 255, 255, 0.08) 0 1px, transparent 1.6px),
    radial-gradient(circle at 64% 70%, rgba(255, 255, 255, 0.055) 0 1px, transparent 1.6px),
    radial-gradient(circle at 86% 36%, rgba(255, 255, 255, 0.065) 0 1px, transparent 1.6px);
  background-size: 44px 44px, 62px 62px, 84px 84px;
  pointer-events: none;
}

/* Liseré lumineux : sépare le héros de la suite de la page */
.hero::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(53, 205, 245, 0.55) 30%,
    rgba(182, 231, 250, 0.75) 50%,
    rgba(53, 205, 245, 0.55) 70%,
    transparent
  );
  z-index: 2;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: center;
  padding-block: clamp(3rem, 7vw, 6rem) clamp(3.5rem, 8vw, 7rem);
  min-height: min(82vh, 44rem);
}

.hero__text {
  max-width: 44rem;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2.25rem, 1.2rem + 4.6vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -0.022em;
  max-width: 24ch;
  text-wrap: balance;
  text-shadow: 0 2px 24px rgba(4, 18, 31, 0.55);
}

html[lang^="ar"] .hero h1 {
  letter-spacing: 0;
  line-height: 1.2;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.1rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid rgba(53, 205, 245, 0.45);
  border-radius: var(--radius-pill);
  background: rgba(53, 205, 245, 0.12);
  backdrop-filter: blur(6px);
  color: var(--ice-200);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.kicker::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--ice-400);
  box-shadow: 0 0 0 4px rgba(53, 205, 245, 0.22);
  flex: none;
}

html[lang^="ar"] .kicker {
  text-transform: none;
  letter-spacing: 0;
}

.hero .lead {
  margin-top: 1.25rem;
  max-width: 38rem;
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.28rem);
  color: rgba(233, 244, 252, 0.92);
}

.lead {
  font-size: clamp(1.05rem, 1rem + 0.35vw, 1.2rem);
  color: var(--text-on-dark-muted);
}

/* Points forts : pastilles en verre dépoli plutôt qu'une liste plate */
.hero__points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1.7rem 0 0;
}

.hero__points li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0.5rem 0.9rem;
  border: 1px solid rgba(53, 205, 245, 0.28);
  border-radius: var(--radius-pill);
  background: rgba(6, 30, 48, 0.55);
  backdrop-filter: blur(8px);
  color: var(--white);
  font-size: 0.92rem;
  font-weight: 500;
}

.ticks li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
}

.ticks svg {
  width: 1.15em;
  height: 1.15em;
  margin-top: 0.28em;
  flex: none;
  color: var(--ice-400);
}

/* Icône des pastilles du héros : alignée sur la ligne, teinte de givre */
.hero__points svg {
  width: 1.05em;
  height: 1.05em;
  flex: none;
  color: var(--ice-200);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.hero__actions .btn--accent {
  box-shadow: 0 20px 44px -18px rgba(53, 205, 245, 0.85);
}

/* Indicateur de défilement : discret, décoratif */
.hero__cue {
  position: absolute;
  inset-inline-start: 50%;
  bottom: 1.1rem;
  transform: translateX(-50%);
  z-index: 1;
  display: none;
  width: 1.6rem;
  height: 2.6rem;
  border: 1px solid rgba(182, 231, 250, 0.5);
  border-radius: var(--radius-pill);
}

.hero__cue::after {
  content: "";
  position: absolute;
  inset-inline-start: 50%;
  top: 0.45rem;
  width: 0.28rem;
  height: 0.28rem;
  margin-inline-start: -0.14rem;
  border-radius: 50%;
  background: var(--ice-200);
  animation: cue 2.6s ease-in-out infinite;
}

@keyframes cue {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.35;
  }
  45% {
    transform: translateY(1.05rem);
    opacity: 1;
  }
}

@media (min-width: 1000px) {
  .hero__cue {
    display: block;
  }
}

/* En arabe, le texte est aligné à droite : on retourne la plaque et le voile
   afin que la zone calme se retrouve du côté du texte et les glaçons du côté
   libre. La texture étant abstraite, ce retournement est sans conséquence. */
html[lang^="ar"] .hero__bg img {
  transform: scaleX(-1);
}

html[lang^="ar"] .hero__bg::after {
  background: linear-gradient(
    260deg,
    rgba(4, 18, 31, 0.97) 0%,
    rgba(4, 18, 31, 0.93) 24%,
    rgba(4, 18, 31, 0.74) 46%,
    rgba(4, 18, 31, 0.34) 68%,
    rgba(4, 18, 31, 0.14) 100%
  );
}

/* Sur petit écran, le texte occupe toute la largeur : on recadre le visuel
   sur les glaçons et on relâche la hauteur minimale. */
@media (max-width: 999px) {
  .hero__bg img {
    object-position: 70% center;
  }

  .hero__inner {
    min-height: auto;
    padding-block: 2.75rem 3.5rem;
  }

  .hero h1 {
    max-width: 100%;
  }

  .hero .lead {
    max-width: 100%;
  }
}

.pagehero {
  background:
    radial-gradient(70% 100% at 12% 0%, rgba(18, 164, 217, 0.2), transparent 60%),
    var(--ink-950);
  color: var(--text-on-dark);
}

.pagehero__inner {
  display: grid;
  gap: 1.5rem;
  padding-block: clamp(2rem, 4vw, 3.25rem);
}

.pagehero h1 {
  color: var(--white);
}

.pagehero__text {
  max-width: 44rem;
}

.pagehero--tight .pagehero__inner {
  padding-block: clamp(1.75rem, 3.5vw, 2.75rem);
}

.pagehero__aside {
  padding: 1.5rem;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
}

.aside__title {
  font-size: 1.05rem;
  color: var(--white);
}

.mini-steps {
  display: grid;
  gap: 0.85rem;
  counter-reset: none;
}

.mini-steps li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-size: 0.95rem;
  color: var(--text-on-dark-muted);
}

.mini-steps__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.65rem;
  height: 1.65rem;
  flex: none;
  border-radius: 50%;
  background: rgba(53, 205, 245, 0.18);
  color: var(--ice-200);
  font-size: 0.8rem;
  font-weight: 700;
}

.img-notice {
  margin-top: 1rem;
  font-size: 0.82rem;
  color: #7f9aae;
}

/* Mention « visuel d'illustration » sur le héros : repliée par défaut pour ne
   pas alourdir la composition, mais toujours accessible en un clic. */
.img-notice-disclosure {
  margin-top: 1.5rem;
  max-width: 38rem;
  border-inline-start: 2px solid rgba(53, 205, 245, 0.45);
  padding-inline-start: 0.85rem;
}

.img-notice-disclosure summary {
  cursor: pointer;
  color: var(--ice-200);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.img-notice-disclosure summary::marker {
  color: var(--ice-400);
}

.img-notice-disclosure p {
  margin: 0.5rem 0 0;
  color: rgba(182, 231, 250, 0.78);
  font-size: 0.82rem;
  line-height: 1.5;
}

.img-notice--hero {
  color: #7f9aae;
}

/* --------------------------------------------------------------------------
   7. Cartes, étapes, listes
   -------------------------------------------------------------------------- */
.cards {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 700px) {
  .cards--2,
  .cards--3,
  .cards--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1000px) {
  .cards--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cards--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.card__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.card__body {
  padding: 1.35rem;
}

.card__body h3 {
  margin-bottom: 0.5rem;
}

.card__body p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.98rem;
}

.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 0.85rem;
  border-radius: 14px;
  background: linear-gradient(140deg, var(--ice-100), var(--ice-200));
  color: var(--ice-600);
}

.card__icon svg {
  width: 24px;
  height: 24px;
}

.card--channel .btn {
  margin-top: 1rem;
}

.section--dark .card {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-dark);
  box-shadow: none;
}

.section--dark .card__body p {
  color: var(--text-on-dark-muted);
}

.section--dark .card__body h3 {
  color: var(--white);
}

.steps {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 700px) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.step {
  padding: 1.4rem;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
}

.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.85rem;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--ice-500), var(--ice-600));
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 700;
}

.step h3 {
  font-size: 1.05rem;
}

.step p {
  margin: 0;
  color: var(--text-on-dark-muted);
  font-size: 0.95rem;
}

.ticks {
  display: grid;
  gap: 0.65rem;
  margin: 1.25rem 0 0;
}

.ticks--2 {
  grid-template-columns: 1fr;
}

@media (min-width: 800px) {
  .ticks--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem 2rem;
  }
}

.section--dark .ticks li {
  color: var(--text-on-dark);
}

.sector {
  display: grid;
  gap: 0;
  margin-bottom: 1.5rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.sector__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.sector__body {
  padding: 1.5rem;
}

.sector__body .ticks {
  margin-top: 1rem;
}

.sector__body .ticks svg {
  color: var(--ice-600);
}

@media (min-width: 860px) {
  .sector {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: stretch;
  }

  .sector__media img {
    height: 100%;
    aspect-ratio: 4 / 3;
  }

  /* Alternance : l'image change de côté pour rythmer la page (LTR et RTL) */
  .sector:nth-child(even) .sector__media {
    order: 2;
  }
}

/* --------------------------------------------------------------------------
   8. Zone de service, FAQ, tableaux, informations
   -------------------------------------------------------------------------- */
.zone {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 900px) {
  .zone {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  }
}

.zone__note {
  padding-inline-start: 1rem;
  border-inline-start: 3px solid var(--ice-400);
  color: var(--text-muted);
  font-size: 0.92rem;
}

.zone__media img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.faq__item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 1.25rem;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  list-style: none;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary svg {
  width: 1.1em;
  height: 1.1em;
  flex: none;
  color: var(--ice-600);
  transition: transform 0.2s ease;
}

.faq__item[open] summary svg {
  transform: rotate(90deg);
}

[dir="rtl"] .faq__item summary svg {
  transform: scaleX(-1);
}

[dir="rtl"] .faq__item[open] summary svg {
  transform: scaleX(-1) rotate(90deg);
}

.faq__answer {
  padding: 0 1.25rem 1.25rem;
  color: var(--text-muted);
}

.faq__answer p:last-child {
  margin-bottom: 0;
}

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.96rem;
}

.table th,
.table td {
  padding: 0.9rem 1.1rem;
  text-align: start;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}

.table thead th {
  background: var(--ice-100);
  color: var(--ink-800);
  font-family: var(--font-display);
  font-weight: 600;
}

.table tbody th {
  color: var(--ink-800);
  font-weight: 600;
}

.table tbody tr:last-child th,
.table tbody tr:last-child td {
  border-bottom: 0;
}

@media (max-width: 720px) {
  .table,
  .table thead,
  .table tbody,
  .table tr,
  .table th,
  .table td {
    display: block;
  }

  .table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .table tr {
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 0;
  }

  .table tbody tr:last-child {
    border-bottom: 0;
  }

  .table th,
  .table td {
    border: 0;
    padding: 0.35rem 1.1rem;
  }

  .table td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.78rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--text-muted);
  }
}

.info {
  display: grid;
  gap: 0;
  margin: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.info__row {
  display: grid;
  gap: 0.25rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.info__row:last-child {
  border-bottom: 0;
}

.info dt {
  font-weight: 600;
  color: var(--ink-800);
  font-size: 0.95rem;
}

.info dd {
  margin: 0;
  color: var(--text-muted);
}

@media (min-width: 640px) {
  .info__row {
    grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
    gap: 1rem;
    align-items: baseline;
  }
}

.pending-tag {
  display: inline-block;
  margin-inline-end: 0.4rem;
  padding: 0.1rem 0.5rem;
  border-radius: var(--radius-pill);
  background: #fff4e0;
  border: 1px solid #f2d49a;
  color: #8a5b00;
  font-size: 0.78rem;
  font-weight: 600;
}

/* Encadré « information à compléter » */
.tbd {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  margin: 1.5rem 0 0;
  padding: 1rem 1.15rem;
  border: 1px dashed #e0b872;
  border-radius: var(--radius-sm);
  background: #fffaf0;
  color: #6b4a06;
  font-size: 0.94rem;
}

.tbd svg {
  flex: none;
  margin-top: 0.15rem;
  color: #b8860b;
}

.tbd p {
  margin: 0;
}

.section--dark .tbd {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.28);
  color: var(--text-on-dark-muted);
}

/* --------------------------------------------------------------------------
   9. Bandeau final d'appel à l'action
   -------------------------------------------------------------------------- */
.cta-band {
  position: relative;
  overflow: hidden;
  padding-block: clamp(2.5rem, 5vw, 3.75rem);
  background:
    radial-gradient(70% 130% at 15% 10%, rgba(53, 205, 245, 0.3), transparent 60%),
    linear-gradient(120deg, var(--ink-900), var(--ink-950));
  color: var(--text-on-dark);
}

.cta-band__inner {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

.cta-band h2 {
  color: var(--white);
}

.cta-band p {
  margin: 0;
  color: var(--text-on-dark-muted);
}

.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

@media (min-width: 960px) {
  .cta-band__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2.5rem;
  }
}

/* --------------------------------------------------------------------------
   10. Formulaire
   -------------------------------------------------------------------------- */
.form-layout {
  display: grid;
  gap: 2rem;
}

@media (min-width: 1000px) {
  .form-layout {
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    align-items: start;
  }
}

.form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow: var(--shadow-sm);
}

.form fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.1rem;
}

@media (min-width: 720px) {
  .form fieldset {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .form fieldset .field--wide,
  .form fieldset .field--check {
    grid-column: 1 / -1;
  }

  .form fieldset legend {
    grid-column: 1 / -1;
  }
}

.form legend {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink-800);
  padding: 0;
  margin-bottom: 0.25rem;
}

.form__hint,
.form__privacy {
  margin: 0 0 1.25rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.form__privacy {
  margin: 1.25rem 0 0;
}

.form__noscript {
  margin: 1rem 0 0;
  padding: 0.85rem 1rem;
  border-inline-start: 3px solid var(--ice-500);
  background: var(--ice-100);
  border-radius: var(--radius-sm);
  color: var(--ink-800);
  font-size: 0.92rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  /* La barre d'accès rapide est fixée en bas sur mobile : on garantit que le
     champ ciblé par une erreur (ou par un lien d'ancre) reste visible. */
  scroll-margin-block: calc(var(--header-h) + 1rem) calc(var(--quickbar-h) + 6rem);
}

.field label {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink-800);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.9rem;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--frost);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.field textarea {
  min-height: 118px;
  resize: vertical;
}

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23557080' d='M12 15.5 5.5 9l1.4-1.4L12 12.7l5.1-5.1L18.5 9 12 15.5Z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.8rem center;
  background-size: 1.1rem;
  padding-inline-end: 2.4rem;
}

[dir="rtl"] .field select {
  background-position: left 0.8rem center;
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  border-color: var(--ice-500);
  outline: 3px solid rgba(53, 205, 245, 0.35);
  outline-offset: 0;
}

.field__hint {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.field__error {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: #b3261e;
}

.field--invalid input,
.field--invalid select,
.field--invalid textarea {
  border-color: #b3261e;
  background: #fff6f5;
}

.field--check {
  flex-direction: row;
  align-items: flex-start;
  gap: 0.6rem;
}

.field--check input {
  width: 22px;
  height: 22px;
  min-height: 22px;
  margin-top: 0.15rem;
  flex: none;
  accent-color: var(--ice-600);
}

.field--check label {
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.field--check .field__error {
  flex-basis: 100%;
}

.req {
  color: #b3261e;
  font-weight: 700;
}

.form__summary {
  margin-bottom: 1.25rem;
  padding: 1rem 1.15rem;
  border: 1px solid #f3b6b2;
  border-radius: var(--radius-sm);
  background: #fdf2f1;
  color: #8c1d18;
}

.form__summary p {
  margin: 0 0 0.35rem;
}

.form__summary ul {
  list-style: disc;
  padding-inline-start: 1.25rem;
}

.form__summary a {
  color: #8c1d18;
}

.form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.form__success {
  margin-top: 1.5rem;
  padding: 1.25rem 1.35rem;
  border: 1px solid #a9ddb9;
  border-radius: var(--radius);
  background: #f1fbf4;
}

.form__success h3 {
  margin-bottom: 0.5rem;
  color: #14663a;
}

.form__success p:last-child {
  margin-bottom: 0;
}

.form-layout__aside {
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.form-layout__aside h2 {
  font-size: 1.05rem;
}

.form-layout__aside hr {
  margin: 1.5rem 0;
  border: 0;
  border-top: 1px solid var(--border);
}

.aside__hint {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.aside__todo {
  padding: 0.85rem 1rem;
  border: 1px dashed #e0b872;
  border-radius: var(--radius-sm);
  background: #fffaf0;
  color: #6b4a06;
  font-size: 0.88rem;
}

/* --------------------------------------------------------------------------
   11. Fil d'Ariane, pied de page
   -------------------------------------------------------------------------- */
.breadcrumbs {
  background: var(--ink-950);
  color: var(--text-on-dark-muted);
  font-size: 0.85rem;
  border-bottom: 1px solid var(--border-dark);
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  padding-block: 0.7rem;
}

.breadcrumbs li + li::before {
  content: "/";
  margin-inline-end: 0.4rem;
  color: rgba(255, 255, 255, 0.35);
}

.breadcrumbs a {
  color: var(--ice-200);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--white);
  text-decoration: underline;
}

.site-footer {
  background: var(--ink-950);
  color: var(--text-on-dark-muted);
  padding-block: clamp(2.5rem, 5vw, 3.5rem) 1.5rem;
  border-top: 1px solid var(--border-dark);
}

.site-footer__grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 860px) {
  .site-footer__grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 3rem;
  }
}

.site-footer .brand {
  margin-bottom: 0.85rem;
  font-size: 1.2rem;
}

.site-footer__brand p {
  font-size: 0.95rem;
  max-width: 32rem;
}

.contact-list {
  display: grid;
  gap: 0.6rem;
  margin-top: 1rem;
}

.contact-list li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.95rem;
}

.contact-list svg {
  width: 1.1em;
  height: 1.1em;
  margin-top: 0.28em;
  flex: none;
  color: var(--ice-400);
}

.contact-list a {
  color: var(--text-on-dark);
  text-decoration: none;
}

.contact-list a:hover {
  color: var(--ice-400);
  text-decoration: underline;
}

.site-footer__nav h2 {
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 0.85rem;
}

html[lang^="ar"] .site-footer__nav h2 {
  text-transform: none;
  letter-spacing: 0;
}

.site-footer__nav li + li {
  margin-top: 0.5rem;
}

.site-footer__nav a {
  color: var(--text-on-dark-muted);
  text-decoration: none;
  font-size: 0.95rem;
}

.site-footer__nav a:hover {
  color: var(--white);
  text-decoration: underline;
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-dark);
  font-size: 0.85rem;
}

.site-footer__bottom p {
  margin: 0;
}

.site-footer__note {
  color: var(--ice-200);
}

/* --------------------------------------------------------------------------
   12. Barre d'accès rapide (mobile)
   -------------------------------------------------------------------------- */
.quickbar {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 120;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(4, 18, 31, 0.98);
  border-top: 1px solid var(--border-dark);
  padding-bottom: env(safe-area-inset-bottom, 0);
  backdrop-filter: blur(10px);
}

.quickbar__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  min-height: var(--quickbar-h);
  padding: 0.4rem 0.25rem;
  color: var(--text-on-dark);
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
}

.quickbar__item svg {
  width: 22px;
  height: 22px;
  color: var(--ice-400);
}

.quickbar__item--accent {
  background: linear-gradient(120deg, var(--ice-500), var(--ice-600));
  color: var(--white);
}

.quickbar__item--accent svg {
  color: var(--white);
}

@media (min-width: 1000px) {
  .quickbar {
    display: none;
  }
}

@media (max-width: 999px) {
  body {
    padding-bottom: var(--quickbar-h);
  }
}

/* --------------------------------------------------------------------------
   13. Page 404
   -------------------------------------------------------------------------- */
.section--404 {
  min-height: 50vh;
  display: grid;
  align-items: center;
}

/* --------------------------------------------------------------------------
   14. Animations légères à l'apparition
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Sécurité : si JavaScript est absent, rien ne doit rester invisible */
.no-js .reveal {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .hero__media::after {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   15. Impression
   -------------------------------------------------------------------------- */
@media print {
  .site-header,
  .quickbar,
  .cta-band__actions,
  .breadcrumbs {
    display: none;
  }

  body {
    background: #fff;
    color: #000;
  }

  .section,
  .section--alt,
  .section--dark {
    background: #fff;
    color: #000;
  }

  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
  }
}