/* ============================================================
   ÉCLATS D'AFRIQUE — Design system
   Papier blanc · encre noire · éclats de peinture
   Display: Syne · Texte: Instrument Sans · Manuscrit: Caveat
   ============================================================ */

:root {
  --encre:    #16140f;
  --encre-70: rgba(22, 20, 15, .7);
  --encre-40: rgba(22, 20, 15, .4);
  --papier:   #ffffff;
  --papier-2: #faf9f6;
  --trait:    rgba(22, 20, 15, .12);

  --bleu:    #2ba6de;
  --magenta: #e5397b;
  --jaune:   #f2c230;
  --orange:  #f07c22;
  --vert:    #8dc63f;

  --f-display: 'Syne', sans-serif;
  --f-texte:   'Instrument Sans', system-ui, sans-serif;
  --f-main:    'Caveat', cursive;

  --maxw: 1200px;
  --r: 18px;
  --ease: cubic-bezier(.22, .8, .3, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--f-texte);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--encre);
  background: var(--papier);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--f-display); line-height: 1.06; margin: 0 0 .5em; letter-spacing: -.015em; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1.2rem, 4vw, 2.5rem); }
.section { padding-block: clamp(4rem, 9vw, 7.5rem); }
.section--tint { background: var(--papier-2); }

/* Sélection de texte, au hasard des couleurs du logo */
::selection { background: var(--jaune); color: var(--encre); }

/* ---------- Typo utilitaire ---------- */
.eyebrow {
  font-family: var(--f-texte);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: .6em;
  margin-bottom: 1.2rem;
}
.eyebrow::before {
  content: '';
  width: 11px; height: 11px;
  background: var(--dot, var(--magenta));
  border-radius: 50% 46% 55% 42% / 48% 55% 40% 52%;
  transform: rotate(12deg);
}
.h-display { font-size: clamp(2.3rem, 5.4vw, 4.2rem); font-weight: 800; }
.h-section { font-size: clamp(1.9rem, 4vw, 3rem);   font-weight: 800; }
.lead { font-size: clamp(1.08rem, 1.6vw, 1.3rem); color: var(--encre-70); max-width: 46ch; }

/* Mot surligné d'un coup de pinceau */
.brush {
  position: relative;
  white-space: nowrap;
  z-index: 0;
}
.brush > svg {
  position: absolute;
  left: -4%; bottom: .02em;
  width: 108%; height: .42em;
  z-index: -1;
}
.brush > svg path { stroke-width: 14; fill: none; stroke-linecap: round; }

/* Annotation manuscrite */
.main {
  font-family: var(--f-main);
  font-weight: 700;
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  line-height: 1.15;
  color: var(--encre);
  transform: rotate(-3deg);
  display: inline-block;
}
.main--bleu { color: var(--bleu); }
.main--magenta { color: var(--magenta); }
.main--orange { color: var(--orange); }
.main--vert { color: #6ca327; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  font-family: var(--f-texte);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 999px;
  padding: .95em 1.9em;
  border: 2px solid var(--encre);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s;
  cursor: pointer;
  position: relative;
}
.btn--plein { background: var(--encre); color: var(--papier); }
.btn--plein:hover { transform: translateY(-3px); box-shadow: 6px 8px 0 var(--jaune); }
.btn--ligne { background: transparent; color: var(--encre); }
.btn--ligne:hover { transform: translateY(-3px); box-shadow: 6px 8px 0 var(--magenta); }
.btn--blanc { background: var(--papier); color: var(--encre); border-color: var(--papier); }
.btn--blanc:hover { transform: translateY(-3px); box-shadow: 6px 8px 0 var(--bleu); }

