/* ============================================
   PEG PIXEL - Fichier CSS Principal
   ============================================
   Ce fichier importe tous les autres CSS
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@200..800&family=Nunito+Sans:ital,opsz,wght@0,6..12,200..1000;1,6..12,200..1000&display=swap');

@import url('variables.css');
@import url('reset.css');
@import url('base.css');
@import url('components.css');

/* ============================================
   STYLES SPECIFIQUES ADDITIONNELS
   ============================================ */

/* ----------------------------------------
   PRELOADER (optionnel)
   ---------------------------------------- */

.preloader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--color-bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-logo {
    width: 100px;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; transform: scale(0.95); }
    50% { opacity: 1; transform: scale(1); }
}

/* ----------------------------------------
   SUPPORTS TYPES SECTION
   ---------------------------------------- */

.supports-section {
    position: relative;
    overflow: hidden;
}

/* Conteneur pour les images de fond */
.supports-bg-images {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.supports-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.supports-bg-image.active {
    opacity: 1;
}

/* Overlay sombre sur les images */
.supports-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg,
        rgba(18, 18, 18, 0.6) 0%,
        rgba(18, 18, 18, 0.7) 50%,
        rgba(18, 18, 18, 0.6) 100%);
    z-index: 1;
}

.supports-section > .container {
    position: relative;
    z-index: 2;
}

/* --- Flex container: cards expand on hover --- */
.supports-grid {
    display: flex;
    gap: var(--spacing-md);
    height: 500px;
}

/* --- Card support --- */
.support-item {
    position: relative;
    flex: 1;
    min-width: 0;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    cursor: pointer;
    --mouse-x: 50%;
    --mouse-y: 50%;
    border: 2px solid var(--color-border);
    transition: flex 0.5s cubic-bezier(0.4, 0, 0.2, 1), border-color 0s;
}

.support-item:hover {
    flex: 2.5;
}

/* Image de fond */
.support-item-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-bg-secondary);
    background-image: url('../images/placeholder/placeholder.svg');
    background-size: cover;
    background-position: center;
    z-index: 0;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.support-item:hover .support-item-bg {
    transform: scale(1.05);
}

/* Overlay dégradé */
.support-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.5) 100%);
    z-index: 1;
    transition: background 0.5s ease;
}

.support-item:hover .support-item-overlay {
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.3) 40%, rgba(0,0,0,0.85) 100%);
}

/* Glow en approche — même process que service-card */
.support-item:hover,
.support-item.nearby {
    border-color: transparent;
    background:
        linear-gradient(var(--color-bg-primary), var(--color-bg-primary)) padding-box,
        radial-gradient(300px circle at var(--mouse-x) var(--mouse-y), rgba(0, 180, 216, 0.8) 0%, var(--color-border) 60%) border-box;
}

/* Icône cercle en haut — visible quand non-hover */
.support-item-icon {
    position: absolute;
    top: var(--spacing-lg);
    left: 50%;
    transform: translateX(-50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: rgba(10, 10, 10, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    transition: left 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s ease, border-color 0.3s ease;
}

.support-item-icon svg {
    width: 24px;
    height: 24px;
    color: var(--color-accent-primary);
    transition: color 0.3s ease;
}

/* À l'approche: icône grossit */
.support-item.nearby .support-item-icon {
    transform: translateX(-50%) scale(1.25);
}

/* Au hover: icône glisse vers la gauche */
.support-item:hover .support-item-icon {
    left: var(--spacing-lg);
    transform: translateX(0);
    background-color: var(--color-accent-primary);
    border-color: var(--color-accent-primary);
}

.support-item:hover .support-item-icon svg {
    color: var(--color-bg-primary);
}

/* Contenu texte — en bas */
.support-item-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--spacing-lg);
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

/* Label toujours visible */
.support-item-label {
    font-family: var(--font-primary);
    font-size: clamp(1rem, 1.8vw, 1.4rem);
    font-weight: var(--font-weight-bold);
    text-transform: uppercase;
    letter-spacing: var(--letter-spacing-wide);
    color: var(--color-text-primary);
    line-height: 1.1;
}

/* Wrapper grid pour animer la hauteur fluidement (0fr → 1fr) */
.support-item-reveal {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transition-delay: 0s;
}

.support-item:hover .support-item-reveal {
    grid-template-rows: 1fr;
    transition-delay: 0.3s;
}

.support-item-reveal-inner {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

/* Description — fade in au hover */
.support-item-description {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    line-height: 1.5;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    transition-delay: 0s;
}

.support-item:hover .support-item-description {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.4s;
}

/* Tags */
.support-item-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

/* Chaque tag — cascade individuelle */
.support-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    background-color: rgba(10, 10, 10, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-full);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-medium);
    color: var(--color-text-primary);
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Animation cascade tags */
.support-item:hover .support-tag:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 0.55s; }
.support-item:hover .support-tag:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 0.65s; }
.support-item:hover .support-tag:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: 0.75s; }
.support-item:hover .support-tag:nth-child(4) { opacity: 1; transform: translateY(0); transition-delay: 0.85s; }

