/* Charte Accom’Annie, reprise du PowerPoint « Site Web » : couleurs inchangées.
   Police : Figtree (licence SIL OFL, fichiers dans fonts/), hébergée sur le site,
   choisie à la place d’Aptos, police Microsoft absente de la plupart des appareils. */
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("fonts/figtree-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("fonts/figtree-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --vert: #275317;          /* Vert, Accentuation 6, plus sombre 50 % (texte, titres, contours) */
  --rose: #B25867;          /* Votre BACK-OFFICE */
  --vert-clair: #92D050;    /* Votre COACHING */
  --or: #FFC000;            /* Votre IMAGE */
  --fond: #FFF6E7;          /* fond des diapositives 2 à 5 */
  --fond-accueil: #FFF6E6;  /* fond diapositive 1 : #FFE1AC à 30 % sur blanc */
  --police-titre: "Figtree", "Aptos Display", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --police-texte: "Figtree", "Aptos", "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  /* Teintes dérivées de la charte (mélanges des couleurs ci-dessus) */
  --sable: #FFE1AC;         /* beige de la diapositive 1 (avant éclaircissement à 30 %) */
  --carte: color-mix(in srgb, var(--fond) 55%, #fff);
  --case: color-mix(in srgb, var(--sable) 62%, var(--fond));          /* case pleine, plus foncée que le fond */
  --case-survol: color-mix(in srgb, var(--sable) 88%, var(--fond));
  --filet: color-mix(in srgb, var(--vert) 16%, transparent);
  --filet-fort: color-mix(in srgb, var(--vert) 30%, transparent);
  --vert-doux: color-mix(in srgb, var(--vert) 72%, var(--fond));
  --ombre: 0 1px 2px rgb(39 83 23 / .06), 0 18px 40px -18px rgb(39 83 23 / .28);

  --rayon: 14px;
  --entete: 76px;
  --marge: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --coche: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.6 4.6L19 7.5'/%3E%3C/svg%3E");
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--fond);
  color: var(--vert);
  font-family: var(--police-texte);
  font-size: clamp(16px, 1.05vw + 10px, 18px);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--vert); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }
h1, h2, h3 { font-family: var(--police-titre); font-weight: 500; margin: 0; text-wrap: balance; }
p { text-wrap: pretty; }
html.menu-ouvert { overflow: hidden; }