/* Lien souligné à la main */
.lien-main {
  font-weight: 700;
  text-decoration: none;
  position: relative;
  padding-bottom: .35em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 10' preserveAspectRatio='none'%3E%3Cpath d='M2 7 C 30 2, 60 9, 118 4' stroke='%23e5397b' stroke-width='3.4' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") bottom / 100% .5em no-repeat;
}
.lien-main:hover { color: var(--magenta); }

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--trait);
}
.header::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.header__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-block: .8rem;
}
.header__logo img { height: 52px; width: auto; }
.nav { display: flex; align-items: center; gap: clamp(1.2rem, 2.4vw, 2.2rem); }
.nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: .98rem;
  position: relative;
  padding: .3em 0;
}
.nav a:not(.btn)::after {
  content: '';
  position: absolute;
  left: 50%; bottom: -4px;
  width: 9px; height: 9px;
  border-radius: 50% 44% 56% 40% / 46% 58% 42% 54%;
  background: var(--c, var(--magenta));
  transform: translateX(-50%) scale(0) rotate(20deg);
  transition: transform .25s var(--ease);
}
.nav a:not(.btn):hover::after,
.nav a.actif::after { transform: translateX(-50%) scale(1) rotate(20deg); }
.nav a:nth-child(1) { --c: var(--bleu); }
.nav a:nth-child(2) { --c: var(--magenta); }
.nav a:nth-child(3) { --c: var(--jaune); }
.nav a:nth-child(4) { --c: var(--vert); }
.nav .btn { padding: .6em 1.4em; font-size: .92rem; }

.burger {
  display: none;
  background: none;
  border: 0;
  width: 44px; height: 44px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 8px;
}
.burger span { display: block; height: 3px; border-radius: 3px; background: var(--encre); transition: .3s var(--ease); }

@media (max-width: 880px) {
  .burger { display: flex; }
  .nav {
    position: fixed;
    top: 69px;
    left: 0;
    right: 0;
    width: 100vw;
    height: calc(100vh - 69px);
    height: calc(100dvh - 69px);
    z-index: 99;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    background: #ffffff;
    overflow-y: auto;
    font-size: 1.3rem;
    transform: translateX(100%);
    transition: transform .35s var(--ease);
  }
  .nav.ouvert { transform: translateX(0); }
  body.nav-ouvert { overflow: hidden; }
  body.nav-ouvert .burger span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
  body.nav-ouvert .burger span:nth-child(2) { opacity: 0; }
  body.nav-ouvert .burger span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding-block: clamp(4.5rem, 10vw, 8.5rem) clamp(3.5rem, 7vw, 6rem);
  overflow: hidden;
}
.hero__in { position: relative; z-index: 2; max-width: 900px; }
.hero h1 {
  font-size: clamp(2.7rem, 7.2vw, 5.6rem);
  font-weight: 800;
  margin-bottom: .35em;
}
.hero .lead { margin-bottom: 2.2rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }

.hero__note {
  position: absolute;
  right: clamp(1rem, 6vw, 5rem);
  top: clamp(3rem, 9vw, 7rem);
  z-index: 2;
  text-align: center;
}
.hero__note svg { width: 54px; margin-top: .2rem; }
@media (max-width: 980px) { .hero__note { display: none; } }

/* Éclats flottants */
.splat {
  position: absolute;
  border-radius: 52% 48% 60% 40% / 48% 60% 40% 52%;
  opacity: .85;
  animation: flotte 7s ease-in-out infinite;
  pointer-events: none;
}
.splat::after {
  content: '';
  position: absolute;
  width: 26%; height: 26%;
  background: inherit;
  border-radius: inherit;
  bottom: -34%; right: -14%;
}
@keyframes flotte {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-16px) rotate(8deg); }
}

/* ---------- Marquee ---------- */
.marquee {
  border-block: 2px solid var(--encre);
  background: var(--papier);
  overflow: hidden;
  padding-block: 1.05rem;
  position: relative;
  z-index: 2;
}
.marquee__piste {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: defile 26s linear infinite;
}
.marquee span {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  letter-spacing: .06em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 3rem;
  white-space: nowrap;
}
.marquee i {
  width: 15px; height: 15px;
  border-radius: 55% 45% 62% 38% / 46% 60% 40% 54%;
  transform: rotate(14deg);
  flex: none;
}
@keyframes defile { to { transform: translateX(-50%); } }

/* ============================================================
   STATEMENT (partenaire)
   ============================================================ */
.statement p {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 3.2vw, 2.5rem);
  line-height: 1.28;
  max-width: 22em;
  margin: 0;
}
.statement .fin {
  display: block;
  margin-top: 1.6rem;
}

/* ============================================================
   PÔLES (cartes)
   ============================================================ */
