/* ==========================================================
   PAGES ÉQUIPE, PROJETS, BLOG, COMMANDER
   Composants qui font parler les images. Mêmes couleurs que style.css.
   ========================================================== */

/* ----------------------------------------------------------
   1. BANDEAUX DE PAGE EN IMAGES
   ---------------------------------------------------------- */
.page-header.hero-visual {
    min-height: 82vh;
    display: flex;
    align-items: center;
    padding: 150px 0 130px;
}

.hero-visual .container {
    z-index: 3;
    pointer-events: none;
}

.hero-visual .container a,
.hero-visual .container button {
    pointer-events: auto;
}

.hero-visual h1 {
    font-size: clamp(2.8rem, 7vw, 5rem);
}

/* Voile qui garde le titre lisible au-dessus des images */
.hero-shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        radial-gradient(ellipse 70% 60% at 50% 50%, rgba(10, 10, 10, 0.42), rgba(10, 10, 10, 0.85) 80%),
        linear-gradient(to bottom, rgba(10, 10, 10, 0.1), rgba(10, 10, 10, 0.92));
}

.hero-visual .scroll-cue {
    z-index: 3;
}

/* Photo pleine page qui se pose lentement */
.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    animation:
        heroSettle 3s var(--ease-slow) both,
        kenBurns 20s ease-in-out 3s infinite alternate;
}

@keyframes heroSettle {
    from { transform: scale(1.18); filter: blur(8px) brightness(0.5); }
    to { transform: scale(1); filter: none; }
}

/* Mur de réalisations qui défile doucement */
.wall {
    position: absolute;
    inset: -30% -12%;
    z-index: 0;
    display: flex;
    justify-content: center;
    gap: 22px;
    rotate: -9deg;
    animation: wallIn 2.4s var(--ease-slow) both;
}

.wall-col {
    flex: 0 0 26%;
    display: flex;
    flex-direction: column;
    gap: 22px;
    animation: wallUp 70s linear infinite;
}

.wall-col:nth-child(2) {
    margin-top: -160px;
    animation-direction: reverse;
    animation-duration: 85s;
}

.wall-col:nth-child(3) {
    animation-duration: 95s;
}

.wall img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: top;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    opacity: 0.75;
}

@keyframes wallIn {
    from { opacity: 0; scale: 1.12; }
}

@keyframes wallUp {
    to { transform: translateY(-50%); }
}

/* Collage de photos d'articles qui flottent */
.polaroid {
    position: absolute;
    left: var(--x);
    top: var(--y);
    /* au-dessus du voile sombre, sous le titre */
    z-index: 2;
    width: clamp(130px, 14vw, 220px);
    margin: 0;
    padding: 10px 10px 30px;
    border-radius: 4px;
    background: #f2f2f2;
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.55);
    rotate: var(--r, 0deg);
    translate: var(--px, 0px) var(--py, 0px);
    transition: translate 1.2s var(--ease-slow);
    animation:
        polaroidIn 1.6s var(--ease-back) var(--d, 0s) both,
        floaty var(--f, 8s) ease-in-out calc(var(--d, 0s) + 1.6s) infinite alternate;
}

.polaroid img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.polaroid figcaption {
    margin-top: 8px;
    font-family: ui-monospace, Menlo, Consolas, monospace;
    font-size: 0.75rem;
    text-align: center;
    color: #444;
}

@keyframes polaroidIn {
    from { opacity: 0; transform: translateY(70px) scale(0.8) rotate(10deg); }
}

@keyframes floaty {
    to { transform: translateY(-16px) rotate(1.5deg); }
}

/* Bandes verticales d'images : une par type de projet, chacune ouvre l'assistant sur ce type */
.slices {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: flex;
    gap: 6px;
}

.slice {
    position: relative;
    flex: 1;
    display: block;
    overflow: hidden;
    color: inherit;
    transition: flex-grow 1.2s var(--ease-slow);
    animation: sliceIn 1.8s var(--ease-slow) calc(var(--i, 0) * 0.16s) both;
}

.slice:focus-visible {
    outline: 2px solid var(--color-blue);
    outline-offset: -6px;
}

.slice img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(0.6) brightness(0.6);
    transition: filter 1s ease, scale 1.6s var(--ease-slow);
}

.slice-label {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 12%;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--color-light-gray);
    opacity: 0;
    animation: fadeOnly 1.2s ease calc(var(--intro-total) + 1.4s + var(--i, 0) * 0.15s) forwards;
    transition: translate 0.8s var(--ease-slow), color 0.6s ease;
}

.slice-label b {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: var(--color-blue);
}

/* Voile : sombre derrière le titre, plus clair sur les étiquettes */
.hero-slices .hero-shade {
    background:
        radial-gradient(ellipse 60% 50% at 50% 46%, rgba(10, 10, 10, 0.86), rgba(10, 10, 10, 0.35) 72%, rgba(10, 10, 10, 0) 100%),
        linear-gradient(to bottom, rgba(10, 10, 10, 0.45), transparent 22%, transparent 84%, rgba(10, 10, 10, 0.96));
}

/* Au repos, les images sont floues ; la bande survolée fait la mise au point */
.hero-slices .slice img {
    inset: -12px;
    width: calc(100% + 24px);
    height: calc(100% + 24px);
    filter: grayscale(0.6) brightness(0.55) blur(2px);
}

.hero-hint {
    margin-top: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--color-light-gray);
}

.hero-hint.hero-anim {
    animation-delay: calc(var(--intro-total) + 0.8s);
}

.hero-hint i {
    display: inline-block;
    margin-right: 8px;
    color: var(--color-blue);
    animation: tap 2.6s ease-in-out infinite;
}

@keyframes tap {
    0%, 55%, 100% { translate: 0 0; }
    25% { translate: 0 5px; }
}

@media (hover: hover) {
    .slice:hover {
        flex-grow: 1.9;
    }

    /* reste un peu sombre : le titre doit rester lisible par-dessus */
    .hero-slices .slice:hover img {
        filter: grayscale(0.1) brightness(0.8) blur(0);
        scale: 1.05;
    }

    .slice:hover .slice-label {
        translate: 0 -8px;
        color: var(--color-white);
    }
}

