/* ═══ CSS TRACKING — Ne pas supprimer ═══ */
/* Tracking fichier */

/* Tracking breakpoints (mutuellement exclusifs) */

/* ════════════════════════════════════════ */

/* ════════════════════════════════════════════════════════════════════════════
   MEDIA QUERIES RESPONSIVE (existantes - NE PAS MODIFIER L'ORDRE)
   ════════════════════════════════════════════════════════════════════════════ */
@layer responsive {
/* ============================================================================
   KAPTIVIA RESPONSIVE v7.0.0 — Bible Viewport 7.0.0
   ============================================================================
   
   TABLE DES MATIÈRES
   ──────────────────
   1. BASE — Styles non-responsive
      1.1 Export HTML
      1.2 Animations de page
      1.3 Accessibilité globale
      1.4 Overflow fixes
      1.5 Boutons de suppression contextuelle
   
   2. BREAKPOINTS DESCENDANT (max-width)
      2.1 Tablettes (1032px → 744px)
      2.2 Smartphones (576px → 360px)
   
   3. BREAKPOINTS ASCENDANT (min-width)
      3.1 Tablettes (744px → 992px)
      3.2 Desktop (1024px → 2560px)
   
   4. ORIENTATIONS
      4.1 Landscape compact (mobiles)
      4.2 iPad/Tablettes landscape
   
   5. MEDIA FEATURES
      5.1 Touch/Hover
      5.2 Reduced Motion
      5.3 Print
   
   ════════════════════════════════════════════════════════════════════════════
   RÉFÉRENCE BREAKPOINTS — Bible Viewport 7.0.0
   ════════════════════════════════════════════════════════════════════════════
   
   DESKTOP (min-width ascendant) :
   ───────────────────────────────
   [B] 2560px : QHD / Studio Display / iMac 27"
   [B] 2240px : iMac 24" M1/M3
   [B] 1920px : Full HD / Desktop standard
   [B] 1728px : MacBook Pro 16" M1-M4
   [B] 1710px : MacBook Air 15" M2-M4
   [B] 1512px : MacBook Pro 14" M1-M4
   [B] 1470px : MacBook Air 13" M2-M4
   [B] 1400px : Desktop XXL
   [B] 1366px : Windows Budget 15"
   [B] 1200px : Desktop XL
   [B] 1024px : iPad Pro 12.9" / Air 13" landscape
   [B] 992px  : Tablettes paysage
   [B] 768px  : Desktop base (nav horizontale)
   [B] 744px  : iPad Mini 6/7
   
   TABLETTES (max-width descendant) :
   ──────────────────────────────────
   [B] 1032px : iPad Pro 13" M4
   [B] 1024px : iPad Pro 12.9"
   [B] 834px  : iPad Pro 11"
   [B] 820px  : iPad 10th / Air 11"
   [B] 810px  : iPad 9th
   [B] 768px  : Tablettes portrait (menu hamburger)
   [B] 744px  : iPad Mini portrait
   
   SMARTPHONES (max-width descendant, portrait) :
   ──────────────────────────────────────────────
   [C] 576px  : Mobiles paysage / grands écrans
   [B] 480px  : Limite haute mobiles
   [B] 440px  : iPhone 16 Pro Max
   [B] 430px  : iPhone 16+/15+/15 Pro Max
   [B] 428px  : iPhone 14+/13 Pro Max (Bible D3)
   [B] 412px  : Pixel 9/8/7, Galaxy Ultra, OnePlus
   [B] 402px  : iPhone 16 Pro
   [B] 393px  : iPhone 16/15/15 Pro/14 Pro
   [B] 390px  : iPhone 16e/14/13/12
   [B] 384px  : Galaxy S24/S23/S22 Ultra/+
   [B] 375px  : iPhone SE, iPhone 13/12 Mini
   [B] 360px  : Galaxy S24/S23/S22, A55/A54, Xiaomi
   
   ORIENTATIONS :
   ──────────────
   [C] landscape + max-height 500px : Paysage mobiles compact
   [B] landscape + 744px-820px      : iPad landscapes
   
   ACCESSIBILITÉ :
   ───────────────
   prefers-reduced-motion : Désactive animations
   print                  : Styles impression
   
   ============================================================================ */

/* ════════════════════════════════════════════════════════════════════════════
   1. BASE — STYLES NON-RESPONSIVE
   ════════════════════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────────────────────────────
   1.1 Export HTML
   ───────────────────────────────────────────────────────────────────────────── */

.export-value {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    min-height: 1.5rem;
    background: var(--gray-50);
    color: var(--gray-900);
}

/* ─────────────────────────────────────────────────────────────────────────────
   1.2 Animations de page
   Note: pageEnter est dans le style inline du HTML pour éviter le FOUC
   ───────────────────────────────────────────────────────────────────────────── */

body.page-exit .main {
    animation: pageExit 0.25s var(--ease) forwards;
    will-change: opacity, transform;
}

body.page-ready .main {
    will-change: auto;
}

@keyframes pageExit {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-8px);
    }
}

