/* Groupe BP Excavation, feuille de style
   Pour changer le jaune partout: modifier --jaune ci-dessous. */

/* Polices hébergées avec le site (licence OFL, voir fonts/LICENSE-OFL.txt) */
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/barlow-condensed-700.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 800; font-display: swap; src: url('../fonts/barlow-condensed-800.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/barlow-400.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/barlow-500.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/barlow-600.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/jetbrains-mono-500.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/jetbrains-mono-700.woff2') format('woff2'); }

:root {
  --noir: #0A0A0A;
  --noir-2: #111111;
  --noir-3: #1A1A1A;
  --ligne: #262626;
  --ligne-2: #333333;
  --gris: #A3A3A3;
  --gris-2: #BDBDBD;
  --gris-3: #D4D4D4;
  --blanc: #FFFFFF;
  --jaune: #E9B23F;
  --jaune-vif: #F5C55E;

  --f-titre: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;
  --f-texte: 'Barlow', Arial, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;

  --chanfrein: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  --chanfrein-petit: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  --largeur: 1280px;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--noir);
  color: var(--blanc);
  font-family: var(--f-texte);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--jaune); }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 3px solid var(--jaune); outline-offset: 3px; }

.container { max-width: var(--largeur); margin: 0 auto; padding: 0 32px; }
@media (max-width: 640px) { .container { padding: 0 20px; } }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--jaune); color: var(--noir); padding: 12px 16px; font-weight: 600;
}
.skip:focus { left: 16px; top: 16px; }
.cache { position: absolute; left: -9999px; }
.jaune { color: var(--jaune); }
.nowrap { white-space: nowrap; }
p a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* Textes communs */
.eyebrow {
  font-family: var(--f-mono); font-size: 13px; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--jaune);
}
.titre-section {
  margin-top: 12px;
  font-family: var(--f-titre); font-weight: 800;
  font-size: clamp(48px, 6vw, 92px); line-height: 0.92; text-transform: uppercase;
}
.entete-section {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end;
  gap: 24px; margin-bottom: 56px;
}
.entete-section__texte { max-width: 430px; color: var(--gris); }

.section { padding: 120px 0; }
.section--sombre { background: var(--noir-2); border-top: 1px solid var(--ligne); border-bottom: 1px solid var(--ligne); }
@media (max-width: 640px) {
  .section { padding: 80px 0; }
  .entete-section { margin-bottom: 40px; }
}

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 28px; border: 0; cursor: pointer;
  font-family: var(--f-titre); font-weight: 800; font-size: 20px;
  letter-spacing: 0.06em; text-transform: uppercase;
  transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--jaune { background: var(--jaune); color: var(--noir); clip-path: var(--chanfrein); }
.btn--jaune:hover { background: var(--jaune-vif); color: var(--noir); transform: translateY(-2px); }
.btn--jaune:focus-visible { outline: 3px solid var(--noir); outline-offset: -7px; }
.btn--contour { border: 2px solid var(--blanc); color: var(--blanc); }
.btn--contour:hover { background: var(--blanc); color: var(--noir); }
.btn--petit { min-height: 48px; padding: 0 24px; font-size: 18px; clip-path: var(--chanfrein-petit); }

/* Bande du haut */
.topbar {
  background: var(--jaune); color: var(--noir);
  font-family: var(--f-mono); font-size: 12px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
}
.topbar__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; padding-top: 10px; padding-bottom: 10px; }
.topbar a { display: inline-block; padding: 10px 0; margin: -10px 0; }
.topbar a:hover { color: var(--noir); text-decoration: underline; }
@media (max-width: 640px) {
  .topbar__inner { justify-content: center; }
  .topbar__inner > span:first-child { display: none; }
}

/* En-tête et menu */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 10, 10, 0.96); border-bottom: 1px solid var(--ligne);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 88px; }
.nav__logo img { height: 60px; width: auto; }
.nav__menu { display: flex; align-items: center; gap: 40px; }
.nav__links {
  display: flex; gap: 32px; list-style: none; margin: 0; padding: 0;
  font-family: var(--f-titre); font-weight: 700; font-size: 18px;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.nav__toggle { display: none; }

@media (max-width: 960px) {
  .nav { min-height: 72px; }
  .nav__logo img { height: 48px; }
  .nav__toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 6px;
    width: 48px; height: 48px; padding: 12px; cursor: pointer;
    background: none; border: 2px solid var(--ligne-2);
  }
  .nav__toggle span { display: block; height: 2px; background: var(--blanc); transition: transform 0.2s, opacity 0.2s; }
  .nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .nav__menu {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 24px;
    padding: 12px 20px 28px; background: var(--noir); border-bottom: 1px solid var(--ligne);
  }
  .nav__menu.est-ouvert { display: flex; }
  .nav__links { flex-direction: column; gap: 0; }
  .nav__links a { display: block; padding: 14px 0; border-bottom: 1px solid var(--ligne); font-size: 24px; }
}