@keyframes sliceIn {
    from { clip-path: inset(100% 0 0 0); }
    to { clip-path: inset(0 0 0 0); }
}

/* ----------------------------------------------------------
   2. PHOTO + CARTE QUI SE CHEVAUCHENT
   ---------------------------------------------------------- */
.photo-story-section {
    padding: 120px 0;
}

.photo-story {
    display: grid;
    grid-template-columns: 7fr 5fr;
    align-items: center;
}

.photo-story-media {
    margin: 0;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 18px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
}

.photo-story-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-story-card {
    position: relative;
    z-index: 1;
    margin-left: -110px;
    padding: 44px 40px;
    border-radius: 18px;
    background: rgba(13, 13, 13, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
}

.photo-story-card p {
    color: var(--color-light-gray);
}

.photo-story-card p:last-child {
    margin-bottom: 0;
}

/* ----------------------------------------------------------
   3. PORTRAITS QUI S'OUVRENT (direction)
   ---------------------------------------------------------- */
.leaders-section {
    padding: 110px 0;
}

.panels {
    display: flex;
    gap: 14px;
    height: 580px;
}

.panel {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    isolation: isolate;
    transition: flex-grow 1.3s var(--ease-slow), border-color 0.6s ease;
}

.panel.is-active {
    flex-grow: 3.2;
    border-color: rgba(0, 255, 255, 0.3);
}

.panel > img {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: var(--pos, center);
    filter: grayscale(1) brightness(0.5);
    scale: 1.08;
    transition: filter 1.3s ease, scale 1.8s var(--ease-slow);
}

.panel.is-active > img {
    filter: none;
    scale: 1;
}

.panel::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(to top, rgba(10, 10, 10, 0.95) 8%, rgba(10, 10, 10, 0.2) 55%, transparent);
}

/* Toute la surface du panneau est cliquable */
.panel-toggle {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    border: none;
    background: none;
    cursor: pointer;
}

.panel.is-active .panel-toggle {
    cursor: default;
}

.panel-num {
    position: absolute;
    top: 20px;
    left: 22px;
    font-family: ui-monospace, Menlo, Consolas, monospace;
    font-size: 0.8rem;
    color: var(--color-light-gray);
}

/* Nom vertical quand le panneau est fermé */
.panel-closed {
    position: absolute;
    left: 50%;
    bottom: 30px;
    translate: -50% 0;
    writing-mode: vertical-rl;
    rotate: 180deg;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--color-white);
    transition: opacity 0.5s ease;
}

.panel.is-active .panel-closed {
    opacity: 0;
}

.panel-open {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 34px 36px;
    opacity: 0;
    translate: 0 26px;
    transition: opacity 0.4s ease, translate 0.4s ease;
}

.panel.is-active .panel-open {
    opacity: 1;
    translate: 0 0;
    transition: opacity 0.9s ease 0.5s, translate 1s var(--ease-slow) 0.5s;
}

.panel-role {
    display: inline-block;
    margin-bottom: 12px;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    background: linear-gradient(to right, var(--color-pink), var(--color-blue));
}

.panel-open h3 {
    margin-bottom: 10px;
    font-size: 2.2rem;
}

.panel-open p {
    max-width: 520px;
    margin-bottom: 16px;
    color: var(--color-light-gray);
}

.panel-links {
    position: relative;
    z-index: 3;
    display: flex;
    gap: 10px;
}

.panel-links a {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--color-white);
    transition: background 0.4s ease, border-color 0.4s ease;
}

.panel-links a:hover {
    background: rgba(0, 255, 255, 0.12);
    border-color: var(--color-blue);
}

/* ----------------------------------------------------------
   4. TUILES D'IMAGES QUI S'ANIMENT (culture)
   ---------------------------------------------------------- */
.tiles-section {
    padding: 110px 0;
}

.tiles {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.tile {
    position: relative;
    height: 460px;
    overflow: hidden;
    border-radius: 16px;
    isolation: isolate;
    outline: none;
}

.tile:focus-visible {
    box-shadow: 0 0 0 2px var(--color-blue);
}

.tile img {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1) brightness(0.45);
    transition: filter 1.1s ease, scale 1.8s var(--ease-slow);
}

.tile::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(to top, rgba(10, 10, 10, 0.95) 10%, transparent 65%);
}

.tile-num {
    position: absolute;
    top: 18px;
    left: 20px;
    font-family: ui-monospace, Menlo, Consolas, monospace;
    font-size: 0.8rem;
    color: var(--color-light-gray);
}

.tile-body {
    position: absolute;
    inset: auto 0 0;
    padding: 26px 24px;
}

.tile h3 {
    margin: 0;
    font-size: 1.3rem;
}

.tile h3::after {
    content: '';
    display: block;
    width: 34px;
    height: 3px;
    margin-top: 12px;
    background: linear-gradient(to right, var(--color-pink), var(--color-blue));
    transition: width 0.8s var(--ease-slow);
}

.tile p {
    max-height: 0;
    margin: 0;
    overflow: hidden;
    opacity: 0;
    color: var(--color-light-gray);
    font-size: 0.95rem;
    transition: max-height 1s var(--ease-slow), opacity 0.7s ease, margin 0.6s ease;
}

.tile:hover img,
.tile:focus-within img,
.tile.is-on img {
    filter: brightness(0.7);
    scale: 1.08;
}

.tile:hover h3::after,
.tile:focus-within h3::after,
.tile.is-on h3::after {
    width: 70px;
}

.tile:hover p,
.tile:focus-within p,
.tile.is-on p {
    max-height: 220px;
    margin-top: 14px;
    opacity: 1;
}

/* Écrans tactiles : pas de survol, le texte est toujours visible */
@media (hover: none) {
    .tile p {
        max-height: none;
        margin-top: 14px;
        opacity: 1;
    }

    .tile img {
        filter: grayscale(0.3) brightness(0.55);
    }
}