/* ─────────────────────────────────────────────────────────────────────────────
   1.3 Accessibilité globale
   ───────────────────────────────────────────────────────────────────────────── */

body {
    font-size: 1rem;
}

.home__tagline {
    font-size: 1.6rem !important;
}

.home__intro-text,
.home__cta-desc,

.faq-section__subtitle,

.home__intro-text {
    line-height: 1.7;
}

.faq-item__question,
.infos-item__question {
    min-height: 48px;
}

/* ─────────────────────────────────────────────────────────────────────────────
   1.4 Overflow fixes
   ───────────────────────────────────────────────────────────────────────────── */

html {
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
    max-width: 100vw;
}

.app,
.main,
.home,
.faq-section,
.infos-section {
    max-width: 100vw;
    overflow-x: hidden;
}

/* ─────────────────────────────────────────────────────────────────────────────
   1.5 Boutons de suppression contextuelle
   ───────────────────────────────────────────────────────────────────────────── */

.summary__bloc-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.summary__bloc-delete {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.5rem;
    background: transparent;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--duration) ease;
    opacity: 0.8;
}

.summary__bloc-delete svg {
    width: 14px;
    height: 14px;
    stroke: var(--danger-600);
    stroke-width: 2;
    fill: none;
}

.summary__bloc-delete:hover {
    opacity: 1;
    background: var(--danger-50);
    border-color: var(--danger-600);
    transform: scale(1.02);
}

/* ════════════════════════════════════════════════════════════════════════════
   2. BREAKPOINTS DESCENDANT (max-width)
   ════════════════════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────────────────────────────
   2.1 Tablettes (1032px → 744px)
   ───────────────────────────────────────────────────────────────────────────── */

/* [B] 1032px : iPad Pro 13" M4 */
@media (max-width: 1032px) {
    .container {
        max-width: 980px;
    }
}

/* [B] 1024px : iPad Pro 12.9" / Air 13" */
@media (max-width: 1024px) {
    :root {
        --header-h: calc(54px + var(--safe-top));
    }

    /* ─── SAFE AREA INSETS (iPhone notch, Dynamic Island) ───
       Ce bloc regroupe les ajustements safe-area pour plusieurs composants.
       Conservé ici car c'est une "couche de préoccupation" transversale.
       Les media queries spécifiques aux composants sont dans leurs fichiers respectifs.
    */
    @supports (padding: max(0px)) {
        .header {
            padding-left: max(0.5rem, env(safe-area-inset-left));
            padding-right: max(0.5rem, env(safe-area-inset-right));
        }
        .footer {
            padding-bottom: max(0.75rem, env(safe-area-inset-bottom));
            padding-left: max(1rem, env(safe-area-inset-left));
            padding-right: max(1rem, env(safe-area-inset-right));
        }
        .modal {
            padding-bottom: max(1rem, env(safe-area-inset-bottom));
        }
        .summary__actions {
            padding-bottom: max(1rem, env(safe-area-inset-bottom));
        }
        .faq-section {
            min-height: 100vh;
            min-height: 100dvh;
        }
    }

    .grid {
        --grid-min: 280px;
        --grid-gap: 1rem;
    }

    .header__inner {
        --header-inner-gap: 0.5rem;
        padding: 0 0.75rem;
        gap: var(--header-inner-gap);
    }

    .logo {
        flex-basis: auto;
        min-width: auto;
    }

    .logo__img {
        height: 32px;
        max-width: 140px;
    }

    .header__actions {
        min-width: auto;
        margin-left: auto;
    }

    .header .btn:not(.btn-summary) span:not(.btn__badge):not(.btn__star) {
        display: none;
    }

    .nav-main__btn {
        padding: 0.4rem 0.625rem;
        font-size: 0.8rem;
    }

}

