/* ==========================================================================
   Bomoua Portfolio — Main Stylesheet
   ========================================================================== */

/* ------------------------------------------------------------------ */
/*  CSS Custom Properties (Dark Mode = default)                       */
/* ------------------------------------------------------------------ */
:root,
[data-theme="dark"] {
    --color-bg: #0a0a0a;
    --color-bg-alt: #111111;
    --color-surface: #1a1a1a;
    --color-text: #ffffff;
    --color-text-muted: #999999;
    --color-accent: #e63946;
    --color-accent-hover: #ff4d5a;
    --color-border: rgba(255, 255, 255, 0.1);
    --color-overlay: rgba(0, 0, 0, 0.7);
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --transition-speed: 0.4s;
    --transition-ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

[data-theme="light"] {
    --color-bg: #ffffff;
    --color-bg-alt: #f8f8f8;
    --color-surface: #f0f0f0;
    --color-text: #1a1a1a;
    --color-text-muted: #666666;
    --color-border: rgba(0, 0, 0, 0.1);
    --color-overlay: rgba(255, 255, 255, 0.7);
}

/* ------------------------------------------------------------------ */
/*  Reset & base                                                      */
/* ------------------------------------------------------------------ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
    overflow-y: scroll;
    height: 100%;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
    height: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color var(--transition-speed) var(--transition-ease),
                color var(--transition-speed) var(--transition-ease);
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--color-accent-hover);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ------------------------------------------------------------------ */
/*  Theme Toggle                                                      */
/* ------------------------------------------------------------------ */
.theme-toggle {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 1000;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--color-text);
    transition: background-color var(--transition-speed) var(--transition-ease),
                border-color var(--transition-speed) var(--transition-ease),
                transform 0.2s ease;
}

.theme-toggle:hover {
    transform: scale(1.1);
    border-color: var(--color-accent);
}

/* Show sun icon in dark mode, moon icon in light mode */
[data-theme="dark"] .theme-toggle__icon--light,
[data-theme="light"] .theme-toggle__icon--dark {
    display: none;
}

[data-theme="dark"] .theme-toggle__icon--dark,
[data-theme="light"] .theme-toggle__icon--light {
    display: flex;
}

/* ------------------------------------------------------------------ */
/*  Sections — Full viewport                                          */
/* ------------------------------------------------------------------ */
.section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    height: 100vh;
    scroll-snap-align: start;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: var(--color-bg);
    transition: background-color var(--transition-speed) var(--transition-ease);
}

.section--empty {
    text-align: center;
}

/* Background image layer */
.section__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

.section__bg-overlay {
    position: absolute;
    inset: 0;
    background-color: var(--color-bg);
    z-index: 1;
}

/* Section inner layout */
.section__inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    padding: 2rem 4rem;
    height: 100%;
}

/* Photo LEFT: photo first, content second (default grid order) */
.section--photo-left .section__inner {
    grid-template-columns: 1fr 1fr;
}

.section--photo-left .section__photo-wrap {
    order: 1;
}

.section--photo-left .section__content {
    order: 2;
}

/* Photo RIGHT: content first, photo second */
.section--photo-right .section__inner {
    grid-template-columns: 1fr 1fr;
}

.section--photo-right .section__photo-wrap {
    order: 2;
}

.section--photo-right .section__content {
    order: 1;
}

/* Photo CENTER: single column */
.section--photo-center .section__inner {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
    max-width: 800px;
}

/* ------------------------------------------------------------------ */
/*  Photo                                                             */
/* ------------------------------------------------------------------ */
.section__photo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
}

.section__photo {
    max-height: 70vh;
    width: auto;
    max-width: 100%;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.section__photo-wrap--center .section__photo {
    max-height: 40vh;
    margin-bottom: 2rem;
}

/* ------------------------------------------------------------------ */
/*  Content                                                           */
/* ------------------------------------------------------------------ */
.section__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section__title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.section__title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--color-accent);
    margin-top: 1rem;
    border-radius: 2px;
}

.section--photo-center .section__title::after {
    margin-left: auto;
    margin-right: auto;
}

.section__text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--color-text-muted);
}

.section__text p {
    margin-bottom: 1rem;
}

.section__text ul,
.section__text ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.section__text li {
    margin-bottom: 0.3rem;
}

