/* Polices */
@font-face {
    font-family: "Inter Tight";
    src: url("../fonts/InterTight-Light.woff2") format("woff2");
    font-weight: 300;
    font-display: swap;
}

@font-face {
    font-family: "Inter Tight";
    src: url("../fonts/InterTight-Bold.woff2") format("woff2");
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: "Louise";
    src: url("../fonts/Louise-Regular.woff2") format("woff2");
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "DM Mono";
    src: url("../fonts/DMMono-Light.woff2") format("woff2");
    font-weight: 300;
    font-display: swap;
}

/*Variables : un seul endroit pour changer les couleurs et polices */
:root {
    --brun: #241f21;
    --citron: #fdffcd;
    --brun-clair: #5a4b50;
    --font-sans: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
    --font-script: "Louise", cursive;
    --font-mono: "DM Mono", "Courier New", monospace;
}

/* Réglages de base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--brun);
    color: var(--citron);
    font-weight: 300;
    font-family: var(--font-mono);
}

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

ul {
    list-style: none;
}

/* Chaque écran occupe toute la hauteur de la fenêtre */
.screen {
    min-height: 100vh;
    min-height: 100svh;
    /* version plus fiable sur mobile */
}

/* Le hero : texte aligné en bas */
.screen--hero {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.screen--hero h1 {
    font-size: 13vw;
    font-weight: 700;
    line-height: 0.9;
    text-align: center;
}

/* Les lettres du logo peuvent maintenant bouger : elles deviennent des blocs en ligne */
.screen--hero h1 .b-script {
    display: inline-block;
}

.screen--hero h1 .b-script--bare {
    margin-right: 0.04em;
    vertical-align: -0.075em;
}

.screen--hero h1 .b-script--bold {
    margin-right: 0.06em;
    vertical-align: -0.075em;
}

/* Les morceaux créés par le JavaScript (lettres du logo, mots du sous-titre) */
.lettre {
    display: inline-block;
}

.screen--hero p {
    font-size: 3rem;
    text-align: center;
    margin-top: 5rem;
    font-family: var(--font-script);

}

.site-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.25rem 2rem;
    /* 20 px en haut et en bas, 32 px sur les côtés */
    z-index: 10;
    display: flex;
    justify-content: space-between;
    /* menu à gauche, bouton FR/EN à droite */
    align-items: center;
    /* alignés verticalement */
    border-bottom: 1px solid var(--citron);
    /* la ligne jaune citron sous le menu */
}

.site-header nav ul {
    display: flex;
    gap: 2.5rem;
    /* 40 px entre les liens, sur une seule ligne */
}

.site-header a,
.lang-toggle {
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.4;
}

.site-header a {
    transition: color 0.3s ease;
}

.site-header a:hover {
    color: var(--brun-clair);
}


.lang-toggle {
    order: -1;
    /* passe avant le menu : le bouton se place à gauche, les liens à droite */
    position: relative;
    display: flex;
    align-items: center;
    width: 4.5rem;
    height: 2rem;
    padding: 0 0.75rem;
    font-family: inherit;
    background: var(--citron);
    color: var(--brun);
    border: none;
    border-radius: 999px;
    cursor: pointer;

}

.lang-knob {
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background: var(--brun);
    transition: transform 0.3s ease;

}

/* État « EN » : la pastille glisse à gauche, le texte passe à droite */
.lang-toggle[aria-checked="true"] {
    justify-content: flex-end;
}

.lang-toggle[aria-checked="true"] .lang-knob {
    transform: translateX(-2.5rem);
}

/* Section Projets : une rangée d'images pleine largeur */
.screen--projets {
    min-height: 0;
    padding: 3rem 0 0;
    /* 48 px en haut, rien sur les côtés */
}

/* Texte présent pour les lecteurs d'écran et Google, mais invisible */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* Les 3 projets côte à côte : celui qu'on survole s'élargit et s'allonge */
.projets-grille {
    display: flex;
    align-items: flex-start;
    /* les colonnes partent toutes du haut */
    gap: 0.5rem;
    /* 8 px entre les colonnes */
    height: calc(70svh + 4rem);
    /* hauteur de l'image agrandie + place pour le nom */
}