/* [B] 834px : iPad Pro 11" M4 */

/* [B] 820px : iPad 10th / Air 11" / Air 10.9" */

/* [B] 810px : iPad 9th */

/* [B] 768-1024px : Tablettes intermédiaires */

/* [B] 767px : Tablettes portrait — Menu hamburger */
/* Point de bascule navigation : horizontale → hamburger
   ⚠️ Header/Nav/Logo/Menu-toggle définis dans Kaptivia-critical.css (anti-CLS)
*/
@media (max-width: 767px) {
    :root {
        /* --header-h: 56px défini dans critical.css */
        --card-size-1: auto;
        --card-size-2: auto;
        --card-size-3: auto;
        --mobile-copy-size: clamp(0.88rem, 3.1vw, 1rem);
        --mobile-detail-size: clamp(0.72rem, 2.35vw, 0.84rem);
    }

    /* Bouton Services - ajustement mobile */
    .btn-services {
        right: var(--space-2xs);
        padding: var(--space-3xs) var(--space-xs);
        font-size: var(--text-xs);
    }

    .grid {
        grid-template-columns: 1fr;
        gap: var(--space-sm);
    }

    /* header__actions, menu-toggle, nav-main → définis dans critical.css */

    .nav-sub {
        padding: 0.25rem 0.5rem;
        max-height: 70px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .nav-sub__inner {
        padding: 0.25rem 0.4rem;
        gap: 0.25rem;
        flex-wrap: nowrap;
        width: max-content;
    }

    .nav-sub__item {
        padding: 0.25rem 0.5rem;
        font-size: 0.7rem;
        white-space: nowrap;
    }

    .footer {
        padding: 0.75rem 1rem;
    }

    /* .footer__copy défini dans critical.css */

    /* ─── HOME MOBILE (variantes desktop/mobile uniquement) ─── */
    /* Base .home définie dans critical.css */
    
    .home__hero {
        margin-bottom: 0;
    }

    .home__intro-text--desktop {
        display: none;
    }

    .home__intro-text--mobile {
        display: block;
        font-size: 1.15rem;
        line-height: 1.55;
        text-align: center;
    }

    .home__intro-text--mobile .nowrap {
        white-space: nowrap;
    }

    .home__intro-highlight--desktop {
        display: none;
    }

    .home__intro-highlight--mobile {
        display: block;
        font-size: 0.95rem;
        line-height: 1.6;
        margin-top: 1rem;
    }

    /* ─── HOME PRESENTATION (mobile) ───
       Garder la narration visuelle: les mockups restent visibles,
       redimensionnés en rail horizontal swipeable.
    */
    .home__presentation-layout {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        align-content: start;
        gap: 0.75rem;
        padding-bottom: 0.25rem;
    }

    .home__content--presentation-clean {
        width: 100%;
        margin-left: 0;
        padding: 0 clamp(0.1rem, 1vw, 0.4rem);
        justify-self: stretch;
    }

    .home__presentation-text {
        margin-top: clamp(0.65rem, 2.2vw, 0.95rem);
        width: 100%;
        max-width: none;
        font-size: var(--mobile-copy-size);
        line-height: 1.55;
        text-align: left;
    }

    .home__presentation-btn {
        margin-left: 0;
        margin-top: clamp(0.85rem, 2.8vw, 1.1rem);
    }

    .home__presentation-mockups {
        display: block;
        grid-column: 1;
        grid-row: 2;
        width: 100%;
        height: auto;
        min-height: 0;
        padding: 0;
        overflow: visible;
    }

    .home__mockup-gallery {
        display: flex;
        position: relative;
        width: 100%;
        height: auto;
        gap: 0.5rem;
        padding: 0.2rem 0.1rem 0.35rem;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    .home__mockup-container {
        position: relative;
        flex: 0 0 clamp(8.4rem, 42vw, 11rem);
        width: clamp(8.4rem, 42vw, 11rem);
        transform: none !important;
        top: auto !important;
        right: auto !important;
        bottom: auto !important;
        left: auto !important;
        scroll-snap-align: start;
        transition: none;
    }

    .home__mockup-container::after {
        display: none;
    }

    .home__mockup-container .home__mockup {
        width: 100%;
        height: clamp(6rem, 30vw, 7.6rem) !important;
        aspect-ratio: 16 / 10 !important;
        border-radius: 12px;
    }

    .home__mockup-media {
        object-position: center center;
    }

    @media (hover: none) and (pointer: coarse) {
        .home__mockup-gallery {
            scrollbar-width: none;
        }

        .home__mockup-gallery::-webkit-scrollbar {
            display: none;
        }
    }

    /* ─── SECTION HEADER MOBILE ─── */
    .section-header {
        padding: 3px 0 0.75rem;
    }

    .section-header__line {
        width: 50px;
        margin-bottom: 0.5rem;
    }

    .section-header__title {
        font-size: 1rem;
        letter-spacing: 0.1em;
    }

}

/* [B] 744px : iPad Mini 6/7 portrait */
@media (max-width: 744px) and (orientation: portrait) {
    body {
        padding-bottom: env(safe-area-inset-bottom);
    }

    .container {
        padding: 0 10px;
    }
}

/* ─────────────────────────────────────────────────────────────────────────────
   2.2 Smartphones (576px → 360px)
   ───────────────────────────────────────────────────────────────────────────── */

/* [C] 576px : Mobiles paysage / grands écrans mobiles */
@media (max-width: 576px) {
    .home {
        padding: var(--space-sm) var(--space-xs) var(--space-xs);
    }

    .home__container {
        gap: var(--space-sm);
    }

    .home__logo {
        max-width: 210px;
    }

    .home__tagline {
        font-size: var(--text-lg);
    }

    .home__intro-text--mobile {
        font-size: var(--text-base);
    }

    .home__presentation-text {
        font-size: clamp(0.9rem, 3.25vw, 0.98rem);
        line-height: 1.58;
    }

    .home__cta-card {
        padding: var(--space-sm) var(--space-sm);
    }

    .home__cta-logo {
        width: 4.8rem;
    }

    .home__cta-title {
        font-size: var(--text-xl);
    }

    .home__cta-desc {
        font-size: var(--text-sm);
    }

    .home__cta-btn {
        font-size: var(--text-base);
        padding: var(--space-xs) var(--space-sm);
    }

    .faq-section {
        padding: 0 0.5rem 1.5rem;
    }

    .faq-tab {
        padding: 0.5rem 0.4rem;
        font-size: 0.7rem;
        min-height: 44px;
    }

    .faq-tab__icon-img {
        height: 1.1rem;
    }

    .faq-panel__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3rem;
        padding: 0.625rem 0.875rem;
    }

    .faq-panel__desc {
        display: block;
        font-size: var(--mobile-detail-size);
        line-height: 1.35;
        color: var(--gray-600);
    }

    .faq-item__question {
        padding: 0.625rem 0.875rem;
        font-size: 0.75rem;
        min-height: 44px;
    }

    .faq-item__answer-inner {
        font-size: 0.75rem;
        padding: 0.625rem 0.875rem;
    }

    .infos-section {
        padding: 0 0.5rem 1.5rem;
    }

    .infos-tab {
        padding: 0.5rem 0.4rem;
        font-size: 0.7rem;
        min-height: 44px;
    }

    .infos-panel__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3rem;
        padding: 0.625rem 0.875rem;
    }

    .infos-panel__desc {
        display: block;
        font-size: var(--mobile-detail-size);
        line-height: 1.35;
        color: var(--gray-600);
    }

    .infos-item__question {
        padding: 0.625rem 0.875rem;
        font-size: 0.75rem;
        min-height: 44px;
    }

    .infos-item__answer-inner {
        font-size: 0.75rem;
        padding: 0.625rem 0.875rem;
    }

    .summary__item {
        grid-template-columns: 1.25rem minmax(0, 1fr) auto;
        grid-template-rows: auto auto;
        font-size: 0.75rem;
        gap: 0.3rem;
        align-items: start;
    }

    .summary__item-number {
        grid-column: 1;
        grid-row: 1 / span 2;
        margin-top: 0.1rem;
    }

    .summary__item-content {
        grid-column: 2;
        grid-row: 1;
    }

    .summary__item-price {
        display: block;
        grid-column: 2;
        grid-row: 2;
        font-size: var(--mobile-detail-size);
        line-height: 1.3;
        text-align: left;
        margin-top: 0.1rem;
        white-space: normal;
    }

    .summary__item-delete {
        grid-column: 3;
        grid-row: 1 / span 2;
        align-self: center;
    }

    .summary__btn {
        font-size: 0.8rem;
        padding: 0.625rem 1rem;
        min-height: 44px;
    }

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

    .form-grid--compact {
        gap: 0.625rem;
    }

    .form-group input,
    .form-group select {
        min-height: 44px;
        font-size: 1rem;
    }

    .summary__item-delete {
        min-width: 44px;
        min-height: 44px;
        width: 44px;
        height: 44px;
    }

    .summary__item-delete svg {
        width: 18px;
        height: 18px;
    }

    .cta-section {
        padding: 1.5rem 0.75rem;
    }

    .cta-section__logo {
        width: 50px;
    }

    .cta-section .composed-title--cta {
        --composed-title-main-size: clamp(1rem, 3.3vw, 2.85rem);
        --composed-title-accent-size: clamp(1.05rem, 3.5vw, 2.95rem);
    }

    .cta-section__text {
        font-size: 0.85rem;
    }

    .card__inner {
        padding: 0.875rem;
        min-height: 140px;
    }

    .card__number {
        width: 22px;
        height: 22px;
        font-size: 0.65rem;
    }

    .card__star {
        width: 32px;
        height: 32px;
    }

    .card__title {
        font-size: 0.9rem;
    }

    .card__desc {
        font-size: 0.75rem;
    }
}

