/*
Theme Name: Neba
Theme URI: https://nebaconsulting.ma
Author: Neba Consulting
Description: Thème de blocs sur mesure de Neba Consulting — couleurs du logo (bleu #2D4D9E, rouge #C41414), photos réelles de l'équipe et des étudiants, guides par destination, agences, attribution.
Version: 0.6.4
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: neba
*/

/* ------------------------------------------------------------------
   Monde Neba : bleu du logo en aplats qui portent des régions entières,
   rouge du logo réservé à l'action, photos dans des « plaques » arrondies
   comme la plaque NEBA du logo. Propriétés logiques pour la version arabe.
   ------------------------------------------------------------------ */

:root {
  --neba-radius: 12px;
  --neba-radius-lg: 18px;
  --neba-tap: 44px;
  --neba-ombre: 0 18px 40px -22px rgba(20, 33, 61, .5);
  --neba-ease: cubic-bezier(.16, 1, .3, 1);
}

html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
::selection { background: var(--wp--preset--color--bleu); color: #fff; }
.has-bleu-background-color ::selection, .neba-bande--bleu ::selection { background: #fff; color: var(--wp--preset--color--bleu); }

h1, h2, h3, h4 { overflow-wrap: anywhere; text-wrap: balance; }
p, li { text-wrap: pretty; }
a { text-underline-offset: 3px; text-decoration-thickness: 1px; }
img { height: auto; max-width: 100%; }
figure { margin: 0; }

a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--wp--preset--color--rouge);
  outline-offset: 2px;
}
.has-bleu-background-color :focus-visible, .neba-bande--bleu :focus-visible, .neba-footer :focus-visible { outline-color: #fff; }

/* Pleine largeur dans le contenu */
.wp-block-post-content > .alignfull, .wp-block-post-content > .neba-bande, .wp-block-post-content > .neba-seq {
  width: 100vw;
  box-sizing: border-box;
  max-width: none;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
}
html { overflow-x: clip; }
.neba-bande { padding: 36px var(--wp--style--root--padding-left, 20px); }
.neba-bande--bleu { background: var(--wp--preset--color--bleu); color: #fff; }
.neba-bande--bleu h1, .neba-bande--bleu h2, .neba-bande--bleu h3 { color: #fff; }
.neba-bande--bleu p { color: var(--wp--preset--color--bleu-brume); }
.neba-bande--bleu a:not(.wp-block-button__link) { color: #fff; }
.neba-bande--clair { background: var(--wp--preset--color--bleu-clair); }
.neba-bande--nuit { background: var(--wp--preset--color--nuit); color: #fff; }
.neba-bande > .neba-contenu, .neba-contenu { max-width: 1120px; margin-inline: auto; }
.neba-contenu--etroit { max-width: 720px; }
.neba-contenu > * + * { margin-top: 16px; }
@media (min-width: 900px) { .neba-bande { padding-top: 56px; padding-bottom: 56px; } }

/* Plaques (photos) */
.neba-plaque { border-radius: var(--neba-radius-lg); overflow: hidden; background: var(--wp--preset--color--bleu-clair); box-shadow: var(--neba-ombre); }
.neba-plaque img { display: block; width: 100%; height: 100%; object-fit: cover; }
.neba-plaque--43 img { aspect-ratio: 4 / 3; }
.neba-plaque--32 img { aspect-ratio: 3 / 2; }
.neba-plaque--11 img { aspect-ratio: 1 / 1; }
.neba-legende { font-size: 13px; color: var(--wp--preset--color--sourdine); margin: 8px 2px 0; }
.neba-bande--bleu .neba-legende { color: var(--wp--preset--color--bleu-brume); }

/* Boutons */
.wp-block-button__link, .neba-btn { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--wp--preset--font-family--titre); font-weight: 700; font-size: 15px; border-radius: 10px; text-decoration: none; transition: background-color .2s, border-color .2s, transform .2s var(--neba-ease); }
.wp-block-button__link:active, .neba-btn:active { transform: translateY(1px); }
.wp-block-button.is-style-outline .wp-block-button__link, .neba-btn--contour { border: 1.5px solid var(--wp--preset--color--bleu); color: var(--wp--preset--color--bleu); background: #fff; }
.wp-block-button.is-style-outline .wp-block-button__link:hover, .neba-btn--contour:hover { background: var(--wp--preset--color--bleu-clair); color: var(--wp--preset--color--bleu); }
.neba-bande--bleu .wp-block-button.is-style-outline .wp-block-button__link, .neba-bande--bleu .neba-btn--contour, .has-bleu-background-color .wp-block-button.is-style-outline .wp-block-button__link { border-color: rgba(255,255,255,.7); color: #fff; background: transparent; }
.neba-bande--bleu .wp-block-button.is-style-outline .wp-block-button__link:hover { background: rgba(255,255,255,.12); color: #fff; }
.wp-block-button__width-100 .wp-block-button__link { width: 100%; }
.neba-form .wp-block-button__link, .neba-hero__actions .wp-block-button__link { height: auto; }
.neba-btn-whatsapp .wp-block-button__link::before, a.neba-btn-whatsapp::before { content: ""; display: inline-block; width: 18px; height: 18px; flex-shrink: 0; background: currentColor; -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'><path d='M21 11.5a8.4 8.4 0 0 1-12.3 7.4L3 21l2.1-5.6A8.4 8.4 0 1 1 21 11.5z'/></svg>") center / contain no-repeat; mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'><path d='M21 11.5a8.4 8.4 0 0 1-12.3 7.4L3 21l2.1-5.6A8.4 8.4 0 1 1 21 11.5z'/></svg>") center / contain no-repeat; }

/* En-tête */
.neba-header { border-bottom: 1px solid var(--wp--preset--color--ligne); background: #fff; position: sticky; top: 0; z-index: 40; }
.admin-bar .neba-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .neba-header { top: 46px; } }
.neba-header .wp-block-site-logo img { height: 34px; width: auto; display: block; }
.neba-header .wp-block-navigation a { font-family: var(--wp--preset--font-family--titre); font-weight: 600; font-size: 14px; color: var(--wp--preset--color--nuit); }
.neba-header .wp-block-navigation a:hover { color: var(--wp--preset--color--bleu); }
.neba-header .wp-block-navigation__responsive-container-open, .neba-header .wp-block-navigation__responsive-container-close { color: var(--wp--preset--color--nuit); }
.neba-header .neba-header__rdv { display: none; }
.neba-header .wp-block-button__link { min-height: 42px; padding: 0 16px; font-size: 14px; }
@media (min-width: 900px) { .neba-header .neba-header__rdv { display: block; } .neba-header .wp-block-site-logo img { height: 40px; } }

/* Héros accueil (v0.3 : bande bleu nuit + scène 3D) */
.neba-hero { padding: 28px 0 8px; }
.neba-bande--nuit { background: #0B1F3D; color: #fff; }
.neba-bande--nuit h1, .neba-bande--nuit h2 { color: #fff; }
.neba-bande--nuit .neba-hero__lead { color: var(--wp--preset--color--bleu-brume); }
.neba-bande--nuit .neba-btn--contour { border-color: rgba(255,255,255,.7); color: #fff; background: transparent; }
.neba-bande--nuit .neba-btn--contour:hover { background: rgba(255,255,255,.12); color: #fff; }
.neba-hero--nuit { padding: 8px var(--wp--style--root--padding-left, 20px) 0; }
.neba-hero__3d { margin: 0 -12px -8px; }
.neba-hero__3d img { display: block; width: 100%; height: auto; -webkit-mask-image: radial-gradient(ellipse 62% 60% at 50% 50%, #000 52%, transparent 100%); mask-image: radial-gradient(ellipse 62% 60% at 50% 50%, #000 52%, transparent 100%); }
@media (min-width: 900px) { .neba-hero--nuit { padding: 24px var(--wp--style--root--padding-left, 20px) 16px; } .neba-hero__3d { margin: -24px -40px -16px 0; } }
.neba-hero__grid { display: grid; gap: 22px; }
.neba-hero h1 { max-width: none; font-size: clamp(30px, 8.2vw, 36px); }
.neba-hero__texte > * + * { margin-top: 14px; }
.neba-hero__lead { font-size: 18px; line-height: 1.5; color: var(--wp--preset--color--texte); max-width: 46ch; }
.neba-hero__actions { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.neba-hero__actions .wp-block-buttons { gap: 10px; }
.neba-hero__media { animation: neba-rise .9s var(--neba-ease) both; }
@keyframes neba-rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .neba-hero__media { animation: none; } }
@media (min-width: 900px) {
  .neba-hero { padding: 48px 0 24px; }
  .neba-hero__grid { grid-template-columns: 1.05fr .95fr; align-items: center; gap: 48px; }
  .neba-hero__actions { flex-direction: row; }
  .neba-hero h1 { font-size: 44px; max-width: 22ch; }
}

/* Bandeau de preuves */
.neba-preuves { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 12px; align-items: center; font-size: 14px; color: var(--wp--preset--color--nuit); }
.neba-preuves > * { display: inline-flex; align-items: center; gap: 9px; min-height: 40px; }
.neba-preuves svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--wp--preset--color--bleu); }
.neba-preuves img { height: 40px; width: auto; }
.neba-preuves strong { font-weight: 700; }
.neba-bande--preuves { padding-top: 14px; padding-bottom: 14px; }
@media (min-width: 720px) { .neba-preuves { display: flex; flex-wrap: wrap; justify-content: space-between; font-size: 15px; } }

/* Destinations */
.neba-destinations { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.neba-dest { display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: inherit; min-width: 0; }
.neba-dest figure { border-radius: 14px; overflow: hidden; border: 3px solid rgba(255,255,255,.92); background: var(--wp--preset--color--bleu-fonce); box-shadow: var(--neba-ombre); transition: border-color .25s, transform .3s var(--neba-ease); }
.neba-dest img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: transform .6s var(--neba-ease); }
.neba-dest:hover figure { transform: translateY(-2px); border-color: #fff; }
.neba-dest:hover img { transform: scale(1.04); }
.neba-dest strong { font-family: var(--wp--preset--font-family--titre); font-weight: 800; font-size: 15px; letter-spacing: .04em; text-transform: uppercase; color: #fff; }
.neba-dest span { font-size: 14px; line-height: 1.4; color: var(--wp--preset--color--bleu-brume); }
.neba-dest--lien figure { display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / 1; background: rgba(255,255,255,.08); border-style: dashed; border-color: rgba(255,255,255,.45); color: #fff; }
.neba-dest--lien svg { width: 36px; height: 36px; }
@media (min-width: 720px) { .neba-destinations { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } .neba-dest strong { font-size: 16px; } }

/* Mouvement léger (0.3.0) : la scène du héros flotte en boucle, les cartes s'inclinent au survol (souris seulement), l'image des piliers entre comme le héros. CSS seul, désactivé si la personne a demandé moins d'animations. */
.neba-hero__3d img { animation: neba-flotte 4.5s ease-in-out 1s infinite alternate; }
@keyframes neba-flotte { from { transform: translateY(6px) rotate(-.6deg); } to { transform: translateY(-16px) rotate(1.2deg); } }
.neba-visuel { animation: neba-rise .9s var(--neba-ease) both; }
@media (hover: hover) and (pointer: fine) {
  .neba-dest figure { transition: border-color .25s, transform .45s var(--neba-ease), box-shadow .45s var(--neba-ease); }
  .neba-dest:hover figure { transform: perspective(700px) rotateX(5deg) rotateY(-6deg) translateY(-4px); box-shadow: 0 22px 40px rgba(11,31,61,.38); }
}
@media (prefers-reduced-motion: reduce) {
  .neba-hero__3d img, .neba-visuel { animation: none; }
  .neba-dest:hover figure { transform: translateY(-2px); box-shadow: var(--neba-ombre); }
}

/* Vidéos 3D (0.4.0) : boucle réaliste générée par IA à la place de l'image fixe. L'image reste dessous et garde le flottement CSS tant que la vidéo ne joue pas ; assets/js/motion.js ne charge la vidéo que si le mouvement est accepté, hors économie de données, et quand le héros est à l'écran. */
.neba-hero__3d { position: relative; }
.neba-hero__3d video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .8s ease; -webkit-mask-image: radial-gradient(ellipse 62% 60% at 50% 50%, #000 52%, transparent 100%); mask-image: radial-gradient(ellipse 62% 60% at 50% 50%, #000 52%, transparent 100%); pointer-events: none; }
.neba-hero__3d--video video { opacity: 1; }
.neba-hero__3d--video img { animation: none; }
/* 0.4.1 : une fois la vidéo pleinement affichée (fondu de .8s), l'image fixe dessous est cachée ; sinon elle transparaît dans le fondu des bords (« fantôme » de l'avion quand il bouge). visibility garde la place de l'image ; :has(> video) la refait apparaître si la vidéo est retirée. */
.neba-hero__3d--video:has(> video) img { visibility: hidden; transition: visibility 0s linear .8s; }
/* 0.4.3 : héros « deux socles » (toque à gauche toute la boucle, les 7 pays à droite). Les socles vont presque d'un bord
   à l'autre : fondu des bords élargi. Sous les socles, « Étudier en … » + drapeau en vrai texte (lisible, net, traduisible),
   synchronisé sur la vidéo par motion.js (data-plages en secondes) ; sans vidéo, le premier pays reste affiché (comme
   l'image fixe). Tailles choisies par Youssef le 8/11 : texte 5 % de la largeur de l'image, drapeau 7 %. */
.neba-hero__3d { container-type: inline-size; }
.neba-hero__3d img, .neba-hero__3d video { -webkit-mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent), linear-gradient(to bottom, transparent, #000 6%, #000 88%, transparent); -webkit-mask-composite: source-in; mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent), linear-gradient(to bottom, transparent, #000 6%, #000 88%, transparent); mask-composite: intersect; }
/* Canevas (motion.js) : copie de la vidéo aux couleurs exactes de la page, posé sur la vidéo avec le même fondu des bords.
   La vidéo dessous garde un fondu plus serré, pour ne jamais dépasser du canevas dans les bords. */
.neba-hero__toile { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .8s ease; pointer-events: none; -webkit-mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent), linear-gradient(to bottom, transparent, #000 6%, #000 88%, transparent); -webkit-mask-composite: source-in; mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent), linear-gradient(to bottom, transparent, #000 6%, #000 88%, transparent); mask-composite: intersect; }
.neba-hero__3d--video .neba-hero__toile { opacity: 1; }
.neba-hero__3d--toile video { -webkit-mask-image: linear-gradient(to right, transparent 5%, #000 8%, #000 92%, transparent 95%), linear-gradient(to bottom, transparent 6%, #000 9%, #000 85%, transparent 88%); -webkit-mask-composite: source-in; mask-image: linear-gradient(to right, transparent 5%, #000 8%, #000 92%, transparent 95%), linear-gradient(to bottom, transparent 6%, #000 9%, #000 85%, transparent 88%); mask-composite: intersect; }
.neba-hero__pays { position: absolute; left: 3cqw; right: 3cqw; top: 85%; bottom: 1cqw; margin: 0; padding: 0; list-style: none; pointer-events: none; }
.neba-hero__pays li { position: absolute; inset: 0; margin: 0; display: flex; align-items: center; justify-content: center; gap: 1.6cqw; color: #fff; font-family: var(--wp--preset--font-family--titre); font-weight: 800; font-size: 5cqw; line-height: 1.1; letter-spacing: -.005em; text-align: center; opacity: 0; transform: translateY(.8cqw); transition: opacity .22s ease, transform .22s ease; }
.neba-hero__pays li:first-child { opacity: 1; transform: none; }
.neba-hero__pays.is-anime li:not(.is-actif) { opacity: 0; transform: translateY(.8cqw); transition-delay: 0s; }
.neba-hero__pays.is-anime li.is-actif { opacity: 1; transform: none; transition-delay: .2s; }
.neba-hero__pays svg { height: 7cqw; width: auto; flex: none; margin: 0; border-radius: max(2px, .35cqw); box-shadow: 0 0 0 1px rgba(255,255,255,.45); }
@media (prefers-reduced-motion: reduce) { .neba-hero__pays li { transition: none; } }
/* 0.4.4 : au téléphone, la figure du héros dépasse de 8 px sous la bande bleue (margin-bottom: -8px) ; la légende est
   remontée d'autant, sinon le drapeau touche presque le bas de la bande. */
@media (max-width: 899.98px) { .neba-hero__pays { top: calc(85% - 8px); bottom: calc(1cqw + 8px); } }
.neba-dest figure { position: relative; }
.neba-dest video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s ease, transform .6s var(--neba-ease); pointer-events: none; }
.neba-dest video.is-playing { opacity: 1; }
/* 0.4.2 : la vidéo grossit avec l'image au survol (même 4 %, même durée), sinon le monument « rétrécit » quand la vidéo apparaît. */
.neba-dest:hover video { transform: scale(1.04); }

/* Étapes */
.neba-etapes { display: grid; gap: 14px; }
.neba-etape { display: flex; gap: 14px; font-size: 16px; line-height: 1.5; }
.neba-etape__num { width: 36px; height: 36px; border-radius: 9px; background: var(--wp--preset--color--bleu); color: #fff; font-family: var(--wp--preset--font-family--titre); font-weight: 800; font-size: 16px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.neba-etape strong { font-family: var(--wp--preset--font-family--titre); font-weight: 700; font-size: 16px; color: var(--wp--preset--color--nuit); }
.neba-etape span { color: var(--wp--preset--color--texte); }
@media (min-width: 900px) { .neba-etapes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 32px; } }

/* Deux colonnes photo + texte */
.neba-duo { display: grid; gap: 20px; align-items: center; }
.neba-duo > div > * + * { margin-top: 14px; }
@media (min-width: 900px) { .neba-duo { grid-template-columns: 1fr 1fr; gap: 48px; } .neba-duo--inverse > :first-child { order: 2; } }

/* Encadré */
.neba-encadre { border: 1px solid var(--wp--preset--color--ligne); border-radius: var(--neba-radius); padding: 14px 16px; font-size: 15px; line-height: 1.5; color: var(--wp--preset--color--texte); background: #fff; }

/* Vidéos (pubs Meta, lecture au clic, jamais d'autoplay) */
.neba-videos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.neba-video { margin: 0; }
.neba-video video { display: block; width: 100%; aspect-ratio: 9 / 16; border-radius: 14px; background: #000; object-fit: cover; }
.neba-video figcaption { font-size: 13px; color: var(--wp--preset--color--sourdine); margin-top: 6px; }
@media (min-width: 720px) { .neba-videos { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }
/* 0.4.6 : trois témoignages sur l'accueil, une vidéo seule et centrée sur un pilier. */
.neba-videos--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.neba-videos--3 .neba-video:nth-child(3) { grid-column: 1 / -1; max-width: calc(50% - 6px); }
@media (min-width: 720px) { .neba-videos--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .neba-videos--3 .neba-video:nth-child(3) { grid-column: auto; max-width: none; } }
.neba-video--seul { max-width: 320px; margin: 28px auto; }
.neba-video--seul figcaption { text-align: center; }

/* Avis */
.neba-avis { display: grid; gap: 12px; }
.neba-avis__carte { background: #fff; border-radius: var(--neba-radius); padding: 18px; box-shadow: var(--neba-ombre); display: flex; flex-direction: column; gap: 8px; }
.neba-etoiles { display: flex; gap: 2px; color: var(--wp--preset--color--rouge); }
.neba-etoiles svg { width: 16px; height: 16px; }
.neba-avis__texte { font-size: 16px; line-height: 1.5; color: var(--wp--preset--color--encre); margin: 0; }
.neba-avis__auteur { font-size: 14px; color: var(--wp--preset--color--sourdine); margin: 0; }
@media (min-width: 720px) { .neba-avis { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }

/* Agences */
.neba-agences { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.neba-agence { border: 1px solid var(--wp--preset--color--ligne); border-radius: var(--neba-radius); padding: 14px; text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 4px; min-height: var(--neba-tap); background: #fff; transition: border-color .2s; }
.neba-agence:hover { border-color: var(--wp--preset--color--bleu); }
.neba-agence strong { font-family: var(--wp--preset--font-family--titre); font-weight: 700; font-size: 16px; color: var(--wp--preset--color--bleu); }
.neba-agence span { font-size: 14px; color: var(--wp--preset--color--sourdine); }
@media (min-width: 720px) { .neba-agences { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; } }

/* Bloc rendez-vous */
.neba-cta__grid { display: grid; gap: 22px; }
.neba-cta__texte > * + * { margin-top: 12px; }
.neba-cta__texte ul { padding-inline-start: 20px; margin: 0; color: var(--wp--preset--color--bleu-brume); font-size: 16px; line-height: 1.7; }
.neba-form { background: #fff; color: var(--wp--preset--color--texte); border-radius: var(--neba-radius-lg); padding: 20px 18px; box-shadow: var(--neba-ombre); }
.neba-form label { font-size: 14px; font-weight: 600; color: var(--wp--preset--color--nuit); display: block; margin: 12px 0 5px; }
.neba-form label:first-child { margin-top: 0; }
.neba-form input, .neba-form select, .neba-form textarea { box-sizing: border-box; width: 100%; min-height: 48px; border-radius: 10px; border: 1px solid var(--wp--preset--color--ligne); padding: 0 12px; font-size: 16px; background: #fff; color: var(--wp--preset--color--encre); font-family: inherit; transition: border-color .2s; }
.neba-form input:focus, .neba-form select:focus, .neba-form textarea:focus { border-color: var(--wp--preset--color--bleu); outline-color: var(--wp--preset--color--bleu); }
.neba-form textarea { padding: 10px 12px; }
.neba-form .neba-mentions { font-size: 13px; color: var(--wp--preset--color--sourdine); line-height: 1.5; margin: 10px 0 0; }
.neba-form .neba-mentions a { color: var(--wp--preset--color--bleu); text-decoration: underline; } /* 0.6.4 : lien visible sur le fond blanc du formulaire (la règle des bandes bleues le mettait en blanc) */
.neba-form .wp-block-button__link { width: 100%; margin-top: 14px; }
@media (min-width: 900px) { .neba-cta__grid { grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; } .neba-form { padding: 28px; } }

/* Formulaire : états */
.neba-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.neba-form__msg { font-size: 14px; line-height: 1.5; margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--wp--preset--color--bleu-clair); color: var(--wp--preset--color--nuit); }
.neba-form__msg--erreur { background: #FDF4F4; color: var(--wp--preset--color--rouge-fonce); border: 1px solid #F0C6C6; }
.neba-form__succes { background: #fff; color: var(--wp--preset--color--texte); border-radius: var(--neba-radius-lg); padding: 24px 20px; box-shadow: var(--neba-ombre); display: flex; flex-direction: column; gap: 10px; font-size: 16px; line-height: 1.5; }
.neba-form__code { font-family: var(--wp--preset--font-family--titre); font-weight: 800; font-size: 30px; letter-spacing: .04em; color: var(--wp--preset--color--bleu); }

/* Pied */
.neba-footer { background: var(--wp--preset--color--nuit); color: #B9C3DA; font-size: 14px; line-height: 1.6; }
.neba-footer a { color: #fff; }
.neba-footer__logo img { height: 34px; width: auto; display: block; }
.neba-footer__grid { display: grid; gap: 18px; }
.neba-footer__grid > div > * + * { margin-top: 8px; }
.neba-footer__legal { font-size: 13px; color: #8E9AB8; }
.neba-footer__legal a { color: #B9C3DA; }
@media (min-width: 900px) { .neba-footer__grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; } }

/* Barre collante mobile */
.neba-sticky { position: fixed; inset-inline: 0; bottom: 0; z-index: 50; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); border-top: 1px solid var(--wp--preset--color--ligne); backdrop-filter: blur(6px); }
.neba-sticky a { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 10px; font-family: var(--wp--preset--font-family--titre); font-weight: 700; font-size: 15px; text-decoration: none; }
.neba-sticky__rdv { background: var(--wp--preset--color--rouge); color: #fff; }
.neba-sticky__wa { border: 1.5px solid var(--wp--preset--color--bleu); color: var(--wp--preset--color--bleu); background: #fff; }
body:has(.neba-sticky) { padding-bottom: 72px; }
@media (min-width: 900px) { .neba-sticky { display: none; } body:has(.neba-sticky) { padding-bottom: 0; } }

/* Bandeau de page (destination, agence) */
.neba-bandeau { background: var(--wp--preset--color--bleu); color: #fff; padding: 20px var(--wp--style--root--padding-left, 20px) 56px; }
.neba-bandeau__grid { max-width: 1120px; margin-inline: auto; display: grid; gap: 18px; }
.neba-bandeau .rank-math-breadcrumb, .neba-bandeau .rank-math-breadcrumb a { color: var(--wp--preset--color--bleu-brume); }
.neba-bandeau .rank-math-breadcrumb .last { color: #fff; }
.neba-bandeau h1 { color: #fff; max-width: 18ch; }
.neba-bandeau .wp-block-post-excerpt__excerpt, .neba-bandeau p { color: var(--wp--preset--color--bleu-brume); font-size: 17px; line-height: 1.5; max-width: 60ch; }
.neba-bandeau .neba-pill { background: rgba(255,255,255,.14); color: #fff; }
.neba-bandeau__texte > * + * { margin-top: 12px; }
.neba-visuel { margin-top: 0; margin-block-end: -96px !important; width: 100%; max-width: 320px; margin-inline: auto; } /* 0.5.4 : largeur fixée, la place de l'image est réservée avant son chargement (plus de décalage du texte) */
.neba-bandeau:not(:has(.neba-visuel)) { padding-bottom: 28px; }
.neba-bandeau:not(:has(.neba-visuel)) + .wp-block-post-content { margin-block-start: 24px !important; }
.neba-bandeau + .wp-block-post-content { margin-block-start: 54px; }
.neba-visuel img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--neba-radius-lg); box-shadow: var(--neba-ombre); border: 3px solid #fff; }
@media (min-width: 900px) {
  .neba-bandeau { padding-top: 36px; padding-bottom: 48px; }
  .neba-bandeau__grid { grid-template-columns: 1fr 400px; align-items: center; gap: 48px; }
  .neba-bandeau h1 { font-size: 42px; }
  .neba-visuel { margin-block-end: 0 !important; max-width: none; }
  .neba-bandeau + .wp-block-post-content { margin-block-start: 28px; }
  .neba-bandeau .neba-visuel img { border: 0; }
}

/* Fil d'Ariane */
.neba-fil ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: 13px; color: var(--wp--preset--color--sourdine); }
.neba-fil li + li::before { content: "›"; margin-inline-end: 8px; opacity: .7; }
.neba-fil a { color: inherit; text-decoration: none; }
.neba-fil a:hover { text-decoration: underline; }
.neba-fil [aria-current] { color: var(--wp--preset--color--encre); }
.neba-bandeau .neba-fil ol { color: var(--wp--preset--color--bleu-brume); }
.neba-bandeau .neba-fil [aria-current] { color: #fff; }

/* Fil d'Ariane (Rank Math) */
.rank-math-breadcrumb { font-size: 13px; color: var(--wp--preset--color--sourdine); }
.rank-math-breadcrumb a { color: var(--wp--preset--color--sourdine); text-decoration: none; }
.rank-math-breadcrumb .separator { margin: 0 5px; }
.rank-math-breadcrumb .last { color: var(--wp--preset--color--encre); }

/* Pastille « mis à jour » */
.neba-pill { display: inline-flex; align-self: flex-start; background: var(--wp--preset--color--bleu-clair); color: var(--wp--preset--color--bleu); font-size: 13px; font-weight: 600; padding: 6px 11px; border-radius: 999px; }

/* Bloc auteur */
.neba-auteur { display: flex; align-items: center; gap: 12px; font-size: 14px; line-height: 1.35; }
.neba-auteur__avatar { width: 42px; height: 42px; border-radius: 10px; background: var(--wp--preset--color--bleu); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--wp--preset--font-family--titre); font-weight: 800; font-size: 14px; flex-shrink: 0; }
.neba-auteur__meta { color: var(--wp--preset--color--sourdine); }

/* Tables */
.wp-block-table { border: 1px solid var(--wp--preset--color--ligne); border-radius: var(--neba-radius); overflow-x: auto; }
.wp-block-table table { border-collapse: collapse; font-size: var(--wp--preset--font-size--small); min-width: 0; width: 100%; font-variant-numeric: tabular-nums; }
@media (max-width: 480px) { .wp-block-table th, .wp-block-table td { padding: 8px 10px; font-size: 14px; } }
.wp-block-table th, .wp-block-table td { padding: 10px 12px; border: 0; border-top: 1px solid var(--wp--preset--color--ligne); text-align: start; vertical-align: top; }
.wp-block-table thead th { background: var(--wp--preset--color--bleu-clair); border-top: 0; font-weight: 700; color: var(--wp--preset--color--nuit); }
.wp-block-table.is-style-neba-total tbody tr:last-child td { border-top: 2px solid var(--wp--preset--color--bleu); font-weight: 700; }

/* Tableau comparatif (défile horizontalement sur mobile) */
.wp-block-table.neba-comparatif table { min-width: 780px; }
.wp-block-table.neba-comparatif td:first-child a { font-weight: 700; text-decoration: none; }

/* En bref */
.neba-enbref { background: var(--wp--preset--color--bleu-clair); border: 1px solid var(--wp--preset--color--bleu-brume); border-radius: var(--neba-radius-lg); padding: 18px 18px 8px; }
.neba-enbref .neba-enbref__title { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--wp--preset--color--bleu); margin: 0 0 12px; font-weight: 800; }
.neba-enbref .wp-block-table { border: 0; border-radius: 0; overflow: visible; }
.neba-enbref table { display: block; min-width: 0; width: 100%; }
.neba-enbref thead { display: none; }
.neba-enbref tbody { display: grid; grid-template-columns: 1fr; gap: 10px 18px; }
.neba-enbref tr { display: block; }
@media (min-width: 480px) { .neba-enbref tbody { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.neba-enbref td { display: block; padding: 0 0 10px; border: 0 !important; font-weight: 600; font-size: 15px; color: var(--wp--preset--color--encre); }
.neba-enbref td:first-child { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--wp--preset--color--bleu); padding-bottom: 3px; }
.neba-enbref td:first-child strong { font-weight: 700; }
.neba-enbref tbody tr:last-child td { border-top: 0 !important; font-weight: 600; }
@media (min-width: 720px) { .neba-enbref tbody { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Sommaire */
.neba-sommaire { border: 1px solid var(--wp--preset--color--ligne); border-radius: var(--neba-radius); padding: 14px 18px; }
.neba-sommaire h2 { font-size: 14px; font-weight: 800; margin: 0 0 8px; letter-spacing: .02em; }
.neba-sommaire ol { margin: 0; padding-inline-start: 20px; font-size: 15px; line-height: 1.9; }
.neba-sommaire a { text-decoration: none; }
.neba-sommaire a:hover { text-decoration: underline; }

/* Point de vigilance */
.neba-vigilance { border: 1px solid #F0C6C6; background: #FDF4F4; padding: 12px 14px 12px 40px; border-radius: var(--neba-radius); font-size: 15px; line-height: 1.5; position: relative; }
.neba-vigilance::before { content: ""; position: absolute; inset-inline-start: 14px; top: 14px; width: 18px; height: 18px; background: var(--wp--preset--color--rouge); -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M10.3 3.9 2.5 17.4A2 2 0 0 0 4.2 20.4h15.6a2 2 0 0 0 1.7-3L13.7 3.9a2 2 0 0 0-3.4 0z'/><path d='M12 9v4'/><path d='M12 17h.01'/></svg>") center / contain no-repeat; mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M10.3 3.9 2.5 17.4A2 2 0 0 0 4.2 20.4h15.6a2 2 0 0 0 1.7-3L13.7 3.9a2 2 0 0 0-3.4 0z'/><path d='M12 9v4'/><path d='M12 17h.01'/></svg>") center / contain no-repeat; }
[dir="rtl"] .neba-vigilance { padding: 12px 40px 12px 14px; }

/* Lien « lire ensuite » */
.neba-lire { font-size: 15px; font-weight: 600; }
.neba-lire a { text-decoration: none; }
.neba-lire a:hover { text-decoration: underline; }
/* 0.5.2 : lien « Pas encore décidé ? » sous la grille des 8 destinations de l'accueil, un peu détaché des cartes. */
.neba-destinations + .neba-lire { margin-top: 28px; }

/* Cartes (pages liées) */
.neba-cartes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.neba-carte { border: 1px solid var(--wp--preset--color--ligne); border-radius: var(--neba-radius); padding: 12px 14px; text-decoration: none; min-height: var(--neba-tap); display: flex; flex-direction: column; gap: 4px; color: inherit; background: #fff; }
.neba-carte:hover { border-color: var(--wp--preset--color--bleu); }
.neba-carte strong { font-size: 15px; color: var(--wp--preset--color--bleu); }
.neba-carte span { font-size: 13px; color: var(--wp--preset--color--sourdine); }
.neba-carte--large { grid-column: span 2; }
/* 0.5.2 : carte « Comparer » sur toute la largeur sous les 8 destinations (pages agences : 8 cartes + 1). */
.neba-carte--toute { grid-column: 1 / -1; align-items: center; text-align: center; }
.neba-liste-liens { display: flex; flex-direction: column; gap: 10px; }
.neba-liste-liens a { font-size: 15px; font-weight: 600; padding: 12px 42px 12px 14px; border: 1px solid var(--wp--preset--color--ligne); border-radius: var(--neba-radius); text-decoration: none; min-height: var(--neba-tap); display: flex; align-items: center; position: relative; }
.neba-liste-liens a::after { content: ""; position: absolute; inset-inline-end: 14px; width: 16px; height: 16px; background: var(--wp--preset--color--bleu); -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='M9 6l6 6-6 6'/></svg>") center / contain no-repeat; mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='M9 6l6 6-6 6'/></svg>") center / contain no-repeat; }
[dir="rtl"] .neba-liste-liens a::after { transform: scaleX(-1); }
[dir="rtl"] .neba-liste-liens a { padding: 12px 14px 12px 42px; }
.neba-liste-liens a:hover { border-color: var(--wp--preset--color--bleu); }
@media (min-width: 720px) { .neba-cartes { grid-template-columns: repeat(4, minmax(0, 1fr)); } .neba-carte--large { grid-column: span 1; } }

/* Calendrier (frise) */
.neba-frise { border-inline-start: 2px solid var(--wp--preset--color--ligne); margin-inline-start: 8px; }
.neba-frise__etape { padding: 0 0 16px 18px; position: relative; }
[dir="rtl"] .neba-frise__etape { padding: 0 18px 16px 0; }
.neba-frise__etape::before { content: ""; position: absolute; inset-inline-start: -7px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--wp--preset--color--bleu); }
.neba-frise__etape:first-child::before { background: var(--wp--preset--color--rouge); }
.neba-frise__etape strong { font-size: 15px; }
.neba-frise__etape p { margin: 0; font-size: 15px; color: var(--wp--preset--color--texte); }

/* FAQ (bloc details natif) */
.wp-block-details { border: 1px solid var(--wp--preset--color--ligne); border-radius: var(--neba-radius); padding: 12px 14px; margin: 0 0 8px; }
.wp-block-details summary { font-family: var(--wp--preset--font-family--titre); font-weight: 700; font-size: 15px; cursor: pointer; min-height: 24px; list-style-position: outside; color: var(--wp--preset--color--nuit); }
.wp-block-details summary::marker { color: var(--wp--preset--color--bleu); }
.wp-block-details[open] summary { margin-bottom: 8px; }
.wp-block-details p { margin: 0 0 6px; font-size: 15px; line-height: 1.55; color: var(--wp--preset--color--texte); }

/* Témoignage */
.neba-temoignage { background: var(--wp--preset--color--bleu-clair); border-radius: var(--neba-radius-lg); padding: 18px; }
.neba-temoignage p { margin: 0 0 10px; font-size: 17px; line-height: 1.5; color: var(--wp--preset--color--encre); }
.neba-temoignage cite { font-style: normal; font-size: 14px; color: var(--wp--preset--color--sourdine); }
.neba-temoignage cite strong { color: var(--wp--preset--color--encre); }

/* Bloc CTA en contenu (ancien style) */
.neba-cta { background: var(--wp--preset--color--bleu); color: #fff; border-radius: var(--neba-radius-lg); padding: 22px 20px; }
.neba-cta h2, .neba-cta h3 { color: #fff; }
.neba-cta p, .neba-cta li { color: var(--wp--preset--color--bleu-brume); }

/* Articles / listes */
.neba-article-meta { font-size: 14px; color: var(--wp--preset--color--sourdine); }
.wp-block-post-title a { text-decoration: none; }
.wp-block-post-title a:hover { text-decoration: underline; }

/* Divers */
.neba-muted { color: var(--wp--preset--color--sourdine); font-size: 14px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* Séquence 3D au défilement (0.5.0) : section haute (var --seq-h), écran collé, canevas plein écran, légendes.
   Sans script (ou mouvement réduit, économie de données) : .neba-seq--fixe affiche l'image fixe et les légendes empilées. */
.neba-seq { position: relative; height: var(--seq-h, 450vh); background: #0B1F3D; color: #fff; margin: 0; }
@media (max-width: 899px) { .neba-seq { height: var(--seq-h-m, 320vh); } }
.neba-seq__colle { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.neba-seq__toile, .neba-seq__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.neba-seq__toile { opacity: 0; transition: opacity .4s; }
.neba-seq--premiere .neba-seq__toile { opacity: 1; }
.neba-seq--premiere .neba-seq__poster { visibility: hidden; }
.neba-seq__titre { position: absolute; left: var(--wp--style--root--padding-left, 20px); right: var(--wp--style--root--padding-right, 20px); top: 56px; margin: 0; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--wp--preset--color--bleu-brume); }
.neba-seq__etapes { position: absolute; left: var(--wp--style--root--padding-left, 20px); right: var(--wp--style--root--padding-right, 20px); bottom: 64px; margin: 0; padding: 0; list-style: none; }
.neba-seq__etapes li { position: absolute; left: 0; right: 0; bottom: 0; opacity: 0; transform: translateY(18px); transition: opacity .45s var(--neba-ease), transform .6s var(--neba-ease); pointer-events: none; }
.neba-seq__etapes li.is-actif { opacity: 1; transform: none; pointer-events: auto; }
.neba-seq__etapes strong { display: block; font-family: var(--wp--preset--font-family--titre); font-weight: 800; font-size: clamp(26px, 6.5vw, 44px); line-height: 1.05; text-wrap: balance; }
.neba-seq__etapes strong + span { display: block; margin-top: 10px; font-size: 17px; line-height: 1.45; color: var(--wp--preset--color--bleu-brume); max-width: 44ch; }
.neba-seq__num { display: inline-block; font-family: var(--wp--preset--font-family--titre); font-weight: 700; font-size: 13px; letter-spacing: .08em; color: #fff; background: var(--wp--preset--color--rouge); border-radius: 999px; padding: 4px 10px; margin-bottom: 12px; }
.neba-seq__chargement { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.12); }
.neba-seq__jauge { display: block; height: 100%; width: 0; background: var(--wp--preset--color--rouge); transition: width .2s; }
.neba-seq--prete .neba-seq__chargement { opacity: 0; transition: opacity .6s .4s; }
.neba-seq__indice { position: absolute; right: var(--wp--style--root--padding-right, 20px); bottom: 24px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--wp--preset--color--bleu-brume); display: flex; align-items: center; gap: 8px; }
.neba-seq__indice::after { content: ""; width: 1px; height: 28px; background: currentColor; animation: neba-indice 1.6s ease-in-out infinite; }
@keyframes neba-indice { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
@media (min-width: 900px) {
  .neba-seq__etapes { left: auto; right: 6vw; bottom: auto; top: 50%; transform: translateY(-50%); width: 36vw; max-width: 520px; }
  .neba-seq__etapes li { bottom: auto; top: 0; translate: 0 -50%; }  /* centrée sur le milieu de l'écran : une longue légende ne sort plus en bas */
  .neba-seq__etapes strong { max-width: 14ch; }
  .neba-seq__titre { top: 40px; }
}
/* Repli sans script : tout visible, pas de hauteur géante */
.neba-seq--fixe, .neba-seq:not(.neba-seq--js) { height: auto; }
.neba-seq--fixe .neba-seq__colle, .neba-seq:not(.neba-seq--js) .neba-seq__colle { position: static; height: auto; padding: 48px var(--wp--style--root--padding-left, 20px) 56px; }
.neba-seq--fixe .neba-seq__toile, .neba-seq:not(.neba-seq--js) .neba-seq__toile, .neba-seq--fixe .neba-seq__chargement, .neba-seq:not(.neba-seq--js) .neba-seq__chargement, .neba-seq--fixe .neba-seq__indice, .neba-seq:not(.neba-seq--js) .neba-seq__indice { display: none; }
.neba-seq--fixe .neba-seq__poster, .neba-seq:not(.neba-seq--js) .neba-seq__poster { position: static; height: auto; max-width: 720px; margin: 0 auto 24px; border-radius: 16px; }
.neba-seq--fixe .neba-seq__titre, .neba-seq:not(.neba-seq--js) .neba-seq__titre { position: static; margin-bottom: 16px; }
.neba-seq--fixe .neba-seq__etapes, .neba-seq:not(.neba-seq--js) .neba-seq__etapes { position: static; transform: none; width: auto; max-width: none; display: grid; gap: 20px; }
.neba-seq--fixe .neba-seq__etapes li, .neba-seq:not(.neba-seq--js) .neba-seq__etapes li { position: static; opacity: 1; transform: none; pointer-events: auto; }
@media (prefers-reduced-motion: reduce) { .neba-seq__indice::after { animation: none; } }