.section__text a {
    color: var(--color-accent);
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.section__text a:hover {
    border-bottom-color: var(--color-accent);
}

/* WPForms / CF7 inside sections */
.section__text .wpcf7,
.section__text .wpforms-container {
    margin-top: 1.5rem;
}

.section__text input[type="text"],
.section__text input[type="email"],
.section__text input[type="tel"],
.section__text textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
    transition: border-color 0.2s ease, background-color var(--transition-speed) var(--transition-ease);
}

.section__text input:focus,
.section__text textarea:focus {
    outline: none;
    border-color: var(--color-accent);
}

.section__text input[type="submit"],
.section__text button[type="submit"] {
    background: var(--color-accent);
    color: #ffffff;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.section__text input[type="submit"]:hover,
.section__text button[type="submit"]:hover {
    background: var(--color-accent-hover);
    transform: translateY(-2px);
}

/* ------------------------------------------------------------------ */
/*  Dot Navigation                                                    */
/* ------------------------------------------------------------------ */
.dot-nav {
    position: fixed;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 900;
}

.dot-nav__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.dot-nav__link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    position: relative;
    flex-direction: row-reverse;
}

.dot-nav__dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--color-text-muted);
    background: transparent;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.dot-nav__link:hover .dot-nav__dot,
.dot-nav__link--active .dot-nav__dot {
    border-color: var(--color-accent);
    background: var(--color-accent);
    transform: scale(1.2);
}

.dot-nav__label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--color-text-muted);
    white-space: nowrap;
    opacity: 0;
    transform: translateX(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.dot-nav__link:hover .dot-nav__label {
    opacity: 1;
    transform: translateX(0);
}

/* ------------------------------------------------------------------ */
/*  Animations — initial states (before visible)                      */
/* ------------------------------------------------------------------ */

/* Fade */
.section--anim-fade .section__photo-wrap {
    opacity: 0;
    transition: opacity 0.8s var(--transition-ease);
}

/* Slide left */
.section--anim-slide-left .section__photo-wrap {
    opacity: 0;
    transform: translateX(-80px);
    transition: opacity 0.8s var(--transition-ease), transform 0.8s var(--transition-ease);
}

/* Slide right */
.section--anim-slide-right .section__photo-wrap {
    opacity: 0;
    transform: translateX(80px);
    transition: opacity 0.8s var(--transition-ease), transform 0.8s var(--transition-ease);
}

/* Slide up */
.section--anim-slide-up .section__photo-wrap {
    opacity: 0;
    transform: translateY(80px);
    transition: opacity 0.8s var(--transition-ease), transform 0.8s var(--transition-ease);
}

/* Zoom */
.section--anim-zoom .section__photo-wrap {
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.8s var(--transition-ease), transform 0.8s var(--transition-ease);
}

/* Content text animation */
.section__content {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s var(--transition-ease) 0.2s, transform 0.6s var(--transition-ease) 0.2s;
}

/* ------------------------------------------------------------------ */
/*  Animations — visible state                                        */
/* ------------------------------------------------------------------ */
.section--visible .section__photo-wrap {
    opacity: 1;
    transform: translate(0, 0) scale(1);
}

.section--visible .section__content {
    opacity: 1;
    transform: translateY(0);
}

/* First section — animate immediately */
.section--active .section__photo-wrap {
    opacity: 1;
    transform: translate(0, 0) scale(1);
}

.section--active .section__content {
    opacity: 1;
    transform: translateY(0);
}

/* ------------------------------------------------------------------ */
/*  Hub / Sommaire — Grille de compétences                            */
/* ------------------------------------------------------------------ */
.hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.hub-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem 1rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    text-decoration: none;
    color: var(--color-text);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.hub-card:hover {
    transform: translateY(-6px);
    border-color: var(--color-accent);
    box-shadow: 0 12px 40px rgba(230, 57, 70, 0.15);
    color: var(--color-text);
}

.hub-card__icon {
    font-size: 2rem;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(230, 57, 70, 0.1);
    color: var(--color-accent);
}

.hub-card__icon svg {
    width: 28px;
    height: 28px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hub-card__title {
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.3;
}

/* ------------------------------------------------------------------ */
/*  Accroche (micro-phrase section)                                   */
/* ------------------------------------------------------------------ */
.accroche {
    font-size: 1.15rem;
    font-style: italic;
    color: var(--color-accent);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    border-left: 3px solid var(--color-accent);
    padding-left: 1rem;
}

/* ------------------------------------------------------------------ */
/*  Sub-headings in section content (h3)                              */
/* ------------------------------------------------------------------ */
.section__text h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-text);
    margin-top: 1.5rem;
    margin-bottom: 0.6rem;
    letter-spacing: 0.01em;
}

