:root {
    --fond:       #f4f7fb;
    --blanc:      #ffffff;
    --marine:     #0b2447;
    --bleu:       #004d99;
    --bleu-pale:  #e6eff9;
    --jaune:      #ffd21a;
    --encre:      #14213a;
    --encre-doux: #55627a;
    --bordure:    #dfe6f0;
    --succes:     #17803d;

    --police-titre: 'Plus Jakarta Sans', system-ui, sans-serif;
    --police-texte: 'Inter', system-ui, sans-serif;

    --rayon:  16px;
    --ombre:  0 12px 32px rgba(11, 36, 71, .1);
    --entete: 72px;
    --fluide: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--entete) + 12px); }
body {
    margin: 0; background: var(--blanc); color: var(--encre);
    font-family: var(--police-texte); font-size: 16px; line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--police-titre); line-height: 1.15; margin: 0; letter-spacing: -.02em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
svg { width: 1.25em; height: 1.25em; flex: none; }

.container { width: min(1120px, 100% - 40px); margin-inline: auto; }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 50px; padding: 12px 24px;
    border-radius: 12px; border: 2px solid transparent;
    font-family: var(--police-titre); font-weight: 700; font-size: 15px;
    text-decoration: none; text-align: center; white-space: nowrap;
    transition: transform .2s, box-shadow .2s, background .2s, border-color .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--jaune { background: var(--jaune); color: var(--marine); box-shadow: 0 8px 20px rgba(255, 210, 26, .3); }