.contenu { width: min(1200px, 100% - 2 * var(--marge)); margin-inline: auto; }
.lien-evitement {
  position: absolute; left: var(--marge); top: -100px; z-index: 100;
  background: var(--vert); color: var(--fond); padding: .6em 1em; border-radius: 8px; text-decoration: none;
}
.lien-evitement:focus { top: 12px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6em;
  padding: .8em 1.35em;
  border: 2px solid var(--vert); border-radius: 12px;
  font: inherit; font-size: 1rem; line-height: 1.15;
  text-decoration: none; cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn-plein { background: var(--vert); color: var(--fond); }
.btn-plein:hover { transform: translateY(-2px); box-shadow: var(--ombre); }
.btn-contour { background: transparent; color: var(--vert); }
.btn-contour:hover { background: color-mix(in srgb, var(--vert) 8%, transparent); }
.fleche { display: inline-block; transition: transform .3s var(--ease); }
.btn:hover .fleche, a:hover > .fleche { transform: translateX(4px); }

/* ---------- Coches (le ✓ du PowerPoint, dessiné à l'apparition) ---------- */
.coches { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.coches li { position: relative; padding-left: 2.25em; }
.coches li::before {
  content: ""; position: absolute; left: 0; top: .05em;
  width: 1.5em; height: 1.5em; border-radius: 50%;
  background: color-mix(in srgb, var(--accent, var(--vert-clair)) 26%, transparent);
}
.coches li::after {
  content: ""; position: absolute; left: .25em; top: .3em;
  width: 1em; height: 1em; background: var(--vert);
  -webkit-mask: var(--coche) center / contain no-repeat; mask: var(--coche) center / contain no-repeat;
  transition: clip-path .7s var(--ease) calc(.25s + var(--i, 0) * .14s);
}
.coches li:nth-child(2) { --i: 1; }
.coches li:nth-child(3) { --i: 2; }
.coches li:nth-child(4) { --i: 3; }
.js .coches:not(.vu) li::after { clip-path: inset(0 100% 0 0); }

/* ---------- Apparitions au défilement ---------- */
.js [data-revele] {
  opacity: 0; transform: translateY(22px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: calc(var(--d, 0) * 110ms);
}
.js [data-revele].vu { opacity: 1; transform: none; }

/* ---------- En-tête ---------- */
.entete {
  position: sticky; top: 0; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  background: var(--fond);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.entete.defile { border-bottom-color: var(--filet); box-shadow: 0 10px 30px -24px rgb(39 83 23 / .5); }
.entete-ligne { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: var(--entete); transition: height .3s var(--ease); }
.entete.defile .entete-ligne { height: 64px; }
.marque { display: block; flex: none; transition: opacity .4s var(--ease), transform .4s var(--ease); }
.marque img { height: 36px; width: auto; }
.js .entete:not(.logo-visible) .marque { opacity: 0; transform: translateY(-6px); pointer-events: none; }

.nav { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.25rem); }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(1rem, 2.2vw, 2rem); }
.nav ul a { position: relative; display: block; padding: .4em 0; text-decoration: none; font-size: .98rem; }
.nav ul a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .1em; height: 3px; border-radius: 2px;
  background: var(--accent, var(--vert)); transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav ul a:hover::after, .nav ul a.actif::after { transform: scaleX(1); }
.nav .btn { padding: .6em 1.1em; font-size: .95rem; }

.burger {
  display: none; position: relative; width: 44px; height: 44px; margin-right: -8px;
  border: 0; background: transparent; color: var(--vert); cursor: pointer; border-radius: 10px;
}
.burger span { position: absolute; left: 11px; right: 11px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .35s var(--ease), top .35s var(--ease); }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- Accueil (À la Une) ---------- */
.une { padding-block: clamp(2rem, 5vw, 4.5rem) clamp(3.5rem, 7vw, 6rem); background: var(--fond-accueil); overflow: hidden; }
.une-grille { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.une h1 { font-size: clamp(2.6rem, 5.4vw, 4.9rem); line-height: 1.02; letter-spacing: -.02em; }
.souligne { position: relative; white-space: nowrap; }
.souligne svg { position: absolute; left: -2%; bottom: -.16em; width: 104%; height: .3em; overflow: visible; }
.souligne path { fill: none; stroke: var(--or); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: trait 1s var(--ease) 1.5s forwards; }
.logo-grand { width: clamp(230px, 30vw, 390px); height: auto; margin-top: clamp(1.25rem, 2.5vw, 2rem); animation: signature 1.8s cubic-bezier(.6, .1, .3, 1) .35s both; }
.slogan { margin: 1.25rem 0 0; font-size: clamp(1.1rem, 1.5vw, 1.35rem); line-height: 1.45; }
.slogan strong { font-weight: 600; }
.une-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2rem; }
.rassurance { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; margin: 1.1rem 0 0; padding: 0; list-style: none; font-size: .92rem; color: var(--vert-doux); }
.rassurance li { display: inline-flex; align-items: center; gap: .45em; }
.rassurance li::before { content: ""; width: .95em; height: .95em; background: currentColor; -webkit-mask: var(--coche) center / contain no-repeat; mask: var(--coche) center / contain no-repeat; }
.btn .ico { width: 1.05em; height: 1.05em; flex: none; }
.actions-service { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.2rem; }
.service-tete .actions-service .btn { margin-top: 0; }
.entree { animation: monte 1s var(--ease) both; animation-delay: calc(.15s + var(--d, 0) * .12s); }

.une-photo { position: relative; justify-self: end; width: min(100%, 430px); margin: 0 18px 18px 0; animation: monte 1.2s var(--ease) .2s both; }
.une-photo::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  border: 5px double var(--filet-fort);
  border-radius: 50% 50% var(--rayon) var(--rayon) / 37% 37% var(--rayon) var(--rayon);
  transform: translate(18px, 18px);
  animation: decale 1.4s var(--ease) .6s both;
}
.une-photo img {
  position: relative; z-index: 1; width: 100%; aspect-ratio: 477 / 644; object-fit: cover;
  border-radius: 50% 50% var(--rayon) var(--rayon) / 37% 37% var(--rayon) var(--rayon);
}
.pastille {
  position: absolute; z-index: 2; left: -1.75rem; bottom: 2.5rem;
  display: flex; align-items: center; gap: .55em;
  padding: .65em 1.1em .65em .8em; border-radius: 999px;
  background: var(--carte); box-shadow: var(--ombre);
  font-size: .95rem; white-space: nowrap;
  animation: monte 1s var(--ease) 1.1s both;
}
.pastille::before {
  content: ""; width: 1.1em; height: 1.1em; background: var(--vert);
  -webkit-mask: var(--coche) center / contain no-repeat; mask: var(--coche) center / contain no-repeat;
}

/* Les trois services */
.trio { list-style: none; margin: clamp(3rem, 6vw, 5rem) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2vw, 1.5rem); }
.carte-service {
  position: relative; display: flex; flex-direction: column; gap: .7rem; height: 100%;
  padding: 1.9rem 1.6rem 1.5rem;
  background: var(--case); border-radius: var(--rayon);
  text-decoration: none;
  transition: background-color .35s var(--ease), transform .4s var(--ease);
}
.carte-service:hover { background: var(--case-survol); transform: translateY(-4px); }
.carte-service .nom { display: flex; align-items: center; gap: .55em; font-family: var(--police-titre); font-weight: 500; font-size: 1.4rem; line-height: 1.15; }
.carte-service .nom::before { content: ""; flex: none; width: .5em; height: .5em; border-radius: 50%; background: var(--accent); }
.carte-service p { margin: 0; flex: 1; line-height: 1.45; }
.carte-service .rond {
  align-self: flex-end; display: grid; place-items: center; width: 2.6rem; height: 2.6rem;
  border-radius: 50%; background: var(--fond);
  transition: background-color .35s var(--ease), color .35s var(--ease);
}
.carte-service:hover .rond { background: var(--vert); color: var(--fond); }
.carte-service:hover .rond .fleche { transform: translateX(3px); }

/* ---------- Rubriques communes ---------- */
.section { padding-block: clamp(4rem, 9vw, 7.5rem); border-top: 3px double var(--filet-fort); }
.section.clair { background: var(--carte); --carte: var(--fond); }
.rubrique {
  display: inline-flex; align-items: center; gap: .6em; margin: 0 0 1.1rem;
  font-size: .82rem; letter-spacing: .14em; text-transform: uppercase;
}
.rubrique::before { content: ""; width: .7em; height: .7em; border-radius: 50%; background: var(--accent, var(--vert)); }
.insecable { white-space: nowrap; }
.section h2 { font-size: clamp(2.05rem, 3.7vw, 3.2rem); line-height: 1.06; letter-spacing: -.015em; }