/* [C] 480px : Limite haute mobiles */
@media (max-width: 480px) {
    :root {
        --mobile-copy-size: clamp(0.84rem, 3.5vw, 0.94rem);
        --mobile-detail-size: clamp(0.7rem, 2.9vw, 0.8rem);
    }

    .home__mockup-container {
        flex-basis: clamp(7.8rem, 44vw, 9.8rem);
        width: clamp(7.8rem, 44vw, 9.8rem);
    }

    .home__mockup-container .home__mockup {
        height: clamp(5.5rem, 31vw, 6.9rem) !important;
    }

    .summary__criteria-bloc-icon--info {
        width: 40px;
        height: 40px;
    }

    .summary__criteria-bloc-icon-emoji {
        font-size: 1.25rem;
    }
}

/* [B] 440px : iPhone 16 Pro Max */
@media (max-width: 440px) and (orientation: portrait) {
    .home__cta-title {
        font-size: 1.3rem;
    }
}

/* [B] 430px : iPhone 16+/15+/15 Pro Max/14 Pro Max */
@media (max-width: 430px) and (orientation: portrait) {
    .home__cta-title {
        font-size: 1.28rem;
    }
}

/* [B] 412px : Pixel 9/8/7, Galaxy S21/S20 Ultra, OnePlus */
@media (max-width: 412px) and (orientation: portrait) {
    .home__cta-title {
        font-size: 1.26rem;
    }

}