.btn--jaune:hover { box-shadow: 0 12px 26px rgba(255, 210, 26, .4); }
.btn--bleu { background: var(--bleu); color: #fff; }
.btn--bleu:hover { background: var(--marine); }
.btn--clair { border-color: rgba(255, 255, 255, .35); color: #fff; }
.btn--clair:hover { border-color: var(--jaune); }
.btn--contour { border-color: var(--bordure); background: var(--blanc); color: var(--encre); }
.btn--contour:hover { border-color: var(--bleu); }
.btn:focus-visible, a:focus-visible, button:focus-visible { outline: 3px solid var(--jaune); outline-offset: 3px; }

/* En-tête */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, .94); backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.site-header.compact { border-color: var(--bordure); box-shadow: 0 6px 20px rgba(11, 36, 71, .06); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: var(--entete); }
.site-header__logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--police-titre); font-weight: 800; font-size: 19px; color: var(--marine); }
.site-header__logo img { height: 50px; width: auto; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav ul { display: flex; gap: 24px; }
.nav a:not(.btn) { text-decoration: none; font-weight: 600; font-size: 15px; padding: 6px 0; border-bottom: 2px solid transparent; transition: border-color .2s, color .2s; }
.nav a:not(.btn):hover { color: var(--bleu); border-color: var(--jaune); }
.nav .btn { min-height: 44px; padding: 8px 18px; }
.burger { display: none; width: 46px; height: 46px; border: 1px solid var(--bordure); border-radius: 12px; background: var(--blanc); cursor: pointer; padding: 0; }
.burger span { display: block; width: 20px; height: 2px; margin: 4px auto; background: var(--marine); border-radius: 2px; }

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--marine); color: #fff; }
.hero::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(600px 400px at 0% 0%, rgba(0, 77, 153, .7), transparent 70%);
}
.hero__inner { position: relative; display: grid; gap: 40px; padding: 56px 0 0; align-items: center; }
.hero__statut {
    display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
    background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18);
    font-weight: 600; font-size: 13.5px;
}
.hero__statut::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #9aa7ba; }
.hero__statut.ouvert::before { background: #3ddc7a; box-shadow: 0 0 0 4px rgba(61, 220, 122, .25); }
.hero h1 { font-size: clamp(36px, 6.6vw, 60px); font-weight: 800; margin: 20px 0 16px; }
.hero h1 em { font-style: normal; color: var(--jaune); }
.hero__texte { font-size: clamp(17px, 2vw, 19px); color: #c9d5e6; max-width: 500px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero__note { display: inline-flex; align-items: center; gap: 10px; margin-top: 28px; text-decoration: none; color: #c9d5e6; font-size: 14.5px; }
.hero__note strong { color: #fff; font-family: var(--police-titre); font-size: 17px; }
.etoiles { display: inline-flex; gap: 2px; color: var(--jaune); }
.etoiles svg { width: 18px; height: 18px; }
.hero__visuel { position: relative; }
.hero__visuel img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 30% 20%; border-radius: 20px 20px 0 0; }

/* Bandeau de réassurance */
.atouts { background: var(--jaune); color: var(--marine); }
.atouts ul { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 20px; padding: 18px 0; }
.atouts li { display: flex; align-items: center; gap: 8px; font-family: var(--police-titre); font-weight: 700; font-size: 14.5px; line-height: 1.3; }
.atouts svg { width: 18px; height: 18px; }

/* Sections */
.section { padding: 80px 0; }
.section--grise { background: var(--fond); }
.section__entete { max-width: 620px; margin-bottom: 40px; }
.surtitre { display: inline-block; color: var(--bleu); font-weight: 700; font-size: 13.5px; text-transform: uppercase; letter-spacing: .1em; }
.surtitre::before { content: ''; display: inline-block; width: 24px; height: 3px; margin-right: 10px; vertical-align: middle; background: var(--jaune); border-radius: 2px; }
.section__entete h2, .presentation h2 { font-size: clamp(28px, 4.2vw, 40px); font-weight: 800; margin: 10px 0 12px; color: var(--marine); }
.section__entete p { color: var(--encre-doux); font-size: 17px; }

/* Services */
.services { display: grid; gap: 18px; }
.service {
    position: relative; padding: 28px 24px; overflow: hidden;
    background: var(--blanc); border: 1px solid var(--bordure); border-radius: var(--rayon);
    transition: transform .25s, box-shadow .25s, border-color .25s;
}
.service::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--jaune); transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.service:hover { transform: translateY(-4px); box-shadow: var(--ombre); border-color: transparent; }
.service:hover::after { transform: scaleX(1); }
.service__icone { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--bleu-pale); color: var(--bleu); font-size: 21px; margin-bottom: 18px; transition: background .25s, color .25s; }
.service:hover .service__icone { background: var(--bleu); color: #fff; }
.service h3 { font-size: 19px; font-weight: 700; color: var(--marine); margin-bottom: 8px; }
.service p { color: var(--encre-doux); font-size: 15.5px; }

/* Présentation */
.presentation { display: grid; gap: 40px; align-items: center; }
.presentation__image { position: relative; max-width: 420px; }
.presentation__image img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; border-radius: 20px; }
.presentation__image::before { content: ''; position: absolute; inset: 16px 16px -16px -16px; border-radius: 20px; background: var(--jaune); z-index: -1; }
.presentation__image { isolation: isolate; margin-left: 16px; }
.presentation p { color: var(--encre-doux); font-size: 17px; }
.presentation p + p { margin-top: 14px; }
.presentation strong { color: var(--encre); }
.presentation__liste { display: grid; gap: 10px; margin: 24px 0 28px; }
.presentation__liste li { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.presentation__liste svg { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--bleu); color: #fff; }

/* Chantiers */
.chantiers { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.chantier { position: relative; display: block; width: 100%; padding: 0; border: 0; background: var(--marine); border-radius: var(--rayon); overflow: hidden; cursor: zoom-in; aspect-ratio: 3 / 4; text-align: left; }
.chantier img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.chantier:hover img { transform: scale(1.06); }
.chantier span {
    position: absolute; inset: auto 0 0 0; padding: 44px 14px 14px;
    background: linear-gradient(180deg, transparent, rgba(11, 36, 71, .9));
    color: #fff; font-weight: 600; font-size: 14.5px; line-height: 1.3;
}
.chantier small { display: block; color: var(--jaune); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 2px; }

/* Avis */
.avis-resume { display: inline-flex; align-items: center; gap: 12px; margin-top: 14px; padding: 10px 16px; border-radius: 12px; background: var(--blanc); border: 1px solid var(--bordure); font-size: 14.5px; color: var(--encre-doux); }
.avis-resume strong { font-family: var(--police-titre); font-size: 22px; color: var(--marine); line-height: 1; }
.avis { display: grid; gap: 18px; align-items: start; }
.avis__carte { margin: 0; padding: 26px 24px; background: var(--blanc); border: 1px solid var(--bordure); border-radius: var(--rayon); display: flex; flex-direction: column; gap: 14px; }
.avis__carte blockquote { margin: 0; font-size: 15.5px; }
.avis__photos { display: flex; gap: 8px; }
.avis__photos button { width: 64px; height: 64px; padding: 0; border: 0; border-radius: 10px; overflow: hidden; cursor: zoom-in; background: var(--fond); }
.avis__photos img { width: 100%; height: 100%; object-fit: cover; }
.avis__auteur { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 15px; }
.avis__auteur span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--bleu); color: #fff; font-family: var(--police-titre); }
.avis__auteur small { display: block; font-weight: 500; color: var(--encre-doux); font-size: 13px; }

/* Contact */
.contact { display: grid; gap: 22px; }
.contact__carte { padding: 32px 26px; border-radius: 20px; }
.contact__carte--marine { position: relative; overflow: hidden; background: var(--marine); color: #fff; }
.contact__carte--marine::before { content: ''; position: absolute; width: 300px; height: 300px; right: -120px; top: -120px; border-radius: 50%; background: rgba(0, 77, 153, .8); }
.contact__carte--marine > * { position: relative; }
.contact__carte--marine .surtitre { color: var(--jaune); }
.contact__carte h2 { font-size: clamp(26px, 3.8vw, 36px); font-weight: 800; margin: 10px 0 12px; }
.contact__carte--marine p { color: #c9d5e6; font-size: 17px; }
.coordonnees { display: grid; gap: 10px; margin-top: 26px; }
.coordonnees a {
    display: flex; align-items: center; gap: 14px; padding: 14px 16px;
    background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); border-radius: 14px;
    text-decoration: none; transition: border-color .2s, background .2s;
}
.coordonnees a:hover { border-color: var(--jaune); background: rgba(255, 255, 255, .11); }
.coordonnees svg { color: var(--jaune); font-size: 18px; }
.coordonnees small { display: block; color: #9fb0c8; font-size: 12.5px; line-height: 1.3; }
.coordonnees strong { font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.coordonnees .fleche { margin-left: auto; color: #9fb0c8; font-size: 15px; }
.contact__carte--horaires { background: var(--blanc); border: 1px solid var(--bordure); }
.contact__carte--horaires h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 21px; font-weight: 800; color: var(--marine); margin-bottom: 16px; }
.badge { padding: 4px 10px; border-radius: 999px; font-family: var(--police-texte); font-size: 12px; font-weight: 700; letter-spacing: .02em; background: #eef1f5; color: var(--encre-doux); }
.badge.ouvert { background: #e3f6ea; color: var(--succes); }
.horaires li { display: flex; justify-content: space-between; gap: 16px; padding: 11px 12px; border-radius: 10px; font-size: 15.5px; }
.horaires li + li { margin-top: 2px; }
.horaires li.aujourdhui { background: var(--bleu-pale); font-weight: 700; color: var(--marine); }
.horaires li.ferme span:last-child { color: var(--encre-doux); }

/* Pied de page */
.site-footer { background: var(--marine); color: #c9d5e6; padding: 44px 0 30px; font-size: 14.5px; }
.site-footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px; }
.site-footer__logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; font-family: var(--police-titre); font-weight: 800; font-size: 18px; }
.site-footer__logo img { height: 54px; width: auto; }
.site-footer__liens { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-footer__liens a { text-decoration: none; }
.site-footer__liens a:hover { color: var(--jaune); }
.reseaux { display: flex; gap: 10px; }
.reseaux a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2); color: #fff; transition: background .2s, color .2s, border-color .2s; }
.reseaux a:hover { background: var(--jaune); border-color: var(--jaune); color: var(--marine); }
.site-footer__bas { margin-top: 26px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; font-size: 13.5px; color: #9fb0c8; }
.site-footer__bas a { color: var(--jaune); font-weight: 600; }

/* Visionneuse */
.visionneuse { padding: 0; border: 0; background: transparent; max-width: min(92vw, 900px); max-height: 92vh; overflow: visible; }
.visionneuse::backdrop { background: rgba(7, 18, 36, .88); }
.visionneuse img { max-width: 100%; max-height: 86vh; width: auto; border-radius: 14px; }
.visionneuse button { position: absolute; top: -18px; right: -6px; width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--jaune); color: var(--marine); font-size: 24px; line-height: 1; cursor: pointer; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--fluide), transform .8s var(--fluide); }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .btn, .service, .service::after, .chantier img { transition: none; }
}

@media (max-width: 899px) {
    .burger { display: block; }
    .nav {
        position: absolute; top: 100%; left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 16px;
        padding: 18px 20px 24px; background: var(--blanc);
        border-bottom: 1px solid var(--bordure); box-shadow: 0 20px 30px rgba(11, 36, 71, .1);
        display: none;
    }
    .nav.ouvert { display: flex; }
    .nav ul { flex-direction: column; gap: 4px; }
    .nav a:not(.btn) { display: block; padding: 12px 0; font-size: 17px; border-bottom: 1px solid var(--bordure); }
}
@media (min-width: 620px) {
    .services { grid-template-columns: repeat(2, 1fr); }
    .chantiers { grid-template-columns: repeat(4, 1fr); }
    .atouts ul { grid-template-columns: repeat(4, auto); justify-content: space-between; }
    .contact__carte { padding: 40px 36px; }
}
@media (min-width: 900px) {
    .hero__inner { grid-template-columns: 1fr 1fr; gap: 56px; padding-top: 72px; }
    .hero__texte-bloc { padding-bottom: 72px; }
    .hero__visuel { align-self: end; }
    .hero__visuel img { aspect-ratio: 1; }
    .services { grid-template-columns: repeat(4, 1fr); }
    .presentation { grid-template-columns: .8fr 1.2fr; gap: 72px; }
    .avis { grid-template-columns: repeat(3, 1fr); }
    .contact { grid-template-columns: 1.15fr .85fr; }
}

/* Lien de la page en cours dans le menu */
.nav a[aria-current="page"] { color: var(--bleu); border-color: var(--jaune); }

/* Accueil : les deux métiers, sous les photos de chantiers */
.metiers { display: grid; gap: 16px; margin-top: 28px; }
.metier {
    position: relative; isolation: isolate; overflow: hidden;
    display: flex; flex-direction: column; justify-content: flex-end; gap: 6px;
    min-height: 240px; padding: 26px 24px;
    border-radius: 20px; background: var(--marine); color: #fff; text-decoration: none;
    transition: transform .25s, box-shadow .25s;
}
.metier:hover { transform: translateY(-4px); box-shadow: var(--ombre); }
.metier img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.metier:hover img { transform: scale(1.05); }
.metier::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11, 36, 71, .35), rgba(11, 36, 71, .93)); }
.metier__icone { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 6px; border-radius: 14px; background: var(--jaune); color: var(--marine); font-size: 20px; }
.metier h3 { font-size: clamp(24px, 3.4vw, 30px); font-weight: 800; }
.metier p { color: #d5deeb; font-size: 15.5px; max-width: 380px; }
.metier__lien { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; color: var(--jaune); font-family: var(--police-titre); font-weight: 700; font-size: 15px; }
.metier__lien svg { transition: transform .25s; }
.metier:hover .metier__lien svg { transform: translateX(4px); }

/* Pages Électricité et Plomberie */
.bandeau { position: relative; overflow: hidden; background: var(--marine); color: #fff; padding: 52px 0 56px; }
.bandeau::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(600px 400px at 0% 0%, rgba(0, 77, 153, .7), transparent 70%); }
.bandeau > * { position: relative; }
.fil { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: #9fb0c8; }
.fil a { color: #c9d5e6; text-decoration: none; }
.fil a:hover { color: var(--jaune); }
.bandeau h1 { font-size: clamp(34px, 6vw, 54px); font-weight: 800; margin: 16px 0 14px; }
.bandeau h1 em { font-style: normal; color: var(--jaune); }
.bandeau p { max-width: 620px; font-size: clamp(17px, 2vw, 19px); color: #c9d5e6; }
.bandeau .hero__actions { margin-top: 28px; }

.prestations { display: grid; gap: 12px; }
.prestations li { display: flex; align-items: flex-start; gap: 12px; padding: 16px 18px; background: var(--blanc); border: 1px solid var(--bordure); border-radius: 14px; font-weight: 600; line-height: 1.4; }
.prestations svg { width: 22px; height: 22px; margin-top: 1px; padding: 4px; border-radius: 50%; background: var(--bleu); color: #fff; }

.chantiers--page { grid-template-columns: repeat(2, 1fr); }
.chantier--appel {
    display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 20px;
    background: var(--bleu-pale); color: var(--marine); cursor: pointer; text-decoration: none;
    border: 2px dashed #b7cbe4; transition: border-color .2s, background .2s;
}
.chantier--appel:hover { border-color: var(--bleu); background: #dbe8f7; }
.chantier--appel strong { font-family: var(--police-titre); font-size: 18px; line-height: 1.25; }
.chantier--appel span { position: static; padding: 0; background: none; color: var(--encre-doux); font-weight: 500; }
.chantier--appel em { display: inline-flex; align-items: center; gap: 6px; font-style: normal; font-weight: 700; color: var(--bleu); font-size: 14.5px; }

.autre-metier { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding: 28px 26px; border-radius: 20px; background: var(--blanc); border: 1px solid var(--bordure); }
.autre-metier h2 { font-size: clamp(21px, 3vw, 26px); font-weight: 800; color: var(--marine); }
.autre-metier p { color: var(--encre-doux); margin-top: 4px; }

@media (prefers-reduced-motion: reduce) {
    .metier, .metier img, .metier__lien svg { transition: none; }
}
@media (min-width: 620px) {
    .metiers { grid-template-columns: repeat(2, 1fr); }
    .metier { min-height: 300px; padding: 32px 30px; }
    .prestations { grid-template-columns: repeat(2, 1fr); }
    .chantiers--page { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 900px) {
    .prestations { grid-template-columns: repeat(3, 1fr); }
    .chantiers--page { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 619px) {
    .chantier--appel { padding: 14px; gap: 8px; }
    .chantier--appel strong { font-size: 16px; }
    .chantier--appel span { display: none; }
}

/* ---------- Animations ---------- */

/* Fondu enchaîné entre les pages (accueil, électricité, plomberie) */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .35s; animation-timing-function: var(--fluide); }
.site-header { view-transition-name: entete; }

/* Barre de progression de lecture */
.progression { position: fixed; top: 0; left: 0; right: 0; z-index: 60; height: 3px; background: var(--jaune); transform: scaleX(0); transform-origin: left; pointer-events: none; }

/* Arrivée du haut de page, élément par élément */
@keyframes monte { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes glisse { from { opacity: 0; transform: translateX(40px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(61, 220, 122, .5); } 100% { box-shadow: 0 0 0 10px rgba(61, 220, 122, 0); } }
.hero__texte-bloc > *, .bandeau .container > * { animation: monte .9s var(--fluide) both; }
.hero__texte-bloc > :nth-child(2), .bandeau .container > :nth-child(2) { animation-delay: .08s; }
.hero__texte-bloc > :nth-child(3), .bandeau .container > :nth-child(3) { animation-delay: .16s; }
.hero__texte-bloc > :nth-child(4), .bandeau .container > :nth-child(4) { animation-delay: .24s; }
.hero__texte-bloc > :nth-child(5) { animation-delay: .32s; }
.hero__visuel { animation: glisse 1.1s var(--fluide) .15s both; }
.hero__visuel img { will-change: transform; }
.hero__statut.ouvert::before { animation: pulse 1.8s ease-out infinite; }
.atouts li { animation: monte .7s var(--fluide) both; }
.atouts li:nth-child(1) { animation-delay: .45s; }
.atouts li:nth-child(2) { animation-delay: .53s; }
.atouts li:nth-child(3) { animation-delay: .61s; }
.atouts li:nth-child(4) { animation-delay: .69s; }

/* Photos de chantiers : la photo se dévoile en zoomant doucement */
.chantier.reveal { transform: translateY(28px) scale(.96); }
.chantier.reveal img { transform: scale(1.18); transition: transform 1.2s var(--fluide); }
.chantier.reveal.visible { transform: none; }
.chantier.reveal.visible img { transform: none; }
.chantier.reveal.visible:hover img { transform: scale(1.06); transition-duration: .5s; }
.metier.reveal.visible { transition: opacity .8s var(--fluide), transform .35s var(--fluide), box-shadow .35s; }

/* Survols plus doux */
.btn, .service, .avis__carte, .prestations li { transition-timing-function: var(--fluide); }
.btn svg { transition: transform .3s var(--fluide); }
.btn:hover svg:last-child { transform: translateX(4px); }
.avis__carte, .prestations li { transition: transform .35s var(--fluide), box-shadow .35s, opacity .8s var(--fluide); }
.avis__carte.visible:hover, .prestations li.visible:hover { transform: translateY(-4px); box-shadow: var(--ombre); }
.surtitre::before { transform-origin: left; transition: transform .8s var(--fluide) .2s; }
.reveal:not(.visible) .surtitre::before { transform: scaleX(0); }
.nav a:not(.btn) { position: relative; border-bottom-color: transparent !important; }
.nav a:not(.btn)::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--jaune); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--fluide); }
.nav a:not(.btn):hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }

/* Ouverture de la photo agrandie */
@keyframes ouvre { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
@keyframes fond { from { opacity: 0; } to { opacity: 1; } }
.visionneuse[open] { animation: ouvre .35s var(--fluide); }
.visionneuse[open]::backdrop { animation: fond .35s ease; }

@media (max-width: 899px) {
    .nav a:not(.btn)::after { display: none; }
    .nav a:not(.btn) { border-bottom-color: var(--bordure) !important; }
    .nav.ouvert { animation: monte .35s var(--fluide); }
}
@media (prefers-reduced-motion: reduce) {
    @view-transition { navigation: none; }
    .progression { display: none; }
    .hero__texte-bloc > *, .bandeau .container > *, .hero__visuel, .atouts li, .hero__statut.ouvert::before, .visionneuse[open], .visionneuse[open]::backdrop, .nav.ouvert { animation: none; }
    .chantier.reveal, .chantier.reveal img { transform: none; transition: none; }
    .surtitre::before { transform: none !important; transition: none; }
}

/* Les deux métiers de l'accueil : un vrai bouton jaune dans chaque carte */
.metier { border: 2px solid transparent; transition: transform .35s var(--fluide), box-shadow .35s, border-color .25s; }
.metier:hover, .metier:focus-visible { border-color: var(--jaune); }
.metier__lien {
    align-self: flex-start; justify-content: center; gap: 10px;
    min-height: 50px; margin-top: 16px; padding: 12px 22px;
    border-radius: 12px; background: var(--jaune); color: var(--marine);
    box-shadow: 0 8px 20px rgba(255, 210, 26, .3); font-size: 15.5px;
    transition: box-shadow .25s, background .25s;
}
.metier:hover .metier__lien { background: #ffdc4a; box-shadow: 0 12px 26px rgba(255, 210, 26, .45); }
.metier:active .metier__lien { transform: translateY(1px); }
@media (max-width: 619px) {
    .metier__lien { align-self: stretch; gap: 8px; padding: 12px 12px; font-size: 14px; white-space: nowrap; }
}

/* Trois métiers : cartes de l'accueil et renvois en bas des pages métier */
.metier:not(:has(img)) { background: linear-gradient(140deg, var(--bleu), var(--marine) 70%); }
.metier:not(:has(img))::before { display: none; }
.autres-metiers { display: grid; gap: 16px; }
@media (min-width: 900px) {
    .metiers { grid-template-columns: repeat(3, 1fr); }
    .metier__lien { padding-inline: 16px; font-size: 14.5px; white-space: nowrap; }
    .autres-metiers { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) and (max-width: 1099px) {
    .site-header__logo span { display: none; }
    .nav { gap: 16px; }
    .nav ul { gap: 16px; }
    .nav a:not(.btn) { font-size: 14.5px; }
}

/* Mentions légales */
.mentions { max-width: 760px; }
.mentions h3 { color: var(--marine); font-size: 19px; margin: 28px 0 8px; }
.mentions p { color: var(--encre-doux); margin: 0 0 10px; }
.mentions a { color: var(--bleu); }