/* --- Responsive --- */
@media (max-width: 768px) {
    .supports-grid {
        height: 400px;
    }

    .support-item:hover {
        flex: 2;
    }

    .support-item-description {
        display: none;
    }
}

@media (max-width: 480px) {
    .supports-grid {
        flex-direction: column;
        height: auto;
        gap: var(--spacing-sm);
    }

    .support-item {
        height: 240px;
        flex: none !important;
        transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .support-item:hover {
        height: 400px;
        flex: none !important;
    }

    .support-item-icon {
        top: 50%;
        transform: translate(-50%, -50%);
    }

    .support-item:hover .support-item-icon {
        top: var(--spacing-md);
        left: var(--spacing-md);
        transform: translateX(0);
    }

    .support-item-label {
        font-size: 1.1rem;
    }
}

/* ----------------------------------------
   DELIVERY / LIVRAISON SECTION
   ---------------------------------------- */

.delivery-section {
    text-align: center;
    background-color: var(--color-bg-primary);
    border-bottom: 1px solid var(--color-border);
}

.delivery-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-lg);
    /*background: var(--color-accent-gradient);*/
    border-radius: var(--border-radius-full);
    border: 1px solid var(--color-accent-primary);
    color: var(--color-accent-primary);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: var(--letter-spacing-wide);
    margin-bottom: var(--spacing-lg);
}

.delivery-badge svg {
    width: 16px;
    height: 16px;
    color: var(--color-accent-primary);
}

.cities-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-sm);
    max-width: 800px;
    margin: 0 auto;
}

.city-tag {
    padding: var(--spacing-xs) var(--spacing-md);
    background-color: var(--color-bg-secondary);
    border: 2px solid var(--color-border);
    border-radius: var(--border-radius-full);
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    transition: all var(--transition-fast);
}

.city-tag:hover {
    border-color: var(--color-accent-primary);
    color: var(--color-accent-primary);
}

/* ----------------------------------------
   CTA SECTION
   ---------------------------------------- */

.cta-section {
    position: relative;
    padding: var(--spacing-4xl) 0;
    text-align: center;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-accent-gradient);
    opacity: 0.1;
    z-index: -1;
}

.cta-content h2 {
    margin-bottom: var(--spacing-md);
}

.cta-content p {
    max-width: 600px;
    margin: 0 auto var(--spacing-lg);
}

/* ----------------------------------------
   MATERIALS SHOWCASE
   ---------------------------------------- */

.materials-section {
    background-color: var(--color-bg-secondary);
}

.materials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
}

@media (max-width: 768px) {
    .materials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.material-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    border: 2px solid var(--color-border);
    background: transparent;
    cursor: default;
    transition: transform var(--transition-normal), border-color 0s;
    --mouse-x: 50%;
    --mouse-y: 50%;
}


.material-item::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    pointer-events: none;
    z-index: 0;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.5' numOctaves='2' seed='5'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.5' numOctaves='2' seed='5'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    -webkit-mask-mode: luminance;
    mask-mode: luminance;
    -webkit-mask-size: cover;
    mask-size: cover;
    filter: brightness(1) contrast(1);
    transition: filter 0.6s ease;
}

.material-item:hover::before {
    filter: brightness(0) contrast(100);
}

.material-item:hover,
.material-item.nearby {
    border-color: transparent;
    background:
        linear-gradient(var(--color-bg-primary), var(--color-bg-primary)) padding-box,
        radial-gradient(300px circle at var(--mouse-x) var(--mouse-y), rgba(0, 180, 216, 0.8) 0%, var(--color-border) 60%) border-box;
}

.material-item::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(
        400px circle at var(--mouse-x) var(--mouse-y),
        rgba(0, 180, 216, 0.1) 0%,
        transparent 70%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 5;
}