/* ---------- Sections services ---------- */
.service-grille { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.service-tete { position: sticky; top: calc(64px + 2.5rem); }
.logo-sujet { width: 170px; height: auto; margin: 2rem 0 1.2rem; }
.service-tete .coches { font-size: 1.02rem; }
.service-tete .btn { margin-top: 2.2rem; }

.encadre {
  border: 5px double var(--accent);
  border-radius: var(--rayon);
  background: color-mix(in srgb, var(--accent) 7%, var(--carte));
  padding: clamp(1.5rem, 3.6vw, 2.9rem);
}
.expertise { display: grid; grid-template-columns: 2.6rem 1fr; column-gap: 1.1rem; }
.expertise + .expertise { margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--filet); }
.expertise .num { font-family: var(--police-titre); font-size: 1.05rem; line-height: 1.9; color: var(--vert-doux); font-variant-numeric: tabular-nums; }
.expertise h3 { font-size: clamp(1.3rem, 1.9vw, 1.6rem); line-height: 1.2; margin-bottom: .8rem; }
.expertise ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.expertise li { position: relative; padding-left: 1.3em; line-height: 1.45; }
.expertise li::before { content: ""; position: absolute; left: 0; top: .58em; width: .5em; height: .5em; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 1px color-mix(in srgb, var(--vert) 22%, transparent); }

/* ---------- Portfolio ---------- */
.portfolio-tete { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1.5rem 2rem; }
.filtres { display: flex; flex-wrap: wrap; gap: .5rem; }
.filtre {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .5em 1em; border-radius: 999px; border: 1.5px solid var(--filet-fort);
  background: transparent; color: var(--vert); font: inherit; font-size: .92rem; cursor: pointer;
  transition: background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.filtre[data-filtre]:not([data-filtre="tout"])::before { content: ""; width: .6em; height: .6em; border-radius: 50%; background: var(--accent); }
.filtre:hover { border-color: var(--vert); }
.filtre[aria-pressed="true"] { background: var(--vert); border-color: var(--vert); color: var(--fond); }

.projets { list-style: none; margin: clamp(2rem, 4vw, 3rem) 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: clamp(1rem, 2vw, 1.5rem); }
.projets.filtrage .projet { transition: opacity .3s var(--ease), transform .3s var(--ease); transition-delay: 0s; }
.js .projets .projet.sort { opacity: 0; transform: scale(.97); }
.projet article {
  height: 100%; display: flex; flex-direction: column;
  background: var(--case); border-radius: var(--rayon); overflow: hidden;
  transition: transform .4s var(--ease), background-color .35s var(--ease);
}
.projet article:hover { transform: translateY(-4px); background: var(--case-survol); }
.projet-visuel { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: color-mix(in srgb, var(--accent) 14%, var(--fond)); }
.projet-visuel img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.projet article:hover .projet-visuel img { transform: scale(1.04); }
.projet-corps { display: flex; flex-direction: column; gap: .45rem; padding: 1.3rem 1.4rem 1.5rem; }
.projet-tag { display: inline-flex; align-items: center; gap: .5em; margin: 0; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; }
.projet-tag::before { content: ""; width: .65em; height: .65em; border-radius: 50%; background: var(--accent); }
.projet h3 { font-size: 1.3rem; line-height: 1.2; }
.projet-meta { margin: 0; font-size: .92rem; color: var(--vert-doux); }
.projet-corps p:last-child { margin: .2rem 0 0; line-height: 1.45; }

.references { margin-top: clamp(3.5rem, 7vw, 5.5rem); }
.references h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); text-align: center; }
.logos { list-style: none; margin: 1.75rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; }
.logos li { display: grid; place-items: center; min-height: 84px; padding: .75rem; border-radius: 12px; background: var(--case); }
.logos img { max-height: 52px; width: auto; filter: grayscale(1); opacity: .8; transition: filter .3s var(--ease), opacity .3s var(--ease); }
.logos img:hover { filter: none; opacity: 1; }

/* Emplacements à remplir (bloquent la mise en ligne tant qu'il en reste) */
.a-completer { outline: 2px dashed color-mix(in srgb, var(--rose) 70%, transparent); outline-offset: -2px; }
.projet.a-completer { outline: 0; }
.projet.a-completer article { border: 2px dashed color-mix(in srgb, var(--rose) 60%, transparent); }
.a-completer-badge {
  position: absolute; top: .8rem; left: .8rem; z-index: 1;
  padding: .3em .7em; border-radius: 999px; background: var(--rose); color: #fff;
  font-size: .72rem; letter-spacing: .08em; text-transform: uppercase;
}
.projet-visuel.vide { display: grid; place-items: center; background-image: repeating-linear-gradient(135deg, transparent 0 14px, color-mix(in srgb, var(--accent) 22%, transparent) 14px 15px); }
.projet-visuel.vide > span:not(.a-completer-badge) { font-size: .9rem; color: var(--vert-doux); }
.logos .a-completer { color: var(--vert-doux); font-size: .85rem; text-align: center; }

/* ---------- Contact ---------- */
.contact-grille { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.contact .logo-sujet { margin-top: 1.75rem; }
.contact .coches { font-size: 1.15rem; }
.contact .coches a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; transition: background-size .35s var(--ease); }
.contact .coches a:hover { background-size: 100% 1.5px; }
.contact .coches .petit { font-size: 1.05rem; }