/* ----------------------------------------------------------
   5. GRANDE IMAGE AVEC POINTS FORTS (nous rejoindre)
   ---------------------------------------------------------- */
.join-section {
    padding: 110px 0;
    text-align: left;
}

/* style.css mettait cette section en deux colonnes centrées : on reprend la main */
.join-section .container {
    display: block;
}

.join-banner {
    position: relative;
    min-height: 580px;
    display: flex;
    align-items: center;
    overflow: hidden;
    border-radius: 22px;
    isolation: isolate;
}

.join-banner > img {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: kenBurns 20s ease-in-out infinite alternate;
}

.join-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, rgba(10, 10, 10, 0.96) 28%, rgba(10, 10, 10, 0.45) 65%, rgba(10, 10, 10, 0.15));
}

.join-text {
    max-width: 540px;
    padding: 56px;
}

.join-text p {
    color: var(--color-light-gray);
}

.join-chips {
    position: absolute;
    right: 6%;
    top: 50%;
    translate: 0 -50%;
    display: grid;
    gap: 14px;
}

.join-chip {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 22px;
    border-radius: 40px;
    font-weight: 600;
    background: rgba(13, 13, 13, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.join-chip i {
    color: var(--color-blue);
}

.join-chip:nth-child(even) {
    margin-left: 40px;
}

/* ----------------------------------------------------------
   6. FILTRE À INDICATEUR GLISSANT
   ---------------------------------------------------------- */
.filtre-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 46px;
}

.filtre {
    position: relative;
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
    padding: 6px;
    border-radius: 40px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.filtre button {
    position: relative;
    z-index: 1;
    padding: 10px 18px;
    border: none;
    border-radius: 30px;
    background: none;
    color: var(--color-light-gray);
    font: inherit;
    font-size: 0.9rem;
    cursor: pointer;
    transition: color 0.4s ease;
}

.filtre button:hover {
    color: var(--color-white);
}

.filtre button[aria-pressed="true"] {
    color: var(--color-white);
}

.filtre button b {
    margin-left: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    opacity: 0.6;
}

.filtre-indicateur {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 0;
    border-radius: 30px;
    background: linear-gradient(to right, var(--color-pink), var(--color-blue));
    transition: transform 0.7s var(--ease-slow), width 0.7s var(--ease-slow), height 0.7s var(--ease-slow);
}

.is-hiding {
    opacity: 0 !important;
    transform: scale(0.92) !important;
    transition: opacity 0.35s ease, transform 0.35s ease !important;
}

/* ----------------------------------------------------------
   7. CARTES DE PROJETS
   ---------------------------------------------------------- */
.showcase-section {
    padding: 100px 0 120px;
}

.pj-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
    gap: 34px 26px;
}

.pj-card {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: none;
    background: none;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.pj-shot {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: #1a1a1a;
    transition: border-color 0.5s ease, box-shadow 0.6s ease;
}

.pj-shot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: scale 1.5s var(--ease-slow);
}

.pj-open {
    position: absolute;
    left: 50%;
    top: 50%;
    translate: -50% -40%;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    background: rgba(13, 13, 13, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.15);
    opacity: 0;
    transition: opacity 0.5s ease, translate 0.6s var(--ease-slow);
}

.pj-card:hover .pj-shot,
.pj-card:focus-visible .pj-shot {
    border-color: rgba(0, 255, 255, 0.35);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.5);
}

.pj-card:hover .pj-shot img,
.pj-card:focus-visible .pj-shot img {
    scale: 1.07;
}

.pj-card:hover .pj-open,
.pj-card:focus-visible .pj-open {
    opacity: 1;
    translate: -50% -50%;
}

.pj-card:focus-visible {
    outline: none;
}

.pj-info {
    display: block;
    padding: 16px 4px 0;
}

.pj-cat {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-blue);
}

.pj-title {
    display: block;
    margin-top: 4px;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-white);
}

/* Le détail ne s'affiche que dans la grande vue (et reste lisible sans JavaScript) */
html.js .lb-content {
    display: none;
}

.pj-empty {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    align-items: center;
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
    padding: 30px;
    border-radius: 18px;
    background: var(--color-darker);
    border: 1px dashed rgba(0, 255, 255, 0.25);
    animation: fadeOnly 0.8s ease both;
}

.pj-empty[hidden] {
    display: none;
}

.pj-empty img {
    width: 100%;
    border-radius: 12px;
    filter: grayscale(0.4);
}

.pj-empty h3 {
    font-size: 1.5rem;
}

.pj-empty p {
    color: var(--color-gray);
}

/* ----------------------------------------------------------
   8. GRANDE VUE (projets et articles)
   ---------------------------------------------------------- */
html.lb-lock {
    overflow: hidden;
}

.lightbox {
    width: min(1120px, 94vw);
    max-width: none;
    max-height: 92vh;
    margin: auto;
    padding: 0;
    overflow: hidden;
    border: none;
    border-radius: 18px;
    background: var(--color-darker);
    color: var(--color-white);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
    transition: background-color 0.6s ease, box-shadow 0.6s ease;
}

.lightbox[open] {
    display: grid;
    grid-template-columns: 1.45fr 1fr;
}

.lightbox::backdrop {
    background: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    animation: fadeOnly 0.5s ease both;
}

/* Pendant l'envol de l'image, la fenêtre est transparente */
.lightbox.is-flying {
    overflow: visible;
    background-color: transparent;
    box-shadow: none;
}

.lightbox.is-flying .lb-body,
.lightbox.is-flying .lb-ui {
    opacity: 0;
}

.lb-media {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 320px;
    overflow: hidden;
    background: #111;
}

.lightbox.is-flying .lb-media {
    overflow: visible;
    background: transparent;
}

.lb-ambient {
    position: absolute;
    inset: -40px;
    width: calc(100% + 80px);
    height: calc(100% + 80px);
    object-fit: cover;
    filter: blur(36px) brightness(0.45) saturate(1.3);
    opacity: 0;
    transition: opacity 0.8s ease;
}