/* [B] 402px : iPhone 16 Pro */
@media (max-width: 402px) and (orientation: portrait) {
    .home__cta-title {
        font-size: 1.24rem;
    }

}

/* [B] 393px : iPhone 16/15/15 Pro/14 Pro, Pixel 5 */
@media (max-width: 393px) and (orientation: portrait) {
    .home__cta-title {
        font-size: 1.22rem;
    }

    .faq-item__question {
        padding: 11px 12px;
    }
}

/* [B] 390px : iPhone 16e/14/13/12 */
@media (max-width: 390px) and (orientation: portrait) {
    .home__cta-title {
        font-size: 1.2rem;
    }

}

/* [B] 384px : Galaxy S24/S23/S22 Ultra/+ */
@media (max-width: 384px) and (orientation: portrait) {
    .home__cta-title {
        font-size: 1.18rem;
    }

}

/* [B] 375px : iPhone SE, iPhone 13/12 Mini */
@media (max-width: 375px) {
    :root {
        --header-h: calc(52px + var(--safe-top));
        --nav-drawer-w: clamp(220px, 78vw, 262px);
        --nav-drawer-max-h: min(470px, calc(100dvh - var(--header-h) - 0.75rem));
    }

    .menu-toggle {
        padding: 0.4rem 0.6rem;
        gap: 0.3rem;
    }

    .menu-toggle__icon {
        width: 16px;
        height: 16px;
    }

    .menu-toggle__text {
        font-size: 0.75rem;
    }

    .logo__img {
        height: 24px;
    }

    .header__actions .btn--primary {
        padding: 0.35rem 0.5rem;
        min-height: 36px;
    }

    .header__actions .btn--primary span:not(.btn__badge):not(.btn__star) {
        font-size: 0.7rem;
    }

    .header__actions .btn--primary svg {
        width: 12px;
        height: 12px;
    }

    .nav-main__btn {
        padding: 0.75rem 0.875rem;
        font-size: 0.9375rem;
        min-height: 44px;
    }

    .home__cta-card {
        padding: 1rem 0.75rem !important;
    }

    .home__cta-title {
        font-size: 1.15rem !important;
    }

    .home__cta-desc {
        font-size: 0.8rem !important;
    }

}