.projets-grille li {
    flex: 1 1 0;
    /* 3 largeurs égales au départ */
    min-width: 0;
    /* flex-grow animé ; on garde l'apparition au scroll (.reveal) */
    transition: flex-grow 0.7s cubic-bezier(0.2, 0.7, 0.2, 1),
        opacity 0.9s ease,
        transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
    transition-delay: 0s, var(--delai, 0s), var(--delai, 0s);
}

/* La carte : le nom au-dessus, l'image en dessous */
.projet-carte {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    /* 12 px entre le nom et l'image */
}

.projet-nom {
    order: -1;
    /* passe avant l'image sans toucher au HTML */
    font-family: var(--font-sans);
    font-weight: 300;
    text-transform: uppercase;
    font-size: 1.25rem;
    /* 20 px */
    line-height: 1.1;
    padding-left: 2rem;
    /* 32 px : la même marge que tes titres de services */
    color: var(--citron);
    transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.projet-carte img {
    display: block;
    width: 100%;
    height: 55svh;
    /* hauteur au repos */
    object-fit: cover;
    transition: height 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* Survol : seulement sur les appareils avec une vraie souris */
@media (hover: hover) and (min-width: 769px) {
    .projets-grille li:hover {
        flex-grow: 2.2;
        /* plus large */
    }

    .projet-carte:hover img {
        height: 70svh;
        /* plus haute */
    }

    .projet-carte:hover .projet-nom {
        transform: translateY(-0.4rem);
        /* le nom monte légèrement */
    }
}


/* Section Services : liste de grands titres */
.screen--services {
    min-height: 0;
    padding: 4rem 0;
    /* 64 px en haut et en bas */
}

.services-liste a {
    position: relative;
    display: block;
    padding: 0 2rem;
    /* 32 px sur les côtés */
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 9.5vw;
    /* 9,5 % de la largeur de l'écran */
    line-height: 1.5;
    letter-spacing: -0.03em;
    color: var(--brun-clair);
    /* au repos : discret */
    transition: color 0.3s ease;
}

/* Au survol : le service s'allume */
.services-liste a:hover {
    color: var(--citron);
}

/* Le numéro, calé tout à droite, en haut de la ligne */
.service-num {
    position: absolute;
    top: 0.6rem;
    /* 9,6 px */
    right: 2rem;
    /* 32 px */
    font-family: var(--font-mono);
    font-weight: 300;
    font-size: 1rem;
    /* 16 px */
    letter-spacing: 0;
}


/* Footer en rideau : fixé derrière la page, il se révèle en bas */
main {
    position: relative;
    z-index: 1;
    background: var(--brun);
    margin-bottom: 75vh;
    margin-bottom: 75svh;
}

.screen--footer {
    background: var(--citron);
    color: var(--brun);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2rem;
    overflow: hidden;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    min-height: 75vh;
    min-height: 75svh;
    height: 75vh;
    height: 75svh;
    z-index: 0;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.about {
    font-size: 1rem;
    line-height: 1.5;
    max-width: 35rem;
}

.contact h2 {
    font-size: 1.5rem;
    font-weight: 300;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    text-align: right;
}

.contact p,
.contact a {
    display: block;
    font-size: 1rem;
    line-height: 1.6;
    text-align: right;

}

/* Même effet de survol que dans les listes */
.contact a {
    transition: color 0.3s ease;
}

.contact a:hover {
    color: var(--brun-clair);
}

/* Grand logo en bas */
.footer-logo {
    font-size: 10vw;
    font-weight: 700;
    line-height: 1.25;
    text-align: left;
}

.b-script {
    font-family: var(--font-script);
    font-weight: 200;
    font-size: 1em;
    -webkit-text-fill-color: currentColor;
    -webkit-text-stroke: 0.015em currentColor;
    margin-right: -0.045em;
    margin-left: -0.10em;
    line-height: 0;

}

/* Initiales cursives des services : plus d'air que dans les logos */
.service-nom .b-script {
    margin-left: 0.12em;
    /* espace avant l'initiale */
    margin-right: 0.1em;
    /* espace entre l'initiale et le reste du mot */
}

/* Le premier B s'aligne sur le bord gauche du texte */
.footer-logo .b-script:first-child {
    margin-left: -2vw;
}

/* Page de détail : panneau plein écran qui glisse depuis le bas */
.detail {
    position: fixed;
    inset: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(36, 31, 33, 0);
    visibility: hidden;
    transition: background 0.6s ease, visibility 0.6s;
    /*0,6 seconde */
}

.detail.is-open {
    background: rgba(36, 31, 33, 0.3);
    visibility: visible;

}

.detail-window {
    position: relative;
    width: max(53.333vw, 40rem);
    /* 2/3 de l'ancienne largeur, mais jamais moins de 640 px */
    height: 92vh;
    background: var(--citron);
    color: var(--brun);
    border-radius: 1rem;
    overflow: hidden;
    transform: translateY(110vh);
    transition: transform 0.6s ease;
    display: flex;
    flex-direction: column;
}

.detail.is-open .detail-window {
    transform: translateY(0);
}

.detail-scroll {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 0 2rem 2rem;
    container-type: inline-size;
    /* permet de mesurer la largeur de la zone de contenu */
}

/* Barre de défilement de la fenêtre projet*/

.detail-scroll::-webkit-scrollbar {
    width: 1rem;
}

.detail-scroll::-webkit-scrollbar-thumb {
    background: var(--brun-clair);
    border-radius: 999px;
    border: 0.3rem solid var(--citron);
    background-clip: padding-box;
}

.detail-scroll::-webkit-scrollbar-button {
    display: none;
}

/* Firefox ne connaît pas les règles ci-dessus : version équivalente */
@supports not selector(::-webkit-scrollbar) {
    .detail-scroll {
        scrollbar-width: thin;
        scrollbar-color: var(--brun) transparent;
    }
}

.detail-close {
    flex-shrink: 0;
    align-self: flex-end;
    margin: 1.5rem 2rem 1rem;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 700;
    background: var(--brun);
    color: var(--citron);
    border: none;
    border-radius: 999px;
    padding: 0.3rem 0.9rem;
    cursor: pointer;
}

.detail h2 {
    font-size: 3rem;
    font-weight: 700;
    text-transform: uppercase;
}

.detail h3 {
    font-size: 1.75rem;
    font-weight: 300;
}

.detail-meta {
    display: flex;
    flex-direction: column;
    /* Expertises au-dessus de Livrables */
    gap: 1.5rem;
    /* 24 px entre les deux blocs */
}

/* Pastilles : expertises et livrables */
.pastilles {
    display: flex;
    flex-wrap: wrap;
    /* passe à la ligne quand il n'y a plus de place */
    gap: 0.5rem;
    /* 8 px entre les pastilles */
    margin-top: 0.75rem;
    /* 12 px sous le titre */
}

.pastilles li {
    font-size: 0.8rem;
    /* 12,8 px */
    line-height: 1.2;
    padding: 0.25rem 0.75rem;
    /* 4 px en haut/bas, 12 px sur les côtés */
    border: 1px solid var(--brun);
    border-radius: 999px;
    /* bords totalement arrondis */
    white-space: nowrap;
    /* une pastille ne se coupe jamais en deux lignes */
}

/* Rangée du haut : infos à gauche, animation à droite */
.detail-top {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    margin-top: 2rem;
    align-items: start;
    /* les deux colonnes partent du même point en haut */

}


/*Blocs provisoires */
.detail-media,
.detail-image {
    background: var(--brun-clair);
    color: var(--citron);
    display: flex;
    align-items: center;
    justify-content: center;
}

.detail-media video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* la vidéo remplit exactement le cadre 4:3, sans bandes */
}

.detail-media {
    min-height: 14rem;
    aspect-ratio: 4 / 3;
    /* forme de la vidéo : paysage */

}

/* Les images remplissent leur case sans se déformer */
.detail-image {
    overflow: hidden;
}

.detail-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* l'image remplit la case, recadrée si besoin, jamais étirée */
}

.detail-text {
    margin-top: 2rem;
    font-size: 0.8rem;
    line-height: 1.5;
    max-width: 60rem;
}

/* Mosaïque d'images */

.detail-gallery {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    grid-auto-rows: 23.7cqw;
    gap: 1rem;
    margin-top: 2rem;
}

.detail-gallery .detail-image:nth-child(1) {
    grid-column: 1;
    grid-row: 1 / 3;
}

.detail-gallery .detail-image:nth-child(2) {
    grid-column: 2 / 4;
    grid-row: 1;
}

.detail-gallery .detail-image:nth-child(3) {
    grid-column: 4;
    grid-row: 1;
}

.detail-gallery .detail-image:nth-child(4) {
    grid-column: 2;
    grid-row: 2;
}

.detail-gallery .detail-image:nth-child(5) {
    grid-column: 3 / 5;
    grid-row: 2;
}

/*Empêche la page de défiler derrière le panneau ouvert */
body.no-scroll {
    overflow: hidden;
}

/* Curseur personnalisé (bureau seulement) */

.cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 1.25rem;
    height: 1.25rem;
    margin: -0.625rem 0 0 -0.625rem;
    border-radius: 50%;
    background: var(--citron);
    mix-blend-mode: difference;
    pointer-events: none;
    z-index: 100;
    opacity: 0;
    transition: scale 0.3s ease, opacity 0.3s ease;
}