.lightbox.is-small .lb-ambient {
    opacity: 1;
}

.lb-img {
    position: relative;
    display: block;
    /* La boîte suit exactement les proportions de l'image : l'envol tombe juste */
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 80vh;
    transform-origin: top left;
    transition: opacity 0.45s ease;
}

.lightbox.is-small .lb-img {
    width: min(520px, 88%);
    max-width: none;
    border-radius: 10px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.lb-img.is-swapping {
    opacity: 0;
}

.lb-body {
    max-height: 92vh;
    overflow-y: auto;
    padding: 46px 38px 34px;
    transition: opacity 0.6s ease 0.15s;
}

.lb-body > * {
    animation: lbIn 0.8s var(--ease-slow) both;
}

.lb-body > *:nth-child(2) { animation-delay: 0.08s; }
.lb-body > *:nth-child(3) { animation-delay: 0.16s; }
.lb-body > *:nth-child(4) { animation-delay: 0.24s; }
.lb-body > *:nth-child(5) { animation-delay: 0.32s; }
.lb-body > *:nth-child(6) { animation-delay: 0.4s; }

@keyframes lbIn {
    from { opacity: 0; translate: 0 16px; }
}

.lb-body h3 {
    font-size: 1.7rem;
    margin-bottom: 14px;
}

.lb-body p {
    color: var(--color-light-gray);
}

.lb-tag {
    display: inline-block;
    margin-bottom: 14px;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-blue);
}

.lb-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.lb-tech span {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.lb-note {
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 0.9rem;
    background: rgba(0, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.18);
}

.lb-ui {
    transition: opacity 0.5s ease;
}

.lb-close,
.lb-prev,
.lb-next {
    position: absolute;
    z-index: 3;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(13, 13, 13, 0.75);
    color: var(--color-white);
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.4s ease, border-color 0.4s ease;
}

.lb-close:hover,
.lb-prev:hover,
.lb-next:hover {
    background: rgba(0, 255, 255, 0.15);
    border-color: var(--color-blue);
}

.lb-close {
    top: 14px;
    right: 14px;
}

.lb-prev,
.lb-next {
    top: 50%;
    translate: 0 -50%;
}

.lb-prev { left: 14px; }
.lb-next { right: 14px; }

.lb-prev[hidden],
.lb-next[hidden] {
    display: none;
}

.lb-count {
    position: absolute;
    left: 18px;
    bottom: 14px;
    z-index: 3;
    font-family: ui-monospace, Menlo, Consolas, monospace;
    font-size: 0.8rem;
    color: var(--color-light-gray);
}

/* ----------------------------------------------------------
   9. BLOG
   ---------------------------------------------------------- */
.featured-section {
    padding: 110px 0 40px;
}

.bl-featured {
    position: relative;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    align-items: center;
    min-height: 460px;
    overflow: hidden;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    isolation: isolate;
}

/* Fond d'ambiance : la même image, très floue, autour de l'image nette */
.bl-ambient {
    position: absolute;
    inset: -60px;
    z-index: -1;
    width: calc(100% + 120px);
    height: calc(100% + 120px);
    object-fit: cover;
    filter: blur(44px) brightness(0.4) saturate(1.4);
}

.bl-featured-media {
    margin: 0;
    padding: 44px;
}

.bl-featured-media img {
    width: 100%;
    max-width: 540px;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.55);
    animation: gentleFloat 7s ease-in-out infinite;
}

.bl-featured-body {
    padding: 44px 50px 44px 10px;
}

.bl-featured-body h2 {
    font-size: clamp(1.7rem, 3vw, 2.3rem);
}

.bl-featured-body p {
    color: var(--color-light-gray);
}

.bl-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin-bottom: 14px;
    font-size: 0.85rem;
    color: var(--color-gray);
}

.bl-meta i {
    margin-right: 6px;
}

.bl-chip {
    display: inline-block;
    margin-bottom: 14px;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    background: linear-gradient(to right, var(--color-pink), var(--color-blue));
}

.posts-section {
    padding: 70px 0 120px;
}

.bl-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px 24px;
}

.bl-card {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: none;
    background: none;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.bl-shot {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    isolation: isolate;
}

.bl-shot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: scale 1.5s var(--ease-slow), filter 1s ease;
    filter: brightness(0.8);
}

.bl-shot::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 10, 10, 0.92) 5%, transparent 60%);
}

.bl-shot .bl-chip {
    position: absolute;
    left: 14px;
    top: 14px;
    z-index: 1;
    margin: 0;
}

.bl-shot-title {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 16px;
    z-index: 1;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.3;
}

.bl-excerpt {
    display: block;
    margin-top: 14px;
    font-size: 0.92rem;
    color: var(--color-gray);
}

.bl-card .bl-meta {
    margin: 12px 0 0;
    font-size: 0.8rem;
}

.bl-card:hover .bl-shot img,
.bl-card:focus-visible .bl-shot img {
    scale: 1.08;
    filter: brightness(1);
}

.bl-card:focus-visible {
    outline: none;
}

.bl-card:focus-visible .bl-shot {
    box-shadow: 0 0 0 2px var(--color-blue);
}

/* ----------------------------------------------------------
   10. COMMANDER : ASSISTANT EN 4 ÉTAPES
   ---------------------------------------------------------- */
.wizard-section {
    padding: 100px 0 110px;
}

.wiz-wrap {
    max-width: 1100px;
    margin: 0 auto;
}

/* Étapes et barre de progression */
.wiz-steps {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin: 0 0 34px;
    list-style: none;
}

.wiz-steps::before,
.wiz-steps::after {
    content: '';
    position: absolute;
    left: 12.5%;
    right: 12.5%;
    top: 19px;
    height: 2px;
    background: rgba(255, 255, 255, 0.08);
}

.wiz-steps::after {
    background: linear-gradient(to right, var(--color-pink), var(--color-blue));
    transform: scaleX(var(--p, 0));
    transform-origin: left;
    transition: transform 1s var(--ease-slow);
}

