/* ============================================================
   T DIGITAL AGENCY : Pages Packs v2 (pack.css)
   Squelette commun aux 3 packs, inspiré template corporate :
   fond clair, formes diagonales, photo héro, bandeau CTA plein.
   L'identité de chaque pack vient des variables --accent-*
   définies dans chaque page.
   ============================================================ */

:root {
    --dark: #050a12;
    --navy: #122142;
    --orange: #f97316;
    --light: #f7f8fb;
    --white: #ffffff;
    --text-dark: #16213a;
    --text-gray: #5b6478;
    --stroke: #e6e9f2;
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }
html { scroll-behavior: smooth; }

body {
    background-color: var(--light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ---------- HEADER (identique sur les 3 packs) ---------- */
header {
    /* Meme aplat #122142 que sur l'accueil. */
    background: var(--navy);
    padding: 12px 6%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--orange);
    position: sticky; top: 0; z-index: 1000;
}

.logo-container { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.logo-brand { color: white; font-weight: 800; font-size: 1.05rem; }
.logo-brand span { color: var(--orange); }

.header-nav { display: flex; align-items: center; gap: 10px; }

.pack-pill {
    color: rgba(255,255,255,0.55);
    text-decoration: none;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 8px 14px;
    border-radius: 50px;
    transition: var(--transition);
}
.pack-pill:hover { color: #fff; background: rgba(255,255,255,0.08); }
.pack-pill.active {
    color: #fff;
    background: var(--accent);
}

.btn-back {
    color: white; text-decoration: none; font-size: 0.72rem; font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 8px 18px; border-radius: 50px;
    display: flex; align-items: center; gap: 9px;
    transition: var(--transition);
    text-transform: uppercase; letter-spacing: 1px;
    margin-left: 14px;
}
.btn-back:hover { background: rgba(255,255,255,0.1); border-color: var(--accent); transform: translateY(-2px); }

/* ---------- HERO ---------- */
.hero {
    max-width: 1160px;
    margin: 0 auto;
    padding: 80px 25px 70px;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 60px;
    align-items: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 40px; left: -80px;
    width: 190px; height: 190px;
    background-image: radial-gradient(var(--accent) 2.2px, transparent 2.2px);
    background-size: 19px 19px;
    opacity: 0.28;
    pointer-events: none;
}

.badge-id {
    background: var(--accent-soft);
    color: var(--accent-ink);
    padding: 8px 20px;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: 1px solid var(--accent-line);
}
.badge-id i { font-size: 0.8rem; }

.hero h1 {
    font-size: clamp(2.6rem, 4.5vw, 3.7rem);
    font-weight: 800;
    color: var(--navy);
    line-height: 1.04;
    letter-spacing: -1.5px;
    margin-bottom: 20px;
}
.hero h1 em {
    font-style: normal;
    color: var(--accent);
}

.tagline {
    color: var(--text-gray);
    font-size: 1.12rem;
    margin-bottom: 38px;
    max-width: 46ch;
    text-wrap: pretty;
}

.hero-actions { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }

.price-chip {
    display: flex; align-items: baseline; gap: 7px;
    background: var(--white);
    border: 1px solid var(--stroke);
    box-shadow: 0 14px 34px -18px rgba(18, 33, 66, 0.35);
    padding: 14px 26px;
    border-radius: 18px;
}
.price-chip .amount { font-size: 2.7rem; font-weight: 900; color: var(--navy); letter-spacing: -2px; font-family: 'Montserrat', 'Inter', sans-serif; }
.price-chip .currency { font-size: 1rem; color: var(--accent); font-weight: 800; }

.btn-order {
    background: var(--accent);
    color: var(--accent-btn-fg, #ffffff);
    padding: 19px 38px;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 800;
    font-size: 0.92rem;
    transition: var(--transition);
    box-shadow: 0 18px 38px -14px var(--accent-glow);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    display: inline-flex; align-items: center; gap: 10px;
}
.btn-order:hover { transform: translateY(-5px); filter: brightness(1.07); box-shadow: 0 24px 46px -14px var(--accent-glow); }

/* Visuel héro : photo + panneau diagonal accent */
.hero-visual { position: relative; min-height: 420px; }

.hero-shape {
    position: absolute;
    top: -26px; right: -30px;
    width: 78%; height: 82%;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    clip-path: polygon(28% 0, 100% 0, 100% 100%, 0 100%);
    border-radius: 26px;
    opacity: 0.95;
}

.hero-photo {
    position: relative;
    width: 88%;
    height: 400px;
    margin-top: 30px;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 36px 70px -24px rgba(18, 33, 66, 0.45);
    border: 6px solid #fff;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

.hero-dots {
    position: absolute;
    bottom: -18px; right: 4%;
    width: 130px; height: 110px;
    background-image: radial-gradient(var(--navy) 2.2px, transparent 2.2px);
    background-size: 17px 17px;
    opacity: 0.35;
}

.hero-chip {
    position: absolute;
    bottom: 28px; left: -18px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 44px -16px rgba(18, 33, 66, 0.4);
    padding: 14px 20px;
    display: flex; align-items: center; gap: 13px;
    border: 1px solid var(--stroke);
}
.hero-chip i {
    width: 42px; height: 42px;
    display: grid; place-items: center;
    border-radius: 12px;
    background: var(--accent-soft);
    color: var(--accent-ink);
    font-size: 1.05rem;
}
.hero-chip strong { display: block; font-size: 0.9rem; color: var(--navy); line-height: 1.2; }
.hero-chip small { color: var(--text-gray); font-size: 0.72rem; font-weight: 600; }

/* ---------- SECTION "INCLUS" ---------- */
.section-includes {
    max-width: 1160px;
    margin: 0 auto;
    padding: 30px 25px 80px;
}

.section-head { text-align: center; margin-bottom: 46px; }
.kicker {
    color: var(--accent-ink);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    display: inline-flex; align-items: center; gap: 12px;
    margin-bottom: 14px;
}
.kicker::before, .kicker::after {
    content: '';
    width: 26px; height: 2px;
    background: var(--accent);
    border-radius: 2px;
}
.section-head h2 {
    font-size: clamp(1.7rem, 2.6vw, 2.3rem);
    color: var(--navy);
    font-weight: 800;
    letter-spacing: -0.8px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 22px;
}

.feature-card {
    background: var(--white);
    border: 1px solid var(--stroke);
    border-radius: 18px;
    padding: 30px 28px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.feature-card::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    width: 100%; height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}
.feature-card:hover { transform: translateY(-6px); box-shadow: 0 26px 48px -22px rgba(18, 33, 66, 0.3); border-color: transparent; }
.feature-card:hover::after { transform: scaleX(1); }

.feature-card i {
    width: 50px; height: 50px;
    display: grid; place-items: center;
    border-radius: 14px;
    background: var(--accent-soft);
    color: var(--accent-ink);
    font-size: 1.2rem;
    margin-bottom: 18px;
}
.feature-card h3 { font-size: 1.05rem; color: var(--navy); margin-bottom: 7px; font-weight: 700; }
.feature-card p { color: var(--text-gray); font-size: 0.9rem; }

/* ---------- BANDE APERÇU (slider) ---------- */
.preview-band { background: linear-gradient(150deg, var(--dark), var(--navy)); padding: 85px 0; }

.preview-inner {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 25px;
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 60px;
    align-items: center;
    color: #fff;
}

.preview-inner .kicker { color: var(--accent-2); }
.preview-inner .kicker::before, .preview-inner .kicker::after { background: var(--accent-2); }
.preview-inner h2 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); font-weight: 800; letter-spacing: -0.6px; margin-bottom: 16px; }
.preview-inner .preview-text { color: rgba(255,255,255,0.62); font-size: 1rem; max-width: 44ch; }

.portfolio-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    padding: 16px;
    backdrop-filter: blur(8px);
}

.slider-container { width: 100%; height: 420px; overflow: hidden; border-radius: 16px; }
.slides-wrapper { display: flex; height: 100%; transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
/* Un apercu montre une affiche reelle : on ne la rogne pas. On la pose
   entiere sur son propre flou, comme une oeuvre sur sa cimaise. */
.slide-item {
    min-width: 100%; height: 100%; position: relative; overflow: hidden;
    background-color: #0b1428; background-size: cover; background-position: center;
}
.slide-item::before {
    content: ""; position: absolute; inset: 0;
    background-image: inherit; background-size: cover; background-position: center;
    filter: blur(44px) brightness(0.26) saturate(0.65);
    transform: scale(1.18);
}
.slide-item img {
    position: relative; width: 100%; height: 100%;
    object-fit: contain; object-position: center;
    /* La legende occupe le bas du cadre : on lui reserve sa place,
       sinon elle masque le pied de l'affiche. */
    box-sizing: border-box; padding: 10px 10px 62px;
}
.slide-caption {
    position: absolute; bottom: 0; left: 0; right: 0; z-index: 2;
    background: linear-gradient(transparent, rgba(5, 10, 18, 0.88));
    padding: 26px 20px 16px;
    font-size: 0.85rem; font-weight: 700;
    text-align: center;
}
.slide-caption span {
    display: block; margin-top: 3px;
    font-size: 0.72rem; font-weight: 600; letter-spacing: 0.2px;
    color: rgba(255, 255, 255, 0.58);
}

/* Lien discret vers le portfolio complet, sous le texte d'apercu. */
.lien-portfolio {
    display: inline-flex; align-items: center; gap: 9px;
    margin-top: 22px; padding: 11px 4px;
    color: var(--accent-2); font-size: 0.92rem; font-weight: 700;
    text-decoration: none; border-bottom: 2px solid transparent;
    transition: border-color 0.25s, gap 0.25s;
}
.lien-portfolio:hover { border-bottom-color: var(--accent-2); gap: 14px; }

.slider-controls { display: flex; justify-content: center; gap: 11px; margin-top: 20px; }
.dot { width: 9px; height: 9px; background: rgba(255,255,255,0.22); border-radius: 50%; cursor: pointer; transition: 0.3s; }
.dot.active { background: var(--accent-2); width: 26px; border-radius: 10px; }

/* ---------- BANDEAU CTA plein (style template) ---------- */
.cta-band { padding: 80px 25px; }

.cta-inner {
    max-width: 1160px;
    margin: 0 auto;
    background: var(--band-bg);
    color: var(--band-fg);
    border-radius: 26px;
    padding: 60px 64px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 34px 70px -26px var(--accent-glow);
}
.cta-inner::before {
    content: '';
    position: absolute;
    top: -40%; right: -6%;
    width: 340px; height: 340px;
    background-image: radial-gradient(currentColor 2px, transparent 2px);
    background-size: 20px 20px;
    opacity: 0.16;
    transform: rotate(12deg);
    pointer-events: none;
}

.cta-copy h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 800; letter-spacing: -0.5px; margin-bottom: 22px; }

.trust-badges { display: flex; gap: 14px; flex-wrap: wrap; }
.badge-item {
    display: flex; align-items: center; gap: 9px;
    background: rgba(255,255,255,0.13);
    border: 1px solid rgba(255,255,255,0.22);
    padding: 9px 18px;
    border-radius: 50px;
    font-size: 0.72rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: 1px;
}
.badge-item i { font-size: 0.85rem; }

.band-btn {
    background: var(--band-btn-bg);
    color: var(--band-btn-fg);
    padding: 21px 44px;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 800;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    transition: var(--transition);
    white-space: nowrap;
    position: relative;
    box-shadow: 0 16px 34px -14px rgba(0,0,0,0.35);
}
.band-btn:hover { transform: translateY(-5px) scale(1.02); filter: brightness(1.05); }

/* ---------- AUTRES PACKS ---------- */
.pack-switch { max-width: 1160px; margin: 0 auto; padding: 0 25px 90px; }
.pack-switch .section-head { margin-bottom: 30px; }

.switch-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }

.switch-card {
    display: flex; align-items: center; justify-content: space-between; gap: 18px;
    background: var(--white);
    border: 1px solid var(--stroke);
    border-radius: 18px;
    padding: 26px 30px;
    text-decoration: none;
    transition: var(--transition);
}
.switch-card:hover { transform: translateY(-5px); box-shadow: 0 24px 46px -22px rgba(18, 33, 66, 0.32); border-color: var(--c); }
.switch-card .sw-icon {
    width: 48px; height: 48px; flex: none;
    display: grid; place-items: center;
    border-radius: 14px;
    background: color-mix(in srgb, var(--c) 12%, white);
    color: var(--c);
    font-size: 1.1rem;
}
.switch-card .sw-body { flex: 1; }
.switch-card strong { display: block; color: var(--navy); font-size: 1.02rem; font-weight: 800; }
.switch-card small { color: var(--text-gray); font-size: 0.82rem; font-weight: 600; }
.switch-card .sw-arrow { color: var(--c); font-size: 1rem; transition: var(--transition); }
.switch-card:hover .sw-arrow { transform: translateX(6px); }

.switch-card.sw-lancement { --c: #f97316; }
.switch-card.sw-croissance { --c: #f97316; }
.switch-card.sw-premium { --c: #f97316; }

/* ---------- FOOTER ---------- */
.mini-footer {
    background: var(--navy);
    color: rgba(255,255,255,0.55);
    padding: 26px 6%;
    display: flex; justify-content: space-between; align-items: center; gap: 18px;
    font-size: 0.82rem;
}
.mini-footer a { color: #fff; text-decoration: none; font-weight: 700; }
.mini-footer a:hover { color: var(--accent-2); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 992px) {
    .hero { grid-template-columns: 1fr; padding-top: 55px; gap: 70px; }
    .hero-visual { min-height: 0; }
    .hero-photo { width: 94%; height: 330px; }
    .preview-inner { grid-template-columns: 1fr; gap: 40px; }
    .cta-inner { flex-direction: column; text-align: center; padding: 50px 30px; }
    .cta-copy .trust-badges { justify-content: center; }
    .switch-row { grid-template-columns: 1fr; }
    /* La navigation reste accessible sur mobile : on la fait passer
       a la ligne plutot que de la masquer. */
    header { flex-wrap: wrap; height: auto; gap: 10px; padding: 12px 5%; }
    .header-nav { flex-wrap: wrap; gap: 7px; }
    .pack-pill { display: inline-flex; padding: 7px 12px; font-size: 0.66rem; }
    .btn-back { margin-left: 0; padding: 7px 14px; font-size: 0.66rem; }
    .mini-footer { flex-direction: column; text-align: center; }
}

/* ---------- Transition de page (frosted glass, comme le site) ---------- */
.page-transition {
    position: fixed !important; inset: 0 !important; z-index: 9999 !important;
    pointer-events: none !important; overflow: hidden !important;
    background: transparent !important;
}
.page-transition::before,
.page-transition::after {
    content: '';
    position: absolute;
    top: -8%; left: -8%;
    width: 124%; height: 124%;
    transform: translateX(-126%);
    transition: transform 0.22s cubic-bezier(0.65, 0, 0.22, 1);
    will-change: transform;
    border-radius: 0 70px 70px 0;
}
.page-transition::before {
    background: linear-gradient(135deg, rgba(255,170,80,0.40) 0%, rgba(251,191,36,0.34) 100%);
    backdrop-filter: blur(14px) saturate(1.35);
    -webkit-backdrop-filter: blur(14px) saturate(1.35);
    border-right: 1.5px solid rgba(255,255,255,0.4);
    z-index: 1;
}
.page-transition::after {
    background: linear-gradient(135deg, rgba(15,23,42,0.80) 0%, rgba(30,41,59,0.74) 100%);
    backdrop-filter: blur(16px) saturate(1.2);
    -webkit-backdrop-filter: blur(16px) saturate(1.2);
    border-right: 1.5px solid rgba(255,255,255,0.22);
    z-index: 2;
    transition-delay: 0.1s;
}
.page-transition:not(.hidden)::before { transform: translateX(0); }
.page-transition:not(.hidden)::after  { transform: translateX(0); transition-delay: 0.08s; }
.page-transition.hidden::before { transform: translateX(126%); transition-delay: 0.05s; }
.page-transition.hidden::after  { transform: translateX(126%); }
@media (prefers-reduced-motion: reduce) {
    .page-transition::before, .page-transition::after {
        transition: opacity 0.2s ease !important;
        transform: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
    .page-transition.hidden::before, .page-transition.hidden::after { opacity: 0; }
}