.material-item.nearby::after {
    opacity: var(--proximity, 1);
}

.material-item:hover::after {
    opacity: 0;
}

.material-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.material-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 10, 15, 0.9) 0%, rgba(10, 10, 15, 0.3) 40%, transparent 70%);
    top: 30%;
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.material-item:hover .material-overlay {
    opacity: 1;
}

.material-content {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.material-icon {
    position: absolute;
    width: 60px;
    height: 60px;
    color: var(--color-accent-primary);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.3s ease;
}

.material-item.nearby .material-icon {
    transform: scale(1.25);
}

.material-item:hover .material-icon {
    transform: scale(0);
    opacity: 0;
}

.material-name {
    font-size: var(--font-size-md);
    text-transform: uppercase;
    letter-spacing: var(--letter-spacing-wide);
    color: var(--color-text-primary);
    font-weight: var(--font-weight-bold);
    display: flex;
    justify-content: center;
}

.material-name .letter {
    display: inline-block;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.material-name .letter.space {
    width: 0.3em;
}

.material-name .letter.exit-up {
    transform: translateY(-50px);
}

.material-item:hover .material-name .letter {
    opacity: 1;
    transform: translateY(0);
}

/* ----------------------------------------
   TIMELINE / PROCESS
   ---------------------------------------- */

.timeline {
    position: relative;
    padding-left: var(--spacing-xl);
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 15px;
    bottom: 0;
    width: 2px;
    background: var(--color-border);
}

.timeline-item {
    position: relative;
    padding-bottom: var(--spacing-xl);
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: calc(-1 * var(--spacing-xl) + 6px);
    width: 20px;
    height: 20px;
    background: var(--color-accent-gradient);
    border-radius: var(--border-radius-full);
}

.timeline-content {
    padding-left: var(--spacing-md);
}

.timeline-content h4 {
    margin-bottom: var(--spacing-xs);
}

.timeline-content p {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
}

/* ----------------------------------------
   STATS / CHIFFRES
   ---------------------------------------- */

.stats-section {
    background-color: var(--color-bg-secondary);
}

/* Stats avec dégradé bleu */
.stats-highlight {
    background: linear-gradient(135deg,
        rgba(0, 180, 216, 0.15) 0%,
        rgba(0, 144, 168, 0.1) 50%,
        rgba(0, 180, 216, 0.05) 100%);
    border-top: 1px solid rgba(0, 180, 216, 0.2);
    border-bottom: 1px solid rgba(0, 180, 216, 0.2);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-lg);
    text-align: center;
}

.stat-item {
    padding: var(--spacing-lg);
}

.stat-number {
    font-family: var(--font-primary);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: var(--font-weight-medium);
    color: var(--color-accent-primary);
    margin-bottom: var(--spacing-xs);
    line-height: 1.1;
}

/* Stats encore plus gros dans la section highlight */
.stats-highlight .stat-number {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: var(--font-weight-semibold);
    text-shadow: 0 0 30px rgba(0, 180, 216, 0.3);
}

.stat-label {
    font-size: var(--font-size-sm);
    text-transform: uppercase;
    letter-spacing: var(--letter-spacing-wide);
    color: var(--color-text-muted);
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ----------------------------------------
   BACK TO TOP BUTTON
   ---------------------------------------- */

.back-to-top {
    position: fixed;
    bottom: var(--spacing-lg);
    right: var(--spacing-lg);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-accent-gradient);
    border-radius: var(--border-radius-full);
    color: var(--color-text-primary);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-normal);
    z-index: var(--z-sticky);
    cursor: pointer;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    box-shadow: var(--shadow-accent);
    transform: translateY(-5px);
}

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

/* ----------------------------------------
   LIGHTBOX (pour galerie)
   ---------------------------------------- */

.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-modal);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: var(--spacing-lg);
    right: var(--spacing-lg);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-full);
    color: var(--color-text-primary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.lightbox-close:hover {
    border-color: var(--color-accent-primary);
    color: var(--color-accent-primary);
}

/* ----------------------------------------
   CLIENTS SECTION
   ---------------------------------------- */

/* Section clients - position relative pour le fond */
#clients {
    position: relative;
    overflow: hidden;
}

#clients .container {
    position: relative;
    z-index: 2;
}

.clients-bg {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    z-index: 1;
}

.clients-bg-img {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center bottom;
    opacity: 0;
    pointer-events: none;
    /* Hidden — canvas dither handles the reveal */
}