.panneau-une {
  position: relative; overflow: hidden;
  background: var(--vert); color: var(--fond);
  border-radius: calc(var(--rayon) + 6px);
  padding: clamp(2rem, 4.5vw, 3.25rem);
  text-align: center;
}
.panneau-une::after {
  content: ""; position: absolute; inset: 12px; border: 5px double color-mix(in srgb, var(--fond) 30%, transparent);
  border-radius: var(--rayon); pointer-events: none;
}
.panneau-une .une-titre { margin: 0; font-family: var(--police-titre); font-size: clamp(1.9rem, 3.2vw, 2.6rem); line-height: 1.1; }
.panneau-une .besoins { margin: .8rem auto 0; max-width: 26ch; font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.4; }
.panneau-une .consigne { margin: 1.9rem 0 .7rem; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: color-mix(in srgb, var(--fond) 78%, var(--vert)); }
.panneau-une .btn { position: relative; z-index: 1; background: var(--fond); color: var(--vert); border-color: var(--fond); justify-content: center; text-align: center; max-width: 100%; }
.panneau-une .btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -14px rgb(0 0 0 / .45); }
.panneau-une .qr { position: relative; z-index: 1; display: inline-block; width: 132px; padding: 10px; background: #fff; border-radius: 12px; transition: transform .35s var(--ease); }
.panneau-une .qr:hover { transform: scale(1.04); }
.panneau-une .qr img { width: 100%; height: auto; }

/* ---------- Pied de page ---------- */
.pied { background: var(--vert); color: var(--fond); padding-block: clamp(3.5rem, 7vw, 5rem) calc(1.75rem + env(safe-area-inset-bottom, 0px)); }
.pied a { text-decoration: none; transition: color .25s var(--ease); }
.pied a:hover { color: var(--vert-clair); }
.pied-grille { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2.5rem; }
.logo-clair {
  display: block; width: 210px; aspect-ratio: 1733 / 507; background: var(--fond);
  -webkit-mask: url("images/logo.png") center / contain no-repeat; mask: url("images/logo.png") center / contain no-repeat;
}
.pied .slogan { margin-top: 1rem; font-size: 1rem; color: color-mix(in srgb, var(--fond) 82%, var(--vert)); }
.pied h2 { font-family: var(--police-texte); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1rem; color: color-mix(in srgb, var(--fond) 70%, var(--vert)); }
.pied ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.pied-bas {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem 2rem;
  margin-top: clamp(2.5rem, 5vw, 3.5rem); padding-top: 1.5rem;
  border-top: 1px solid color-mix(in srgb, var(--fond) 22%, transparent);
  font-size: .85rem; color: color-mix(in srgb, var(--fond) 75%, var(--vert));
}
.pied-bas p { margin: 0; }
.haut { display: inline-flex; align-items: center; gap: .5em; }
.haut .fleche { transform: rotate(-90deg); }
.haut:hover .fleche { transform: rotate(-90deg) translateX(3px); }

/* ---------- Animations ---------- */
@keyframes monte { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes signature { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes trait { to { stroke-dashoffset: 0; } }
@keyframes decale { from { transform: translate(0, 0); opacity: 0; } to { transform: translate(18px, 18px); opacity: 1; } }

/* ---------- Tablette ---------- */
@media (max-width: 960px) {
  .service-grille, .contact-grille { grid-template-columns: 1fr; }
  .service-tete { position: static; }
  .logos { grid-template-columns: repeat(3, 1fr); }
  .pied-grille { grid-template-columns: 1fr 1fr; }
  .pied-grille > :first-child { grid-column: 1 / -1; }
}

/* ---------- Menu compact (tablette et téléphone) ---------- */
@media (max-width: 1000px) {
  .burger { display: block; }
  .nav {
    position: fixed; inset: calc(64px + env(safe-area-inset-top, 0px)) 0 0 0; z-index: 49;
    flex-direction: column; align-items: stretch; gap: 2rem;
    padding: 1.5rem var(--marge) calc(2rem + env(safe-area-inset-bottom, 0px));
    background: var(--fond); border-top: 1px solid var(--filet);
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s linear .3s;
    overflow-y: auto;
  }
  .nav.ouvert { opacity: 1; visibility: visible; transform: none; transition: opacity .3s var(--ease), transform .3s var(--ease); }
  .nav ul { flex-direction: column; gap: 0; }
  .nav ul a { padding: 1rem 0 1rem 1.2rem; font-family: var(--police-titre); font-size: 1.6rem; border-bottom: 1px solid var(--filet); }
  .nav ul a::after { left: 0; right: auto; top: 50%; bottom: auto; width: 6px; height: 1.4rem; transform: translateY(-50%) scaleY(.4); background: var(--accent, var(--vert)); opacity: .9; }
  .nav ul a:hover::after, .nav ul a.actif::after { transform: translateY(-50%) scaleY(1); }
  .nav .btn { justify-content: center; font-size: 1.05rem; padding: .9em 1.2em; }
  .entete-ligne, .entete.defile .entete-ligne { height: 64px; }
}

/* ---------- Téléphone ---------- */
@media (max-width: 860px) {
  .une-grille { grid-template-columns: 1fr; }
  .une-photo { justify-self: center; width: min(100% - 18px, 380px); }
  .pastille { left: -.5rem; }
  .trio { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .logos { grid-template-columns: repeat(2, 1fr); }
  .pied-grille { grid-template-columns: 1fr; }
  .une-actions .btn { flex: 1 1 auto; justify-content: center; }
  .souligne { white-space: normal; }
}

/* ---------- Mouvements réduits ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js [data-revele] { opacity: 1; transform: none; }
}

/* ---------- Page mentions légales ---------- */
.page-legale { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(4rem, 8vw, 6rem); }
.page-legale .contenu { width: min(780px, 100% - 2 * var(--marge)); }
.page-legale h1 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); line-height: 1.05; letter-spacing: -.02em; }
.page-legale .maj { margin: .9rem 0 0; color: var(--vert-doux); font-size: .95rem; }
.sommaire { list-style: none; margin: 2rem 0 0; padding: 1.25rem 1.5rem; display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; background: var(--case); border-radius: var(--rayon); font-size: .95rem; }
.sommaire a { text-decoration: none; }
.sommaire a:hover { text-decoration: underline; text-underline-offset: 3px; }
.bloc-legal { margin-top: clamp(2.5rem, 5vw, 3.5rem); padding-top: clamp(2rem, 4vw, 2.5rem); border-top: 3px double var(--filet-fort); }
.bloc-legal h2 { font-size: clamp(1.45rem, 2.4vw, 1.9rem); line-height: 1.15; margin-bottom: 1rem; }
.bloc-legal h3 { font-size: 1.1rem; margin: 1.5rem 0 .4rem; }
.bloc-legal p, .bloc-legal li { line-height: 1.65; }
.bloc-legal p { margin: 0 0 .9rem; }
.bloc-legal ul { margin: 0 0 .9rem; padding-left: 1.2em; }
.bloc-legal li + li { margin-top: .3rem; }
.bloc-legal a { text-underline-offset: 3px; }
.fiche { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: .55rem 1.5rem; padding: 1.25rem 1.5rem; background: var(--case); border-radius: var(--rayon); }
.fiche dt { color: var(--vert-doux); }
.fiche dd { margin: 0; }
.fiche .a-completer { outline-offset: 2px; border-radius: 4px; padding-inline: .3em; }
@media (max-width: 560px) {
  .fiche { grid-template-columns: 1fr; gap: .1rem; }
  .fiche dd + dt { margin-top: .7rem; }
}

/* ==========================================================
   Pages services (back-office.html, coaching.html, image.html)
   ========================================================== */
.fil-ariane { margin: 0 0 1.6rem; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; font-size: .9rem; color: var(--vert-doux); }
.fil-ariane li + li::before { content: "›"; margin-right: .4rem; }
.fil-ariane a { text-decoration: none; }
.fil-ariane a:hover { text-decoration: underline; text-underline-offset: 3px; }

.page-hero { padding-block: clamp(2rem, 5vw, 4rem) clamp(3.5rem, 7vw, 5.5rem); background: var(--fond-accueil); }
.page-hero-grille { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(2rem, 6vw, 5.5rem); align-items: center; }
.page-hero h1 { font-size: clamp(2.5rem, 5.2vw, 4.6rem); line-height: 1.03; letter-spacing: -.02em; }
.chapo { margin: 1.2rem 0 0; font-family: var(--police-titre); font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.3; font-weight: 500; }
.intro { margin: 1rem 0 0; max-width: 56ch; font-size: 1.08rem; line-height: 1.6; }

.en-bref { background: var(--case); border-radius: calc(var(--rayon) + 4px); padding: clamp(1.5rem, 3vw, 2.2rem); }
.en-bref .titre { display: flex; align-items: center; gap: .6em; margin: 0 0 1.2rem; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; }
.en-bref .titre::before { content: ""; width: .7em; height: .7em; border-radius: 50%; background: var(--accent); }
.en-bref dl { margin: 0; }
.en-bref dt { font-size: .85rem; color: var(--vert-doux); }
.en-bref dd + dt { margin-top: 1.05rem; }
.en-bref dd { margin: .15rem 0 0; font-size: 1.05rem; line-height: 1.4; }

.bloc { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.bloc + .bloc { padding-top: 0; }
.bloc-tete { max-width: 760px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.bloc-tete h2, .bloc h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); line-height: 1.08; letter-spacing: -.015em; }
.bloc-tete p { margin: .9rem 0 0; font-size: 1.08rem; line-height: 1.6; }

.grille-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2vw, 1.5rem); }
.grille-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1rem, 2vw, 1.5rem); }