/* [B] 360px : Galaxy S24/S23/S22, A55/A54, Xiaomi, Huawei */
@media (max-width: 360px) and (orientation: portrait) {

    .home__cta-title {
        font-size: 1.12rem !important;
    }
}

/* ════════════════════════════════════════════════════════════════════════════
   3. BREAKPOINTS ASCENDANT (min-width)
   ════════════════════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────────────────────────────
   3.1 Tablettes (744px → 992px)
   ───────────────────────────────────────────────────────────────────────────── */

/* [B] 744px : iPad Mini 6/7 */
@media (min-width: 744px) {
    .grid {
        --grid-min: 300px;
    }

}

/* [B] 768px : Tablettes portrait (aucun override dédié) */
/* ─────────────────────────────────────────────────────────────────────────────
   3.2 Desktop (1024px → 2560px)
   ───────────────────────────────────────────────────────────────────────────── */

/* [B] 1024px : iPad Pro 12.9" landscape, laptops (aucun override dédié) */
/* [B] 1366px : Windows Budget 15" */
@media (min-width: 1366px) {
    .container {
        max-width: var(--container-xl, 1536px);
    }
}

/* [B] 1400px : Desktop XXL */
@media (min-width: 1400px) {
    .grid {
        --grid-min: 340px;
    }
}

/* [B] 1470px : MacBook Air 13" M2-M4 */
@media (min-width: 1470px) {
    .container {
        max-width: 1380px;
    }
}

/* [B] 1710px : MacBook Air 15" M2-M4 */
@media (min-width: 1710px) {
    .container {
        max-width: 1600px;
    }

    .grid {
        --grid-min: 360px;
        --grid-gap: 2rem;
    }
}

/* [B] 1920px : Full HD / Desktop standard */
@media (min-width: 1920px) {
    .container {
        max-width: 1800px;
    }
}

/* [B] 2560px : QHD / Studio Display / iMac 27" */
@media (min-width: 2560px) {
    .container {
        max-width: 2200px;
    }

    .logo {
        display: flex;
    }

    .logo__img {
        height: 22px;
        max-width: 80px;
    }

    .header__inner {
        justify-content: space-between;
    }

    .header__actions .btn--primary span:not(.btn__badge):not(.btn__star) {
        display: none;
    }

    .header__actions .btn--clear-selection.is-inactive {
        display: flex;
    }

    .faq-section {
        padding: 1rem 1rem 1.5rem;
        min-height: auto;
    }

    .home {
        padding: 0.5rem 1rem;
        min-height: auto;
    }

    .home__cta {
        padding: 0.75rem 0;
    }

    .home__cta-card {
        padding: 0.75rem !important;
    }

    .home__cta-logo {
        width: 3rem !important;
    }

    .home__cta-title {
        font-size: 1rem !important;
    }

}