.wiz-steps li {
    position: relative;
    z-index: 1;
    display: grid;
    justify-items: center;
    gap: 8px;
}

.wiz-steps button {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.15);
    background: var(--color-dark);
    color: var(--color-gray);
    font: inherit;
    font-weight: 700;
    cursor: default;
    transition: border-color 0.6s ease, background 0.6s ease, color 0.6s ease, scale 0.6s var(--ease-back);
}

.wiz-steps span {
    font-size: 0.82rem;
    color: var(--color-gray);
    transition: color 0.6s ease;
}

.wiz-steps li.is-done button {
    border-color: transparent;
    background: linear-gradient(135deg, var(--color-pink), var(--color-blue));
    color: var(--color-white);
    cursor: pointer;
}

.wiz-steps li.is-current button {
    border-color: var(--color-blue);
    color: var(--color-white);
    scale: 1.12;
}

.wiz-steps li.is-current span,
.wiz-steps li.is-done span {
    color: var(--color-white);
}

.wiz-steps button:not(:disabled) {
    cursor: pointer;
}

.wiz-steps button:not(:disabled):hover {
    border-color: var(--color-blue);
}

.wiz-steps li.has-thumb button {
    background: var(--thumb) center / cover no-repeat;
    color: transparent;
}

.wiz {
    position: relative;
    padding: 40px;
    border-radius: 22px;
    background: var(--color-darker);
    border: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4);
}

/* Une seule étape visible à la fois ; sans JavaScript, tout le formulaire reste affiché */
html.js .wiz-panel:not(.is-current),
.wiz.is-sent .wiz-panel,
.wiz.is-sent .wiz-actions,
.wiz.is-sent .form-submit-error,
html:not(.js) .wiz-steps,
html:not(.js) .wiz-prev,
html:not(.js) .wiz-next,
html:not(.js) .wiz-chosen,
html:not(.js) .wiz-panel[data-panel="3"],
html.js .wiz[data-step="0"] .wiz-prev,
html.js .wiz:not([data-step="3"]) .btn-submit,
html.js .wiz[data-step="3"] .wiz-next {
    display: none;
}

html:not(.js) .wiz-panel + .wiz-panel {
    margin-top: 44px;
}

/* La carte s'agrandit ou se réduit en douceur d'une étape à l'autre */
.wiz.is-morphing {
    overflow: hidden;
}

.wiz [tabindex="-1"]:focus {
    outline: none;
}

.wiz-panel {
    animation: panelIn 0.9s var(--ease-slow) both;
}

.wiz.is-back .wiz-panel {
    animation-name: panelBack;
}

@keyframes panelIn {
    from { opacity: 0; translate: 50px 0; }
}

@keyframes panelBack {
    from { opacity: 0; translate: -50px 0; }
}

.wiz-panel h3 {
    margin-bottom: 6px;
    font-size: clamp(1.5rem, 3vw, 2rem);
}

.wiz-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px 24px;
}

/* Rappel du projet choisi, en image */
.wiz-chosen {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 6px 18px 6px 6px;
    border-radius: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: var(--color-white);
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.4s ease, background 0.4s ease;
    animation: lbIn 0.9s var(--ease-slow) 0.25s both;
}

.wiz-chosen[hidden] {
    display: none;
}

.wiz-chosen img {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
}

.wiz-chosen small {
    display: block;
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-gray);
}

.wiz-chosen strong {
    display: block;
    font-size: 0.95rem;
}

.wiz-chosen i {
    margin-left: 4px;
    font-size: 0.78rem;
    color: var(--color-pink);
}

.wiz-chosen:hover {
    border-color: rgba(0, 255, 255, 0.4);
    background: rgba(0, 255, 255, 0.05);
}

.on-narrow {
    display: none;
}

.wiz-hint {
    margin-bottom: 28px;
    color: var(--color-gray);
}

/* Étape 1 : choisir son projet en images */
.type-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
}

.wiz-wrap.is-in .type-card {
    animation: typeIn 1.2s var(--ease-slow) calc(0.3s + var(--n, 0) * 0.1s) both;
}

.type-card:nth-child(2) { --n: 1; }
.type-card:nth-child(3) { --n: 2; }
.type-card:nth-child(4) { --n: 3; }
.type-card:nth-child(5) { --n: 4; }

@keyframes typeIn {
    from { opacity: 0; clip-path: inset(35% 0 0 0 round 16px); }
}

#type-error {
    margin-top: 14px;
}

.type-card {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 16px;
    cursor: pointer;
    isolation: isolate;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
    transition: box-shadow 0.5s ease, translate 0.7s var(--ease-slow);
}

.type-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.type-card img {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(0.7) brightness(0.5);
    transition: filter 1s ease, scale 1.6s var(--ease-slow);
}

.type-card::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(to top, rgba(10, 10, 10, 0.95) 12%, transparent 70%);
}

.type-body {
    position: absolute;
    inset: auto 0 0;
    padding: 18px 16px;
}

.type-body strong {
    display: block;
    font-size: 1.05rem;
    line-height: 1.25;
}

.type-body small {
    display: block;
    margin-top: 6px;
    font-size: 0.78rem;
    color: var(--color-light-gray);
}

.type-check {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-size: 0.85rem;
    background: linear-gradient(135deg, var(--color-pink), var(--color-blue));
    scale: 0;
    transition: scale 0.5s var(--ease-back);
}

.type-card:hover img {
    filter: grayscale(0.2) brightness(0.7);
    scale: 1.05;
}

.type-card:hover {
    translate: 0 -6px;
}

.type-card:has(input:focus-visible) {
    box-shadow: 0 0 0 2px var(--color-blue);
}

.type-card:has(input:checked) {
    box-shadow: 0 0 0 2px var(--color-blue), 0 20px 40px rgba(0, 0, 0, 0.45);
    translate: 0 -8px;
}

.type-card:has(input:checked) img {
    filter: none;
    scale: 1.06;
}