.atout { background: var(--case); border-radius: var(--rayon); padding: clamp(1.4rem, 2.6vw, 2rem); }
.atout .pictos { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: color-mix(in srgb, var(--accent) 45%, var(--fond)); margin-bottom: 1.1rem; }
.atout .pictos::before { content: ""; width: 1.2rem; height: 1.2rem; background: var(--vert); -webkit-mask: var(--coche) center / contain no-repeat; mask: var(--coche) center / contain no-repeat; }
.atout h3 { font-size: 1.3rem; line-height: 1.2; margin-bottom: .55rem; }
.atout p { margin: 0; line-height: 1.55; }

.expertise-carte { background: color-mix(in srgb, var(--accent) 13%, var(--fond)); border-radius: var(--rayon); padding: clamp(1.5rem, 3vw, 2.2rem); }
.expertise-carte .num { display: block; font-family: var(--police-titre); font-size: .95rem; color: var(--vert-doux); margin-bottom: .8rem; }
.expertise-carte h3 { font-size: clamp(1.3rem, 2vw, 1.55rem); line-height: 1.2; }
.expertise-carte .accroche { margin: .6rem 0 1.1rem; line-height: 1.5; color: var(--vert-doux); }
.expertise-carte ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.expertise-carte li { position: relative; padding-left: 1.3em; line-height: 1.45; }
.expertise-carte li::before { content: ""; position: absolute; left: 0; top: .58em; width: .5em; height: .5em; border-radius: 50%; background: var(--vert); }