.clients-bg-img.active {
    opacity: 0;
}

/* .clients-bg-fade supprimé — le canvas dither gère le reveal */

/* ===== Services Columns Layout ===== */

/* Reveal cards row — flex like support-items */
.service-reveals-row {
    display: flex;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

/* ===== Service Reveal Card (image box below each card) ===== */

.service-reveal-card {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    min-height: 340px;
    flex: 1;
    min-width: 0;
    border: 2px solid var(--color-border);
    transition: flex 0.5s cubic-bezier(0.4, 0, 0.2, 1), border-color 0s;
    --mouse-x: 50%;
    --mouse-y: 50%;
    cursor: default;
}

.service-reveal-card:hover {
    flex: 2;
}

/* Border glow en proximité */
.service-reveal-card.nearby {
    border-color: transparent;
    background:
        linear-gradient(var(--color-bg-primary), var(--color-bg-primary)) padding-box,
        radial-gradient(300px circle at var(--mouse-x) var(--mouse-y), rgba(0, 180, 216, 0.8) 0%, var(--color-border) 60%) border-box;
}

.service-reveal-card:hover .service-reveal-card__img {
    transform: scale(1);
}

.service-reveal-card__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transform: scale(1.08);
    transition: transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.service-reveal-card.text-active .service-reveal-card__img {
    transform: scale(1);
}

.service-reveal-card__overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 10, 0.2);
    pointer-events: none;
    transition: background 0.4s ease;
}

.service-reveal-card.text-active .service-reveal-card__overlay {
    background: rgba(10, 10, 10, 0.65);
}

.service-reveal-card__text {
    position: absolute;
    inset: 0;
    display: flex;
    flex-wrap: wrap;
    align-content: center;
    justify-content: center;
    gap: 6px;
    padding: var(--spacing-xl) var(--spacing-lg);
    margin: 0;
    font-family: var(--font-primary);
    font-size: clamp(1.1rem, 1.3vw, 1.1rem);
    font-weight: var(--font-weight-bold);
    line-height: 1;
    text-align: center;
    pointer-events: none;
    user-select: none;
}

/* Word pills — style Skiper */
.service-reveal-card__text .word {
    display: inline-block;
    padding: 3px 10px;
    border-radius: var(--border-radius-full);
    background: rgba(255, 255, 255, 0);
    color: transparent;
    --pill-opacity: 0.15;
}

@media (max-width: 1024px) and (min-width: 769px) {
    .service-reveal-card {
        min-height: 420px;
    }
}

@media (max-width: 768px) {
    /* On mobile: merge cards + images into one column, interleaved */
    .services-section .grid-3,
    .service-reveals-row {
        display: contents;
    }

    .services-section .grid-3 + .service-reveals-row {
        display: contents;
    }

    /* Wrap both in the parent container as a single column */
    .services-section .container {
        display: flex;
        flex-direction: column;
    }

    /* Order: card1=1, img1=2, card2=3, img2=4, card3=5, img3=6, bouton=7 */
    .services-section .service-card:nth-child(1) { order: 1; }
    .services-section .service-reveal-card:nth-child(1) { order: 2; }
    .services-section .service-card:nth-child(2) { order: 3; }
    .services-section .service-reveal-card:nth-child(2) { order: 4; }
    .services-section .service-card:nth-child(3) { order: 5; }
    .services-section .service-reveal-card:nth-child(3) { order: 6; }

    .services-section .text-center.mt-xl { order: 99; }

    .services-section .container {
        gap: var(--spacing-lg);
    }

    .service-reveal-card {
        flex: none;
        min-height: 280px;
    }

    .service-reveal-card__text {
        font-size: var(--font-size-md);
        padding: var(--spacing-md);
    }

    .service-reveal-card:hover {
        flex: none;
    }
}

/* ===== Services Section Background ===== */
.services-section {
    position: relative;
    overflow: hidden;
}

/* Services bg/canvas supprimés — images dans les cards */

/* ===== Clients Section ===== */
.clients-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