.type-card:has(input:checked) .type-check {
    scale: 1;
}

/* Détail du choix : se déplie sous les images */
.type-detail {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.9s var(--ease-slow), margin 0.6s ease;
}

.type-detail.is-open {
    grid-template-rows: 1fr;
    margin-top: 26px;
}

.type-detail-inner {
    min-height: 0;
    overflow: hidden;
}

.type-detail-box {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 20px 30px;
    padding: 24px 26px;
    border-radius: 16px;
    background: rgba(0, 255, 255, 0.04);
    border: 1px solid rgba(0, 255, 255, 0.18);
}

.type-detail-box[hidden] {
    display: none;
}

.type-detail-box {
    animation: lbIn 0.8s var(--ease-slow) both;
}

.type-detail-box h4 {
    margin-bottom: 6px;
    font-size: 1.15rem;
}

.type-detail-box p {
    margin: 0 0 14px;
    font-size: 0.95rem;
    color: var(--color-light-gray);
}

.type-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.type-features span {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.82rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.type-price {
    text-align: right;
    white-space: nowrap;
}

.type-price small {
    display: block;
    font-size: 0.8rem;
    color: var(--color-gray);
}

.type-price strong {
    font-size: 1.5rem;
    background: linear-gradient(to right, var(--color-pink), var(--color-blue));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Champs */
.wiz-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 22px;
}

.wiz-field {
    display: grid;
    gap: 8px;
}

.wiz-field.is-wide {
    grid-column: 1 / -1;
}

.wiz-field > label,
.wiz-field > .wiz-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-light-gray);
}

.wiz-field label small,
.wiz-label small {
    font-weight: 400;
    color: var(--color-gray);
}

.wiz-input {
    width: 100%;
    padding: 13px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: var(--color-white);
    font: inherit;
    caret-color: var(--color-blue);
    color-scheme: dark;
    transition: border-color 0.4s ease, background 0.4s ease, box-shadow 0.4s ease;
}

.wiz-input::placeholder {
    color: #6b6f78;
}

.wiz-input:focus {
    outline: none;
    border-color: rgba(0, 255, 255, 0.5);
    background: rgba(0, 255, 255, 0.04);
    box-shadow: 0 0 0 4px rgba(0, 255, 255, 0.08);
}

textarea.wiz-input {
    min-height: 140px;
    resize: vertical;
    line-height: 1.6;
}

.wiz-field.has-error .wiz-input {
    border-color: rgba(255, 51, 51, 0.55);
}

.wiz-error {
    margin: 0;
    font-size: 0.82rem;
    color: #ff8a93;
}

.wiz-field-foot {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.wiz-field-foot .wiz-count {
    margin-left: auto;
}

.wiz-count.is-near {
    color: var(--color-pink);
}

.wiz-error:empty {
    display: none;
}

.wiz-count {
    justify-self: end;
    font-size: 0.78rem;
    color: var(--color-gray);
}

/* Choix du budget en pastilles */
.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.chips label {
    position: relative;
    cursor: pointer;
}

.chips input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.chips span {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 30px;
    font-size: 0.9rem;
    color: var(--color-light-gray);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: background 0.4s ease, border-color 0.4s ease, color 0.4s ease, scale 0.5s var(--ease-back);
}

.chips label:hover span {
    border-color: rgba(0, 255, 255, 0.45);
    color: var(--color-white);
}

.chips input:focus-visible + span {
    box-shadow: 0 0 0 2px var(--color-blue);
}

.chips input:checked + span {
    border-color: transparent;
    background: linear-gradient(to right, var(--color-pink), var(--color-blue));
    color: var(--color-white);
    scale: 1.04;
}

/* Dépôt de fichiers */
.dropzone {
    position: relative;
    display: grid;
    justify-items: center;
    gap: 8px;
    padding: 30px 20px;
    border-radius: 16px;
    border: 2px dashed rgba(0, 255, 255, 0.28);
    background: rgba(0, 255, 255, 0.02);
    text-align: center;
    cursor: pointer;
    transition: border-color 0.4s ease, background 0.4s ease, scale 0.5s var(--ease-slow);
}

.dropzone i {
    font-size: 1.8rem;
    color: var(--color-blue);
    transition: translate 0.6s var(--ease-back);
}

.dropzone strong {
    font-size: 1rem;
}

.dropzone small {
    color: var(--color-gray);
}

.dropzone input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.dropzone:hover,
.dropzone.is-over {
    border-color: var(--color-blue);
    background: rgba(0, 255, 255, 0.06);
}

.dropzone.is-over {
    scale: 1.02;
}

.dropzone:hover i,
.dropzone.is-over i {
    translate: 0 -6px;
}

.dropzone:has(input:focus-visible) {
    box-shadow: 0 0 0 2px var(--color-blue);
}

.dz-touch {
    display: none;
}

@media (hover: none) {
    .dz-mouse {
        display: none;
    }

    .dz-touch {
        display: inline;
    }
}

.file-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
    list-style: none;
}

.file-list li {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 8px 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: lbIn 0.5s var(--ease-slow) both;
}

.file-list li:has(> img) {
    padding-left: 6px;
}

.file-list img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.file-list li > i {
    color: var(--color-blue);
}