/* Héros */
.hero {
  position: relative; overflow: hidden; text-align: center;
  min-height: min(820px, 92vh);
  display: flex; align-items: center; justify-content: center;
  background: var(--noir-3);
}
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.hero__voile {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0.72) 0%, rgba(10,10,10,0.55) 50%, rgba(10,10,10,0.95) 100%);
}
.hero__contenu {
  position: relative; max-width: 1120px; padding-top: 110px; padding-bottom: 110px;
  display: flex; flex-direction: column; align-items: center; gap: 28px;
}
.hero__titre {
  font-family: var(--f-titre); font-weight: 800;
  font-size: clamp(64px, 10.5vw, 168px); line-height: 0.88; letter-spacing: -0.01em; text-transform: uppercase;
}
.hero__texte { max-width: 640px; font-size: 21px; line-height: 1.5; color: #E5E5E5; }
.hero__boutons { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.hero__rbq { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.18em; color: var(--gris-2); text-transform: uppercase; }
@media (max-width: 700px) { .hero__img { object-position: 74% 50%; } }
@media (max-width: 640px) {
  .hero__contenu { padding-top: 80px; padding-bottom: 80px; gap: 22px; }
  .hero__texte { font-size: 18px; }
  .hero__boutons { width: 100%; }
  .hero__boutons .btn { width: 100%; }
}

/* Ruban jaune qui défile */
.bande { padding: 30px 0; overflow: hidden; }
.bande__ruban {
  display: flex; overflow: hidden; white-space: nowrap;
  margin: 0 -60px; padding: 14px 0; transform: rotate(-1.5deg);
  background: var(--jaune); color: var(--noir);
  font-family: var(--f-titre); font-weight: 800; font-size: 30px;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.bande__piste { display: flex; gap: 26px; padding-right: 26px; flex: none; animation: defile 45s linear infinite; }
@keyframes defile { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) { .bande__piste { animation: none; } }
@media (max-width: 640px) { .bande__ruban { font-size: 24px; } }

/* Services */
.services__grille {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 2px; background: var(--ligne); border: 2px solid var(--ligne);
}
.service { background: var(--noir-2); padding: 36px 32px 40px; display: flex; flex-direction: column; gap: 14px; min-height: 270px; }
.service__num { font-family: var(--f-mono); font-size: 13px; font-weight: 700; color: var(--jaune); }
.service__titre { font-family: var(--f-titre); font-weight: 800; font-size: 36px; line-height: 1; text-transform: uppercase; }
.service p { color: var(--gris); }
.service__trait { margin-top: auto; width: 48px; height: 4px; background: var(--jaune); transition: width 0.25s ease; }
.service:hover .service__trait { width: 96px; }
.service__lien {
  margin-top: auto; display: inline-flex; align-items: center; gap: 8px; color: var(--jaune);
  font-family: var(--f-titre); font-weight: 800; font-size: 20px; letter-spacing: 0.06em; text-transform: uppercase;
}
.service__lien svg { width: 18px; height: 18px; }
.service__liste {
  list-style: none; margin: 0; padding: 0; display: grid; gap: 6px;
  font-family: var(--f-titre); font-weight: 700; font-size: 20px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--blanc);
}
.service__liste li { display: flex; align-items: center; gap: 12px; }
.service__liste li::before { content: ""; flex: none; width: 8px; height: 8px; background: var(--jaune); transform: rotate(45deg); }
.service__lien:hover { color: var(--blanc); }
@media (max-width: 640px) { .service { min-height: 0; padding: 28px 24px 32px; } .service__titre { font-size: 32px; } }

/* Étape par étape */
.etapes__grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 28px; }
.etape { margin: 0; display: flex; flex-direction: column; gap: 18px; }
.etape__photo { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: var(--noir-3); }
.etape__photo img { width: 100%; height: 100%; object-fit: cover; }
.etape__num {
  position: absolute; left: 0; top: 0; padding: 10px 16px;
  background: var(--jaune); color: var(--noir);
  font-family: var(--f-titre); font-weight: 800; font-size: 44px; line-height: 1;
}
.etape figcaption { display: flex; flex-direction: column; gap: 6px; color: var(--gris); }
.etape__titre { font-family: var(--f-titre); font-weight: 800; font-size: 28px; line-height: 1; text-transform: uppercase; color: var(--blanc); }

/* Réalisations (grille en mosaïque) */
.realisations__grille {
  display: grid; gap: 20px;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 300px 300px;
}
.real { margin: 0; position: relative; overflow: hidden; background: var(--noir-3); }
.real--grande { grid-row: 1 / 3; }
.real--large { grid-column: 2 / 4; }
.real img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.real:hover img { transform: scale(1.06); }
.real::before {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  border: 3px solid var(--jaune); opacity: 0; transition: opacity 0.3s ease;
}
.real:hover::before { opacity: 1; }
.real figcaption {
  position: absolute; left: 0; bottom: 0; z-index: 1; padding: 8px 12px;
  background: var(--noir); color: var(--gris-2);
  font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
}
@media (max-width: 800px) {
  .realisations__grille { grid-template-columns: 1fr 1fr; grid-template-rows: none; gap: 14px; }
  .real { height: 240px; }
  .real--grande { grid-row: auto; grid-column: 1 / 3; height: 420px; }
  .real--large { grid-column: 1 / 3; }
}

/* À propos */
.apropos { padding: 0 0 120px; }
.apropos__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 64px; }
.apropos__photo { flex: 1 1 480px; position: relative; height: 600px; overflow: hidden; background: var(--noir-3); }
.apropos__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.apropos__photo::after { content: ""; position: absolute; right: 0; bottom: 0; width: 120px; height: 16px; background: var(--jaune); }
.apropos__texte { flex: 1 1 480px; display: flex; flex-direction: column; gap: 22px; }
.apropos__texte > p:not(.eyebrow) { font-size: 19px; color: var(--gris-3); }
.apropos__texte .titre-section { margin-top: 0; }
.liste-check {
  list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px;
  font-family: var(--f-titre); font-weight: 700; font-size: 22px; letter-spacing: 0.04em; text-transform: uppercase;
}
.liste-check li { display: flex; align-items: center; gap: 14px; }
.check { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; background: var(--jaune); color: var(--noir); }
.check svg { width: 16px; height: 16px; }
@media (max-width: 640px) {
  .apropos { padding-bottom: 80px; }
  .apropos__inner { gap: 40px; }
  .apropos__photo { height: 420px; }
}