.poles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.4rem;
  margin-top: 3rem;
}
.pole {
  --c: var(--bleu);
  position: relative;
  display: block;
  text-decoration: none;
  border: 2px solid var(--encre);
  border-radius: var(--r);
  padding: 2.2rem 2rem 2rem;
  background: var(--papier);
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.pole:hover { transform: translateY(-6px); box-shadow: 9px 11px 0 var(--c); }
.pole__tache {
  position: absolute;
  top: -46px; right: -46px;
  width: 130px; height: 130px;
  background: var(--c);
  border-radius: 52% 48% 60% 40% / 48% 60% 40% 52%;
  opacity: .16;
  transition: opacity .3s, transform .4s var(--ease);
}
.pole:hover .pole__tache { opacity: .9; transform: scale(1.15) rotate(14deg); }
.pole__num {
  font-family: var(--f-main);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--c);
}
.pole h3 { font-size: 1.65rem; font-weight: 800; margin: .2em 0 .35em; }
.pole p { color: var(--encre-70); font-size: .99rem; margin-bottom: 1.4rem; }
.pole__go { font-weight: 700; font-size: .95rem; display: inline-flex; gap: .4em; align-items: center; }
.pole__go svg { transition: transform .25s var(--ease); }
.pole:hover .pole__go svg { transform: translateX(6px); }
.pole--bleu    { --c: var(--bleu); }
.pole--magenta { --c: var(--magenta); }
.pole--orange  { --c: var(--orange); }

/* ============================================================
   POURQUOI NOUS — liste éditoriale
   ============================================================ */
.raisons { margin-top: 2.5rem; border-top: 2px solid var(--encre); }
.raison {
  display: grid;
  grid-template-columns: 3.2rem 1fr 1.6fr;
  gap: 1.5rem;
  align-items: baseline;
  padding-block: 1.6rem;
  border-bottom: 1px solid var(--trait);
}
.raison__coche {
  font-family: var(--f-main);
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1;
}
.raison h3 { font-size: 1.25rem; font-weight: 700; margin: 0; }
.raison p { margin: 0; color: var(--encre-70); }
@media (max-width: 760px) {
  .raison { grid-template-columns: 2.6rem 1fr; }
  .raison p { grid-column: 2; }
}

/* ============================================================
   MÉTHODE
   ============================================================ */
.methode {
  counter-reset: etape;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2.4rem 1.6rem;
  margin-top: 3rem;
}
.etape { position: relative; }
.etape::before {
  counter-increment: etape;
  content: counter(etape, decimal-leading-zero);
  font-family: var(--f-main);
  font-weight: 700;
  font-size: 3.4rem;
  line-height: 1;
  color: var(--c, var(--bleu));
  display: block;
  margin-bottom: .4rem;
}
.etape:nth-child(1) { --c: var(--bleu); }
.etape:nth-child(2) { --c: var(--magenta); }
.etape:nth-child(3) { --c: var(--jaune); }
.etape:nth-child(4) { --c: var(--orange); }
.etape:nth-child(5) { --c: var(--vert); }
.etape h3 { font-size: 1.12rem; font-weight: 700; }
.etape p { font-size: .95rem; color: var(--encre-70); margin: 0; }
.etape__fleche {
  position: absolute;
  top: .9rem; right: -1.5rem;
  width: 2rem;
  color: var(--encre-40);
}
.etape:last-child .etape__fleche { display: none; }
@media (max-width: 700px) { .etape__fleche { display: none; } }

/* ============================================================
   ÉCLATS / PORTFOLIO
   ============================================================ */
.grille-eclats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.6rem;
  margin-top: 2.5rem;
}
.eclat {
  --c: var(--bleu);
  border: 2px solid var(--encre);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--papier);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.eclat:hover { transform: translateY(-6px); box-shadow: 9px 11px 0 var(--c); }
.eclat__img {
  aspect-ratio: 16 / 10;
  background: var(--papier-2);
  border-bottom: 2px solid var(--encre);
  overflow: hidden;
}
.eclat__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.eclat:hover .eclat__img img { transform: scale(1.05); }
.eclat__vide {
  width: 100%; height: 100%;
  display: grid;
  place-items: center;
  font-family: var(--f-main);
  font-size: 1.6rem;
  color: var(--c);
}
.eclat__corps { padding: 1.3rem 1.4rem 1.5rem; }
.eclat__pole {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--papier);
  background: var(--c);
  border-radius: 999px;
  padding: .3em .9em;
  margin-bottom: .7rem;
}
.eclat h3 { font-size: 1.25rem; margin: 0 0 .2em; }
.eclat__client { font-size: .92rem; color: var(--encre-70); margin: 0; }
.eclat--bleu    { --c: var(--bleu); }
.eclat--magenta { --c: var(--magenta); }
.eclat--orange  { --c: var(--orange); }