.cursor.is-hover {
    scale: 5;
}

/* On masque le curseur d'origine seuiement quand le nôtre est actif */

body.has-cursor,
body.has-cursor a,
body.has-cursor button {
    cursor: none;
}

/* Le texte du hero passe devant le fond */

.screen--hero h1,
.screen--hero p {
    position: relative;
    z-index: 1;
}

/* Le bas du hero se fond dans le brun de la page */
.screen--hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 45%;
    background: linear-gradient(to bottom, rgba(36, 31, 33, 0), var(--brun));
    pointer-events: none;
    z-index: 0;
}

/* Fond vivant : des tâches de lumières qui flottent */
.hero-fond,
.fond {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 60% 40% 55% 45% / 50% 60% 40% 50%;
    /* forme fixe : sous le flou, le changement de forme se voyait à peine */
    filter: blur(60px);
    /* 60 px au lieu de 80 : plus léger, rendu quasi identique */
    will-change: transform;
    /* le halo devient un calque indépendant, déplacé par la carte graphique */
    animation: flotter 14s ease-in-out infinite alternate;
}

.blob--1 {
    width: 40vw;
    height: 40vw;
    top: -10%;
    left: 5%;
    background: var(--brun-clair);
    opacity: 0.6;
}

.blob--2 {
    width: 30vw;
    height: 30vw;
    top: 25%;
    right: 5%;
    background: var(--citron);
    opacity: 0.12;
    animation-duration: 18s;
    animation-delay: -4s;
}

