/* Socle commun, navigation, accueil, contact et pages légales
   Variables communes : style.css. Conserver l’ordre des surcharges et des media queries. */

/* ============================================================
   DESIGN SYSTEM YÉTICRÉA — valeurs communes
   Modifier une variable ici affecte tous ses usages.
   Les nuances spécifiques aux activités restent dans leurs feuilles.
   ============================================================ */
:root {
    /* Couleurs — valeurs exactes de la palette existante */
    --yc-couleur-fond-nuit: #06284f;
    --yc-couleur-nuit-profonde: #061c36;
    --yc-couleur-bleu-petrole: #155470;
    --yc-couleur-cyan-doux: #71cce8;
    --yc-couleur-turquoise: #229bb0;
    --yc-couleur-accent-lime: #dfff45;
    --yc-couleur-vert-doux: #c6ed76;
    --yc-couleur-or-clair: #ffe29a;
    --yc-couleur-bleu-glace: #dceffc;
    --yc-couleur-blanc: #fff;
    --yc-couleur-noir: #000;

    /* Typographie — famille et tailles fixes */
    --yc-police-principale: Arial,sans-serif;
    --yc-texte-11: 11px;
    --yc-texte-13: 13px;
    --yc-texte-14: 14px;
    --yc-texte-15: 15px;
    --yc-texte-16: 16px;
    --yc-texte-23: 23px;
    --yc-texte-28: 28px;

    /* Espacements — valeurs de gap */
    --yc-espace-4: 4px;
    --yc-espace-8: 8px;
    --yc-espace-10: 10px;
    --yc-espace-12: 12px;
    --yc-espace-14: 14px;
    --yc-espace-18: 18px;
    --yc-espace-20: 20px;
    --yc-espace-24: 24px;

    /* Arrondis — rayons des composants */
    --yc-arrondi-4: 4px;
    --yc-arrondi-8: 8px;
    --yc-arrondi-10: 10px;
    --yc-arrondi-12: 12px;
    --yc-arrondi-16: 16px;
    --yc-arrondi-20: 20px;
    --yc-arrondi-24: 24px;
    --yc-arrondi-30: 30px;

    /* Transitions — durée des interactions courtes */
    --yc-transition-rapide: .2s;

    /* Ombres — halos de l’accent lime */
    --yc-halo-lime-18: 0 0 18px #dfff4540;
    --yc-halo-lime-14: 0 0 14px #dfff4544;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--yc-couleur-fond-nuit);
    color: var(--yc-couleur-blanc);
    font-family: var(--yc-police-principale);
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
    cursor: pointer;
}

header {
    position: relative;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: var(--yc-espace-24);
    padding: 18px 4%;
    background: #062c58aa;
}

.brand {
    display: flex;
    align-items: center;
    gap: var(--yc-espace-12);
    font-size: clamp(23px,3vw,40px);
    font-weight: 900;
    white-space: nowrap;
}

.brand img {
    width: 55px;
    border-radius: var(--yc-arrondi-12);
}

.tag {
    max-width: 230px;
    border-left: 1px solid var(--yc-couleur-blanc);
    padding-left: 22px;
    font-size: var(--yc-texte-14);
    line-height: 1.4;
    margin: 0;
}

body > header > nav {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: clamp(14px,2.4vw,36px);
    font-weight: bold;
}

.contact,.primary {
    background: #dfff40;
    color: #09233d;
    border: 0;
    border-radius: 40px;
    padding: 14px 22px;
    font-weight: 800;
}

#menu {
    display: none;
}

.scene {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: radial-gradient(ellipse at 83% 45%,#087cd2 0,transparent 58%),linear-gradient(145deg,#05264f,#064c87 65%,#072c58);
}

.hero {
    max-width: 1500px;
    margin: auto;
    position: relative;
    display: grid;
    grid-template-columns: 52% 48%;
    grid-template-areas: "copy mascot" "actions mascot";
    align-items: center;
    padding: clamp(30px,5vw,85px) 5% 35px;
    min-height: 480px;
}

.copy {
    grid-area: copy;
    z-index: 2;
    align-self: end;
}

.copy h1 {
    font-size: clamp(36px,4.7vw,76px);
    line-height: 1.03;
    font-style: italic;
    letter-spacing: -.045em;
    margin: 0 0 28px;
}

.copy em {
    display: block;
    font-size: 1.25em;
    color: #59f4ff;
    background: linear-gradient(white,#00d9fa);
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    width: max-content;
    max-width: 100%;
}

.copy em:after {
    content: "";
    position: absolute;
    bottom: -13px;
    left: 25%;
    width: 65%;
    height: 12px;
    border-top: 8px solid #e8ff19;
    border-radius: 50%;
    transform: rotate(-3deg);
}

.copy p {
    font-size: clamp(19px,2.4vw,36px);
    line-height: 1.25;
    margin: 32px 0 20px;
}

.mascot {
    grid-area: mascot;
    width: 115%;
    max-width: none;
    margin-left: -10%;
    align-self: center;
    z-index: 1;
}

.actions {
    grid-area: actions;
    display: grid;
    gap: var(--yc-espace-12);
    max-width: 420px;
    z-index: 2;
    align-self: start;
}

.actions a,.actions button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: clamp(16px,1.7vw,25px);
    padding: 14px 22px;
    text-align: left;
}

.secondary {
    border: 2px solid white;
    border-radius: 40px;
    background: #062e58a0;
    font-weight: bold;
}

.wave {
    position: absolute;
    width: 100%;
    height: 140px;
    pointer-events: none;
    z-index: 0;
    overflow: visible;
}

.wave path {
    fill: none;
    stroke: #54faff;
    stroke-width: 3;
    filter: drop-shadow(0 0 7px cyan) drop-shadow(0 0 20px #00d9ff);
    animation: pulse 5s ease-in-out infinite alternate;
}

.top {
    top: -35px;
    left: 0;
}

.bottom {
    top: 48%;
    left: 0;
}

.expertises {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(5,minmax(0,1fr));
    gap: 15px;
    max-width: 1500px;
    margin: auto;
    padding: 12px 4% 55px;
}

.expertise {
    color: white;
    border: 2px solid #66efff;
    border-radius: var(--yc-arrondi-24);
    background: radial-gradient(ellipse at top,#075c91,var(--yc-couleur-fond-nuit) 70%);
    box-shadow: 0 0 12px #00d9ff88,inset 0 0 18px #00d9ff44;
    padding: 12px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: var(--yc-espace-8);
    font-weight: 800;
    font-size: clamp(14px,1.6vw,24px);
    transition: transform var(--yc-transition-rapide),box-shadow var(--yc-transition-rapide);
}

.expertise img {
    width: 100%;
    height: 105px;
    object-fit: contain;
    mix-blend-mode: screen;
}

.expertise:after {
    content: "";
    width: 48%;
    height: 7px;
    border-top: 5px solid #eaff23;
    border-radius: 50%;
}

.expertise:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 24px #00eaff;
}

.info {
    padding: 30px 6%;
    max-width: 1200px;
    margin: auto;
}

dialog {
    background: #0b315b;
    color: white;
    border: 1px solid cyan;
    border-radius: var(--yc-arrondi-20);
    padding: 30px;
    max-width: min(90vw,540px);
}

dialog::backdrop {
    background: #00152bd9;
}

#close {
    float: right;
    background: none;
    color: white;
    border: 0;
    font-size: var(--yc-texte-28);
}

#content button {
    margin: 5px;
    padding: 10px;
    border-radius: var(--yc-arrondi-10);
    border: 1px solid cyan;
    background: #123d68;
    color: white;
}