/* ─────────────────────────────────────────────────────────────────────────────
   4.2 iPad/Tablettes landscape
   ───────────────────────────────────────────────────────────────────────────── */

/* [B] iPad Mini paysage */

/* [B] iPad Air/10th paysage */

/* ════════════════════════════════════════════════════════════════════════════
   5. MEDIA FEATURES
   ════════════════════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────────────────────────────
   5.1 Touch/Hover
   ───────────────────────────────────────────────────────────────────────────── */

@media (max-width: 1032px), (hover: none) {
    * {
        -webkit-tap-highlight-color: transparent;
    }

    html {
        overscroll-behavior-y: none;
    }
}

/* ─────────────────────────────────────────────────────────────────────────────
   5.2 Reduced Motion — RÈGLE CENTRALISÉE UNIQUE
   ─────────────────────────────────────────────────────────────────────────────
   ⚠️ NE PAS ajouter d'autres règles prefers-reduced-motion ailleurs.
   Cette règle globale couvre TOUS les éléments du site.
   Référencée depuis : Kaptivia-critical.css
   ───────────────────────────────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
    /* Désactive toutes les animations et transitions */
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    /* Page transitions simplifiées */
    body.page-enter .main,
    body.page-exit .main {
        animation: none;
        opacity: 1;
        transform: none;
    }

    body.page-enter .main {
        animation: pageEnterSimple var(--duration) ease forwards;
    }

    body.page-exit .main {
        animation: pageExitSimple 0.15s ease forwards;
    }

    @keyframes pageEnterSimple {
        0% { opacity: 0; }
        100% { opacity: 1; }
    }

    @keyframes pageExitSimple {
        0% { opacity: 1; }
        100% { opacity: 0; }
    }
}

/* ─────────────────────────────────────────────────────────────────────────────
   5.2b Nav Footer — Responsive
   ───────────────────────────────────────────────────────────────────────────── */

@media (max-width: 480px) {
    .nav-footer {
        gap: 0.5rem;
        padding: 0.75rem 1rem;
        padding-bottom: max(0.75rem, env(safe-area-inset-bottom, 0px));
    }
    .nav-footer__btn {
        padding: 0.4rem 0.625rem;
        font-size: 0.75rem;
    }
}

/* ─────────────────────────────────────────────────────────────────────────────
   5.2.1 Showcase — Responsive
   ───────────────────────────────────────────────────────────────────────────── */

@media (max-width: 1024px) {
    .showcase {
        --showcase-card-gap: 14px;
    }

    .showcase__card {
        flex: 0 0 calc((100% - 2 * var(--showcase-card-gap)) / 3);
    }
}