.blob--3 {
    width: 35vw;
    height: 35vw;
    bottom: -15%;
    left: 35%;
    background: var(--brun-clair);
    opacity: 0.5;
    animation-duration: 16s;
    animation-delay: -8s;
}

.fond--footer .blob {
    animation: none;
}

/* Le contenu passe devant les halos */
.footer-top,
.footer-logo {
    position: relative;
    z-index: 1;
}

/* Footer : des halos bruns sur le fond citron */
.fond--footer .blob--1 {
    background: var(--brun);
    opacity: 0.25;
}

.fond--footer .blob--2 {
    background: var(--brun);
    opacity: 0.1;
}

.fond--footer .blob--3 {
    background: var(--brun);
    opacity: 0.25;
}

@keyframes flotter {
    from {
        transform: translate(0, 0) scale(1);
    }

    to {
        transform: translate(8vw, 6vh) scale(1.2);
    }
}

/* Apparition au défilement */
.reveal {
    opacity: 0;
    transform: translateY(2rem);
    transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
    transition-delay: var(--delai, 0s);
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* Le détail : une ligne par service */
.service-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    /* 32 px */
    padding: 2rem;
    /* 32 px */
    border-top: 1px solid var(--brun-clair);
    scroll-margin-top: 2rem;
    /* 32 px d'air quand on arrive par un lien */
}

.service-entete {
    display: flex;
    align-items: flex-start;
    /* le numéro s'aligne sur le haut du titre */
    gap: 1.5rem;
    /* 24 px entre le numéro et le titre */
}