a:focus-visible,button:focus-visible {
    outline: 3px solid #eaff23;
    outline-offset: 4px;
}

@keyframes pulse {
    to {
        opacity: .55;
    }

}

@media(max-width:1023px) {
    .tag {
        display: none;
    }

    .hero {
        min-height: 0;
    }

    .expertise img {
        height: 80px;
    }

    .expertises {
        gap: 9px;
    }

    .expertise {
        border-radius: var(--yc-arrondi-16);
    }

}

@media(max-width:767px) {
    header {
        padding: 12px 5%;
    }

    .brand img {
        width: 40px;
    }

    #menu {
        display: block;
        margin-left: auto;
        background: none;
        border: 0;
        color: #6ffaff;
        font-size: var(--yc-texte-28);
    }

    body > header > nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--yc-couleur-fond-nuit);
        padding: 20px;
        flex-direction: column;
    }

    body > header > nav.open {
        display: flex;
    }

    .hero {
        grid-template-columns: 1fr;
        grid-template-areas: "copy" "mascot" "actions";
        padding: 25px 5% 18px;
        text-align: center;
    }

    .mascot {
        width: 100%;
        height: auto;
        mask-image: linear-gradient(to right,
            transparent, black 15%,
            black 85%, transparent),
        linear-gradient(to bottom,
            transparent, black 12%,
            black 85%, transparent);
        mask-composite: intersect;
    }

    .copy h1 {
        font-size: clamp(30px,7vw,52px);
        margin-bottom: 20px;
    }

    .copy em {
        margin: auto;
    }

    .copy p {
        margin: 24px 0 0;
        font-size: 20px;
    }

    .mascot {
        width: min(100%,480px);
        margin: -8px auto -12px;
    }

    .actions {
        width: 100%;
        margin: auto;
        gap: 9px;
    }

    .actions a,.actions button {
        font-size: var(--yc-texte-16);
        padding: 12px 16px;
    }

    .expertises {
        grid-template-columns: repeat(2,minmax(0,1fr));
        padding: 10px 5% 30px;
        gap: var(--yc-espace-10);
    }

    .expertise:last-child {
        grid-column: 1/-1;
    }

    .expertise img {
        height: 72px;
    }

    .expertise {
        font-size: var(--yc-texte-15);
        padding: 9px;
    }

    .bottom {
        top: 60%;
    }

}

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

}