/* Filtres */
.filtres { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 2rem; }
.filtre {
  text-decoration: none;
  font-weight: 700;
  font-size: .92rem;
  border: 2px solid var(--encre);
  border-radius: 999px;
  padding: .5em 1.3em;
  transition: .2s;
}
.filtre:hover, .filtre.actif { background: var(--encre); color: var(--papier); }

/* Logos clients */
.logos-bande { overflow: hidden; margin-top: 2.5rem; }
.logos-piste {
  display: flex;
  width: max-content;
  animation: defile 32s linear infinite;
}
.logos-bande:hover .logos-piste { animation-play-state: paused; }
.logos-groupe {
  display: flex;
  align-items: center;
  gap: clamp(3rem, 7vw, 5.5rem);
  padding-right: clamp(3rem, 7vw, 5.5rem); /* la couture = un espacement normal */
}
.logos-groupe img {
  height: 56px; width: auto;
  filter: grayscale(1);
  opacity: .65;
  transition: .3s;
}
.logos-groupe img:hover { filter: none; opacity: 1; }

/* ============================================================
   BANDEAU CTA (fond encre)
   ============================================================ */
.cta-band {
  background: var(--encre);
  color: var(--papier);
  position: relative;
  overflow: hidden;
}
.cta-band .wrap { position: relative; z-index: 2; text-align: center; }
.cta-band h2 { font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 800; }
.cta-band p { color: rgba(255, 255, 255, .75); max-width: 46ch; margin-inline: auto; }
.cta-band .btn { margin-top: 1.4rem; }
.cta-band .main { color: var(--jaune); }

/* ============================================================
   PAGE EXPERTISE
   ============================================================ */
.page-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(4rem, 8vw, 6.5rem) clamp(3rem, 6vw, 5rem);
  border-bottom: 2px solid var(--encre);
}
.page-hero h1 { font-size: clamp(2.5rem, 6vw, 4.6rem); font-weight: 800; max-width: 16em; }
.page-hero .lead { max-width: 52ch; }