.section__text h3:first-child {
    margin-top: 0;
}

/* ------------------------------------------------------------------ */
/*  Tech tags / Outils                                                */
/* ------------------------------------------------------------------ */
.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tech-tag {
    display: inline-block;
    padding: 0.3rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--color-accent);
    background: rgba(230, 57, 70, 0.1);
    border: 1px solid rgba(230, 57, 70, 0.2);
    border-radius: 20px;
    white-space: nowrap;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.tech-tag:hover {
    background: rgba(230, 57, 70, 0.2);
    border-color: var(--color-accent);
}

/* ------------------------------------------------------------------ */
/*  Benefit list                                                      */
/* ------------------------------------------------------------------ */
.benefits {
    list-style: none;
    padding-left: 0 !important;
}

.benefits li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
}

.benefits li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 8px;
    height: 8px;
    background: var(--color-accent);
    border-radius: 50%;
}

/* ------------------------------------------------------------------ */
/*  CTA Buttons                                                       */
/* ------------------------------------------------------------------ */
.section-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn--primary {
    background: var(--color-accent);
    color: #ffffff;
    border-color: var(--color-accent);
}

.btn--primary:hover {
    background: var(--color-accent-hover);
    border-color: var(--color-accent-hover);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 57, 70, 0.3);
}

.btn--outline {
    background: transparent;
    color: var(--color-accent);
    border-color: var(--color-accent);
}

.btn--outline:hover {
    background: var(--color-accent);
    color: #ffffff;
    transform: translateY(-2px);
}

/* ------------------------------------------------------------------ */
/*  Drawer (panneau latéral "En savoir plus")                         */
/* ------------------------------------------------------------------ */
.drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.drawer-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 520px;
    max-width: 90vw;
    height: 100vh;
    height: 100dvh;
    background: var(--color-bg);
    border-left: 1px solid var(--color-border);
    z-index: 2001;
    transform: translateX(100%);
    transition: transform 0.4s var(--transition-ease);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.drawer.is-open {
    transform: translateX(0);
}

.drawer__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--color-border);
    flex-shrink: 0;
}

.drawer__title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-text);
    line-height: 1.3;
    padding-right: 1rem;
}

.drawer__close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    color: var(--color-text);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.drawer__close:hover {
    border-color: var(--color-accent);
    transform: scale(1.1);
}

.drawer__body {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--color-text-muted);
}

.drawer__body h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.drawer__body h3:first-child {
    margin-top: 0;
}

.drawer__body p {
    margin-bottom: 0.75rem;
}

.drawer__body ul,
.drawer__body ol {
    margin-bottom: 1rem;
    padding-left: 1.25rem;
}

.drawer__body li {
    margin-bottom: 0.25rem;
}

.drawer__body .tech-tags {
    margin-top: 0.25rem;
}

.drawer__body .benefits {
    padding-left: 0 !important;
    list-style: none;
}

.drawer__body .section-cta {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
}

/* Body scroll lock when drawer open */
body.drawer-open {
    overflow: hidden;
}

/* ------------------------------------------------------------------ */
/*  Carousel                                                          */
/* ------------------------------------------------------------------ */
.carousel {
    position: relative;
    margin: 1.5rem 0;
}

.carousel__track {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.5rem;
}

.carousel__track::-webkit-scrollbar {
    height: 4px;
}

.carousel__track::-webkit-scrollbar-thumb {
    background: var(--color-text-muted);
    border-radius: 2px;
}

.carousel__slide {
    flex: 0 0 280px;
    scroll-snap-align: start;
}