/* V3 — continuité graphique, sans modification des interactions */
body {
    background: radial-gradient(ellipse at 85% 20%,#09649b 0,transparent 48%),linear-gradient(160deg,#061e40,#073967 55%,var(--yc-couleur-fond-nuit));
}

header {
    background: #061e40b8;
    border-bottom: 1px solid #67eaff24;
    padding-block: 12px;
}

.scene {
    background: radial-gradient(ellipse at 77% 36%,#087bd078,transparent 56%),linear-gradient(180deg,#06284f00 75%,var(--yc-couleur-fond-nuit));
}

.hero {
    padding: clamp(22px,3vw,48px) 4% 12px;
    min-height: 0;
    grid-template-columns: 49% 51%;
}

.copy h1 {
    font-size: clamp(34px,4.2vw,70px);
    margin-bottom: 20px;
}

.copy p {
    margin: 28px 0 16px;
    font-size: clamp(19px,2.1vw,32px);
}

.mascot {
    width: 110%;
    margin-left: -5%;
    height: auto;
    mask-image: linear-gradient(to right,transparent,#000 17%,#000 82%,transparent),linear-gradient(to bottom,transparent,#000 9%,#000 80%,transparent);
    mask-composite: intersect;
}

.actions {
    max-width: 390px;
    gap: var(--yc-espace-10);
}

.actions a,.actions button {
    font-size: clamp(16px,1.5vw,22px);
    padding: 12px 20px;
}

.wave {
    height: 170px;
}

.wave path {
    animation: none;
    stroke-width: 2;
    filter: drop-shadow(0 0 6px #00eaff) drop-shadow(0 0 16px #00bfff);
}

.wave .ribbon {
    stroke: #009de8;
    stroke-width: 38;
    opacity: .24;
    filter: blur(13px);
}

.wave .ribbon-inner {
    stroke: #13dafa;
    stroke-width: 15;
    opacity: .27;
    filter: blur(5px);
}

.top {
    top: -65px;
}

.bottom {
    top: auto;
    bottom: 115px;
}

.expertises {
    padding: 8px 4% 30px;
    gap: var(--yc-espace-14);
}

.expertise {
    border: 1px solid #69eaff;
    background: radial-gradient(ellipse at 50% 15%,#087bb077,#092b50 75%);
    box-shadow: 0 0 13px #00d9ff44,inset 0 0 15px #00d9ff33;
    font-size: clamp(14px,1.35vw,21px);
    padding: 10px 8px;
}

.expertise img {
    height: 94px;
    width: 90%;
    mix-blend-mode: normal;
    mask-image: linear-gradient(to right,transparent,#000 14%,#000 86%,transparent),linear-gradient(to bottom,transparent,#000 13%,#000 85%,transparent);
    mask-composite: intersect;
}

.expertise:after {
    border-top-width: 4px;
}

@media(max-width:1023px) {
    .hero {
        padding-top: 24px;
    }

    .expertise img {
        height: 72px;
    }

    .expertises {
        gap: 9px;
    }

    .bottom {
        bottom: 85px;
    }

}

@media(max-width:767px) {
    .hero {
        grid-template-columns: 1fr;
        padding: 24px 5% 18px;
    }

    .copy h1 {
        font-size: clamp(30px,7vw,52px);
    }

    .copy p {
        font-size: 20px;
        margin: 24px 0 0;
    }

    .mascot {
        width: min(100%,480px);
        margin: -8px auto -12px;
    }

    .actions {
        max-width: 390px;
    }

    .actions a,.actions button {
        font-size: var(--yc-texte-16);
        padding: 12px 16px;
    }

    .expertises {
        padding: 10px 5% 22px;
        gap: var(--yc-espace-10);
    }

    .expertise {
        font-size: var(--yc-texte-15);
    }

    .expertise img {
        height: 72px;
    }

    .bottom {
        bottom: 190px;
    }

    .top {
        top: -90px;
    }

}

/* V4 — composition compacte et rubans de lumière */
body {
    background: radial-gradient(ellipse at 85% 12%,#09669d 0,transparent 42%),linear-gradient(155deg,#061e40,#073d70 42%,var(--yc-couleur-fond-nuit) 80%);
}

header {
    background: linear-gradient(100deg,#071f40d9,#07345b80);
    border-bottom: 0;
    padding-block: 10px;
}

.scene {
    background: radial-gradient(ellipse at 72% 33%,#087bd066,transparent 55%),linear-gradient(180deg,transparent 75%,#06284f55);
}

.hero {
    max-width: 1450px;
    padding: 20px 4% 4px;
    grid-template-columns: 50% 50%;
    grid-template-rows: auto auto;
    column-gap: 0;
}

.copy h1 {
    font-size: clamp(34px,4.1vw,65px);
    margin-bottom: 14px;
}

.copy p {
    margin: 23px 0 15px;
    font-size: clamp(19px,2vw,30px);
}

.mascot {
    width: 100%;
    max-width: 650px;
    max-height: clamp(340px,31vw,510px);
    object-fit: contain;
    justify-self: start;
    margin: 0 0 0 -3%;
    mask-image: linear-gradient(to right,transparent,#000 13%,#000 82%,transparent),linear-gradient(to bottom,transparent,#000 8%,#000 82%,transparent);
    mask-composite: intersect;
}

.actions {
    gap: 9px;
    max-width: 390px;
}

.actions a,.actions button {
    padding: 11px 18px;
}

.wave {
    height: clamp(100px,13vw,200px);
    overflow: visible;
}

.wave .silk {
    stroke: none;
    filter: none;
    opacity: .85;
}

.wave .silk-glow {
    fill: none;
    stroke: #00d9ff;
    stroke-width: 22;
    filter: blur(14px);
    opacity: .58;
}

.wave .silk-edge {
    fill: none;
    stroke-width: 1.6;
    filter: drop-shadow(0 0 5px #55faff);
}

.top {
    top: -48px;
}

.bottom {
    bottom: 0;
    top: auto;
}

.expertises {
    padding: 8px 4% 28px;
    max-width: 1450px;
    gap: var(--yc-espace-14);
}

.expertise {
    min-width: 0;
    padding: 8px 7px;
    gap: 5px;
    border-radius: var(--yc-arrondi-20);
    font-size: clamp(13px,1.25vw,19px);
    font-weight: 700;
    background: radial-gradient(ellipse at 50% 24%,#096a9870,#072a4e 78%);
}

.expertise img {
    width: 100%;
    height: 78px;
    mix-blend-mode: screen;
    mask-image: radial-gradient(ellipse 66% 65% at center,#000 48%,transparent 100%);
    mask-composite: add;
}

.expertise:after {
    height: 5px;
    border-top-width: 3px;
}

@media(min-width:1024px) and (max-height:800px) {
    .hero {
        padding-top: 12px;
    }

    .mascot {
        max-height: 440px;
    }

    .copy h1 {
        font-size: clamp(34px,4vw,60px);
    }

    .expertise img {
        height: 70px;
    }

}

@media(min-width:768px) and (max-width:1023px) {
    .hero {
        padding: 18px 4% 10px;
    }

    .mascot {
        max-height: 350px;
    }

    .copy h1 {
        font-size: clamp(32px,4.2vw,43px);
    }

    .copy p {
        font-size: 21px;
    }

    .expertises {
        gap: var(--yc-espace-8);
    }

    .expertise {
        font-size: var(--yc-texte-13);
    }

    .expertise img {
        height: 62px;
    }

}

@media(max-width:767px) {
    header {
        padding: 10px 5%;
    }

    .hero {
        grid-template-columns: minmax(0,1fr);
        padding: 19px 5% 10px;
    }

    .copy h1 {
        font-size: clamp(28px,7vw,48px);
        margin-bottom: 14px;
    }

    .copy p {
        font-size: clamp(17px,4.7vw,21px);
        margin: 22px 0 0;
    }

    .mascot {
        width: min(100%,410px);
        max-height: clamp(180px,58vw,290px);
        margin: -4px auto -5px;
        justify-self: center;
    }

    .actions {
        gap: var(--yc-espace-8);
    }

    .actions a,.actions button {
        font-size: var(--yc-texte-15);
        padding: 11px 15px;
    }

    .expertises {
        padding: 10px 5% 20px;
        gap: 9px;
    }

    .expertise {
        font-size: var(--yc-texte-14);
        padding: 7px 5px;
        border-radius: 15px;
    }

    .expertise img {
        height: 58px;
    }

    .top {
        top: -65px;
    }

    .bottom {
        bottom: 0;
    }

}

/* V5 — appels à l’action en verre lumineux */
.scene .actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--yc-espace-10);
    max-width: 100%;
    width: 100%;
}

.scene .actions > :is(a,button) {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 9px;
    min-height: 50px;
    width: auto;
    max-width: 100%;
    padding: 6px 10px 6px 6px;
    border: 1px solid var(--cta-border);
    border-radius: 13px;
    font-size: var(--yc-texte-14);
    font-weight: 650;
    line-height: 1.25;
    color: var(--cta-text);
    background: var(--cta-bg);
    box-shadow: inset 0 1px 0 #ffffff35,0 5px 16px #00162d55;
    backdrop-filter: blur(8px);
    transition: box-shadow var(--yc-transition-rapide),transform var(--yc-transition-rapide);
}

.scene .actions .primary {
    --cta-border: #c9ef63;
    --cta-text: #edffac;
    --cta-bg: linear-gradient(125deg,#526b3eeb,#12374aee);
    --cta-icon-bg: linear-gradient(145deg,#efff9a,#c9ef36);
    --cta-icon-color: #153b39;
    --cta-glow: #dfff4566;
}

.scene .actions .secondary {
    --cta-border: #62dff5;
    --cta-text: #f0fbff;
    --cta-bg: linear-gradient(125deg,#195a7cdd,#092b4eee);
    --cta-icon-bg: linear-gradient(145deg,#287da0,#16466b);
    --cta-icon-color: #a2f5ff;
    --cta-glow: #62dff566;
}

.scene .actions .cta-icon {
    display: grid;
    place-items: center;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border-radius: var(--yc-arrondi-8);
    background: var(--cta-icon-bg);
    color: var(--cta-icon-color);
    box-shadow: inset 0 1px 1px #ffffff55;
}

.scene .actions svg {
    width: 20px;
    height: 20px;
    display: block;
}

.scene .actions .cta-arrow {
    margin-left: auto;
    display: grid;
    place-items: center;
    color: var(--cta-border);
    transition: transform var(--yc-transition-rapide);
}

.scene .actions .cta-arrow svg {
    width: 16px;
    height: 16px;
}

@media(hover:hover) {
    .scene .actions > :is(a,button):hover {
        transform: translateY(-2px);
        box-shadow: inset 0 1px 0 #ffffff55,0 0 18px var(--cta-glow);
    }

    .scene .actions .primary:hover .cta-arrow {
        transform: translateX(2px);
    }

    .scene .actions .secondary:hover .cta-arrow {
        transform: translateY(2px);
    }

}

@media(max-width:1100px) {
    .scene .actions {
        flex-direction: column;
        align-items: flex-start;
    }

}

@media(max-width:767px) {
    .scene .actions {
        align-items: stretch;
        width: min(100%,260px);
        margin: 0 auto;
        gap: var(--yc-espace-8);
    }

    .scene .actions > :is(a,button) {
        width: 100%;
        text-align: left;
    }

}

/* V6 — expertises */
.expertise {
    background: linear-gradient(145deg,#2c79934d,#092946d9);
    border: 1px solid #65d8ed99;
    box-shadow: inset 0 1px 0 #c5f8ff35,0 5px 18px #001c3d44;
    border-radius: var(--yc-arrondi-16);
    font-weight: 600;
    font-size: clamp(13px,1.15vw,18px);
    padding: 10px 8px;
    gap: 6px;
    min-height: 132px;
    cursor: pointer;
}

.expertise img {
    width: 100%;
    height: 88px;
    object-fit: contain;
    mask-image: none;
    mix-blend-mode: normal;
}

.expertise:after {
    content: "›";
    font-size: var(--yc-texte-23);
    line-height: 1;
    width: auto;
    height: auto;
    border: 0;
    color: #7ce6f6;
    border-radius: 0;
}

.expertise:hover,.expertise:focus-visible {
    border-color: var(--yc-couleur-accent-lime);
    box-shadow: var(--yc-halo-lime-18);
    outline-offset: 3px;
}

.expertise:hover:after {
    color: var(--yc-couleur-accent-lime);
}

.expertise span {
    line-height: 1.25;
    text-align: center;
}

#detail.offer {
    width: min(780px,92vw);
    max-width: 92vw;
    max-height: 88dvh;
    overflow: auto;
    background: linear-gradient(145deg,#164b70,#092540 70%);
    padding: clamp(18px,3vw,34px);
    border: 1px solid #65d8ed;
    box-shadow: 0 20px 70px #00152b99;
}

#detail.offer #title {
    margin: 0 45px 10px 0;
    font-size: clamp(23px,3vw,32px);
}

.offer-art {
    display: block;
    width: min(220px,70%);
    height: 125px;
    object-fit: contain;
    margin: auto;
}

.offer-intro {
    color: #dfff83;
    font-size: 1.1rem;
}

.offer details {
    border: 1px solid #68d8f044;
    border-radius: var(--yc-arrondi-10);
    background: #082a49aa;
    margin: 9px 0;
    padding: 13px;
}

.offer summary {
    cursor: pointer;
    font-weight: 600;
    color: #d9faff;
}

.offer details p {
    line-height: 1.6;
    color: #e0eff8;
    margin: 12px 0 0;
}

.offer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 20px;
}

.offer-links button,.offer-contact {
    padding: 11px 15px;
    border-radius: 9px;
    border: 1px solid #66d8ee;
    background: #123d60;
    color: white;
    font: inherit;
    cursor: pointer;
}

.offer-links .offer-contact {
    background: var(--yc-couleur-accent-lime);
    color: #092746;
    border-color: var(--yc-couleur-accent-lime);
    font-weight: 700;
}

.offer summary:focus-visible,.offer-links :focus-visible {
    outline: 2px solid var(--yc-couleur-accent-lime);
    outline-offset: 4px;
}

@media(max-width:767px) {
    .expertise {
        min-height: 110px;
        font-size: var(--yc-texte-14);
        padding: 8px 5px;
    }

    .expertise img {
        height: 62px;
    }

    #detail.offer {
        width: 94vw;
        max-width: 94vw;
        max-height: 92dvh;
    }

    .offer-art {
        height: 100px;
    }

}

@media(prefers-reduced-motion:reduce) {
    .expertise {
        transition: none;
    }

    .expertise:hover {
        transform: none;
    }

}

/* V7 — finitions graphiques, sans modification des interactions */
.scene {
    background: radial-gradient(ellipse at 72% 33%,#087bd066,transparent 58%);
}

.scene .wave.bottom {
    opacity: .42;
    bottom: 0;
    mask-image: linear-gradient(to bottom,#000 0%,#000 55%,transparent 100%);
}

.expertise {
    background: linear-gradient(155deg,#286781c9 0%,#103d5ee8 38%,#092946f5 100%);
    border-color: #72d9edaa;
    box-shadow: inset 0 1px 0 #d5faff55,inset 0 -12px 24px #001c3940,0 6px 18px #001c3d44;
    gap: var(--yc-espace-4);
    padding: 7px 8px;
}

.expertise img {
    height: 112px;
    max-width: 100%;
    object-fit: contain;
}

.expertise:first-child img {
    mask-image: radial-gradient(ellipse 49% 49% at center,#000 57%,transparent 100%);
}

.expertise:hover,.expertise:focus-visible {
    box-shadow: inset 0 1px 0 #d5faff55,0 0 18px #dfff4540;
}

@media(min-width:768px) and (max-width:1023px) {
    .expertise img {
        height: 88px;
    }

}

@media(max-width:767px) {
    .expertise img {
        height: 79px;
    }

    .expertise {
        padding: 7px 5px;
        gap: 3px;
    }

    .scene .wave.bottom {
        opacity: .25;
    }

}

/* V8 — décor panoramique, contenu HTML indépendant */
body {
    background: linear-gradient(180deg,#082d62,var(--yc-couleur-fond-nuit) 1050px,var(--yc-couleur-fond-nuit));
}

.scene {
    background: var(--yc-couleur-fond-nuit);
    isolation: isolate;
}

.scene::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: linear-gradient(to bottom,transparent 70%,#06284f 100%),url("../assets/decor-desktop.webp");
    background-size: 100% 100%,100% auto;
    background-position: center top;
    background-repeat: no-repeat;
    pointer-events: none;
}

.hero {
    max-width: 1450px;
    grid-template-columns: minmax(0,49%) 1fr;
    grid-template-areas: "copy ." "actions .";
    grid-template-rows: 1fr 1fr;
    min-height: clamp(390px,35vw,650px);
    padding: clamp(35px,5vw,85px) 4% 12px;
}

.hero .mascot {
    display: none;
}

.copy h1 {
    font-size: clamp(32px,3.8vw,66px);
    text-shadow: 0 2px 15px #001c4a66;
}

.copy p {
    text-shadow: 0 2px 8px #001c4a;
}

.scene .expertises {
    padding-top: 12px;
    padding-bottom: 38px;
}

.scene .expertise {
    background: linear-gradient(155deg,#246b91e8,#082e58f5);
    border-color: #72e8ffbb;
    box-shadow: inset 0 1px 0 #d5faff66,inset 0 0 22px #23c8ff22,0 5px 20px #001c3d66;
}

@media(min-width:768px) and (max-width:1100px) {
    .hero {
        min-height: 390px;
        padding-top: 30px;
    }

    .copy h1 {
        font-size: clamp(30px,3.8vw,42px);
    }

    .scene::before {
        background-size: 100% 100%,auto 100%;
        background-position: center,center top;
    }

    .scene .actions {
        gap: 7px;
    }

}

@media(max-width:767px) {
    .scene::before {
        background: linear-gradient(180deg,#082e65,#0754a0 35%,var(--yc-couleur-fond-nuit) 85%);
    }

    .hero {
        display: grid;
        grid-template-columns: minmax(0,1fr);
        grid-template-areas: "copy" "mascot" "actions";
        grid-template-rows: auto auto auto;
        min-height: 0;
        padding: 24px 0 12px;
        gap: 0;
    }

    .copy {
        padding: 0 5%;
        text-align: center;
    }

    .copy h1 {
        font-size: clamp(28px,7vw,48px);
    }

    .copy em {
        margin: auto;
    }

    .copy p {
        margin: 22px 0 8px;
    }

    .hero .mascot {
        display: block;
        width: 100%;
        max-width: 520px;
        max-height: none;
        height: auto;
        aspect-ratio: 928/1050;
        object-fit: contain;
        margin: -10px auto -24px;
        mask-image: linear-gradient(to bottom,transparent,#000 12%,#000 85%,transparent);
        mask-composite: add;
    }

    .scene .actions {
        position: relative;
        z-index: 2;
    }

    .scene .expertises {
        padding-top: 10px;
        padding-bottom: 24px;
    }

}

/* V9 — finition de la composition et du verre lumineux */
header {
    background: linear-gradient(100deg,#082d62,#093b6b);
    border-bottom: 1px solid #83eaff19;
}

.scene .copy em {
    background: linear-gradient(180deg,#c8ffff 0%,#64f3ff 48%,#24d9fa 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.scene .expertise {
    position: relative;
    overflow: hidden;
    border-color: #8aeaffcc;
    background: linear-gradient(155deg,#286f96e8,#103d64ed 45%,#082e58f5);
    box-shadow: inset 0 1px 0 #e1fbff88,inset 0 0 20px #23c8ff22,0 5px 20px #001c3d66;
}

.scene .expertise::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 36%;
    background: linear-gradient(180deg,#d6faff15,transparent);
    pointer-events: none;
}

.scene .expertise::after {
    color: var(--yc-couleur-accent-lime);
}

.scene .expertise:hover,.scene .expertise:focus-visible {
    border-color: var(--yc-couleur-accent-lime);
    box-shadow: inset 0 1px 0 #e1fbff88,0 0 18px #dfff4540;
}

.scene .actions > :is(a,button) {
    min-height: 54px;
    font-size: var(--yc-texte-15);
    padding-right: 12px;
}

@media(min-width:768px) {
    .hero {
        grid-template-rows: 1fr auto auto 1fr;
        grid-template-areas: ". ." "copy ." "actions ." ". .";
        padding-top: 12px;
        padding-bottom: 0;
        min-height: clamp(420px,37vw,650px);
    }

    .hero .copy {
        align-self: center;
    }

    .hero .actions {
        align-self: start;
    }

    .scene .expertises {
        padding-top: 4px;
        padding-bottom: 34px;
    }

}

@media(min-width:768px) and (max-width:1100px) {
    .hero {
        min-height: 420px;
    }

    .scene .actions > :is(a,button) {
        font-size: var(--yc-texte-14);
    }

}

@media(max-width:767px) {
    .scene::before {
        background: linear-gradient(180deg,#082d62 0%,#082e65 20%,#0754a0 48%,var(--yc-couleur-fond-nuit) 85%);
    }

    .hero .mascot {
        margin: -5px auto -24px;
        mask-image: linear-gradient(to bottom,transparent 0%,#000 22%,#000 80%,transparent 100%);
        -webkit-mask-image: linear-gradient(to bottom,transparent 0%,#000 22%,#000 80%,transparent 100%);
    }

    .scene .actions > :is(a,button) {
        min-height: 52px;
    }

}

/* V9.1 — navigation persistante */
html {
    scroll-padding-top: var(--header-height,100px);
}

body>header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(100deg,#082d62f2,#093b6bf2);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 3px 18px #00152b40;
}

#back-to-top {
    position: fixed;
    right: max(20px,env(safe-area-inset-right));
    bottom: max(20px,env(safe-area-inset-bottom));
    z-index: 40;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border: 1px solid #83eaffaa;
    border-radius: 15px;
    background: #103d64ed;
    color: #83eaff;
    box-shadow: inset 0 1px 0 #e1fbff55,0 5px 20px #001c3d66;
    backdrop-filter: blur(10px);
    cursor: pointer;
    transition: color var(--yc-transition-rapide),border-color var(--yc-transition-rapide),transform var(--yc-transition-rapide);
}

#back-to-top[hidden] {
    display: none;
}

#back-to-top svg {
    width: 24px;
    height: 24px;
}

#back-to-top:hover,#back-to-top:focus-visible {
    color: var(--yc-couleur-accent-lime);
    border-color: var(--yc-couleur-accent-lime);
}

#back-to-top:focus-visible {
    outline: 2px solid var(--yc-couleur-accent-lime);
    outline-offset: 3px;
}

@media(max-width:767px) {
    #back-to-top {
        right: max(12px,env(safe-area-inset-right));
        bottom: max(12px,env(safe-area-inset-bottom));
    }

    body>header nav.open {
        max-height: calc(100dvh - var(--header-height,80px));
        overflow-y: auto;
    }

}

/* V13.1 : marge de peinture pour les glyphes italiques */
.scene .copy em {
    line-height: 1.16;
    padding-inline-end: .14em;
    padding-bottom: .06em;
    box-sizing: content-box;
    max-width: calc(100% - .14em);
    overflow: visible;
}

.scene .copy em:after {
    bottom: -7px;
}

/* V14.1.5 — identité officielle et symbole neuronal */
.brand {
    gap: var(--yc-espace-10);
    flex-shrink: 0;
}

.brand .brand-symbol {
    width: 55px;
    height: 55px;
    object-fit: contain;
}

.brand .brand-wordmark {
    width: clamp(145px,13vw,205px);
    height: auto;
    border-radius: 0;
    object-fit: contain;
}

@media(max-width:1250px) {
    .brand .brand-wordmark {
        width: 155px;
    }

    .brand .brand-symbol {
        width: 46px;
        height: 46px;
    }

}

@media(min-width:768px) and (max-width:1100px) {
    header .tag {
        display: none;
    }

}

@media(max-width:767px) {
    body>header {
        gap: var(--yc-espace-8);
        padding-inline: 4%;
    }

    .brand {
        gap: 7px;
        min-width: 0;
        flex-shrink: 1;
    }

    .brand .brand-symbol {
        width: 40px;
        height: 40px;
        flex-shrink: 0;
    }

    .brand .brand-wordmark {
        width: clamp(85px,34vw,150px);
        min-width: 0;
        max-width: 100%;
        flex-shrink: 1;
    }

    #menu {
        padding-inline: 4px;
        flex-shrink: 0;
    }

}

/* V14.1.6 - identite et contact */
body>header {
    padding-inline: 24px;
}

body>header .brand {
    gap: var(--yc-espace-12);
}

body>header .brand .brand-symbol {
    width: 40px;
    height: 40px;
}

body>header .brand .brand-wordmark {
    width: 160px;
    height: auto;
}

body>header nav .contact {
    display: inline-flex;
    align-items: center;
    gap: var(--yc-espace-8);
    padding: 6px 10px 6px 6px;
    min-height: 40px;
    border: 1px solid #b9df73;
    border-radius: var(--yc-arrondi-10);
    background: linear-gradient(135deg,#36574e,#14394b);
    color: #efffc6;
    font-size: var(--yc-texte-14);
    white-space: nowrap;
    transition: box-shadow var(--yc-transition-rapide),border-color var(--yc-transition-rapide);
}

body>header nav .contact span {
    display: inline-flex;
    font-size: inherit;
}

body>header nav .contact .contact-icon {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    background: var(--yc-couleur-accent-lime);
    color: #183c37;
    border-radius: 6px;
}

.contact-icon svg {
    width: 18px;
    height: 18px;
}

.contact-arrow {
    width: 15px;
    height: 15px;
    color: var(--yc-couleur-accent-lime);
}

body>header nav .contact:hover,body>header nav .contact:focus-visible {
    border-color: var(--yc-couleur-accent-lime);
    box-shadow: var(--yc-halo-lime-14);
}

@media(max-width:1250px) {
    body>header .brand .brand-wordmark {
        width: 145px;
    }

}

@media(max-width:767px) {
    body>header {
        padding-inline: 4%;
        gap: var(--yc-espace-8);
    }

    body>header .brand {
        gap: 7px;
    }

    body>header .brand .brand-symbol {
        width: 34px;
        height: 34px;
    }

    body>header .brand .brand-wordmark {
        width: clamp(75px,30vw,120px);
    }

    body>header nav .contact {
        min-height: 44px;
    }

}

@media(prefers-reduced-motion:reduce) {
    body>header nav .contact {
        transition: none;
    }

}

/* V14.1.7 — dimension validée */
body>header .brand .brand-wordmark {
    width: 100px;
    height: auto;
}

@media (min-width: 1251px) {
    body>header .brand .brand-wordmark {
        width: 115px;
    }
}

/* V14.2 — témoignages */
#retours {
    max-width: 1200px;
    margin: 0 auto;
    padding: 68px 24px;
    scroll-margin-top: 85px;
    position: relative;
}

#retours .retours-head {
    text-align: center;
    margin: 0 auto 34px;
}

#retours .retours-head small {
    color: #a1e5f4;
    letter-spacing: .16em;
    font-size: 12px;
}

#retours h2 {
    font-size: clamp(32px,5vw,60px);
    font-style: italic;
    line-height: 1.15;
    margin: 12px 0;
    color: var(--yc-couleur-blanc);
}

#retours h2 em {
    color: #55ddef;
}

#retours .retours-head p {
    font-size: clamp(15px,2vw,20px);
    line-height: 1.5;
    margin: 0;
}

/* Témoignages — bulles en relief et composition autour du Yéti. */
#retours .retours-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 18px;
    align-items: center;
    isolation: isolate;
}
#retours .retours-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    margin: 0;
    padding: 22px 26px;
    border: 1px solid #78e7fa;
    border-radius: 38px 44px 36px 42px;
    background: radial-gradient(ellipse at 30% 0%, #397fa3 0%, transparent 62%), linear-gradient(155deg, #205d83, #092b50 85%);
    box-shadow: inset 0 3px 7px #c5f8ff66, inset 0 -12px 20px #00162d66, 0 8px 18px #00162d88, 0 0 12px #42dfff33;
    transition: transform .2s ease, box-shadow .2s ease;
}
#retours .retours-quote {
    display: block;
    height: 45px;
    font: 700 88px/.9 Georgia, serif;
    color: var(--yc-couleur-accent-lime);
    text-shadow: 0 3px 5px #001c36aa;
}
#retours .retours-card blockquote {
    margin: 0 0 12px;
    font-size: var(--yc-texte-15);
    line-height: 1.55;
    overflow-wrap: anywhere;
    white-space: pre-line;
}
#retours .retours-card figcaption {
    color: #b7ecf8;
    font-size: var(--yc-texte-14);
    font-weight: 600;
    text-align: right;
    margin-top: auto;
}
#retours .retours-yeti {
    grid-column: 5 / 9;
    grid-row: 2 / 4;
    text-align: center;
    align-self: center;
    min-width: 0;
}
#retours .retours-yeti img {
    display: block;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 8px 16px #00162d88);
}
#retours .retours-yeti p {
    position: relative;
    margin: -5px 0 0;
    padding: 15px 18px;
    border: 1px solid #dfff45;
    border-radius: 24px;
    background: #103c60;
    color: #efffc6;
    font-weight: 700;
    line-height: 1.45;
}
@media (min-width: 901px) {
    #retours .retours-card-1 { grid-area: 1 / 1 / 2 / 6; }
    #retours .retours-card-2 { grid-area: 1 / 6 / 2 / 10; }
    #retours .retours-card-3 { grid-area: 1 / 10 / 2 / 13; align-self: end; }
    #retours .retours-card-4 { grid-area: 2 / 1 / 3 / 5; }
    #retours .retours-card-5 { grid-area: 3 / 2 / 4 / 5;  }
    #retours .retours-card-6 { grid-area: 2 / 9 / 4 / 13; }
    #retours .retours-card-7 { grid-area: 4 / 1 / 5 / 6; }
    #retours .retours-card-8 { grid-area: 4 / 6 / 5 / 10; }
    #retours .retours-card-9 { grid-area: 4 / 10 / 5 / 13; }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    #retours .retours-card:hover {
        transform: translateY(-4px);
        box-shadow: inset 0 3px 7px #c5f8ff88, inset 0 -12px 20px #00162d66, 0 12px 22px #00162d88, 0 0 18px #42dfff66;
        z-index: 2;
    }
}
@media (max-width: 900px) {
    #retours .retours-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    #retours .retours-yeti { grid-column: auto; grid-row: auto; }
    #retours .retours-yeti img { max-width: 240px; margin: auto; }
}
@media (max-width: 600px) {
    #retours { padding: 42px 16px; }
    #retours .retours-grid { grid-template-columns: 1fr; gap: 16px; }
    #retours .retours-card { padding: 20px 24px; }
    #retours .retours-yeti { max-width: 300px; margin: auto; }
}

/* Contact et pages légales V14.3 */
.closing {
    position: relative;
    max-width: 1200px;
    margin: 55px auto 36px;
    padding: 32px 5%;
    display: grid;
    grid-template-columns: 1.55fr 1fr;
    gap: 26px;
    align-items: center;
    background: radial-gradient(ellipse at 82% 50%,#155a80 0,transparent 58%),linear-gradient(135deg,#102f51,#091f3d);
    border: 1px solid #498da9;
    border-radius: 26px;
    scroll-margin-top: 100px;
}

.closing small,.legal-container .eyebrow {
    color: #8eddec;
    letter-spacing: .14em;
    font-size: 12px;
}

.closing h2,.legal-container h1 {
    font-size: clamp(28px,4vw,48px);
    line-height: 1.12;
    margin: 14px 0;
    font-weight: 800;
    letter-spacing: -.03em;
}

.closing h2 em,.legal-container .pink {
    color: #60ddea;
}

.closing p {
    line-height: 1.6;
    max-width: 560px;
}

.closing-yeti {
    width: 100%;
    height: auto;
    max-width: 380px;
    justify-self: center;
    mask-image: radial-gradient(ellipse 52% 54% at center,#000 62%,transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 52% 54% at center,#000 62%,transparent 100%);
}

.closing-button {
    display: inline-flex;
    align-items: center;
    gap: var(--yc-espace-10);
    background: linear-gradient(135deg,#36574e,#14394b);
    border: 1px solid #b9df73;
    color: #efffc6;
    border-radius: var(--yc-arrondi-12);
    padding: 8px 13px 8px 8px;
    font-weight: bold;
}

.closing-button span {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    background: var(--yc-couleur-accent-lime);
    color: #163b3a;
    border-radius: 7px;
}

.closing-button:hover {
    box-shadow: 0 0 16px #dfff4544;
}

.site-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--yc-espace-18);
    flex-wrap: wrap;
    padding: 22px 4%;
    background: #081f3b;
    border-top: 1px solid #315b77;
    color: #d4e5ef;
    font-size: var(--yc-texte-13);
}

.site-footer nav {
    display: flex;
    position: static;
    background: none;
    margin: 0;
    padding: 0;
    gap: var(--yc-espace-20);
    flex-wrap: wrap;
    font-weight: normal;
    width: auto;
    box-shadow: none;
}

.site-footer a:hover,.site-footer a:focus-visible {
    color: var(--yc-couleur-accent-lime);
}

.legal-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 42px 24px 60px;
    min-height: 75vh;
}

.legal-container {
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.legal-lead {
    color: #b9dbe9;
}

.legal-section {
    padding: 18px 24px;
    margin: 18px 0;
    border: 1px solid #386b86;
    background: #103454;
    border-radius: 15px;
}

.legal-section h2 {
    color: var(--yc-couleur-accent-lime);
    font-size: 19px;
    margin: 0 0 12px;
}

.legal-section a {
    color: #8ee7f4;
    text-decoration: underline;
}

.legal-return {
    display: inline-block;
    margin-bottom: 20px;
    color: #8ee7f4;
}

.legal-page-header #menu {
    margin-left: auto;
}

@media(max-width:767px) {
    .closing {
        margin: 30px 12px;
        padding: 24px;
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--yc-espace-12);
    }

    .closing-yeti {
        max-width: 240px;
    }

    .site-footer {
        justify-content: center;
        text-align: center;
        flex-direction: column;
    }

    .site-footer nav {
        justify-content: center;
    }

    .legal-page {
        padding: 24px 14px 40px;
    }

    .legal-section {
        padding: 15px;
    }

    .legal-page-header .brand {
        margin-right: auto;
    }

}


/* Accessibilité : accès direct au contenu et repère de focus clavier. */
.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 10000;
    max-width: calc(100% - 24px);
    padding: 12px 18px;
    color: #102f46;
    background: #eaff23;
    border-radius: 8px;
    font-weight: 700;
    transform: translateY(calc(-100% - 24px));
}

.skip-link:focus {
    transform: none;
    outline: 3px solid #fff;
    outline-offset: 3px;
    box-shadow: 0 0 0 7px #102f46;
}

main[tabindex="-1"]:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex="0"]:focus-visible {
    outline: 3px solid #eaff23;
    outline-offset: 3px;
    box-shadow: 0 0 0 2px #102f46;
}

/* V18.3.5.2 — Les trois offres et les exemples de projets. */
.services { position: relative; z-index: 2; max-width: 1450px; margin: auto; padding: 24px 4% 40px; scroll-margin-top: var(--header-height, 90px); }
.services-intro, .services-projets { text-align: center; max-width: 1000px; margin: auto; }
.services-intro small, .services-intro em { color: #71cce8; }
.services-intro h2 { font-size: clamp(26px, 4vw, 42px); margin: 10px 0; }
.services-intro p { line-height: 1.5; margin: 8px auto; max-width: 760px; }
.scene .services .expertises { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 24px 0; gap: 16px; }
.services .expertise { min-height: 0; padding: 16px 10px; gap: 10px; font-size: clamp(18px, 2vw, 24px); }
.services .expertise:last-child { grid-column: auto; }
.services .expertise img { width: 100%; height: clamp(150px, 23vw, 270px); object-fit: contain; }
.services .expertise small { font-size: 15px; font-weight: 400; line-height: 1.4; }
.services .expertise[data-service="creer"] span { color: #71cce8; }
.services .expertise[data-service="optimiser"] span { color: #dfff45; }
.services .expertise[data-service="former"] span { color: #ffe29a; }
.services-projets h3 { font-size: clamp(22px, 3vw, 30px); margin: 14px 0; }
.services-exemples { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; text-align: left; }
.services-exemples article { background: #103654; border: 1px solid #31536b; border-radius: 12px; padding: 16px; }
.services-exemples h4 { color: #71cce8; margin: 0 0 8px; font-size: 17px; }
.services-exemples p { margin: 0; line-height: 1.45; }
.services-projets > p { margin: 22px 0 12px; }
.services-contact { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 22px; background: #dfff45; color: #06284f; border-radius: 24px; font-weight: 700; text-decoration: none; }
#detail.experience-dialog { width: min(680px, 92vw); max-height: 88dvh; overflow: auto; }
.experience-choice { border: 1px solid #71cce8; border-radius: 14px; padding: 16px; margin: 14px 0; background: #103654; }
.experience-choice:first-of-type { border-color: #ffe29a; }
.experience-choice img { float: right; width: 76px; height: 76px; object-fit: contain; margin: 0 0 8px 12px; }
.experience-choice h4 { color: #71cce8; font-size: 20px; margin: 0 0 8px; }
.experience-choice:first-of-type h4 { color: #ffe29a; }
.experience-choice button { clear: both; display: block; min-height: 44px; }
@media (max-width: 767px) {
    .scene .copy em:after { bottom: -16px; height: 8px; border-top-width: 5px; }
    .scene .services .expertises { grid-template-columns: 1fr; }
    .services .expertise img { height: 190px; }
    .services-exemples { grid-template-columns: 1fr; }
}

/* V18.3.5.2.1 — Séparation de l’accueil et des services. */
.services {
    max-width: none;
    background: var(--yc-couleur-fond-nuit);
    padding: clamp(36px, 5vw, 72px) 4% 48px;
}
.services::before {
    content: "";
    position: absolute;
    inset: -24px 0 auto;
    height: 24px;
    background: linear-gradient(transparent, var(--yc-couleur-fond-nuit));
    pointer-events: none;
}
.scene .services .expertises {
    max-width: 1450px;
    margin-inline: auto;
}
.services-intro small {
    font-weight: 700;
    letter-spacing: .08em;
}
.services-intro p {
    color: #dceffc;
}
.services-projets {
    margin-top: 32px;
}

/* Fenêtres des offres : en-tête et contact hors de la zone défilante. */
#detail .offer-dialog-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
#detail .offer-dialog-head #close {
    flex: none;
    width: 44px;
    height: 44px;
    cursor: pointer;
}
#detail .offer-dialog-footer[hidden] {
    display: none;
}
#detail.offer[open] {
    --offer-accent: #71cce8;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
}
#detail.offer[data-offer="optimiser"] { --offer-accent: #dfff45; }
#detail.offer[data-offer="former"] { --offer-accent: #ffe29a; --offer-secondary: #71cce8; }
#detail.offer .offer-dialog-head {
    flex: none;
    padding: 14px clamp(14px, 3vw, 30px);
    background: #092540;
    border-bottom: 1px solid #38617c;
}
#detail.offer #title {
    margin: 0;
    color: var(--offer-accent);
    overflow-wrap: anywhere;
}
#detail.offer #content {
    min-height: 0;
    overflow-y: auto;
    padding: 16px clamp(14px, 3vw, 30px) 20px;
    line-height: 1.55;
    scrollbar-width: thin;
    scrollbar-color: #69cbe599 #0b2946;
}
#detail.offer .offer-intro {
    color: var(--offer-accent);
    font-weight: 600;
}
#detail.offer details[open] {
    border-color: var(--offer-accent);
}
#detail.offer details[open] summary {
    color: var(--offer-accent);
}
#detail.offer details > p:first-of-type {
    color: var(--offer-secondary, #ffe29a);
    font-weight: 500;
}
#detail.offer .offer-dialog-footer {
    position: relative;
    flex: none;
    background: #092540;
    border-top: 1px solid #38617c;
    padding: 12px 14px;
}
#detail.offer .offer-links {
    margin: 0;
    justify-content: center;
}
#detail.offer .offer-contact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 44px;
    max-width: 100%;
    line-height: 1.3;
    text-decoration: none;
}
.offer-facts {
    display: grid;
    gap: 10px;
    margin: 16px 0;
}
.offer-facts > div {
    display: grid;
    grid-template-columns: minmax(85px, 1fr) 3fr;
    gap: 10px;
}
.offer-facts dt { color: #71cce8; font-weight: 700; }
.offer-facts dd { margin: 0; }
.offer-partner {
    border-top: 1px solid #38617c;
    padding-top: 12px;
}
.offer-partner h4 { color: #ffe29a; margin: 0; }
@media (max-width: 767px) {
    #detail.offer .offer-dialog-head { padding-block: 8px; }
    #detail.offer #title { font-size: clamp(19px, 5vw, 24px); }
    #detail.offer .offer-dialog-footer { padding-block: 9px; }
    .offer-facts > div { grid-template-columns: 1fr; gap: 2px; }
}

/* Fermeture des offres : contour discret et focus clavier bien visible. */
#detail.offer .offer-dialog-head #close {
    display: grid;
    place-items: center;
    padding: 0;
    line-height: 1;
    border: 1px solid #41647c;
    border-radius: 50%;
    background: #08263e;
    color: #fff;
}
#detail.offer .offer-dialog-head #close:focus-visible {
    outline: 2px solid #dceffc;
    outline-offset: 3px;
}

.lien-externe {
    color: #71cce8;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

.lien-externe:hover,
.lien-externe:focus-visible {
    color: #ffe29a;
}

/* Correction du décor panoramique sur écran intermédiaire */
@media (min-width: 768px) and (max-width: 1100px) {

    .scene::before {
        background-size: 100% 100%, 100% auto;
        background-position: center, center top;
    }

    .hero {
        min-height: 46vw;
    }

    .scene .actions {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
    }
}
/* Optimisation du visuel sur tablette et grand smartphone */

@media (min-width: 480px) and (max-width: 767px) {
    .hero .mascot {
        width: 100%;
        max-width: none;
        margin: 0 auto;

        mask-image: linear-gradient(
            to bottom,
            transparent 0%,
            #000 15%,
            #000 85%,
            transparent 100%
        );

        mask-composite: add;
    }
}
/* Harmonisation des boutons d'action vert lime */

.services-contact,
.offer-contact,
.treasure-direct > summary {
    transition:
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

/* Halo et léger soulèvement au survol */

@media (hover: hover) {

    .services-contact:hover,
    .offer-contact:hover,
    .treasure-direct > summary:hover {
        transform: translateY(-2px);
        box-shadow: 0 0 18px #dfff4566;
    }
}

/* Navigation au clavier */

.services-contact:focus-visible,
.offer-contact:focus-visible,
.treasure-direct > summary:focus-visible {
    box-shadow: 0 0 18px #dfff4566;
}

/* Accessibilité : réduction des animations */

@media (prefers-reduced-motion: reduce) {

    .services-contact,
    .offer-contact,
    .treasure-direct > summary {
        transition: none;
    }

    .services-contact:hover,
    .offer-contact:hover,
    .treasure-direct > summary:hover {
        transform: none;
    }
}
/* Navigation horizontale : soulignement lumineux au survol.
   Le menu compact (jusqu’à 900 px) et le bouton Contact restent inchangés. */
@media (min-width: 901px) {
    body > header > nav > a:not(.contact) {
        position: relative;
        transition: color .2s ease, transform .2s ease;
    }
    body > header > nav > a:not(.contact)::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: -7px;
        height: 2px;
        border-radius: 2px;
        background: var(--yc-couleur-cyan-doux);
        box-shadow: 0 0 8px #71cce888;
        transform: scaleX(0);
        transition: transform .2s ease;
        pointer-events: none;
    }
    body > header > nav > a:not(.contact)[aria-current] {
        color: var(--yc-couleur-accent-lime);
    }
    body > header > nav > a:not(.contact)[aria-current]::after {
        background: var(--yc-couleur-accent-lime);
        box-shadow: 0 0 8px #dfff4588;
    }
    body > header > nav > a:not(.contact):focus-visible::after {
        transform: scaleX(1);
    }
}
@media (min-width: 901px) and (hover: hover) and (pointer: fine) {
    body > header > nav > a:not(.contact):not([aria-current]):hover {
        color: var(--yc-couleur-cyan-doux);
    }
    body > header > nav > a:not(.contact):hover {
        transform: translateY(-2px);
    }
    body > header > nav > a:not(.contact):hover::after {
        transform: scaleX(1);
    }
}
@media (min-width: 901px) and (prefers-reduced-motion: reduce) {
    body > header > nav > a:not(.contact):hover {
        transform: none;
    }
    body > header > nav > a:not(.contact),
    body > header > nav > a:not(.contact)::after {
        transition: none;
    }
}

/* Navigation — identité allégée sur écran intermédiaire */
@media (max-width: 1100px) {
    body > header .brand .brand-symbol {
        display: none;
    }
}

/* Navigation — passage anticipé au menu hamburger */
@media (min-width: 768px) and (max-width: 900px) {

    body > header {
        gap: var(--yc-espace-8);
        padding-inline: 4%;
    }

    #menu {
        display: block;
        margin-left: auto;
        background: none;
        border: 0;
        color: #6ffaff;
        font-size: var(--yc-texte-28);
        flex-shrink: 0;
    }

    body > header > nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--yc-couleur-fond-nuit);
        padding: 20px;
        flex-direction: column;
    }

    body > header > nav.open {
        display: flex;
        max-height: calc(100dvh - var(--header-height, 80px));
        overflow-y: auto;
    }
}
/* Navigation — adaptation aux écrans intermédiaires */
@media (max-width: 1450px) {
    body > header .tag {
        display: none;
    }
}

/* Empêcher les liens de navigation de passer sur deux lignes */
@media (min-width: 901px) {
    body > header > nav > a {
        white-space: nowrap;
    }
}