.service-detail-num {
    font-size: 1rem;
    /* 16 px */
    margin-top: 0.4rem;
    /* 6,4 px : descend le numéro pour l'aligner sur le haut des lettres */
}

.service-detail-titre {
    font-family: var(--font-sans);
    font-weight: 300;
    font-size: 2rem;
    /* 32 px */
}

.service-resume,
.service-texte {
    font-size: 0.8rem;
    /* 12,8 px */
    line-height: 1.6;
}

.service-texte {
    margin-top: 1rem;
    /* 16 px */
}

.service-resume {
    font-family: var(--font-sans);
    /* Inter Tight */
    font-weight: 300;
    /* Light, la seule graisse installée avec le Bold */
    font-size: 1rem;
    letter-spacing: 0.02em;
    /* un léger espacement entre les lettres */

}

/* Titres, menu et boutons : Inter Tight Light */
.site-header a,
.lang-toggle,
.detail-close,
.detail h2 {
    font-family: var(--font-sans);
    font-weight: 300;
}

/* Menu du header : DM Mono en capitales */
.site-header a {
    font-family: var(--font-mono);
    /* DM Mono */
    font-weight: 300;
    /* le seul poids installé : évite un faux gras */
    text-transform: uppercase;
    letter-spacing: 0.03em;
    /* léger espacement, les capitales respirent mieux */
}

/* Le logo reste en Inter Tight Bold */
.screen--hero h1,
.footer-logo {
    font-family: var(--font-sans);
}

/* Contour visible quand on navigue au clavier (touche Tab) */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--citron);
    outline-offset: 4px;
    /* 4 px d'écart entre l'élément et son contour */
}

/* Sur les fonds clairs (fenêtre projet, footer), le contour passe en brun */
.detail :focus-visible,
.screen--footer :focus-visible {
    outline-color: var(--brun);
}

/* Mobile : écrans de 768 px de large ou moins */
@media (max-width: 768px) {

    /* Menu : plus compact */
    .site-header {
        padding: 1rem;
        justify-content: space-between;
        gap: 1rem;
    }

    .site-header a {
        font-size: 0.75rem;
        /* 12 px */
        padding: 0.5rem 0;
        /* 8 px en haut et en bas : zone cliquable plus grande */
    }

    .site-header nav ul {
        gap: 1.25rem;
        /* 20 px entre les liens */
    }

    .screen--hero {
        padding: 1rem;
    }

    .screen--hero h1 {
        font-size: 12vw;
        margin-top: 3rem;
    }

    .screen--hero p {
        font-size: 7vw;
        margin-top: 1.5rem;
    }

    .services-liste a {
        font-size: 9vw;
        padding: 0 1rem;
        /* 16 px */
        color: var(--citron);
        /* toujours visible sur mobile, il n'y a pas de survol */
    }

    .service-num {
        right: 1rem;
        font-size: 0.8rem;
        /* 12,8 px */
    }

    .services-liste li+li {
        margin-top: 0.75rem;
        /* 12 px d'espace entre deux services */
    }

    .screen--footer {
        padding: 1rem;
    }


    .footer-top {
        grid-template-columns: 1fr;
    }

    .about {
        font-size: 0.8125rem;
        /* 13 px : même taille que le détail des services et le contact */
        line-height: 1.6;
        /* même interligne que le détail des services */
    }

    .footer-logo {
        font-size: 22vw;
        margin-left: -0.10em;
    }

    .detail h2 {
        font-size: 2rem;
    }

    .detail h3 {
        font-size: 1.25rem;
        /* 20 px (au lieu de 28 px) : plus petit que le titre du projet */
    }

    .detail-scroll {
        padding: 0 1rem 1.5rem;
        /* 16 px sur les côtés (au lieu de 32 px), 24 px en bas : images plus larges */
    }

    .detail-top,
    .detail-gallery {
        grid-template-columns: 1fr;
    }

    .detail-gallery {
        grid-auto-rows: auto;
        /* sur mobile, chaque rangée prend la hauteur de son image (via aspect-ratio) */
    }

    .detail-gallery .detail-image:nth-child(n) {
        grid-column: auto;
        grid-row: auto
    }

    .detail-gallery .detail-image:nth-child(1) {
        aspect-ratio: 640 / 1000;
        /* portrait */
    }

    .detail-gallery .detail-image:nth-child(2),
    .detail-gallery .detail-image:nth-child(5) {
        aspect-ratio: 1110 / 600;
        /* large */
    }

    .detail-gallery .detail-image:nth-child(3),
    .detail-gallery .detail-image:nth-child(4) {
        aspect-ratio: 640 / 720;
        /* presque carré */
    }

    .detail-window {
        width: 94vw;
        height: 94svh;
        border-radius: 1.5rem;
    }

    .detail-close {
        margin: 1rem 1rem 0.5rem;
    }

    .projets-grille {
        flex-direction: column;
        align-items: stretch;
        /* les projets prennent toute la largeur */
        height: auto;
        gap: 1.5rem;
    }

    .projets-grille li {
        flex: none;
    }

    .projet-carte img {
        height: auto;
        aspect-ratio: 4 / 3;
    }

    .projet-nom {
        font-size: 1rem;
        /* 16 px */
        padding-left: 0.8rem;
        /* 12,8 px : aligné avec les titres de services */
    }


    .service-detail {
        grid-template-columns: 1fr;
        /* une seule colonne */
        padding: 1.5rem 1rem;
        /* 24 px / 16 px */
    }

    .service-detail-titre {
        font-size: 1.5rem;
        /* 24 px (au lieu de 32 px) : plus petit que les grands titres de la liste */
    }

    .contact h2 {
        font-size: 1rem;
        /* 16 px */
        text-align: left;
    }

    .contact p,
    .contact a {
        font-size: 0.8125rem;
        /* 13 px */
        text-align: left;
        overflow-wrap: anywhere;
    }

    .blob {
        animation: none;
        /* halos fixes sur mobile : fluidité et batterie */
    }


}