.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.4rem;
  margin-top: 3rem;
}
.service {
  border: 2px solid var(--encre);
  border-radius: var(--r);
  padding: 1.8rem 1.7rem;
  background: var(--papier);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.service:hover { transform: translateY(-5px); box-shadow: 7px 9px 0 var(--c, var(--bleu)); }
.service__ico {
  width: 46px; height: 46px;
  border-radius: 52% 48% 60% 40% / 48% 60% 40% 52%;
  background: var(--c, var(--bleu));
  display: grid;
  place-items: center;
  color: #fff;
  margin-bottom: 1.1rem;
  transform: rotate(-6deg);
}
.service h3 { font-size: 1.22rem; font-weight: 700; }
.service p { font-size: .96rem; color: var(--encre-70); margin: 0; }

/* Liens entre pôles en bas de page expertise */
.autres-poles { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.2rem; margin-top: 2rem; }

/* ============================================================
   PAGE AGENCE
   ============================================================ */
.valeurs { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.valeur {
  font-family: var(--f-main);
  font-weight: 700;
  font-size: 1.45rem;
  border: 2px solid var(--encre);
  border-radius: 999px;
  padding: .25em 1em .35em;
  transform: rotate(-2deg);
}
.valeur:nth-child(2n) { transform: rotate(2deg); }
.valeur:nth-child(1) { box-shadow: 4px 5px 0 var(--bleu); }
.valeur:nth-child(2) { box-shadow: 4px 5px 0 var(--magenta); }
.valeur:nth-child(3) { box-shadow: 4px 5px 0 var(--jaune); }
.valeur:nth-child(4) { box-shadow: 4px 5px 0 var(--orange); }
.valeur:nth-child(5) { box-shadow: 4px 5px 0 var(--vert); }

.deux-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
@media (max-width: 860px) { .deux-col { grid-template-columns: 1fr; } }

/* ============================================================
   CONTACT
   ============================================================ */
.form { display: grid; gap: 1.2rem; }
.form__ligne { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
@media (max-width: 640px) { .form__ligne { grid-template-columns: 1fr; } }
.champ label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: .35rem; }
.champ input, .champ select, .champ textarea {
  width: 100%;
  font: inherit;
  color: var(--encre);
  background: var(--papier);
  border: 2px solid var(--encre);
  border-radius: 12px;
  padding: .8em 1em;
  transition: box-shadow .2s var(--ease), transform .2s var(--ease);
}
.champ textarea { min-height: 150px; resize: vertical; }
.champ input:focus, .champ select:focus, .champ textarea:focus {
  outline: none;
  box-shadow: 4px 5px 0 var(--bleu);
  transform: translateY(-2px);
}
.form .btn { justify-self: start; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.alerte { border: 2px solid var(--encre); border-radius: 12px; padding: 1rem 1.3rem; font-weight: 600; margin-bottom: 1.5rem; }
.alerte--ok  { background: #f0f8e4; box-shadow: 4px 5px 0 var(--vert); }
.alerte--err { background: #fdecf2; box-shadow: 4px 5px 0 var(--magenta); }

.infos-contact { display: grid; gap: 1.1rem; margin-top: 2rem; }
.info-ligne { display: flex; gap: .9rem; align-items: flex-start; }
.info-ligne .pastille {
  flex: none;
  width: 40px; height: 40px;
  border-radius: 52% 48% 60% 40% / 48% 60% 40% 52%;
  display: grid;
  place-items: center;
  color: #fff;
  transform: rotate(-6deg);
}
.info-ligne strong { display: block; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; }
.info-ligne a { text-decoration: none; font-weight: 600; }
.info-ligne a:hover { color: var(--bleu); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--encre);
  color: rgba(255, 255, 255, .8);
  padding-block: 3.5rem 2rem;
  position: relative;
  overflow: hidden;
}
.footer a { color: #fff; text-decoration: none; }
.footer a:hover { color: var(--jaune); }
.footer__in {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 2.5rem;
  position: relative;
  z-index: 2;
}
@media (max-width: 980px) { .footer__in { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) {
  .footer__in { grid-template-columns: 1fr; text-align: center; }
  .footer__in > div { justify-items: center; }
  .footer__in p { margin-inline: auto; }
  .footer__in li[style] { justify-content: center; }
  .footer__bas { flex-direction: column; align-items: center; text-align: center; }
}
.footer__logo { background: #fff; border-radius: 12px; padding: .7rem 1rem; display: inline-block; }
.footer__logo img { height: 46px; }
.footer h4 { color: #fff; font-size: 1rem; letter-spacing: .1em; text-transform: uppercase; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; font-size: .96rem; }
.footer__bas {
  margin-top: 3rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, .15);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: .85rem;
  color: rgba(255, 255, 255, .55);
  position: relative;
  z-index: 2;
}
.footer .main { color: var(--jaune); font-size: 1.25rem; }

/* ============================================================
   RÉVÉLATION AU SCROLL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.vu { opacity: 1; transform: none; }
.reveal[data-delai="1"] { transition-delay: .1s; }
.reveal[data-delai="2"] { transition-delay: .2s; }
.reveal[data-delai="3"] { transition-delay: .3s; }
.reveal[data-delai="4"] { transition-delay: .4s; }

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

/* Focus clavier visible */
:focus-visible { outline: 3px solid var(--bleu); outline-offset: 3px; border-radius: 4px; }

/* ============================================================
   HERO SLIDER (images gérées dans l'admin)
   ============================================================ */
.slider {
  position: relative;
  overflow: hidden;
  background: var(--encre);
  min-height: clamp(430px, 62vh, 640px);
}
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s var(--ease);
  display: flex;
  align-items: flex-end;
}
.slide.actif { opacity: 1; z-index: 2; }
.slide__img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.slide.actif .slide__img { animation: zoome 8s var(--ease) forwards; }
@keyframes zoome { from { transform: scale(1.06); } to { transform: scale(1); } }
.slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(12,11,8,.82) 0%, rgba(12,11,8,.35) 45%, rgba(12,11,8,.05) 75%);
}
.slide__in {
  position: relative;
  z-index: 3;
  width: 100%;
  padding-bottom: clamp(2.5rem, 6vw, 4.5rem);
  color: #fff;
}
.slide__in h2, .slide__in .h1 {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(1.9rem, 5.4vw, 3.9rem);
  line-height: 1.05;
  margin: 0 0 .35em;
  max-width: 17em;
  color: #fff;
  text-wrap: balance;
}
.slide__in p {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: rgba(255,255,255,.85);
  max-width: 52ch;
  margin-bottom: 1.6rem;
}
.slider__points {
  position: absolute;
  z-index: 5;
  bottom: 1.2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: .6rem;
}
.slider__point {
  width: 13px; height: 13px;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: rgba(255,255,255,.45);
  border-radius: 55% 45% 62% 38% / 46% 60% 40% 54%;
  transform: rotate(14deg);
  transition: .25s;
}
.slider__point.actif { background: var(--jaune); transform: rotate(14deg) scale(1.25); }
.slider__prec, .slider__suiv {
  position: absolute;
  z-index: 5;
  top: 50%;
  transform: translateY(-50%);
  width: 46px; height: 46px;
  border: 2px solid rgba(255,255,255,.6);
  border-radius: 50%;
  background: rgba(12,11,8,.35);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: .2s;
  backdrop-filter: blur(4px);
}
.slider__prec { left: 1rem; }
.slider__suiv { right: 1rem; }
.slider__prec:hover, .slider__suiv:hover { background: var(--jaune); color: var(--encre); border-color: var(--jaune); }
@media (max-width: 700px) {
  .slider__prec, .slider__suiv { display: none; }
}

/* ============================================================
   NEWSLETTER
   ============================================================ */
.newsletter {
  position: relative;
  overflow: hidden;
  border-top: 2px solid var(--encre);
  background: var(--papier-2);
  padding-block: clamp(3rem, 6vw, 4.5rem);
}
.newsletter__in {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
  position: relative;
  z-index: 2;
}
@media (max-width: 820px) { .newsletter__in { grid-template-columns: 1fr; } }
.newsletter h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 800; margin: .15em 0 .3em; }
.newsletter p { color: var(--encre-70); margin: 0; }
.newsletter__form {
  display: flex;
  gap: .7rem;
  flex-wrap: wrap;
}
.newsletter__form input {
  flex: 1 1 220px;
  font: inherit;
  border: 2px solid var(--encre);
  border-radius: 999px;
  padding: .9em 1.3em;
  background: var(--papier);
}
.newsletter__form input:focus { outline: none; box-shadow: 4px 5px 0 var(--magenta); }
.newsletter__note { font-size: .84rem; color: var(--encre-40); margin-top: .7rem !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}

/* ============================================================
   BLOG
   ============================================================ */
.grille-blog {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.6rem;
}
.carte-article {
  --c: var(--bleu);
  border: 2px solid var(--encre);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--papier);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.carte-article:hover { transform: translateY(-6px); box-shadow: 9px 11px 0 var(--c); }
.carte-article:nth-child(4n+1) { --c: var(--bleu); }
.carte-article:nth-child(4n+2) { --c: var(--magenta); }
.carte-article:nth-child(4n+3) { --c: var(--orange); }
.carte-article:nth-child(4n+4) { --c: var(--vert); }
.carte-article__img {
  aspect-ratio: 16 / 9;
  border-bottom: 2px solid var(--encre);
  overflow: hidden;
  background: var(--papier-2);
}
.carte-article__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.carte-article:hover .carte-article__img img { transform: scale(1.05); }
.carte-article__corps { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.carte-article__date { font-size: .82rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--c); }
.carte-article h3 { font-size: 1.3rem; margin: 0; }
.carte-article p { font-size: .95rem; color: var(--encre-70); margin: 0; }
.carte-article__lire { margin-top: auto; padding-top: .8rem; font-weight: 700; font-size: .92rem; }

/* Article seul */
.article-hero { padding-block: clamp(3.5rem, 7vw, 5.5rem) 2rem; }
.article-hero h1 { font-size: clamp(2rem, 5vw, 3.6rem); font-weight: 800; max-width: 20em; }
.article-couv {
  border: 2px solid var(--encre);
  border-radius: var(--r);
  overflow: hidden;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.article-couv img { width: 100%; max-height: 520px; object-fit: cover; }
.article-corps {
  max-width: 720px;
  font-size: 1.08rem;
  line-height: 1.8;
}
.article-corps h2 { font-size: 1.6rem; margin-top: 1.8em; }
.article-corps h3 { font-size: 1.25rem; margin-top: 1.5em; }
.article-corps a { color: var(--bleu); font-weight: 600; }
.article-corps blockquote {
  margin: 1.5em 0;
  padding: 1rem 1.4rem;
  border-left: 5px solid var(--jaune);
  background: var(--papier-2);
  border-radius: 0 12px 12px 0;
  font-style: italic;
}
.article-corps img { border-radius: 12px; }

/* Partage */
.partage {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  align-items: center;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 2px solid var(--encre);
}
.partage strong { font-family: var(--f-main); font-size: 1.35rem; margin-right: .4rem; }
.partage a, .partage button {
  font: inherit;
  font-weight: 700;
  font-size: .88rem;
  text-decoration: none;
  border: 2px solid var(--encre);
  border-radius: 999px;
  padding: .45em 1.1em;
  background: var(--papier);
  cursor: pointer;
  transition: .2s;
}
.partage a:hover, .partage button:hover { transform: translateY(-2px); }
.partage .pa-fb:hover { box-shadow: 3px 4px 0 #1877f2; }
.partage .pa-x:hover  { box-shadow: 3px 4px 0 var(--encre); }
.partage .pa-in:hover { box-shadow: 3px 4px 0 #0a66c2; }
.partage .pa-wa:hover { box-shadow: 3px 4px 0 #25d366; }
.partage .copier-lien:hover { box-shadow: 3px 4px 0 var(--jaune); }

/* ============================================================
   PAGES LÉGALES
   ============================================================ */
.legal { max-width: 780px; }
.legal h2 { font-size: 1.45rem; margin-top: 2.2em; }
.legal p, .legal li { color: var(--encre-70); }
.legal a { color: var(--bleu); font-weight: 600; }

/* ============================================================
   BANNIÈRE COOKIES
   ============================================================ */
.cookies {
  position: fixed;
  z-index: 300;
  left: 1rem; right: 1rem; bottom: 1rem;
  max-width: 620px;
  margin-inline: auto;
  background: var(--papier);
  border: 2px solid var(--encre);
  border-radius: var(--r);
  box-shadow: 8px 10px 0 var(--jaune);
  padding: 1.3rem 1.5rem;
  animation: cookie-pop .45s var(--ease);
}
@keyframes cookie-pop { from { transform: translateY(24px); opacity: 0; } }
.cookies p { font-size: .93rem; margin: 0 0 1rem; }
.cookies a { color: var(--bleu); font-weight: 600; }
.cookies__actions { display: flex; gap: .7rem; flex-wrap: wrap; }
.cookies .btn { padding: .55em 1.4em; font-size: .92rem; }

/* ============================================================
   SÉLECTEUR DE TRADUCTION (Google Translate)
   ============================================================ */
.traduction { min-height: 1px; }
.traduction .goog-te-gadget { font-family: var(--f-texte) !important; font-size: 0 !important; color: transparent !important; }
.traduction .goog-te-gadget .goog-te-combo {
  font-family: var(--f-texte);
  font-size: .85rem;
  font-weight: 600;
  border: 2px solid var(--encre);
  border-radius: 999px;
  padding: .3em .7em;
  background: var(--papier);
  color: var(--encre);
  cursor: pointer;
  max-width: 130px;
}
.traduction .goog-te-gadget img, .traduction .goog-logo-link { display: none !important; }
body { top: 0 !important; } /* neutralise la barre Google Translate */
.skiptranslate iframe.goog-te-banner-frame { display: none !important; }

/* ============================================================
   NAV : couleurs des points (5 liens désormais)
   ============================================================ */
.nav a:nth-child(5) { --c: var(--orange); }

/* ============================================================
   POLISH RESPONSIVE
   ============================================================ */
@media (max-width: 880px) {
  .traduction { order: 10; }
  .nav .btn { font-size: 1.05rem; }
}
@media (max-width: 640px) {
  .header__logo img { height: 44px; }
  .hero h1 { font-size: clamp(2.2rem, 10vw, 2.8rem); }
  .section { padding-block: 3.2rem; }
  .btn { padding: .85em 1.5em; font-size: .95rem; }
  .footer__bas { flex-direction: column; align-items: flex-start; gap: .4rem; }
  .grille-eclats, .grille-blog { grid-template-columns: 1fr; }
  .filtres { gap: .5rem; }
  .filtre { font-size: .85rem; padding: .45em 1.05em; }
  .partage strong { width: 100%; }
}
@media (max-width: 400px) {
  .wrap { padding-inline: 1rem; }
  .newsletter__form { flex-direction: column; }
  .newsletter__form .btn { width: 100%; justify-content: center; }
}

/* ============================================================
   HERO DE PAGE AVEC IMAGE (bannières gérées dans l'admin)
   ============================================================ */
.page-hero--img { background: var(--encre); }
.page-hero--img .ph-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.page-hero--img::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(12,11,8,.84) 18%, rgba(12,11,8,.45) 60%, rgba(12,11,8,.2) 100%);
  z-index: 1;
}
.page-hero--img .wrap { position: relative; z-index: 2; }
.page-hero--img h1 { color: #fff; }
.page-hero--img .lead, .page-hero--img p { color: rgba(255,255,255,.88); }
.page-hero--img .eyebrow { color: #fff; }
.page-hero--img .splat { display: none; }

/* ============================================================
   SÉLECTEUR DE LANGUE FR / EN
   ============================================================ */
.traduction {
  display: flex;
  align-items: center;
  gap: .15rem;
  border: 2px solid var(--encre);
  border-radius: 999px;
  padding: .18em .5em;
  background: var(--papier);
}
.lang-btn {
  font: inherit;
  font-size: .82rem;
  font-weight: 700;
  border: 0;
  background: none;
  cursor: pointer;
  padding: .2em .45em;
  border-radius: 999px;
  color: var(--encre);
  opacity: .55;
  transition: .2s;
}
.lang-btn:hover { opacity: 1; }
.lang-btn.actif { opacity: 1; background: var(--jaune); }
.lang-sep { opacity: .35; font-size: .8rem; }
#gt-cache { display: none !important; }

/* Neutraliser toute l'interface injectée par Google Translate */
iframe.skiptranslate, .goog-te-banner-frame, #goog-gt-tt,
.goog-te-balloon-frame, .goog-tooltip, .goog-tooltip:hover { display: none !important; }
.goog-text-highlight { background: none !important; box-shadow: none !important; }
body { top: 0 !important; position: static !important; }

/* ============================================================
   CADRES PHOTO / VISUELS (images ou icônes de repli)
   ============================================================ */
.cadre-photo {
  --c: var(--jaune);
  border: 2px solid var(--encre);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: 9px 11px 0 var(--c);
  transform: rotate(-1.2deg);
  background: var(--papier);
}
.cadre-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cadre-photo--ico {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  color: var(--c);
  background:
    radial-gradient(circle at 78% 22%, color-mix(in srgb, var(--c) 18%, transparent) 0 26%, transparent 27%),
    radial-gradient(circle at 15% 80%, color-mix(in srgb, var(--c) 12%, transparent) 0 20%, transparent 21%),
    var(--papier-2);
}
.cadre-photo--ico svg { width: 34%; height: auto; opacity: .9; }
.cadre-photo--large { transform: rotate(-.6deg); max-height: 480px; }
.cadre-photo--large img { max-height: 480px; }

/* ============================================================
   RÉSEAUX SOCIAUX EN ICÔNES (footer)
   ============================================================ */
.rs-icones { display: flex; gap: .7rem; margin-top: .5rem; flex-wrap: wrap; }
.rs {
  width: 42px; height: 42px;
  border: 2px solid rgba(255, 255, 255, .4);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff !important;
  transition: .2s;
}
.rs:hover { background: var(--jaune); border-color: var(--jaune); color: var(--encre) !important; transform: translateY(-3px); }

/* ============================================================
   PÔLES : icône emblème et visuel sur les cartes de l'accueil
   ============================================================ */
.pole__ico {
  width: 52px; height: 52px;
  border: 2px solid var(--encre);
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: #fff;
  margin-bottom: 1rem;
}
.pole__img {
  display: block;
  margin: -1.7rem -1.7rem 1.2rem;
  aspect-ratio: 16 / 8;
  overflow: hidden;
  border-bottom: 2px solid var(--encre);
}
.pole__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.pole:hover .pole__img img { transform: scale(1.05); }

/* Liste des services avec icônes (page Expertises) */
.srv-ligne { display: flex; gap: .9rem; align-items: flex-start; }
.srv-ligne__ico {
  flex: 0 0 38px;
  width: 38px; height: 38px;
  border: 2px solid var(--encre);
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #fff;
  margin-top: .15rem;
}

/* Hero d'un pôle : texte + visuel */
.hero-pole { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (max-width: 880px) { .hero-pole { grid-template-columns: 1fr; } .hero-pole .cadre-photo { max-width: 460px; } }

@media (max-width: 640px) {
  .rs-icones { justify-content: center; }
  .cadre-photo { box-shadow: 6px 8px 0 var(--c); }
}