.contexte { display: grid; grid-template-columns: auto 1fr; gap: 1.5rem; align-items: start; background: var(--case); border-radius: calc(var(--rayon) + 4px); padding: clamp(1.6rem, 3.5vw, 2.6rem); }
.contexte .guillemet { font-family: var(--police-titre); font-size: 4.5rem; line-height: .8; color: var(--accent); }
.contexte h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.contexte p { margin: .8rem 0 0; line-height: 1.65; }
.contexte .source { font-size: .9rem; color: var(--vert-doux); }

.pour-qui { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.pour-qui .coches { font-size: 1.08rem; gap: 1.2rem; }

.etapes { --ecart: clamp(1.25rem, 2.5vw, 2rem); list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--ecart); position: relative; counter-reset: etape; }
.etapes::before {
  content: ""; position: absolute; top: 1.5rem; left: 1.5rem; right: calc((100% - 3 * var(--ecart)) / 4 - 1.5rem); height: 2px;
  background: color-mix(in srgb, var(--accent) 55%, var(--fond));
  transform-origin: left; transition: transform 1.4s var(--ease) .2s;
}
.js .etapes:not(.vu)::before { transform: scaleX(0); }
.etape { position: relative; counter-increment: etape; }
.etape::before {
  content: counter(etape, decimal-leading-zero); position: relative; z-index: 1;
  display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 38%, var(--fond)); color: var(--vert); font-family: var(--police-titre); font-weight: 600; font-size: 1rem;
  box-shadow: 0 0 0 8px var(--fond);
  margin-bottom: 1.2rem;
}
.etape h3 { font-size: 1.2rem; line-height: 1.25; margin-bottom: .45rem; }
.etape p { margin: 0; line-height: 1.55; }
.etape:nth-child(2) { --d: 1; } .etape:nth-child(3) { --d: 2; } .etape:nth-child(4) { --d: 3; }

.formats { display: flex; flex-wrap: wrap; gap: .6rem; margin: 0; padding: 0; list-style: none; }
.formats li { padding: .55em 1.1em; border-radius: 999px; background: var(--case); font-size: .98rem; }

.faq { display: grid; gap: .75rem; max-width: 860px; }
.faq details { background: var(--case); border-radius: var(--rayon); transition: background-color .3s var(--ease); }
.faq details[open] { background: var(--case-survol); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.15rem 1.4rem; cursor: pointer; list-style: none;
  font-family: var(--police-titre); font-weight: 500; font-size: 1.12rem; line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 1.9rem; height: 1.9rem; border-radius: 50%;
  background: var(--fond) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23275317' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 1rem no-repeat;
  transition: transform .35s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .reponse { padding: 0 1.4rem 1.3rem; line-height: 1.65; }
.faq .reponse p { margin: 0; }

.bande-cta {
  position: relative; overflow: hidden; text-align: center;
  background: var(--vert); color: var(--fond);
  border-radius: calc(var(--rayon) + 8px);
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 5vw, 4rem);
}
.bande-cta::after { content: ""; position: absolute; inset: 12px; border: 5px double color-mix(in srgb, var(--fond) 28%, transparent); border-radius: calc(var(--rayon) + 2px); pointer-events: none; }
.bande-cta h2 { font-size: clamp(2rem, 4vw, 3.1rem); line-height: 1.08; }
.bande-cta .besoins { margin: .9rem auto 0; max-width: 34ch; font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.45; color: color-mix(in srgb, var(--fond) 88%, var(--vert)); }
.bande-cta .actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; margin-top: 2rem; }
.bande-cta .btn-clair { background: var(--fond); color: var(--vert); border-color: var(--fond); }
.bande-cta .btn-clair:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -14px rgb(0 0 0 / .45); }
.bande-cta .btn-ligne { background: transparent; color: var(--fond); border-color: color-mix(in srgb, var(--fond) 55%, transparent); }
.bande-cta .btn-ligne:hover { background: color-mix(in srgb, var(--fond) 12%, transparent); }
.bande-cta .mail { position: relative; z-index: 1; display: inline-block; margin-top: 1.2rem; color: color-mix(in srgb, var(--fond) 85%, var(--vert)); text-underline-offset: 3px; }

.autre-service {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.6rem 1.7rem; border-radius: var(--rayon); background: var(--case); text-decoration: none;
  transition: background-color .35s var(--ease), transform .4s var(--ease);
}
.autre-service:hover { background: var(--case-survol); transform: translateY(-3px); }
.autre-service .nom { display: flex; align-items: center; gap: .55em; font-family: var(--police-titre); font-weight: 500; font-size: 1.3rem; }
.autre-service .nom::before { content: ""; width: .5em; height: .5em; border-radius: 50%; background: var(--accent); }
.autre-service small { display: block; margin-top: .3rem; font-size: .95rem; color: var(--vert-doux); }
.autre-service .rond { display: grid; place-items: center; flex: none; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--fond); transition: background-color .35s var(--ease), color .35s var(--ease); }
.autre-service:hover .rond { background: var(--vert); color: var(--fond); }
.autre-service:hover .fleche { transform: translateX(3px); }

