/* =========================================================
   1. VARIABLES : nos couleurs et réglages, définis une seule fois.
   Pour changer le bleu partout sur le site, modifiez --bleu ici.
   ========================================================= */
:root {
  --bleu: #0B5ED7;
  --bleu-fonce: #08409A;
  --bleu-clair: #EAF2FF;
  --blanc: #FFFFFF;
  --texte: #1B2A41;
  --texte-doux: #5B6B82;
  --whatsapp: #25D366;
  --rayon: 16px;              /* arrondi des coins */
  --ombre: 0 10px 30px rgba(11, 94, 215, 0.12);
}

/* =========================================================
   2. BASES : réglages généraux de la page
   ========================================================= */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--texte);
  background: var(--blanc);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* Le "container" centre le contenu et laisse une marge sur les côtés */
.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }

h1, h2, h3 {
  line-height: 1.2;
  font-weight: 800;
  overflow-wrap: break-word;   /* évite qu'un mot long dépasse sur petit écran */
  hyphens: auto;
}
h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); margin-bottom: 16px; }
h3 { font-size: 1.15rem; margin-bottom: 8px; }

/* Petite étiquette au-dessus des titres */
.tag {
  display: inline-block;
  color: var(--bleu);
  background: var(--bleu-clair);
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 6px 14px;
  border-radius: 50px;
  margin-bottom: 14px;
}

/* =========================================================
   3. BOUTONS
   ========================================================= */
.btn {
  display: inline-block;
  background: var(--bleu);
  color: var(--blanc);
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 50px;
  border: 2px solid var(--bleu);
  transition: transform .2s, background .2s, box-shadow .2s;
}
.btn:hover { background: var(--bleu-fonce); transform: translateY(-2px); box-shadow: var(--ombre); }
.btn--outline { background: transparent; color: var(--bleu); }
.btn--outline:hover { background: var(--bleu); color: var(--blanc); }
.btn--white { background: var(--blanc); color: var(--bleu); border-color: var(--blanc); }
.btn--white:hover { background: var(--bleu-clair); }
.btn--small { padding: 9px 20px; font-size: .9rem; }

/* =========================================================
   4. EN-TÊTE ET MENU
   ========================================================= */
.header {
  position: fixed;          /* reste en haut quand on défile */
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .95);
  -webkit-backdrop-filter: blur(8px);   /* version pour Safari / iPhone */
  backdrop-filter: blur(8px);
  transition: box-shadow .3s;
}
.header.scrolled { box-shadow: 0 4px 20px rgba(0, 0, 0, .08); }

.header__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.header__logo { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--bleu); letter-spacing: 1px; }
/* Logo officiel (image large avec marges blanches) : affiché par sa hauteur,
   sans déformation ni recadrage, pour que le monogramme KD reste lisible */