/* FAQ */
.faq__inner { display: flex; flex-wrap: wrap; gap: 48px 80px; }
.faq__entete { flex: 1 1 340px; }
.faq__liste { flex: 2 1 560px; border-top: 2px solid var(--ligne-2); }
.faq__item { padding: 28px 0; border-bottom: 1px solid var(--ligne-2); display: flex; flex-direction: column; gap: 8px; }
.faq__item h3 { font-family: var(--f-titre); font-weight: 700; font-size: 28px; line-height: 1.1; }
.faq__item p { color: var(--gris); }

/* Contact */
.contact { background: var(--jaune); color: var(--noir); padding: 110px 0; }
.contact .eyebrow { color: var(--noir); }
.contact a:hover { color: var(--noir); text-decoration: underline; }
.contact__inner { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 56px; }
.contact__texte { flex: 1 1 420px; display: flex; flex-direction: column; gap: 22px; }
.contact__texte > p:not(.eyebrow) { max-width: 420px; font-size: 19px; }
.contact__titre { font-family: var(--f-titre); font-weight: 800; font-size: clamp(64px, 8vw, 128px); line-height: 0.86; text-transform: uppercase; }
.contact__coord { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.contact__tel { font-family: var(--f-titre); font-weight: 800; font-size: 48px; line-height: 1; }
.contact__courriel { font-family: var(--f-mono); font-size: 15px; font-weight: 700; overflow-wrap: anywhere; }

.formulaire {
  flex: 1 1 520px; display: flex; flex-direction: column; gap: 18px;
  background: var(--noir); color: var(--blanc); padding: 40px;
  clip-path: polygon(24px 0, 100% 0, 100% calc(100% - 24px), calc(100% - 24px) 100%, 0 100%, 0 24px);
}
.formulaire__ligne { display: flex; flex-wrap: wrap; gap: 18px; }
.champ { display: flex; flex-direction: column; gap: 8px; }
.formulaire__ligne .champ { flex: 1 1 200px; }
.champ label { font-family: var(--f-mono); font-size: 12px; font-weight: 700; letter-spacing: 0.14em; color: var(--gris-2); text-transform: uppercase; }
.champ input, .champ select, .champ textarea {
  width: 100%; min-height: 50px; padding: 0 14px; border-radius: 0;
  background: var(--noir-3); border: 1px solid #3A3A3A; color: var(--blanc);
  font-family: var(--f-texte); font-size: 17px;
}
.champ textarea { padding: 14px; min-height: 120px; resize: vertical; }
.champ input:focus, .champ select:focus, .champ textarea:focus { outline: none; border-color: var(--jaune); box-shadow: 0 0 0 1px var(--jaune); }
.formulaire .btn { align-self: flex-start; }
.formulaire__note { font-size: 14px; color: var(--gris); }
.formulaire__erreur { font-size: 15px; color: #FFB4A8; }
.formulaire__erreur a { color: #FFFFFF; }
.formulaire button[disabled] { opacity: 0.7; cursor: wait; }
@media (max-width: 640px) {
  .contact { padding: 80px 0; }
  .contact__tel { font-size: 40px; }
  .formulaire { padding: 28px 20px; }
  .formulaire .btn { align-self: stretch; }
}

/* Pied de page */
.footer { padding: 72px 0 32px; }
.footer__haut { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px 56px; }
.footer__marque { flex: 1 1 300px; display: flex; flex-direction: column; gap: 18px; }
.footer__marque img { width: 240px; height: auto; }
.footer__marque p { max-width: 320px; color: var(--gris); }
.footer__col { min-width: 180px; display: flex; flex-direction: column; gap: 10px; }
.footer__titre { font-family: var(--f-mono); font-size: 12px; font-weight: 700; letter-spacing: 0.16em; color: var(--jaune); text-transform: uppercase; }
.footer__gris { color: var(--gris); }
.licence { border: 2px solid var(--jaune); padding: 16px 20px; display: flex; flex-direction: column; gap: 4px; }
.licence__label { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.16em; color: var(--gris-2); text-transform: uppercase; }
.licence__num { font-family: var(--f-titre); font-weight: 800; font-size: 34px; line-height: 1; letter-spacing: 0.02em; }
.footer__bas {
  margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--ligne);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.08em; color: var(--gris);
}

/* Barre d'appel sur cellulaire */
.barre-mobile { display: none; }
@media (max-width: 640px) {
  body { padding-bottom: 56px; }
  .barre-mobile {
    display: grid; grid-template-columns: 1fr 1fr;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    border-top: 1px solid var(--ligne);
  }
  .barre-mobile a {
    display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px;
    font-family: var(--f-titre); font-weight: 800; font-size: 18px; letter-spacing: 0.06em; text-transform: uppercase;
  }
  .barre-mobile svg { width: 18px; height: 18px; }
  .barre-mobile a:first-child { background: var(--noir); color: var(--blanc); }
  .barre-mobile a:last-child { background: var(--jaune); color: var(--noir); }
}

/* Lignes de titre (pour l'animation) */
.ligne { display: block; overflow: hidden; padding: 0.16em 0 0.06em; margin: -0.16em 0 -0.06em; }
.ligne > span { display: inline-block; }

/* Barre de progression jaune */
.progression {
  position: fixed; top: 0; left: 0; z-index: 80; width: 100%; height: 4px;
  background: var(--jaune); transform-origin: 0 50%; transform: scaleX(0);
}

/* En-tête compact au défilement */
.nav, .nav__logo img { transition: min-height 0.3s ease, height 0.3s ease; }
.header { transition: box-shadow 0.3s ease; }
.header.est-compact { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); }
@media (min-width: 961px) {
  .header.est-compact .nav { min-height: 70px; }
  .header.est-compact .nav__logo img { height: 46px; }
}

/* Indicateur « Défiler » */
.hero__defiler {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gris-2);
}
.hero__trait { position: relative; width: 2px; height: 48px; background: rgba(255, 255, 255, 0.2); overflow: hidden; }
.hero__trait::after { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 40%; background: var(--jaune); animation: goutte 1.8s ease-in-out infinite; }
@keyframes goutte { 0% { transform: translateY(-100%); } 100% { transform: translateY(260%); } }
@media (max-width: 640px) { .hero__defiler { display: none; } }