.file-name {
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-list small {
    color: var(--color-gray);
}

.file-list button {
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: var(--color-white);
    cursor: pointer;
}

.file-list button:hover {
    background: rgba(255, 51, 51, 0.4);
}

/* Récapitulatif */
.recap {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 28px;
    align-items: start;
}

.recap-visual {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    padding: 0;
    border: none;
    border-radius: 16px;
    background: none;
    color: var(--color-white);
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.recap-visual:focus-visible {
    outline: 2px solid var(--color-blue);
    outline-offset: 3px;
}

.recap-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: recapIn 1.4s var(--ease-slow) both;
    transition: scale 1.4s var(--ease-slow);
}

@keyframes recapIn {
    from { scale: 1.15; filter: blur(6px) brightness(0.6); }
}

.recap-type {
    position: absolute;
    inset: auto 0 0;
    padding: 50px 16px 16px;
    font-weight: 700;
    background: linear-gradient(to top, rgba(10, 10, 10, 0.95), transparent);
}

.recap-change {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
    background: rgba(10, 10, 10, 0.72);
    backdrop-filter: blur(6px);
    opacity: 0;
    translate: 0 -6px;
    transition: opacity 0.5s ease, translate 0.6s var(--ease-slow);
}

.recap-change i {
    margin-right: 4px;
    color: var(--color-blue);
}

.recap-visual:hover img {
    scale: 1.05;
}

.recap-visual:hover .recap-change,
.recap-visual:focus-visible .recap-change {
    opacity: 1;
    translate: 0 0;
}

@media (hover: none) {
    .recap-change {
        opacity: 1;
        translate: 0 0;
    }
}

.recap-groups {
    display: grid;
    gap: 16px;
}

.recap-group {
    padding: 18px 20px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    animation: lbIn 0.8s var(--ease-slow) both;
}

.recap-group:nth-child(2) { animation-delay: 0.1s; }
.recap-group:nth-child(3) { animation-delay: 0.2s; }

.recap-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.recap-group h4 {
    margin: 0;
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-blue);
}

.recap-head button {
    border: none;
    background: none;
    color: var(--color-pink);
    font: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
}

.recap-group dl {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 6px 14px;
    margin: 0;
    font-size: 0.92rem;
}

.recap-group dt {
    color: var(--color-gray);
}

.recap-group dd {
    margin: 0;
    color: var(--color-white);
    white-space: pre-wrap;
    word-break: break-word;
}

/* Boutons de navigation */
.wiz-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin-top: 34px;
}

.wiz-actions .is-shaking {
    animation: shake 0.5s ease;
}

.wiz.is-sending .btn-submit {
    opacity: 0.75;
    cursor: progress;
}

.wiz.is-sending .btn-submit i {
    animation: planeGo 1.2s ease-in-out infinite;
}

@keyframes planeGo {
    50% { translate: 5px -4px; }
}

.wiz-actions .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.wiz-note {
    margin: 16px 0 0;
    font-size: 0.8rem;
    color: #6b6f78;
}

.wiz-note i {
    margin-right: 6px;
}

.wiz .form-submit-error {
    margin: 18px 0 0;
    color: #ff8a93;
}

/* Écran de confirmation */
.wiz-done {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: grid;
    justify-items: center;
    gap: 8px;
    padding: 50px 16px;
    border-radius: 16px;
    text-align: center;
}

.wiz-done:focus {
    outline: none;
}

.wiz-done-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2;
    filter: blur(14px) saturate(1.2);
    scale: 1.2;
    animation: doneBg 2.4s var(--ease-slow) both;
}

@keyframes doneBg {
    from { opacity: 0; scale: 1.45; }
}

.wiz-done[hidden] {
    display: none;
}

.wiz-done svg {
    width: 96px;
    height: 96px;
    margin-bottom: 10px;
}