/* Barre d'action fixe sur téléphone */
.barre-cta { display: none; }
@media (max-width: 860px) {
  .barre-cta {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    display: flex; gap: .6rem;
    padding: .7rem var(--marge) calc(.7rem + env(safe-area-inset-bottom, 0px));
    background: color-mix(in srgb, var(--fond) 94%, transparent);
    box-shadow: 0 -10px 30px -18px rgb(39 83 23 / .45);
    transform: translateY(110%); transition: transform .45s var(--ease);
  }
  .barre-cta.visible { transform: none; }
  .barre-cta .btn { flex: 1 1 0; justify-content: center; padding: .8em .6em; font-size: .98rem; }
  .barre-cta .btn-contour { flex: 0 0 auto; padding-inline: 1em; }
  html.menu-ouvert .barre-cta { transform: translateY(110%); }
  body:has(.barre-cta) .pied { padding-bottom: calc(6rem + env(safe-area-inset-bottom, 0px)); }
}

@media (max-width: 960px) {
  .page-hero-grille, .pour-qui { grid-template-columns: 1fr; }
  .grille-3 { grid-template-columns: 1fr 1fr; }
  .etapes { grid-template-columns: 1fr 1fr; row-gap: 2.5rem; }
  .etapes::before { display: none; }
}
@media (max-width: 640px) {
  .grille-3, .grille-2 { grid-template-columns: 1fr; }
  .etapes { grid-template-columns: 1fr; }
  .contexte { grid-template-columns: 1fr; gap: .5rem; }
  .contexte .guillemet { font-size: 3.5rem; }
}

/* ---------- À propos (accueil) ---------- */
.a-propos-grille { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.a-propos-grille .intro { max-width: 58ch; }
.parcours { background: var(--case); border-radius: calc(var(--rayon) + 4px); padding: clamp(1.6rem, 3.2vw, 2.4rem); }
.parcours .titre { display: flex; align-items: center; gap: .6em; margin: 0 0 1.2rem; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; }
.parcours .titre::before { content: ""; width: .7em; height: .7em; border-radius: 50%; background: var(--vert); }
.parcours ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.05rem; }
.parcours li { position: relative; padding-left: 1.6rem; }
.parcours li::before { content: ""; position: absolute; left: 0; top: .5em; width: .62rem; height: .62rem; border-radius: 50%; background: var(--vert); }
.parcours li.en-cours::before { background: transparent; box-shadow: inset 0 0 0 2px var(--vert); }
.parcours strong { display: block; font-family: var(--police-titre); font-weight: 500; font-size: 1.15rem; line-height: 1.3; }
.parcours span { display: block; margin-top: .2rem; font-size: .95rem; line-height: 1.45; color: var(--vert-doux); }

/* Réassurance sur fond vert */
.rassurance-claire { position: relative; z-index: 1; margin: 1.1rem 0 0; font-size: .92rem; color: color-mix(in srgb, var(--fond) 80%, var(--vert)); }
.panneau-une .rassurance-claire { margin: .9rem 0 0; }
.page-hero .rassurance { margin-top: 1.1rem; }

@media (max-width: 960px) {
  .a-propos-grille { grid-template-columns: 1fr; }
}