/* Boutons: reflet et flèche */
.btn--jaune { position: relative; overflow: hidden; }
.btn--jaune::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  transform: skewX(-20deg); transition: left 0.6s ease;
}
.btn--jaune:hover::after { left: 130%; }
.btn svg, .service__lien svg { transition: transform 0.2s ease; }
.btn:hover svg, .service__lien:hover svg { transform: translateX(5px); }

/* Cartes de service: ligne jaune en haut au survol */
.service { position: relative; transition: background-color 0.3s ease; }
.service::before {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0;
  background: var(--jaune); transition: width 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.service:hover { background: #161616; }
.service:hover::before { width: 100%; }

/* Animations d'entrée (désactivées si l'utilisateur préfère moins de mouvement) */
@media (prefers-reduced-motion: no-preference) {

  /* Héros: photo qui recule doucement, titre qui sort du sol */
  .hero__img { animation: zoom-lent 12s cubic-bezier(0.2, 0.6, 0.2, 1) both; }
  @keyframes zoom-lent { from { transform: scale(1.14); } to { transform: scale(1); } }

  .hero__contenu > * { animation: monte 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .hero__contenu > :nth-child(1) { animation-delay: 0.15s; }
  .hero__contenu > :nth-child(2) { animation: none; }
  .hero__contenu > :nth-child(3) { animation-delay: 0.75s; }
  .hero__contenu > :nth-child(4) { animation-delay: 0.9s; }
  .hero__contenu > :nth-child(5) { animation-delay: 1.05s; }
  @keyframes monte { from { opacity: 0; transform: translateY(36px); } to { opacity: 1; transform: none; } }

  .hero__titre .ligne > span { animation: sort-du-sol 1s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
  .hero__titre .ligne:nth-child(1) > span { animation-delay: 0.3s; }
  .hero__titre .ligne:nth-child(2) > span { animation-delay: 0.45s; }
  @keyframes sort-du-sol { from { transform: translateY(110%); } to { transform: none; } }

  .hero__defiler { animation: apparait 0.8s ease 1.4s both; }
  @keyframes apparait { from { opacity: 0; } to { opacity: 1; } }

  /* Ruban: entre en glissant */
  .js .bande__ruban { transform: rotate(-1.5deg) translateX(8%); opacity: 0; transition: transform 1s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.6s ease; }
  .js .bande.est-visible .bande__ruban { transform: rotate(-1.5deg); opacity: 1; }

  /* Éléments qui montent en apparaissant */
  .js .reveal {
    opacity: 0; transform: translateY(32px);
    transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), background-color 0.3s ease;
    transition-delay: var(--delai, 0s), var(--delai, 0s), 0s;
  }
  .js .reveal.est-visible { opacity: 1; transform: none; }

  /* Titres de section: chaque ligne sort du sol */
  .js .reveal-lignes .ligne > span { transform: translateY(110%); transition: transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1); }
  .js .reveal-lignes .ligne:nth-child(2) > span { transition-delay: 0.12s; }
  .js .reveal-lignes.est-visible .ligne > span { transform: none; }

  /* Photos des étapes: volet jaune qui se retire */
  .etape__photo img { transition: transform 1.2s cubic-bezier(0.2, 0.7, 0.2, 1); }
  .js .etape__photo img { transform: scale(1.15); transition-delay: var(--delai, 0s); }
  .js .etape.est-visible .etape__photo img { transform: none; }
  .js .etape__photo::after {
    content: ""; position: absolute; inset: 0; z-index: 2; background: var(--jaune);
    transform-origin: 100% 50%; transform: scaleX(1);
    transition: transform 0.9s cubic-bezier(0.75, 0, 0.2, 1); transition-delay: var(--delai, 0s);
  }
  .js .etape.est-visible .etape__photo::after { transform: scaleX(0); }
  .etape__num { z-index: 3; }
  .js .etape__num { transform: translateY(-100%); transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1); transition-delay: calc(var(--delai, 0s) + 0.7s); }
  .js .etape.est-visible .etape__num { transform: none; }
  .js .etape figcaption { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; transition-delay: calc(var(--delai, 0s) + 0.5s); }
  .js .etape.est-visible figcaption { opacity: 1; transform: none; }

  /* Traits jaunes des services qui s'allongent */
  .js .service .service__trait { width: 0; transition: width 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); transition-delay: calc(var(--delai, 0s) + 0.4s); }
  .js .service.est-visible .service__trait { width: 48px; }
  .js .service.est-visible:hover .service__trait { width: 96px; transition-delay: 0s; }

  /* Bouton principal du formulaire: petite pulsation pour attirer l'œil */
  .contact .btn--jaune { animation: pulse 2.8s ease-in-out 2s infinite; }
  @keyframes pulse { 0%, 100% { transform: none; } 50% { transform: scale(1.03); } }
}