/* ===== Clients Grid ===== */
.clients-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto auto 1fr;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.client-category {
    position: relative;
    display: grid;
    grid-row: span 3;
    grid-template-rows: subgrid;
    justify-items: center;
    padding: var(--spacing-xl) var(--spacing-lg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 2px solid var(--color-border);
    border-radius: var(--border-radius-lg);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0s;
    overflow: hidden;
    --mouse-x: 50%;
    --mouse-y: 50%;
}

/* Gradient radial qui suit la souris - proximité */
.client-category::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(
        650px circle at var(--mouse-x) var(--mouse-y),
        rgba(0, 180, 216, 0.12) 0%,
        transparent 70%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 0;
}

/* Gradient bleu du bas vers le haut - monte au hover, fondu doux en sortie */
.client-category::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 0%;
    opacity: 1;
    background: linear-gradient(to top, rgba(0, 180, 216, 0.5) 0%, rgba(0, 119, 182, 0.3) 50%, transparent 100%);
    pointer-events: none;
    z-index: 0;
}

/* Contour bleu radial en proximité */
.client-category.nearby {
    border-color: transparent;
    transform: translateY(-3px);
    background:
        linear-gradient(var(--color-bg-primary), var(--color-bg-primary)) padding-box,
        radial-gradient(300px circle at var(--mouse-x) var(--mouse-y), rgba(0, 180, 216, 0.8) 0%, var(--color-border) 60%) border-box;
}

.client-category.nearby::before {
    opacity: var(--proximity, 1);
}

/* Au hover direct : on retire l'effet proximité, le dither prend le relais */
.client-category:hover {
    border-color: var(--color-border);
    background: none;
    transform: translateY(-4px);
    box-shadow: 0 0 0 4px var(--color-bg-primary), 0 0 0 8px var(--color-accent-primary), 0 10px 30px rgba(0, 0, 0, 0.3);
}

.client-category:hover::before {
    opacity: 0;
}

.client-category.gradient-in::after {
    transition: height 0.3s ease-out;
    height: 100%;
    opacity: 1;
}

.client-category.gradient-out::after {
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.client-category.active {
    transform: translateY(-4px);
    box-shadow: 0 0 0 4px var(--color-bg-primary), 0 0 0 8px var(--color-accent-primary), 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* S'assurer que le contenu reste au-dessus du dégradé */
.client-category-icon,
.client-category-title {
    position: relative;
    z-index: 1;
}

.client-category-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.client-category-icon svg {
    width: 100%;
    height: 100%;
    color: var(--color-accent-primary);
    transition: transform 0.3s ease;
}

.client-category:hover .client-category-icon svg {
    transform: scale(1.1);
}

.client-category-title {
    font-family: var(--font-secondary);
    font-size: var(--font-size-lg);
    font-weight: 500;
    color: var(--color-text-primary);
    text-align: center;
    align-self: end;
}

/* Client Category Description (inside card) */
.client-category-description {
    position: relative;
    z-index: 1;
    font-size: var(--font-size-base);
    color: var(--color-text-secondary);
    text-align: center;
    line-height: var(--line-height-relaxed);
    border-top: 1px solid var(--color-border);
    padding-top: var(--spacing-md);
}

/* ----------------------------------------
   RESPONSIVE ADJUSTMENTS
   ---------------------------------------- */

@media (max-width: 1200px) {
    .hero-title {
        font-size: clamp(2rem, 4vw, 3.5rem);
    }
}

@media (max-width: 768px) {
    .hero-content {
        padding: var(--spacing-lg);
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .hero-cta .btn {
        width: 100%;
        max-width: 300px;
    }

    .client-types {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-sm);
        justify-items: center;
    }

    .client-badge {
        width: 100%;
        justify-content: center;
    }

    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }

    .client-category {
        padding: var(--spacing-lg) var(--spacing-md);
    }

    .client-category-icon {
        width: 36px;
        height: 36px;
    }

    .client-category-title {
        font-size: var(--font-size-sm);
    }

    .client-details {
        padding: var(--spacing-lg);
    }

    .client-details h3 {
        font-size: var(--font-size-lg);
    }
}

@media (max-width: 480px) {
    .clients-grid {
        grid-template-columns: repeat(1, 1fr);
    }

}

/* ============================================
   PAGE ATELIER — Composants spécifiques
   ============================================ */


/* Gallery atelier : pas cliquable */
.gallery-grid .project-card {
    cursor: default;
}

/* ----------------------------------------
   PREVIEW PANEL — Image sous les cards
   ---------------------------------------- */

.preview-panel {
    margin-top: var(--spacing-xl);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    aspect-ratio: 21/9;
}

.preview-panel-inner {
    position: relative;
    width: 100%;
    height: 100%;
}

.preview-panel .preview-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.03);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.preview-panel .preview-img.active {
    opacity: 1;
    transform: scale(1);
}