.header__logo img { width: auto; height: 46px; }
.header__logo b { font-weight: 800; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { font-weight: 600; font-size: .95rem; transition: color .2s; }
.nav a:not(.btn):hover { color: var(--bleu); }

/* Le bouton hamburger est caché sur ordinateur */
.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.menu-toggle span { display: block; width: 26px; height: 3px; background: var(--bleu); margin: 5px 0; border-radius: 3px; transition: .3s; }

/* =========================================================
   5. ACCUEIL (HERO)
   ========================================================= */
.hero {
  padding: 140px 0 90px;
  background: linear-gradient(160deg, var(--bleu-clair) 0%, var(--blanc) 70%);
}
.hero__inner { display: grid; grid-template-columns: 1.3fr 1fr; align-items: center; gap: 40px; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: 20px; }
.hero h1 span { color: var(--bleu); }
.hero__lead { font-size: 1.1rem; color: var(--texte-doux); margin-bottom: 32px; max-width: 540px; }
.hero__buttons { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__visual { display: flex; justify-content: center; }
.hero__visual img {
  width: 180px; height: 180px;   /* carte carrée de 180 × 180 px */
  padding: 14px;                 /* marge intérieure réduite */
  object-fit: contain;           /* le logo remplit la carte sans être déformé */
  background: var(--blanc);
  border-radius: 24px;
  box-shadow: var(--ombre);
}

/* =========================================================
   6. SECTIONS GÉNÉRALES
   ========================================================= */
.section { padding: 90px 0; }
.section--light { background: var(--bleu-clair); }
.section__head { text-align: center; max-width: 640px; margin: 0 auto 50px; }
.section__note { color: var(--texte-doux); font-size: .9rem; font-style: italic; }

/* À propos */
.about { display: grid; grid-template-columns: 1.2fr 1fr; gap: 50px; align-items: center; }
.about__text p { color: var(--texte-doux); margin-bottom: 14px; }
.about__values { list-style: none; display: grid; gap: 16px; }
.about__values li {
  padding: 20px 24px;
  border-left: 4px solid var(--bleu);
  background: var(--blanc);
  border-radius: var(--rayon);
  box-shadow: var(--ombre);
}
.about__values strong { display: block; color: var(--bleu); }
.about__values span { color: var(--texte-doux); font-size: .95rem; }

/* Services : grille de cartes */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--blanc);
  padding: 34px 28px;
  border-radius: var(--rayon);
  box-shadow: var(--ombre);
  transition: transform .3s;
}
.card:hover { transform: translateY(-6px); }
.card p { color: var(--texte-doux); }
.card__icon {
  width: 60px; height: 60px;
  display: grid; place-items: center;
  background: var(--bleu);
  border-radius: 14px;
  margin-bottom: 20px;
}
.card__icon svg { width: 30px; height: 30px; fill: none; stroke: var(--blanc); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Réalisations : grille de projets */
.projects { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.project { border-radius: var(--rayon); overflow: hidden; box-shadow: var(--ombre); background: var(--blanc); transition: transform .3s; }
.project:hover { transform: translateY(-6px); }
.project__img {
  aspect-ratio: 3 / 2;          /* hauteur fluide : suit la largeur de la carte (format du visuel logo) */
  display: grid; place-items: center;
  color: var(--blanc);
  font-size: 1.4rem; font-weight: 800; letter-spacing: 2px; text-transform: uppercase;
}
/* Couleurs provisoires des images (à remplacer par de vraies photos) */
.project__img--1 { background: linear-gradient(135deg, #0B5ED7, #3D8BFD); }
.project__img--2 { background: linear-gradient(135deg, #08409A, #0B5ED7); }
.project__img--3 { background: linear-gradient(135deg, #3D8BFD, #8DB8FF); }
.project__img--4 { background: linear-gradient(135deg, #1B2A41, #0B5ED7); }
/* Secours pour les très anciens navigateurs sans aspect-ratio */
@supports not (aspect-ratio: 3 / 2) {
  .project__img { height: 220px; }
}
.project__info { padding: 20px 24px; }
.project__info span { color: var(--bleu); font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }

/* Contact */
.contact { background: linear-gradient(135deg, var(--bleu), var(--bleu-fonce)); color: var(--blanc); text-align: center; }
.contact p { opacity: .9; margin-bottom: 30px; font-size: 1.1rem; }
.contact__phone { margin: 22px 0 0 !important; font-weight: 700; letter-spacing: 1px; }

/* Pied de page */
.footer { background: var(--texte); color: rgba(255, 255, 255, .7); text-align: center; padding: 26px 0; font-size: .9rem; }

/* Bouton WhatsApp flottant */
.whatsapp-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 200;
  width: 60px; height: 60px;
  display: grid; place-items: center;
  background: var(--whatsapp);
  border-radius: 50%;
  box-shadow: 0 6px 20px rgba(37, 211, 102, .45);
  transition: transform .2s;
}
.whatsapp-float:hover { transform: scale(1.1); }
.whatsapp-float svg { width: 32px; height: 32px; fill: var(--blanc); }

/* =========================================================
   6 quater. RÉSERVATION « CRÉATION DE LOGO »
   (carte cliquable dans Réalisations + fenêtre de réservation)
   ========================================================= */
/* Carte Réalisations « Réserver votre logo professionnel » :
   le bouton du titre s'étend sur toute la carte, donc toute la carte est cliquable */
.project--booking { position: relative; cursor: pointer; }
.project__link {
  background: none; border: none; padding: 0;
  font: inherit; color: inherit; text-align: left;
  cursor: pointer;
}
.project__link::after { content: ""; position: absolute; inset: 0; border-radius: var(--rayon); }
.project--booking:hover h3 { color: var(--bleu); }

/* Bouton « Réserver · dès 2 000 FCFA » de la carte Affiche :
   comme le titre de la carte Logo, il s'étend sur toute la carte */
.project__cta {
  margin-top: 12px;
  display: inline-block;
  background: var(--bleu); color: var(--blanc);
  border: none; border-radius: 50px;
  padding: 8px 16px;
  font: inherit; font-size: .85rem; font-weight: 700;
  cursor: pointer;
  transition: background .2s;
}
.project__cta::after { content: ""; position: absolute; inset: 0; border-radius: var(--rayon); }
.project--booking:hover .project__cta { background: var(--bleu-fonce); }
.project__cta:focus-visible { outline: none; }
.project__cta:focus-visible::after { outline: 3px solid var(--bleu); outline-offset: 3px; }

/* Choix de l'offre dans la fenêtre de commande des affiches */
.offers { border: none; padding: 0; margin: 0 0 18px; display: grid; gap: 12px; min-width: 0; }
.offers legend { font-weight: 700; margin-bottom: 10px; padding: 0; }
.offer-choice {
  position: relative;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px;
  padding: 16px;
  border: 2px solid #CBD6E6;
  border-radius: var(--rayon);
  background: var(--blanc);
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
.offer-choice:hover { border-color: var(--bleu); }
.offer-choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }  /* caché mais utilisable au clavier */
.offer-choice__dot {
  width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid #CBD6E6; background: var(--blanc);
  display: grid; place-items: center;
}
.offer-choice__body { display: grid; gap: 2px; min-width: 0; }
.offer-choice__name { font-weight: 700; }
.offer-choice__desc { color: var(--texte-doux); font-size: .85rem; font-weight: 400; }
.offer-choice__tag {
  display: inline-block; font-style: normal;
  background: var(--bleu-clair); color: var(--bleu);
  font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
  padding: 2px 8px; border-radius: 50px; margin-left: 4px; vertical-align: middle;
}
.offer-choice__price { color: var(--bleu); font-size: 1.25rem; font-weight: 800; white-space: nowrap; }
/* Offre sélectionnée */
.offer-choice:has(input:checked) { border-color: var(--bleu); background: var(--bleu-clair); }
.offer-choice input:checked + .offer-choice__dot { border-color: var(--bleu); }
.offer-choice input:checked + .offer-choice__dot::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--bleu); }
.offer-choice input:focus-visible + .offer-choice__dot { outline: 3px solid rgba(11, 94, 215, .35); outline-offset: 2px; }
.offer-choice.is-selected { border-color: var(--bleu); background: var(--bleu-clair); }  /* secours sans :has() */

#bookingPoster .booking__recap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; }
#posterRecap strong { white-space: nowrap; }                 /* le prix ne se coupe jamais */
#bookingPoster .booking__step > .offer__badge { margin-right: 44px; }   /* ne passe jamais sous le bouton × */

/* Fenêtre de réservation Site Web */
#bookingWeb .booking__step > .offer__badge { margin-right: 44px; }
#bookingWeb .booking__prices { margin-bottom: 24px; }
.booking__formtitle {
  font-weight: 700; font-size: 1.05rem;
  padding-top: 18px; border-top: 1px solid var(--bleu-clair);
}
#bookingWeb form .booking__cta { margin-top: 6px; }
/* Ici la confirmation est l'étape 2 : même présentation centrée que les autres fenêtres */
#bookingWeb .booking__step[data-step="2"] { text-align: center; }
#bookingWeb .booking__step[data-step="2"] > p { color: var(--texte-doux); margin-bottom: 18px; }
#bookingWeb .booking__step[data-step="2"] h2 { padding-right: 0; hyphens: manual; }   /* pas de mot coupé */
#bookingWeb .booking__saving span, #webSummary del { white-space: nowrap; }       /* un montant ne se coupe jamais */
.booking__link--inline { margin-top: 0; font-size: .9rem; }

@media (max-width: 420px) {
  /* Petit écran : le prix passe sous le nom de l'offre */
  .offer-choice { grid-template-columns: auto 1fr; padding: 14px; }
  .offer-choice__price { grid-column: 2; }
  /* Boutons du formulaire l'un sous l'autre, en pleine largeur */
  #bookingPoster .booking__actions { flex-direction: column-reverse; }
}

/* Visuel de la carte : image entière, centrée, sans recadrage */
.project__img--visual { display: block; background: var(--bleu-clair); padding: 0; }
.project__img--visual img {
  display: block;
  width: 100%; height: 100%;    /* remplit toute la zone d'image (même ratio 3:2), sans en sortir */
  object-fit: contain;          /* toute l'image reste visible, proportions respectées */
  object-position: center;
}
.project__link:focus-visible { outline: none; }
.project__link:focus-visible::after { outline: 3px solid var(--bleu); outline-offset: 3px; }

.offer__badge {
  display: inline-block;
  background: var(--bleu); color: var(--blanc);
  font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
  padding: 5px 12px; border-radius: 50px; margin-bottom: 10px;
}
/* Les prix */
.price__old { color: var(--texte-doux); font-size: .95rem; }
.price__new { color: var(--bleu); font-size: 1.6rem; font-weight: 800; }
.price__new--big { font-size: 2.2rem; }

/* La fenêtre (dialog) */
.booking {
  width: min(560px, calc(100% - 32px));
  max-height: calc(100vh - 32px);
  margin: auto;
  border: none;
  border-radius: 20px;
  padding: 36px 32px 32px;
  color: var(--texte);
  background: var(--blanc);
  box-shadow: 0 20px 60px rgba(8, 64, 154, .35);
  overflow-y: auto;
}
.booking::backdrop { background: rgba(27, 42, 65, .6); }
.booking h2 { font-size: 1.6rem; margin-bottom: 10px; }
.booking__close {
  position: absolute; top: 12px; right: 14px;
  width: 40px; height: 40px;
  border: none; border-radius: 50%;
  background: var(--bleu-clair); color: var(--bleu);
  font-size: 1.6rem; line-height: 1; cursor: pointer;
}
.booking__lead { color: var(--texte-doux); margin-bottom: 18px; }
.booking__list { list-style: none; display: grid; gap: 8px; margin-bottom: 22px; }
.booking__list li { padding-left: 28px; position: relative; }
.booking__list li::before { content: "✓"; position: absolute; left: 0; color: var(--bleu); font-weight: 800; }

.booking__prices {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: end;
  background: var(--bleu-clair);
  border-radius: var(--rayon);
  padding: 18px 20px;
  margin-bottom: 22px;
}
.booking__prices > div { display: flex; flex-direction: column; }
.booking__label { font-size: .8rem; font-weight: 600; color: var(--texte-doux); text-transform: uppercase; letter-spacing: .5px; }
.booking__saving {
  grid-column: 1 / -1;
  background: var(--bleu); color: var(--blanc);
  text-align: center; font-weight: 700;
  border-radius: 50px; padding: 8px 12px;
}
.booking__cta, .btn--whatsapp { width: 100%; text-align: center; cursor: pointer; font-family: inherit; font-size: 1rem; }
.btn { font-family: inherit; }
button.btn { cursor: pointer; }

/* Le formulaire */
.booking__recap { background: var(--bleu-clair); border-radius: 10px; padding: 10px 14px; margin-bottom: 18px; font-size: .95rem; }
.booking form { display: grid; gap: 14px; }
.booking label { display: grid; gap: 6px; font-weight: 600; font-size: .9rem; }
.booking input, .booking textarea {
  font: inherit; font-weight: 400;
  font-size: 16px;                     /* 16px : évite le zoom automatique sur iPhone */
  padding: 12px 14px;
  border: 1.5px solid #CBD6E6;
  border-radius: 10px;
  background: var(--blanc); color: var(--texte);
  resize: vertical;
}
.booking input:focus, .booking textarea:focus { outline: none; border-color: var(--bleu); box-shadow: 0 0 0 3px rgba(11, 94, 215, .15); }
.booking .is-invalid { border-color: #D93025; }
.booking__error { color: #B3261E; background: #FDECEA; border-radius: 10px; padding: 10px 14px; font-size: .9rem; }
.booking__actions { display: flex; gap: 12px; margin-top: 6px; }
.booking__actions .btn { flex: 1; text-align: center; padding-left: 12px; padding-right: 12px; }

/* La confirmation */
.booking__step[data-step="3"] { text-align: center; }
.booking__check {
  width: 64px; height: 64px; margin: 0 auto 14px;
  display: grid; place-items: center;
  background: var(--bleu); color: var(--blanc);
  border-radius: 50%; font-size: 2rem; font-weight: 800;
}
.booking__step[data-step="3"] > p { color: var(--texte-doux); margin-bottom: 18px; }
.booking__summary {
  text-align: left;
  background: var(--bleu-clair);
  border-radius: var(--rayon);
  padding: 16px 18px;
  margin-bottom: 20px;
  font-size: .92rem;
  display: grid; gap: 4px;
  overflow-wrap: anywhere;
}
.booking__summary strong { color: var(--bleu); }
.btn--whatsapp { background: var(--whatsapp); border-color: var(--whatsapp); }
.btn--whatsapp:hover { background: #1DA851; border-color: #1DA851; }
.booking__link { margin-top: 14px; background: none; border: none; color: var(--bleu); font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; }

body.modal-open { overflow: hidden; }   /* la page derrière ne défile plus */

@media (max-width: 768px) {
  .booking { padding: 32px 20px 24px; }
  .booking h2 { font-size: 1.35rem; padding-right: 36px; }
  .booking__step[data-step="3"] h2 { padding-right: 0; }
  .price__new--big { font-size: 1.9rem; }
  .booking__prices { grid-template-columns: 1fr; text-align: center; }
  .booking__prices > div { align-items: center; }
}
.price__old, .price__new { white-space: nowrap; }   /* un prix ne se coupe jamais en deux */

/* =========================================================
   6 ter. SECTION « LE FONDATEUR »
   Bloc indépendant : ne modifie aucune autre section.
   ========================================================= */
.founder { display: grid; grid-template-columns: 1.1fr 1fr; gap: 50px; align-items: center; }
.founder__photo { margin: 0; position: relative; }
.founder__photo::before {             /* cadre bleu décalé derrière la photo */
  content: "";
  position: absolute; inset: 18px -18px -18px 18px;
  border: 3px solid var(--bleu);
  border-radius: 24px;
}
.founder__photo img {
  position: relative;
  width: 100%; height: auto;
  border-radius: 24px;
  box-shadow: var(--ombre);
}
.founder__role { color: var(--bleu); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; font-size: .9rem; margin: -8px 0 18px; }
.founder__text > p:not(.tag):not(.founder__role) { color: var(--texte-doux); margin-bottom: 14px; }
.founder__vision {
  margin-top: 24px;
  padding: 20px 24px;
  background: var(--blanc);
  border-left: 4px solid var(--bleu);
  border-radius: var(--rayon);
  box-shadow: var(--ombre);
  font-weight: 600;
  font-size: 1.05rem;
}
.founder__vision span { display: block; color: var(--bleu); font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 4px; }

@media (max-width: 900px) {
  .founder { grid-template-columns: 1fr; gap: 40px; }
  /* marge à droite : le cadre bleu décalé reste dans l'écran */
  .founder__photo { max-width: 600px; margin-right: 18px; }
}

/* =========================================================
   6 bis. PROJET CLIENT MIS EN AVANT (FAH BEAUTY)
   Bloc indépendant : ne modifie aucune autre section.
   ========================================================= */
.case {
  background: var(--blanc);
  border-radius: var(--rayon);
  box-shadow: var(--ombre);
  padding: 32px;
  margin-bottom: 40px;
}
.case__intro { display: grid; grid-template-columns: 220px 1fr; gap: 32px; align-items: center; margin-bottom: 32px; }
.case__logo { background: var(--blanc); border: 1px solid var(--bleu-clair); border-radius: var(--rayon); padding: 10px; }
.case__logo img { width: 100%; height: auto; }
.case__client { color: var(--bleu); font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
.case__text h3 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 12px; }
.case__text p { color: var(--texte-doux); }
.case__tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.case__tags li { background: var(--bleu-clair); color: var(--bleu); font-size: .85rem; font-weight: 600; padding: 6px 14px; border-radius: 50px; }
.case__credit { font-size: .9rem; }
.case__credit strong { color: var(--bleu); }

/* Galerie des affiches : 3 colonnes sur ordinateur */
.case__gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.case__poster { margin: 0; }
.case__poster img {
  width: 100%; height: auto;            /* l'affiche garde ses proportions, rien n'est rogné */
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .12);
  transition: transform .3s;
}
.case__poster img:hover { transform: translateY(-4px); }
.case__poster figcaption { text-align: center; font-weight: 600; font-size: .9rem; margin-top: 10px; }

@media (max-width: 768px) {
  .case { padding: 20px; }
  .case__intro { grid-template-columns: 1fr; gap: 20px; text-align: center; }
  .case__logo { max-width: 180px; margin: 0 auto; }
  .case__tags { justify-content: center; }
  .case__gallery { grid-template-columns: 1fr; gap: 28px; }   /* affiches l'une sous l'autre */
  .case__poster { max-width: 420px; margin: 0 auto; }
}

/* =========================================================
   6 quinquies. SERVICES : prestations à réserver (sous les 3 cartes)
   Les réalisations clients sont présentées ensuite, dans leur propre section.
   ========================================================= */
.services__offres { margin-top: 64px; }
.services__sous-titre {
  text-align: center;
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  margin-bottom: 30px;
}
.services__sous-titre::after {          /* petit trait bleu sous le titre */
  content: "";
  display: block;
  width: 56px; height: 4px;
  margin: 12px auto 0;
  border-radius: 4px;
  background: var(--bleu);
}
/* La dernière réalisation n'ajoute pas d'espace vide en bas de la section */
#realisations .case:last-child { margin-bottom: 0; }

/* Carte « Montage Vidéo » : description + liste des prestations */
.project__desc { color: var(--texte-doux); font-size: .95rem; margin: 6px 0 10px; }
.project__prestations { list-style: none; display: grid; gap: 6px; margin-bottom: 4px; }
.project__prestations li { position: relative; padding-left: 26px; font-size: .92rem; color: var(--texte); }
.project__prestations li::before {          /* petite coche bleue, comme ailleurs sur le site */
  content: "✓";
  position: absolute; left: 0; top: 0;
  width: 18px; height: 18px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bleu); color: var(--blanc);
  font-size: .7rem; font-weight: 800; line-height: 1;
  margin-top: .15em;
}
/* Fenêtre de commande « Montage vidéo » (réutilise les styles des affiches) */
#bookingVideo > .offer__badge { margin-right: 44px; }        /* ne passe jamais sous le bouton × */
#bookingVideo .offer-choice__name { overflow-wrap: anywhere; }
#bookingVideo .btn--whatsapp { display: block; }
#bookingVideo .booking__error { margin-bottom: 12px; }
.booking__note { color: var(--texte-doux); font-size: .85rem; text-align: center; margin-top: 12px; }

/* Dernière carte seule sur sa rangée (grille à 2 colonnes) : centrée */
@media (min-width: 600px) {
  .projects > .project--centre:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc((100% - 24px) / 2);   /* même largeur que les autres cartes */
  }
}
@media (min-width: 600px) and (max-width: 768px) {   /* tablette : écart de 20 px entre les cartes */
  .projects > .project--centre:last-child:nth-child(odd) { width: calc((100% - 20px) / 2); }
}

@media (max-width: 768px) {
  .services__offres { margin-top: 48px; }
  .services__sous-titre { margin-bottom: 22px; }
}

/* =========================================================
   6 sexies. RÉALISATIONS DYNAMIQUES (galerie + visionneuse)
   Contenu construit par js/realisations.js depuis la base.
   ========================================================= */
/* Un élément marqué « hidden » reste caché, même avec display: grid / flex */
.rea [hidden], .rea-visionneuse [hidden] { display: none !important; }
.rea__etat {
  display: grid; justify-items: center; gap: 14px;
  text-align: center; color: var(--texte-doux);
  padding: 30px 16px;
}
.rea__etat a:not(.btn) { color: var(--bleu); font-weight: 600; text-decoration: underline; }

/* Filtres par catégorie (défilent horizontalement sur téléphone) */
.rea__filtres {
  display: flex; gap: 8px; flex-wrap: wrap; justify-content: center;
  margin: -20px 0 30px;
}
/* Deux rangées de filtres : type (Tous / Images / Vidéos) puis catégories */
.rea__filtres:has(.rea__groupe) { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 12px; }
.rea__groupe { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.rea__filtre--type { font-size: .92rem; padding: 9px 22px; }
.rea__groupe--type + .rea__groupe .rea__filtre { font-size: .8rem; padding: 6px 14px; }
.rea__vide { grid-column: 1 / -1; text-align: center; color: var(--texte-doux); padding: 30px 10px; }

/* Projets vidéo : miniature sur fond sombre + bouton de lecture bleu */
.rea-carte__media--video { background: #0B1B33; }
.rea-carte__lecture {
  position: absolute; inset: 0; margin: auto;
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(11, 94, 215, .92);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .35);
  transition: transform .25s, background .25s;
}
.rea-carte__lecture::after {             /* triangle « lecture » */
  content: ""; position: absolute; top: 50%; left: 54%;
  transform: translate(-50%, -50%);
  border-left: 20px solid var(--blanc);
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
}
@media (hover: hover) {
  .rea-carte__media--video:hover .rea-carte__lecture { transform: scale(1.08); background: var(--bleu-fonce); }
}
.rea-carte__media--video:focus-visible .rea-carte__lecture { outline: 3px solid var(--blanc); outline-offset: 3px; }

/* Projets web : capture d'écran dans un petit cadre de navigateur */
.rea-carte__media--web { background: var(--bleu-clair); cursor: zoom-in; }
.rea-carte__media--web:disabled { cursor: default; }
.rea-carte__navigateur {
  position: absolute; top: 0; left: 0; right: 0; z-index: 1;
  height: 26px; padding: 0 10px;
  display: flex; align-items: center; gap: 5px;
  background: #DCE8FB; border-bottom: 1px solid #C7D9F5;
}
.rea-carte__navigateur i { width: 8px; height: 8px; border-radius: 50%; background: var(--blanc); flex: none; }
.rea-carte__navigateur i:first-child { background: var(--bleu); }
.rea-carte__adresse {
  margin-left: 6px; min-width: 0; flex: 1;
  background: var(--blanc); border-radius: 50px; padding: 1px 10px;
  font-size: .68rem; font-weight: 600; color: var(--texte-doux); text-align: left;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* La capture remplit le cadre sous la barre, cadrée sur le HAUT de la page */
.rea-carte__media.rea-carte__media--web img {
  position: absolute; top: 26px; left: 0;
  width: 100%; height: calc(100% - 26px);
  object-fit: cover; object-position: top center;
}
.rea-carte__media--web .rea-carte__sans-image { padding-top: 26px; overflow-wrap: anywhere; }
@media (hover: hover) {
  .rea-carte__media--web:hover img { transform: none; }   /* pas de zoom : la capture reste lisible */
}
.rea-carte__visiter { align-self: flex-start; margin-top: auto; }
.rea-carte--web .rea-carte__tags + .rea-carte__visiter,
.rea-carte--web .rea-carte__description + .rea-carte__visiter { margin-top: 12px; }
.rea-visionneuse__site { text-align: center; }

/* Lecteur vidéo dans la visionneuse : 16:9, adapté à l'écran */
.rea-visionneuse__video {
  position: relative; width: 100%;
  aspect-ratio: 16 / 9; max-height: 70vh;
  background: #000; border-radius: 12px; overflow: hidden;
}
.rea-visionneuse__video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.rea__filtre {
  font: inherit; font-size: .85rem; font-weight: 600;
  padding: 8px 16px; border-radius: 50px; cursor: pointer;
  border: 1.5px solid #CBD6E6; background: var(--blanc); color: var(--texte-doux);
  transition: background .2s, color .2s, border-color .2s;
}
.rea__filtre:hover { border-color: var(--bleu); color: var(--bleu); }
.rea__filtre[aria-pressed="true"] { background: var(--bleu); border-color: var(--bleu); color: var(--blanc); }

/* Grille des projets */
/* Grille : 1 colonne (téléphone) → 2 (tablette) → 3 (ordinateur).
   Cartes de même largeur, centrées : un seul projet n'est pas collé à gauche.
   Dans une même rangée, toutes les cartes ont la même hauteur. */
.rea__grille {
  display: grid; gap: 26px; justify-content: center; align-items: stretch;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 340px));
}
.rea-carte {
  display: flex; flex-direction: column; min-width: 0;
  background: var(--blanc); border-radius: var(--rayon); box-shadow: var(--ombre);
  overflow: hidden; transition: transform .3s;
}
/* Cadre de l'image : toujours au format 4:3, quelle que soit la largeur */
.rea-carte__media {
  position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in;
  aspect-ratio: 4 / 3; background: var(--bleu-clair); overflow: hidden;
}
@supports not (aspect-ratio: 4 / 3) {        /* anciens navigateurs */
  .rea-carte__media { height: 0; padding-top: 75%; }
  .rea-carte__media img { position: absolute; inset: 0; }
}
/* Par défaut : image entière (logos, affiches verticales…), centrée, jamais déformée */
.rea-carte__media img {
  display: block; width: 100%; height: 100%;
  object-fit: contain; object-position: center;
  opacity: 0; transition: opacity .35s ease, transform .4s ease;
}
/* Image presque au format 4:3 : elle remplit le cadre (très légèrement rognée) */
.rea-carte__media--remplir img { object-fit: cover; }
.rea-carte__media--charge img { opacity: 1; }
/* Effets au survol réservés aux écrans avec souris (pas de « saut » au toucher) */
@media (hover: hover) {
  .rea-carte:hover { transform: translateY(-6px); }
  .rea-carte__media:hover img { transform: scale(1.03); }
}
@media (prefers-reduced-motion: reduce) {
  .rea-carte, .rea-carte__media img { transition: none; }
}
.rea-carte__sans-image { display: grid; place-items: center; height: 100%; color: var(--bleu); font-weight: 800; padding: 20px; }
.rea-carte__compteur {
  position: absolute; right: 12px; bottom: 12px;
  background: rgba(11, 27, 51, .78); color: var(--blanc);
  font-size: .78rem; font-weight: 700; padding: 4px 10px; border-radius: 50px;
}
.rea-carte__corps { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.rea-carte__categorie { color: var(--bleu); font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.rea-carte__titre { font-size: 1.25rem; overflow-wrap: anywhere; }
.rea-carte__client { color: var(--texte); font-size: .88rem; font-weight: 600; }
.rea-carte__description {
  color: var(--texte-doux); font-size: .93rem;
  display: -webkit-box; -webkit-line-clamp: 4; line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.rea-carte__tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.rea-carte__tags li { background: var(--bleu-clair); color: var(--bleu); font-size: .78rem; font-weight: 600; padding: 4px 12px; border-radius: 50px; }
.rea-carte__voir {
  align-self: flex-start; margin-top: auto; padding-top: 12px;
  background: none; border: 0; cursor: pointer;
  font: inherit; font-weight: 700; font-size: .9rem; color: var(--bleu);
}
.rea-carte__voir::after { content: " →"; }
.rea-carte__voir:hover { text-decoration: underline; }

/* Visionneuse plein écran */
.rea-visionneuse {
  width: min(980px, calc(100% - 24px)); max-height: calc(100vh - 24px);
  margin: auto; padding: 0; border: 0; border-radius: 18px;
  background: var(--blanc); box-shadow: 0 20px 60px rgba(8, 64, 154, .35);
}
.rea-visionneuse::backdrop { background: rgba(11, 27, 51, .82); }
.rea-visionneuse__boite { padding: 18px 20px 22px; display: grid; gap: 12px; }
.rea-visionneuse__entete { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.rea-visionneuse__categorie { color: var(--bleu); font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.rea-visionneuse__titre { font-size: 1.35rem; overflow-wrap: anywhere; }
.rea-visionneuse__fermer {
  flex: none; width: 42px; height: 42px; border: 0; border-radius: 50%; cursor: pointer;
  background: var(--bleu-clair); color: var(--bleu); font-size: 1.6rem; line-height: 1;
}
.rea-visionneuse__scene { position: relative; margin: 0; background: #F2F6FC; border-radius: 12px; }
/* Grand format : l'image s'adapte à l'écran en gardant ses proportions */
.rea-visionneuse__scene img {
  display: block; width: 100%; height: min(62vh, 640px); object-fit: contain;
  user-select: none; -webkit-user-drag: none; touch-action: pan-y;
  transition: opacity .25s ease;
}
.rea-visionneuse__image--transition { opacity: .25; }
.rea-visionneuse__original { color: var(--bleu); font-weight: 600; white-space: nowrap; }
.rea-visionneuse__original:hover { text-decoration: underline; }
.rea-visionneuse__scene figcaption {
  display: flex; justify-content: space-between; gap: 10px;
  padding: 8px 12px; font-size: .88rem; font-weight: 600; color: var(--texte);
}
.rea-visionneuse__compteur { color: var(--texte-doux); margin-left: auto; white-space: nowrap; }
.rea-visionneuse__fleche {
  position: absolute; top: calc(50% - 22px); transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .92); color: var(--bleu);
  font-size: 2rem; line-height: 1; box-shadow: 0 4px 14px rgba(0, 0, 0, .18);
}
.rea-visionneuse__fleche:hover { background: var(--bleu); color: var(--blanc); }
.rea-visionneuse__fleche--prec { left: 10px; }
.rea-visionneuse__fleche--suiv { right: 10px; }
.rea-visionneuse__miniatures { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; }
.rea-visionneuse__miniature {
  flex: none; width: 72px; height: 72px; padding: 0; cursor: pointer;
  border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: var(--bleu-clair);
  opacity: .7;
}
.rea-visionneuse__miniature img { width: 100%; height: 100%; object-fit: cover; }
.rea-visionneuse__miniature[aria-current="true"] { border-color: var(--bleu); opacity: 1; }
.rea-visionneuse__description { color: var(--texte-doux); font-size: .95rem; }
.rea-visionneuse__credit { font-size: .9rem; }
.rea-visionneuse__credit strong { color: var(--bleu); }

@media (max-width: 768px) {
  .rea__filtres {
    flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto;
    margin: -24px -20px 24px; padding: 0 20px 6px; scrollbar-width: none;
  }
  .rea__filtres::-webkit-scrollbar { display: none; }
  .rea__filtre { flex: none; }
  /* Téléphone : la rangée « Tous / Images / Vidéos » reste centrée,
     les catégories défilent horizontalement */
  .rea__filtres:has(.rea__groupe) { overflow: visible; padding: 0; margin: -24px 0 24px; }
  /* 4 boutons de type : une ligne si possible, sinon passage à la ligne (jamais coupés) */
  .rea__groupe--type { justify-content: center; flex-wrap: wrap; gap: 6px; }
  .rea__groupe--type .rea__filtre { padding: 8px 12px; font-size: .85rem; }
  .rea__groupe:not(.rea__groupe--type) {
    flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto;
    margin: 0 -20px; padding: 0 20px 6px; scrollbar-width: none;
  }
  .rea__groupe:not(.rea__groupe--type)::-webkit-scrollbar { display: none; }
  .rea-carte__lecture { width: 56px; height: 56px; }
  .rea-visionneuse { width: 100%; max-width: 100%; max-height: 100%; height: 100%; border-radius: 0; }
  .rea-visionneuse__boite { padding: 14px 14px 20px; }
  .rea-visionneuse__scene img { height: min(56vh, 520px); }
  .rea-visionneuse__fleche { width: 40px; height: 40px; font-size: 1.7rem; }
  .rea-visionneuse__miniature { width: 58px; height: 58px; }
  .rea__grille { gap: 22px; }
}
/* Téléphone : une colonne qui prend toute la largeur disponible (max 480 px) */
@media (max-width: 599px) {
  .rea__grille { grid-template-columns: minmax(0, 1fr); max-width: 480px; margin: 0 auto; gap: 20px; }
  .rea-carte__corps { padding: 18px 18px 22px; }
}
/* Téléphone tenu à l'horizontale (écran peu haut) : image du grand format réduite */
@media (max-height: 500px) and (orientation: landscape) {
  .rea-visionneuse__scene img { height: 58vh; }
  .rea-visionneuse__miniatures { display: none; }
  .rea-visionneuse__boite { gap: 8px; padding-top: 10px; }
}

/* Lien discret « Espace apprenant » du pied de page */
.footer__lien { color: var(--blanc); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.footer__lien:hover { color: var(--bleu-clair); }

/* =========================================================
   7. ANIMATION D'APPARITION (activée par le JavaScript)
   ========================================================= */
/* ".js" : l'animation ne s'applique que si JavaScript fonctionne */
.js .reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.visible { opacity: 1; transform: none; }

/* Si la personne préfère moins d'animations, on les désactive */
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   8. ADAPTATION AUX TABLETTES ET TÉLÉPHONES
   "@media" veut dire : "si l'écran fait moins de X pixels, alors..."
   ========================================================= */
@media (max-width: 900px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .about { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  /* On affiche le hamburger et on cache le menu */
  .menu-toggle { display: block; }
  .nav {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--blanc);
    box-shadow: 0 10px 20px rgba(0, 0, 0, .08);
    max-height: 0; overflow: hidden;
    visibility: hidden;   /* menu fermé : liens non atteignables au clavier */
    transition: max-height .35s ease, visibility .35s;
  }
  .nav.open { max-height: 400px; visibility: visible; }
  .nav a { width: 100%; text-align: center; padding: 16px; }
  .nav a.btn { width: auto; margin: 10px 0 20px; padding: 10px 28px; }

  /* Hamburger transformé en croix quand le menu est ouvert */
  .menu-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .menu-toggle.open span:nth-child(2) { opacity: 0; }
  .menu-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .hero { padding: 110px 0 70px; text-align: center; }
  .hero__inner { grid-template-columns: 1fr; gap: 16px; }   /* titre plus proche du logo */
  .hero__visual { order: -1; }           /* le logo passe au-dessus du texte */
  /* Carte du logo compacte sur mobile : 120 × 120 px */
  .hero__visual img { width: 120px; height: 120px; padding: 8px; border-radius: 18px; }
  .hero__lead { margin-left: auto; margin-right: auto; }
  .hero__buttons { justify-content: center; }

  .section { padding: 70px 0; }
  .cards, .projects { grid-template-columns: 1fr; }
  .projects { gap: 20px; }
}

/* Tablette en portrait / grand téléphone : les réalisations restent sur 2 colonnes */
@media (min-width: 600px) and (max-width: 768px) {
  .projects { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 420px) {
  .hero__buttons .btn { width: 100%; text-align: center; }
}