/* Ajustements tablette et cellulaire */
@media (max-width: 960px) and (min-width: 701px) {
  .etapes__grille { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
  .etape__titre { font-size: 22px; }
}
.etapes__indice { display: none; }
@media (max-width: 700px) {
  .etapes__grille {
    display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
    margin: 0 -32px; padding: 0 32px 6px; scroll-padding: 0 32px;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .etapes__grille::-webkit-scrollbar { display: none; }
  .etape { flex: 0 0 82%; scroll-snap-align: start; }
  .etapes__indice {
    display: inline-flex; align-items: center; gap: 8px; margin-top: 20px;
    font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gris-2);
  }
  .etapes__indice svg { width: 16px; height: 16px; color: var(--jaune); }
  .hero__voile { background: linear-gradient(180deg, rgba(10,10,10,0.62) 0%, rgba(10,10,10,0.42) 45%, rgba(10,10,10,0.92) 100%); }
  .hero__titre, .hero__texte { text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55); }
}
@media (max-width: 640px) {
  .etapes__grille { margin: 0 -20px; padding: 0 20px 6px; scroll-padding: 0 20px; }
  .service__lien { min-height: 44px; }
  .contact__tel, .contact__courriel { padding: 10px 0; }
  .footer__col { gap: 0; }
  .footer__col a { padding: 10px 0; }
  .footer__titre { margin-bottom: 6px; }
}
@media (max-width: 480px) {
  .hero .eyebrow { font-size: 12px; letter-spacing: 0.1em; }
}
@media (max-width: 420px) {
  .topbar { letter-spacing: 0.05em; }
}