.wiz-done circle,
.wiz-done path {
    fill: none;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.wiz-done circle {
    stroke: url(#wizGradient);
    stroke-dasharray: 240;
    stroke-dashoffset: 240;
    animation: draw 1.4s var(--ease-slow) 0.2s forwards;
}

.wiz-done path {
    stroke: var(--color-white);
    stroke-dasharray: 60;
    stroke-dashoffset: 60;
    animation: draw 0.8s var(--ease-slow) 1.2s forwards;
}

@keyframes draw {
    to { stroke-dashoffset: 0; }
}

.wiz-done h3 {
    font-size: 1.8rem;
    margin: 0;
}

.wiz-done p {
    max-width: 520px;
    color: var(--color-light-gray);
}

/* Aide sous l'assistant */
.wiz-more {
    max-width: 1100px;
    margin: 70px auto 0;
}

.wiz-more-title {
    margin: 0;
    text-align: center;
    color: var(--color-gray);
}

.wiz-more-title strong {
    margin-right: 6px;
    color: var(--color-white);
}

.wiz-help {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 26px;
}

.why-strip {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 22px;
    margin-top: 30px;
    list-style: none;
    font-size: 0.9rem;
    color: var(--color-light-gray);
}

.why-strip li {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.why-strip img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.12);
    transition: scale 0.6s var(--ease-back), border-color 0.4s ease;
}

.why-strip li:hover img {
    scale: 1.15;
    border-color: var(--color-blue);
}

/* ----------------------------------------------------------
   11. RESPONSIVE
   ---------------------------------------------------------- */
@media (max-width: 1024px) {
    .tiles {
        grid-template-columns: repeat(2, 1fr);
    }

    .type-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .wiz-help {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .photo-story {
        grid-template-columns: 1fr;
    }

    .photo-story-card {
        margin: -70px 14px 0;
        padding: 32px 26px;
    }

    .panels {
        flex-direction: column;
        height: auto;
    }

    .panel {
        flex: none;
        height: 120px;
        transition: height 1.2s var(--ease-slow), border-color 0.6s ease;
    }

    .panel.is-active {
        height: 540px;
    }

    .panel-closed {
        left: 24px;
        bottom: 24px;
        translate: 0 0;
        writing-mode: horizontal-tb;
        rotate: 0deg;
    }

    .join-banner {
        flex-direction: column;
        align-items: stretch;
        min-height: 0;
    }

    .join-banner::after {
        background: linear-gradient(to top, rgba(10, 10, 10, 0.96) 45%, rgba(10, 10, 10, 0.35));
    }

    .join-text {
        padding: 220px 26px 20px;
    }

    .join-chips {
        position: static;
        translate: none;
        grid-template-columns: 1fr 1fr;
        padding: 0 26px 30px;
    }

    .join-chip:nth-child(even) {
        margin-left: 0;
    }

    .lightbox[open] {
        grid-template-columns: 1fr;
        overflow-y: auto;
    }

    .lb-media {
        min-height: 0;
        max-height: 46vh;
    }

    .lb-img {
        max-height: 46vh;
    }

    .lb-body {
        max-height: none;
        overflow: visible;
        padding: 30px 24px 70px;
    }

    .lb-prev,
    .lb-next {
        top: auto;
        bottom: 12px;
        translate: none;
    }

    .lb-count {
        top: 14px;
        bottom: auto;
        left: 14px;
        padding: 4px 10px;
        border-radius: 20px;
        background: rgba(13, 13, 13, 0.75);
    }

    .bl-featured {
        grid-template-columns: 1fr;
    }

    .bl-featured-media {
        padding: 28px 28px 0;
    }

    .bl-featured-body {
        padding: 26px 28px 34px;
    }

    .pj-empty {
        grid-template-columns: 1fr;
    }

    .wiz {
        padding: 26px 20px;
    }

    .wiz-steps span {
        font-size: 0.72rem;
    }

    .recap {
        grid-template-columns: 1fr;
    }

    .recap-visual {
        aspect-ratio: 16 / 9;
    }
}

@media (max-width: 600px) {
    .page-header.hero-visual {
        min-height: 72vh;
    }

    .tiles {
        grid-template-columns: 1fr;
    }

    .tile {
        height: 340px;
    }

    .wall-col {
        flex-basis: 42%;
    }

    .wall-col:nth-child(3) {
        display: none;
    }

    .polaroid {
        width: 112px;
        left: var(--mx, var(--x));
        top: var(--my, var(--y));
    }

    .polaroid-extra {
        display: none;
    }

    .filtre {
        flex-wrap: nowrap;
        /* aligné à gauche : centré, le début de la liste deviendrait inaccessible au défilement */
        justify-content: flex-start;
        overflow-x: auto;
        max-width: 100%;
        scrollbar-width: none;
    }

    .filtre::-webkit-scrollbar {
        display: none;
    }

    .filtre button {
        white-space: nowrap;
    }

    /* Les cartes de projet défilent à l'horizontale, comme les projets de l'accueil */
    .type-grid {
        display: flex;
        gap: 12px;
        margin: 0 -20px;
        padding: 12px 20px 18px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-padding: 0 20px;
        scrollbar-width: none;
    }

    .type-grid::-webkit-scrollbar {
        display: none;
    }

    .type-card {
        flex: 0 0 64%;
        scroll-snap-align: center;
    }

    .on-wide {
        display: none;
    }

    .on-narrow {
        display: inline;
    }

    .wiz-head {
        flex-direction: column;
        gap: 0;
    }

    .wiz-chosen {
        margin-bottom: 22px;
    }

    .slice-label {
        left: 50%;
        right: auto;
        bottom: 8%;
        translate: -50% 0;
        writing-mode: vertical-rl;
        rotate: 180deg;
        font-size: 0.7rem;
        letter-spacing: 0.2em;
    }

    .slice-label b {
        display: none;
    }

    .file-name {
        max-width: 150px;
    }

    .type-detail-box {
        grid-template-columns: 1fr;
    }

    .type-price {
        text-align: left;
    }

    .wiz-fields {
        grid-template-columns: 1fr;
    }

    .recap-group dl {
        grid-template-columns: 1fr;
        gap: 2px;
    }

    .recap-group dd {
        margin-bottom: 8px;
    }

    .wiz-actions {
        flex-wrap: wrap;
    }

    .wiz-actions .btn-primary {
        width: 100%;
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-bg,
    .wall,
    .wall-col,
    .polaroid,
    .slice,
    .join-banner > img,
    .bl-featured-media img,
    .wiz-panel,
    .recap-group,
    .type-card,
    .type-detail-box,
    .wiz-chosen,
    .recap-visual img,
    .wiz-done-bg,
    .hero-hint i,
    .lb-body > *,
    .file-list li {
        animation: none !important;
    }

    .panel,
    .panel > img,
    .panel-open,
    .tile img,
    .tile p,
    .type-detail,
    .filtre-indicateur {
        transition: none !important;
    }
}

/* ----------------------------------------------------------
   12. TÉLÉPHONES : LISIBILITÉ ET CONFORT
   ---------------------------------------------------------- */
@media (max-width: 900px) {
    /* Portraits : la photo en haut, le texte en dessous, sans cacher le visage */
    .panel.is-active {
        height: 620px;
    }

    .panel.is-active > img {
        height: 62%;
        object-position: var(--pos-m, var(--pos, center));
        /* recadrage sur le visage */
        transform-origin: var(--pos-m, center);
        scale: var(--zoom-m, 1.08);
    }

    .panel.is-active::after {
        background: linear-gradient(to top, rgba(10, 10, 10, 0.98) 40%, rgba(10, 10, 10, 0.4) 62%, transparent 75%);
    }

    .panel-open {
        padding: 26px 24px;
    }

    /* Atouts « Nous rejoindre » : cartes nettes sur une ligne */
    .join-chips {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .join-chip {
        border-radius: 14px;
        padding: 12px 16px;
        font-size: 0.95rem;
    }
}

@media (max-width: 600px) {
    /* Filtre : un fondu à droite montre qu'on peut faire défiler */
    .filtre-wrap {
        -webkit-mask-image: linear-gradient(to right, #000 85%, transparent);
        mask-image: linear-gradient(to right, #000 85%, transparent);
    }

    /* le dernier choix peut sortir du fondu */
    .filtre {
        padding-right: 44px;
    }

    .filtre button b,
    .pj-cat,
    .polaroid figcaption,
    .slice-label,
    .wiz-steps span {
        font-size: 0.75rem;
    }

    /* Polaroïds du blog : entièrement visibles */
    .polaroid {
        width: 104px;
    }

    /* Raisons de nous choisir : une liste nette */
    .why-strip {
        flex-direction: column;
        align-items: flex-start;
        width: fit-content;
        margin-left: auto;
        margin-right: auto;
        gap: 12px;
    }

    .wizard-section {
        padding: 72px 0;
    }

    .hero-hint {
        letter-spacing: 0.1em;
    }
}