@media (max-width: 767px) {
    .showcase {
        --showcase-card-gap: 8px;
        padding: 0 0 var(--space-lg);
    }

    .showcase__card-bg.has-photo.is-landscape::before {
        background-size: 100% auto;
    }

    .showcase__card-bg.has-photo.is-portrait::before {
        background-size: auto 100%;
    }

    .showcase__inner {
        padding: 0 clamp(0.22rem, 1.35vw, 0.5rem) 0;
    }

    .showcase__card {
        flex: 0 0 calc((100% - 2 * var(--showcase-card-gap)) / 3);
        height: clamp(184px, 44vw, 248px);
        aspect-ratio: auto;
        border-radius: clamp(16px, 5.3vw, 26px);
        contain: layout paint;
        isolation: isolate;
    }

    .showcase__card-content {
        padding: 0 0.58em 0.6em;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        gap: 0.17rem;
        transform: translateZ(0);
        backface-visibility: hidden;
    }

    .showcase__card-title {
        font-size: clamp(0.58rem, 1.72vw, 0.75rem);
        font-weight: 900;
        position: static;
        top: auto;
        left: auto;
        right: auto;
        bottom: auto;
        transform: none;
        transition: none;
        line-height: 1.12;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .showcase__card-desc {
        font-size: clamp(0.58rem, 1.68vw, 0.7rem);
        font-weight: 400;
        line-height: 1.2;
        position: static;
        left: auto;
        right: auto;
        bottom: auto;
        opacity: 1;
        max-height: none;
        transform: translate3d(0, 0, 0);
        transition: none;
        transition-delay: 0ms;
        padding-left: 0;
        overflow-wrap: anywhere;
        hyphens: auto;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 4;
        line-clamp: 4;
        overflow: hidden;
    }

    /* Mobile hard lock: keep dark veil + copy always visible, no reveal animation. */
    .showcase__card-overlay {
        opacity: 1 !important;
        transition: none !important;
    }

    .showcase__card-overlay::before {
        opacity: var(--showcase-copy-veil-opacity) !important;
        transform: translate3d(0, 0, 0) !important;
        transition: none !important;
        transition-delay: 0ms !important;
    }

    .showcase__card.is-motion-ready .showcase__card-title,
    .showcase__card.is-motion-ready .showcase__card-desc,
    .showcase__card.is-motion-ready:hover .showcase__card-title,
    .showcase__card.is-motion-ready:hover .showcase__card-desc,
    .showcase__card.is-motion-ready:focus-within .showcase__card-title,
    .showcase__card.is-motion-ready:focus-within .showcase__card-desc {
        transform: none !important;
        opacity: 1 !important;
        filter: none !important;
        transition: none !important;
        transition-delay: 0ms !important;
    }

    .showcase__arrow {
        width: 56px;
        height: 56px;
    }

    .showcase__arrow svg {
        width: 22px;
        height: 22px;
    }

    .showcase__arrows {
        width: clamp(196px, 64vw, 252px);
        min-height: 66px;
        padding: 0.45rem 0.68rem;
        border-radius: 24px;
    }
}

@media (max-width: 480px) {
    .showcase {
        --showcase-card-gap: 6px;
    }

    .showcase__inner {
        padding: 0 0.1rem 0;
    }

    .showcase__card {
        flex: 0 0 calc((100% - 2 * var(--showcase-card-gap)) / 3);
        height: clamp(164px, 47vw, 214px);
        border-radius: clamp(14px, 5.8vw, 22px);
    }

    .showcase__card-content {
        padding: 0 0.48em 0.5em;
        gap: 0.14rem;
    }

    .showcase__card-title {
        font-size: clamp(0.54rem, 1.95vw, 0.67rem);
        line-height: 1.1;
    }

    .showcase__card-desc {
        font-size: clamp(0.52rem, 2.05vw, 0.62rem);
        line-height: 1.16;
        -webkit-line-clamp: 3;
        line-clamp: 3;
    }

    .showcase__controls {
        gap: var(--space-md);
    }

    .showcase__arrows {
        width: min(86vw, 236px);
        min-height: 62px;
    }
}

/* ─────────────────────────────────────────────────────────────────────────────
   5.3 Print
   ───────────────────────────────────────────────────────────────────────────── */

@media print {
    /* Masquer éléments interactifs */
    .header,
    .footer,
    .nav-footer,
    .nav-sub,
    .summary__actions,
    .summary__item-delete,
    .summary__criteria-item-delete,
    .summary__criteria-edit,
    .summary__bloc-delete,
    .summary__bloc-actions {
        display: none !important;
    }

    /* Reset mise en page */
    body {
        background: var(--white);
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .main {
        padding: 0;
        max-width: none;
    }

    .summary__item {
        grid-template-columns: 1.75rem 1fr auto;
    }

    /* Configuration page */
    @page {
        margin: 1.5cm 1cm;
        size: A4;
    }

    /* Éviter les coupures */
    .summary__header {
        break-after: avoid;
        page-break-after: avoid;
    }

    .summary__section {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .summary__section-head {
        break-after: avoid;
        page-break-after: avoid;
    }

    .summary__item {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .summary__criteria-bloc {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .summary__criteria-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .summary__services-header {
        break-after: avoid;
        page-break-after: avoid;
    }

    .summary__contact {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .summary__form {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .form-grid {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    /* Orphelins/Veuves */
    .summary__services-title,
    .summary__form-title,
    .summary__section-title,
    .summary__criteria-bloc-header {
        break-after: avoid;
        page-break-after: avoid;
        orphans: 3;
        widows: 3;
    }

    .summary__contact {
        break-before: auto;
        page-break-before: auto;
    }
}
}