/* Pour les personnes qui ont demandé moins de mouvement */
@media (prefers-reduced-motion: reduce) {
    .blob {
        animation: none;
    }
}

@media (hover: none),
(pointer: coarse) {
    .cursor {
        display: none;
        /* sur un écran tactile, le gros curseur n'existe plus */
    }
}

/* Écrans tactiles de plus de 768 px (iPad, tablettes) */
@media (hover: none) and (min-width: 769px) {
    .services-liste a {
        color: var(--citron);
        /* pas de survol : les titres restent allumés */
    }

    .projets-grille {
        height: auto;
        /* plus de place réservée pour l'agrandissement au survol */
    }
}

/* Tablettes en mode portrait */
@media (min-width: 769px) and (max-width: 1100px) {
    .screen--footer {
        height: 45svh;
        min-height: 45svh;
        /* footer plus bas : moins de vide entre le texte et le logo */
    }

    main {
        margin-bottom: 45svh;
        /* même valeur que la hauteur du footer, pour l'effet de rideau */
    }

    .services-liste a {
        color: var(--citron);
        /* pas de survol : les titres restent allumés */
        font-size: 7vw;
        /* environ 72 px sur un iPad Pro (au lieu de 98 px avec 9,5vw) */
    }

    .projets-grille {
        height: auto;
        /* plus de place réservée pour l'agrandissement au survol */
    }

    .projet-carte img {
        height: auto;
        aspect-ratio: 1 / 1;
        /* image carrée, comme sur ordinateur : plus de recadrage trop haut */
    }

    .site-header a,
    .lang-toggle {
        font-size: 1rem;
        /* 16 px (au lieu de 12,8 px) : menu et bouton FR/EN plus lisibles */
    }

    .detail-window {
        height: auto;
        max-height: 92vh;
        /* la fenêtre s'adapte à son contenu, sans dépasser 92 % de l'écran */
    }

    .detail-scroll {
        flex: 0 1 auto;
        /* la zone de contenu prend sa hauteur naturelle et défile seulement si elle est trop longue */
    }
}

@media (max-width: 1100px) {
    .screen--services {
        padding: 2rem 0 4rem;
        /* 32 px au-dessus de la liste, 64 px en bas de la section (inchangé) */
    }

    .services-liste {
        padding-bottom: 2rem;
        /* 32 px sous « Design Digital » : le même espace qu'au-dessus */
    }
}