/* Page merci */
.merci { min-height: 70vh; display: flex; align-items: center; padding: 120px 0; }
.merci__inner { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; max-width: 760px; }
.merci__inner > p:not(.eyebrow) { font-size: 20px; color: var(--gris-3); }

/* ============================================================
   Cellulaire seulement (640 px et moins): plus serré, texte plus gros.
   Le bureau n'est pas touché par ce bloc.
   ============================================================ */
@media (max-width: 640px) {
  /* Espacement uniforme entre les sections */
  .section { padding: 56px 0; }
  .apropos { padding-bottom: 56px; }
  .contact { padding: 56px 0; }
  .footer { padding: 48px 0 24px; }
  .entete-section { margin-bottom: 28px; gap: 12px; }
  .titre-section { margin-top: 8px; font-size: 54px; }

  /* Héros: moins de vide en haut, texte plus gros */
  .hero { min-height: 0; }
  .hero__contenu { padding-top: 41px; padding-bottom: 40px; gap: 18px; }
  .hero__titre { font-size: min(21vw, 92px); line-height: 0.86; }
  .hero__texte { font-size: 19px; line-height: 1.45; }
  .hero .eyebrow { font-size: 12px; letter-spacing: 0.08em; }
  .hero__boutons { gap: 12px; }

  /* Ruban jaune */
  .bande { padding: 26px 0 16px; }
  .bande__ruban { padding: 10px 0; }

  /* Services */
  .service { padding: 24px 22px 26px; gap: 10px; }
  .service__titre { font-size: 34px; }

  /* Étapes et réalisations */
  .etapes__indice { margin-top: 14px; }
  .etape { gap: 14px; }

  /* À propos */
  .apropos__inner { gap: 28px; }
  .apropos__photo { height: 340px; }
  .apropos__texte { gap: 16px; }
  .liste-check { margin-top: 4px; gap: 10px; }

  /* FAQ */
  .faq__inner { gap: 20px; }
  .faq__item { padding: 20px 0; gap: 6px; }
  .faq__item h3 { font-size: 26px; }

  /* Contact */
  .contact__inner { gap: 32px; }
  .contact__texte { gap: 14px; }
  .contact__titre { font-size: 72px; }
  .contact__coord { margin-top: 0; }

  /* Pied de page */
  .footer__haut { gap: 28px 32px; }
  .footer__marque { gap: 12px; }
  .footer__marque img { width: 200px; }
  .footer__bas { margin-top: 28px; }

  /* Coupures de lignes équilibrées dans les titres */
  .titre-section .ligne > span, .contact__titre .ligne > span,
  .faq__item h3, .service__titre, .hero__texte, .entete-section__texte { text-wrap: balance; }

  /* Page merci */
  .merci { padding: 64px 0; min-height: 60vh; }
}