/* ---------- Galerie des réalisations (bureau d'études) ---------- */
.galerie { grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 2.6vw, 2.2rem) clamp(1rem, 2vw, 1.5rem); }
.vignette { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: var(--rayon); overflow: hidden; background: var(--case); }
.vignette img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.vignette:hover img { transform: scale(1.045); }
.vignette.plan { background: #fff; }
.vignette.plan img { object-fit: contain; padding: .5rem; }
.loupe {
  position: absolute; right: .8rem; bottom: .8rem; width: 2.6rem; height: 2.6rem; border-radius: 50%;
  background: var(--fond) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23275317' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 4h5v5M9 20H4v-5M20 4l-6 6M4 20l6-6'/%3E%3C/svg%3E") center / 1.05rem no-repeat;
  box-shadow: 0 6px 18px -8px rgb(0 0 0 / .35);
  opacity: 0; transform: translateY(6px) scale(.9); transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.vignette:hover .loupe, .vignette:focus-visible .loupe { opacity: 1; transform: none; }
@media (hover: none) { .loupe { opacity: 1; transform: none; } }
.projet-titre { margin: .85rem 0 0; font-family: var(--police-titre); font-weight: 500; font-size: 1.08rem; line-height: 1.25; }
.galerie .projet-meta { margin-top: .15rem; }
.portfolio-tete .intro { margin-top: .8rem; }
.portfolio-tete .bloc-tete { margin-bottom: 0; }
#realisations .filtres { margin-top: 1rem; }

/* Visionneuse (agrandissement au clic) */
.visionneuse {
  width: 100vw; height: 100dvh; max-width: 100vw; max-height: 100dvh; margin: 0; padding: 0; border: 0;
  background: transparent; color: var(--fond); overflow: hidden;
}
.visionneuse::backdrop { background: rgb(18 38 10 / .95); }
.visionneuse[open] { display: grid; place-items: center; animation: fondu .3s var(--ease); }
.visionneuse figure { margin: 0; display: grid; justify-items: center; gap: .9rem; max-width: min(1240px, 92vw); padding-inline: 3.5rem; }
.visionneuse img { max-width: 100%; max-height: calc(100dvh - 9rem); border-radius: 10px; object-fit: contain; box-shadow: 0 30px 80px -30px rgb(0 0 0 / .6); }
.visionneuse img.entre { animation: zoom .45s var(--ease); }
.visionneuse figcaption { font-size: 1.02rem; text-align: center; }
.vis-compteur { position: fixed; top: calc(1.2rem + env(safe-area-inset-top, 0px)); left: 1.4rem; margin: 0; font-size: .9rem; letter-spacing: .08em; color: color-mix(in srgb, var(--fond) 75%, transparent); }
.vis-btn {
  position: fixed; display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; border: 0;
  background: var(--fond); color: var(--vert); font: inherit; font-size: 1.2rem; cursor: pointer;
  transition: transform .25s var(--ease), background-color .25s var(--ease);
}
.vis-btn:hover { transform: scale(1.06); background: var(--case-survol); }
.vis-fermer { top: calc(1rem + env(safe-area-inset-top, 0px)); right: 1rem; }
.vis-prec { left: 1rem; top: 50%; translate: 0 -50%; }
.vis-suiv { right: 1rem; top: 50%; translate: 0 -50%; }
@keyframes fondu { from { opacity: 0; } to { opacity: 1; } }
@keyframes zoom { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }

@media (max-width: 960px) { .galerie { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
  .galerie { grid-template-columns: 1fr; }
  .visionneuse figure { padding-inline: .75rem; }
  .vis-prec, .vis-suiv { top: auto; bottom: calc(1.2rem + env(safe-area-inset-bottom, 0px)); translate: none; }
  .vis-prec { left: calc(50% - 3.6rem); }
  .vis-suiv { right: calc(50% - 3.6rem); }
  .visionneuse img { max-height: calc(100dvh - 12rem); }
}
.bloc-tete .rubrique { margin: 0 0 1.1rem; font-size: .82rem; line-height: 1.55; }

/* ---------- Références clients : bandeau défilant (« Ils m'ont fait confiance ») ---------- */
.references-tete { text-align: center; margin-bottom: clamp(2rem, 4vw, 3rem); }
.references-tete .rubrique { justify-content: center; }
.references-tete h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); line-height: 1.08; letter-spacing: -.015em; }

.bandeau-logos {
  --tuile: clamp(150px, 16vw, 210px); --ecart: clamp(.75rem, 1.4vw, 1.25rem); --duree: 45s;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
}
.bandeau-logos .piste { display: flex; width: max-content; animation: defile var(--duree) linear infinite; }
.bandeau-logos:hover .piste, .bandeau-logos.touche .piste, .bandeau-logos.en-pause .piste { animation-play-state: paused; }
.bandeau-logos .logos { display: flex; margin: 0; padding: 0; list-style: none; }
.bandeau-logos .logos li {
  flex: none; display: grid; place-items: center; width: var(--tuile); aspect-ratio: 3 / 2; margin-right: var(--ecart);
  padding: 1rem 1.3rem; border-radius: var(--rayon); background: var(--case);
  transition: background-color .35s var(--ease), transform .35s var(--ease);
}
.bandeau-logos .logos li:hover { background: var(--case-survol); transform: scale(1.04); }
.bandeau-logos .logos img {
  width: auto; height: auto; max-width: 84%; max-height: 68px; object-fit: contain;
  mix-blend-mode: multiply; filter: grayscale(1) contrast(1.05); opacity: .78;
  transition: filter .35s var(--ease), opacity .35s var(--ease);
}
.bandeau-logos .logos li:hover img { filter: none; opacity: 1; }
/* Logos sur fond sombre : passés en noir sur fond clair pour rester lisibles et homogènes */
.bandeau-logos .logos li.fonce img, .bandeau-logos .logos li.fonce:hover img { filter: invert(1) grayscale(1) contrast(3); }
.bandeau-logos .logos li.fonce:hover img { opacity: 1; }
@keyframes defile { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.bandeau-commandes { display: flex; justify-content: flex-end; margin-top: 1rem; }
.bandeau-pause {
  display: inline-flex; align-items: center; gap: .5em; padding: .45em .9em; border: 0; border-radius: 999px;
  background: transparent; color: var(--vert-doux); font: inherit; font-size: .85rem; cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.bandeau-pause::before { content: ""; width: .7em; height: .8em; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
.bandeau-pause[aria-pressed="true"]::before { width: 0; height: 0; border: 0; border-left: .65em solid currentColor; border-top: .42em solid transparent; border-bottom: .42em solid transparent; }
.bandeau-pause:hover { background: var(--case); color: var(--vert); }

@media (max-width: 700px) { .bandeau-logos { --tuile: 140px; --duree: 38s; } .bandeau-logos .logos img { max-height: 54px; } }

/* Mouvements réduits : grille fixe, sans copie ni bouton */
@media (prefers-reduced-motion: reduce) {
  .bandeau-logos { -webkit-mask-image: none; mask-image: none; }
  .bandeau-logos .piste { animation: none; width: auto; justify-content: center; }
  .bandeau-logos .logos { flex-wrap: wrap; justify-content: center; gap: var(--ecart); padding-inline: var(--marge); }
  .bandeau-logos .logos li { margin-right: 0; }
  .bandeau-logos .logos.copie, .bandeau-commandes { display: none; }
}
.presentation { margin: 1rem 0 0; max-width: 52ch; font-size: 1rem; line-height: 1.6; color: var(--vert-doux); }
/* Page Portfolio : la galerie suit directement l'introduction */
.page-hero + #realisations { padding-top: 0; }
#realisations > .contenu > .filtres { margin-bottom: clamp(1.5rem, 3vw, 2.2rem); }
#realisations .galerie { margin-top: 0; }