.carousel__nav {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.carousel__btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    color: var(--color-text);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.carousel__btn:hover {
    border-color: var(--color-accent);
    background: var(--color-accent);
    color: #fff;
}

/* ------------------------------------------------------------------ */
/*  Project Cards                                                     */
/* ------------------------------------------------------------------ */
.project-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-4px);
    border-color: var(--color-accent);
    box-shadow: 0 8px 30px rgba(230, 57, 70, 0.12);
}

.project-card__image {
    width: 100%;
    height: 160px;
    overflow: hidden;
    background: var(--color-bg-alt);
}

.project-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover .project-card__image img {
    transform: scale(1.05);
}

.project-card__image--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    font-size: 2rem;
}

.project-card__body {
    padding: 1rem;
}

.project-card__title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 0.4rem;
}

.project-card__desc {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    line-height: 1.5;
    margin-bottom: 0.6rem;
}

.project-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-bottom: 0.6rem;
}

.project-card__tags .tech-tag {
    font-size: 0.65rem;
    padding: 0.15rem 0.5rem;
}

.project-card__link {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-accent);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.project-card__link:hover {
    color: var(--color-accent-hover);
}

.project-card__link::after {
    content: '\2192';
}

/* ------------------------------------------------------------------ */
/*  Scrollbar styling                                                 */
/* ------------------------------------------------------------------ */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--color-text-muted);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-accent);
}

/* ------------------------------------------------------------------ */
/*  Responsive — Tablet                                               */
/* ------------------------------------------------------------------ */
@media (max-width: 1024px) {
    .section__inner {
        padding: 2rem 3rem;
        gap: 2rem;
    }

    .dot-nav {
        right: 1rem;
    }

    .dot-nav__label {
        display: none;
    }

    .hub-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    }

    .drawer {
        width: 460px;
    }

    .carousel__slide {
        flex: 0 0 240px;
    }
}

/* ------------------------------------------------------------------ */
/*  Responsive — Mobile                                               */
/* ------------------------------------------------------------------ */
@media (max-width: 768px) {
    html {
        scroll-snap-type: y proximity;
    }

    .section {
        min-height: 100vh;
        height: auto;
        min-height: 100svh;
        padding: 2rem 0;
    }

    .section__inner {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem;
        height: auto;
        align-content: center;
    }

    /* On mobile: photo always on top, content below */
    .section__photo-wrap {
        order: 1 !important;
    }

    .section__content {
        order: 2 !important;
    }

    .section__photo {
        max-height: 40vh;
        border-radius: 8px;
    }

    .section__title {
        font-size: clamp(1.5rem, 7vw, 2.5rem);
    }

    .section__text {
        font-size: 0.95rem;
    }

    /* Dot nav — bottom on mobile */
    .dot-nav {
        top: auto;
        bottom: 1rem;
        right: 50%;
        transform: translateX(50%);
    }

    .dot-nav__list {
        flex-direction: row;
        gap: 0.75rem;
    }

    .dot-nav__link {
        flex-direction: column;
    }

    .dot-nav__label {
        display: none;
    }

    .dot-nav__dot {
        width: 10px;
        height: 10px;
    }

    /* Theme toggle */
    .theme-toggle {
        top: 1rem;
        right: 1rem;
        width: 38px;
        height: 38px;
    }

    /* Hub grid on mobile */
    .hub-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .hub-card {
        padding: 1rem 0.75rem;
    }

    .hub-card__icon {
        width: 44px;
        height: 44px;
        font-size: 1.5rem;
    }

    .hub-card__title {
        font-size: 0.75rem;
    }

    /* Buttons on mobile */
    .section-cta {
        flex-direction: column;
    }

    .btn {
        text-align: center;
        justify-content: center;
        width: 100%;
    }

    /* Tech tags on mobile */
    .tech-tags {
        gap: 0.4rem;
    }

    .tech-tag {
        font-size: 0.7rem;
        padding: 0.25rem 0.6rem;
    }

    /* Accroche on mobile */
    .accroche {
        font-size: 1rem;
    }

    /* Drawer full-width on mobile */
    .drawer {
        width: 100vw;
        max-width: 100vw;
    }

    .carousel__slide {
        flex: 0 0 220px;
    }
}

/* ------------------------------------------------------------------ */
/*  Reduced motion                                                    */
/* ------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
        scroll-snap-type: none;
    }

    .section__photo-wrap,
    .section__content {
        opacity: 1 !important;
        transform: none !important;
    }
}
