/* ==========================================================================
   Tech4School — Landing page autonome
   Navbar avec le même fond que le hero & flèche animée vers le bas
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
    --c-primary: #00AAE4;
    --c-primary-dark: #005B94;
    --c-navy: #0A1F44;
    --c-navy-2: #0F2D5C;
    --c-yellow: #00AAE4;
    --c-yellow-dark: #008fbf;
    --c-ink: #16233A;
    --c-muted: #5B6B82;
    --c-line: #E3EAF3;
    --c-soft: #F4F8FC;
    --c-white: #FFFFFF;
    --c-whatsapp: #25D366;

    --f-display: 'Baloo 2', 'Inter', system-ui, sans-serif;
    --f-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

    --r-sm: 12px;
    --r-md: 18px;
    --r-lg: 26px;
    --r-pill: 999px;

    --sh-sm: 0 2px 8px rgba(10, 31, 68, .06);
    --sh-md: 0 12px 30px -12px rgba(10, 31, 68, .18);
    --sh-lg: 0 30px 60px -20px rgba(10, 31, 68, .35);

    --header-h: 68px;
    --ease: cubic-bezier(.22, 1, .36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
    overscroll-behavior: none;
    scroll-padding-top: calc(var(--header-h) + 12px);
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    overscroll-behavior: none;
    margin: 0;
    font-family: var(--f-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--c-ink);
    background: var(--c-white);
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
    padding-bottom: 0;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--f-display); line-height: 1.1; margin: 0; color: var(--c-navy); }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.container {
    width: 100%;
    max-width: 1180px;
    margin-inline: auto;
    padding-inline: 20px;
}

.only-desktop { display: none; }
.only-mobile { display: inline; }

/* --------------------------------------------------------------------------
   2. Boutons
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    min-height: 50px;
    padding: .8rem 1.4rem;
    border: 0;
    border-radius: var(--r-pill);
    font-weight: 700;
    font-size: .98rem;
    line-height: 1;
    cursor: pointer;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s;
    -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.97); }
.btn i { font-size: 1.05em; }

.btn--yellow { background: var(--c-primary); color: var(--c-white); box-shadow: 0 10px 24px -8px rgba(0, 170, 228, .7); }
.btn--yellow:hover { background: var(--c-primary-dark); transform: translateY(-2px); }

.btn--primary { background: var(--c-primary); color: var(--c-white); box-shadow: 0 10px 24px -8px rgba(0, 170, 228, .7); }
.btn--primary:hover { background: var(--c-primary-dark); transform: translateY(-2px); }

.btn--glass { background: rgba(255, 255, 255, .12); color: var(--c-white); border: 2px solid #ffffff; backdrop-filter: blur(8px); }
.btn--glass:hover { background: rgba(255, 255, 255, .25); border-color: #ffffff; }

.btn--whatsapp { background: var(--c-whatsapp); color: var(--c-white); }
.btn--whatsapp:hover { filter: brightness(.95); transform: translateY(-2px); }

.btn--outline { background: transparent; color: var(--c-primary); border: 2px solid var(--c-primary); }
.btn--outline:hover { background: var(--c-primary); color: var(--c-white); border-color: var(--c-primary); }

.btn--block { width: 100%; }

/* --------------------------------------------------------------------------
   3. En-tête Tech4School : BLEU CIEL UNIFORME, SANS AUCUNE OMBRE
   -------------------------------------------------------------------------- */
.t4s-header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-h);
    background: #00AAE4;
    border-bottom: none !important;
    box-shadow: none !important;
}

.t4s-header__inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.t4s-brand img { height: 38px; width: auto; border-radius: 8px; }

.t4s-nav { display: none; }

.t4s-nav a {
    color: #ffffff;
    padding: .55rem .95rem;
    border-radius: var(--r-pill);
    font-weight: 600; font-size: .93rem;
    transition: background .2s, color .2s;
}
.t4s-nav a:hover,
.t4s-nav a.is-active {
    background: rgba(255, 255, 255, 0.2);
    color: var(--c-white);
}

.t4s-header__cta { display: none; }

.t4s-burger {
    width: 44px; height: 44px;
    display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
    background: rgba(255, 255, 255, 0.2);
    border: 0; border-radius: var(--r-sm);
    cursor: pointer;
}
.t4s-burger span {
    width: 20px; height: 2px; border-radius: 2px; background: var(--c-white);
    transition: transform .3s var(--ease), opacity .2s;
}
.t4s-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.t4s-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.t4s-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Menu mobile déroulant */
.t4s-mobile-menu {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: min(80vw, 320px);
    height: 100vh;
    height: 100dvh;
    z-index: 200;
    overflow-y: auto;
    background: #00AAE4;
    border: none !important;
    box-shadow: none !important;
    padding: calc(var(--header-h) + 12px) 20px 24px;
    transform: translateX(-100%);
    opacity: 1;
    visibility: hidden;
    transition: transform .35s var(--ease), visibility .35s;
}
.t4s-mobile-menu.is-open { visibility: visible; transform: translateX(0); }
.t4s-mobile-menu a:not(.btn) {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 4px;
    font-weight: 600;
    color: #ffffff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}
.t4s-mobile-menu a:not(.btn) i { color: #ffffff; font-size: .8rem; }
.t4s-mobile-menu .btn { margin-top: 18px; }
.t4s-mobile-menu__back { color: rgba(255, 255, 255, 0.85); font-size: .9rem; }

/* --------------------------------------------------------------------------
   4. Hero : FOND BLEU CIEL UNIFORME AVEC LE NAVBAR, SANS OMBRE
   -------------------------------------------------------------------------- */
.t4s-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    color: var(--c-white);
    padding: 48px 0 60px;
    background: #00AAE4;
    border-top: none !important;
    box-shadow: none !important;
}
.t4s-hero__bg {
    display: none;
}
.t4s-hero::before {
    display: none;
}

/* Animation robotique subtile d'arrière-plan (circuits & pulsations) */
.t4s-hero__circuit {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    opacity: 0.42;
}
.t4s-circuit-svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.node-pulse {
    animation: t4s-node-glow 3s ease-in-out infinite alternate;
    transform-origin: center;
}
.node-p1 { animation-delay: 0s; }
.node-p2 { animation-delay: 1s; }
.node-p3 { animation-delay: 2s; }

@keyframes t4s-node-glow {
    0% { r: 4px; opacity: 0.45; }
    50% { r: 6px; opacity: 1; filter: drop-shadow(0 0 6px #ffffff); }
    100% { r: 4px; opacity: 0.45; }
}

.data-pulse {
    filter: drop-shadow(0 0 6px #ffffff);
    opacity: 0.95;
}

.t4s-hero__grid {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 40px;
    align-items: center;
}

.t4s-hero__title {
    color: var(--c-white);
    font-size: clamp(2.4rem, 9vw, 4.4rem);
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1.1;
}
.t4s-hero__title .hl { color: var(--c-navy); }

.t4s-rotator {
    margin-top: 14px;
    font-family: var(--f-display);
    font-size: clamp(1.25rem, 4.6vw, 1.7rem);
    font-weight: 600;
    color: #ffffff;
    min-height: 1.4em;
}
.t4s-rotator__word {
    display: inline-block;
    color: var(--c-navy);
    border-bottom: 3px solid var(--c-navy);
    transition: opacity .35s, transform .35s var(--ease);
}
.t4s-rotator__word.is-out { opacity: 0; transform: translateY(8px); }

.t4s-hero__lead {
    margin-top: 16px;
    max-width: 34rem;
    color: rgba(255, 255, 255, .95);
    font-size: 1.02rem;
    line-height: 1.65;
}

.t4s-hero__actions {
    margin-top: 28px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.t4s-hero .btn--primary {
    background: var(--c-navy);
    color: var(--c-white);
    box-shadow: 0 10px 24px -8px rgba(10, 31, 68, .5);
}
.t4s-hero .btn--primary:hover {
    background: #071936;
}
.t4s-hero .btn--glass {
    border: 2px solid #ffffff !important;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
}
.t4s-hero .btn--glass:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: #ffffff !important;
}

.t4s-hero__trust {
    margin-top: 26px;
    display: flex; flex-wrap: wrap; gap: 8px 18px;
    font-size: .88rem; color: #ffffff;
}
.t4s-hero__trust li { display: inline-flex; align-items: center; gap: .45rem; }
.t4s-hero__trust i { color: var(--c-navy); }

/* Flèche de défilement vers le bas */
.t4s-hero__scroll {
    display: none;
    position: relative;
    z-index: 1;
    margin-top: 28px;
    text-align: center;
}
.t4s-scroll-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    box-shadow: none;
    color: var(--c-white);
    font-size: 1.7rem;
    animation: t4s-bounce 2s infinite;
}
.t4s-scroll-btn:hover { color: var(--c-navy); background: none; border: none; }

@keyframes t4s-bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(8px); }
    60% { transform: translateY(4px); }
}

/* Visuel hero (desktop) */
.t4s-hero__visual { display: none; position: relative; }
.t4s-hero__photo {
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: var(--sh-lg);
    border: 4px solid rgba(255, 255, 255, .15);
    aspect-ratio: 5 / 4;
}
.t4s-hero__photo img { width: 100%; height: 100%; object-fit: cover; }

.t4s-chip {
    position: absolute;
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .6rem 1rem;
    border-radius: var(--r-pill);
    background: var(--c-white);
    color: var(--c-navy);
    font-weight: 700; font-size: .88rem;
    box-shadow: var(--sh-md);
    animation: t4s-float 5s ease-in-out infinite;
}
.t4s-chip i { color: var(--c-primary); }
.t4s-chip--b { bottom: 12%; left: -30px; animation-delay: -1.5s; }
.t4s-chip--c { top: 48%; right: -26px; animation-delay: -3s; }

.t4s-bubble {
    position: absolute; top: -22px; right: 24px;
    padding: .7rem 1.1rem;
    border-radius: 18px 18px 18px 4px;
    background: var(--c-primary);
    color: var(--c-white);
    font-family: var(--f-display);
    font-weight: 700; font-size: 1.05rem; line-height: 1.15;
    box-shadow: var(--sh-md);
    transform: rotate(-4deg);
    z-index: 5;
}

/* --------------------------------------------------------------------------
   5. Accès rapides
   -------------------------------------------------------------------------- */
.t4s-quick {
    position: relative;
    z-index: 2;
    margin-top: -28px;
}
.t4s-quick__grid {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 12px;
}
.t4s-quick__item { flex: 1 1 0; min-width: 0; }
.t4s-quick__item {
    display: flex; flex-direction: column; gap: 10px;
    padding: 18px 16px;
    background: var(--c-white);
    border: 1px solid var(--c-line);
    border-radius: var(--r-md);
    box-shadow: var(--sh-md);
    transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
.t4s-quick__item:hover { transform: translateY(-4px); border-color: var(--c-primary); }
.t4s-quick__icon {
    width: 44px; height: 44px;
    display: grid; place-items: center;
    border-radius: 14px;
    font-size: 1.15rem;
    color: var(--c-white);
}
.t4s-quick__title { font-weight: 700; font-size: .98rem; line-height: 1.25; color: var(--c-navy); }
.t4s-quick__sub { display: none; font-size: .85rem; color: var(--c-muted); line-height: 1.4; }

.bg-blue   { background: linear-gradient(135deg, #00AAE4, #0077C8); }
.bg-navy   { background: linear-gradient(135deg, #1B4F9C, #0A1F44); }
.bg-yellow { background: linear-gradient(135deg, #00AAE4, #0077C8); }
.bg-green  { background: linear-gradient(135deg, #22C55E, #0E9F6E); }
.bg-purple { background: linear-gradient(135deg, #8B5CF6, #6D28D9); }
.bg-orange { background: linear-gradient(135deg, #38bdf8, #00AAE4); }

/* --------------------------------------------------------------------------
   6. Sections génériques
   -------------------------------------------------------------------------- */
.t4s-section { padding: 64px 0; }
.t4s-section--soft { background: var(--c-soft); }

.t4s-head { margin-bottom: 32px; }
.t4s-head--center { text-align: center; margin-inline: auto; max-width: 40rem; }
.t4s-kicker {
    display: inline-block;
    margin-bottom: 10px;
    font-size: .78rem; font-weight: 700;
    letter-spacing: .12em; text-transform: uppercase;
    color: var(--c-primary);
}
.t4s-title { font-size: clamp(1.85rem, 6vw, 2.7rem); font-weight: 800; letter-spacing: -.01em; }
.t4s-title .hl { color: var(--c-primary); }
.t4s-sub { margin-top: 12px; color: var(--c-muted); font-size: 1.02rem; }

/* --------------------------------------------------------------------------
   7. À propos
   -------------------------------------------------------------------------- */
.t4s-about { display: grid; gap: 32px; align-items: center; }
.t4s-about__media {
    position: relative;
    border-radius: var(--r-lg);
    overflow: hidden;
    aspect-ratio: 4 / 3;
    box-shadow: var(--sh-md);
}
.t4s-about__media img { width: 100%; height: 100%; object-fit: cover; }
.t4s-about__badge {
    position: absolute; left: 14px; bottom: 14px;
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .55rem .9rem;
    border-radius: var(--r-pill);
    background: rgba(255, 255, 255, .95);
    font-weight: 700; font-size: .85rem; color: var(--c-navy);
}
.t4s-about__badge i { color: var(--c-primary); }

.t4s-about__text { margin-top: 14px; color: var(--c-muted); }
.t4s-about__text strong { color: var(--c-ink); }

.t4s-tags { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.t4s-tag {
    display: inline-flex; align-items: center; gap: .45rem;
    padding: .5rem .9rem;
    border-radius: var(--r-pill);
    background: var(--c-soft);
    border: 1px solid var(--c-line);
    font-size: .88rem; font-weight: 600;
}
.t4s-tag i { color: var(--c-primary); }

/* --------------------------------------------------------------------------
   8. Programme par âge
   -------------------------------------------------------------------------- */
.t4s-scroller {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 78%;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 4px 20px 18px;
    margin-inline: -20px;
    scrollbar-width: none;
}
.t4s-scroller::-webkit-scrollbar { display: none; }
.t4s-scroller > * { scroll-snap-align: start; }

.t4s-swipe-hint {
    display: flex; align-items: center; justify-content: center; gap: .5rem;
    margin-top: 4px;
    font-size: .8rem; color: var(--c-muted);
}

.t4s-level {
    display: flex; flex-direction: column;
    background: var(--c-white);
    border: 1px solid var(--c-line);
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: var(--sh-sm);
    transition: transform .35s var(--ease), box-shadow .35s;
}
.t4s-level:hover { transform: translateY(-6px); box-shadow: var(--sh-md); }
.t4s-level__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.t4s-level__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.t4s-level:hover .t4s-level__media img { transform: scale(1.06); }
.t4s-level__age {
    position: absolute; top: 12px; left: 12px;
    padding: .35rem .8rem;
    border-radius: var(--r-pill);
    color: var(--c-white);
    font-weight: 800; font-size: .82rem;
}
.t4s-level__body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.t4s-level__name { font-size: 1.35rem; font-weight: 800; }
.t4s-level__desc { color: var(--c-muted); font-size: .93rem; line-height: 1.5; }

/* --------------------------------------------------------------------------
   9. Pourquoi Tech4School (En bleu ciel)
   -------------------------------------------------------------------------- */
.t4s-why {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: linear-gradient(135deg, #00AAE4 0%, #0098CC 50%, #0082AF 100%);
    box-shadow: 0 20px 45px -10px rgba(0, 170, 228, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: var(--c-white);
    padding: 36px 24px;
}
.t4s-why::after {
    content: '';
    position: absolute; right: -60px; top: -60px;
    width: 260px; height: 260px; border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, .25), transparent 70%);
    pointer-events: none;
}
.t4s-why .t4s-kicker {
    color: #ffffff;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
    font-size: .82rem;
    display: inline-block;
    background: rgba(10, 31, 68, 0.22);
    padding: 4px 12px;
    border-radius: var(--r-pill);
    margin-bottom: 10px;
}
.t4s-why .t4s-title {
    color: #ffffff;
    font-size: clamp(1.45rem, 3.5vw, 2.1rem);
    font-weight: 800;
    line-height: 1.22;
    margin: 0 0 10px;
}
.t4s-why .t4s-title .hl {
    color: var(--c-navy) !important;
}
.t4s-why .t4s-sub {
    color: rgba(255, 255, 255, 0.95);
    font-size: .95rem;
    line-height: 1.5;
    margin: 0 0 20px;
}

.t4s-why__photo-mobile {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    max-height: 240px;
    border-radius: 14px;
    overflow: hidden;
    margin: 0 0 18px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.22);
}
.t4s-why__photo-mobile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.t4s-why__grid {
    position: relative; z-index: 1;
    margin-top: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
.t4s-benefit {
    padding: 16px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.2);
    border: 1.5px solid rgba(255, 255, 255, 0.38);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: background .25s, transform .25s var(--ease), border-color .25s;
}
.t4s-benefit:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.7);
    transform: translateY(-2px);
}
.t4s-benefit i {
    font-size: 1.4rem;
    color: #ffffff;
    margin-bottom: 8px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.12));
}
.t4s-benefit h3 {
    margin: 0 0 4px;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
}
.t4s-benefit p {
    margin: 0;
    font-size: .84rem;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.4;
}

.t4s-why__photo { display: none; }

/* --------------------------------------------------------------------------
   10. Galerie
   -------------------------------------------------------------------------- */
.t4s-gallery { grid-auto-columns: 72%; }
.t4s-gallery__item {
    position: relative;
    margin: 0;
    border-radius: var(--r-md);
    overflow: hidden;
    aspect-ratio: 4 / 5;
    box-shadow: var(--sh-sm);
}
.t4s-gallery__item img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .6s var(--ease);
}
.t4s-gallery__item:hover img { transform: scale(1.06); }
.crop-watermark { transform-origin: center top; transform: scale(1.3); }
.t4s-gallery__item:hover .crop-watermark { transform: scale(1.36); }
.t4s-gallery__item figcaption {
    position: absolute; inset: auto 0 0 0;
    padding: 40px 14px 14px;
    background: linear-gradient(to top, rgba(10, 31, 68, .85), transparent);
    color: var(--c-white);
    font-weight: 600; font-size: .9rem;
}

/* --------------------------------------------------------------------------
   11. Inscription
   -------------------------------------------------------------------------- */
.t4s-signup {
    display: grid; gap: 26px;
    padding: 30px 20px;
    border-radius: var(--r-lg);
    background: linear-gradient(160deg, #E6F7FD 0%, #FFFFFF 70%);
    border: 1px solid #CDEFFB;
}
.t4s-signup__intro { position: relative; }
.t4s-checks { margin-top: 18px; display: grid; gap: 10px; }
.t4s-checks li { display: flex; align-items: center; gap: .6rem; font-weight: 600; font-size: .95rem; }
.t4s-checks i { color: var(--c-white); background: var(--c-primary); width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .7rem; }

/* Formulaires */
.t4s-form {
    background: var(--c-white);
    border-radius: var(--r-md);
    border: 1px solid var(--c-line);
    box-shadow: var(--sh-md);
    padding: 22px 18px;
}
.t4s-form__title {
    display: flex; align-items: center; gap: .6rem;
    margin-bottom: 16px;
    font-family: var(--f-display);
    font-size: 1.25rem; font-weight: 700; color: var(--c-navy);
}
.t4s-form__title i { color: var(--c-primary); }
.t4s-form__grid { display: grid; gap: 12px; }
.t4s-field label { display: block; margin-bottom: 6px; font-size: .82rem; font-weight: 600; color: var(--c-ink); }
.t4s-field input,
.t4s-field select,
.t4s-field textarea {
    width: 100%;
    min-height: 48px;
    padding: .75rem 1rem;
    border: 1.5px solid var(--c-line);
    border-radius: var(--r-sm);
    background: var(--c-soft);
    font-size: 16px;
    transition: border-color .2s, background .2s, box-shadow .2s;
}
.t4s-field textarea { min-height: 96px; resize: vertical; }
.t4s-field input:focus,
.t4s-field select:focus,
.t4s-field textarea:focus {
    outline: none;
    border-color: var(--c-primary);
    background: var(--c-white);
    box-shadow: 0 0 0 4px rgba(0, 170, 228, .15);
}
.t4s-form__actions { margin-top: 16px; display: grid; gap: 10px; }
.t4s-form__actions .btn { background: #00AAE4; color: #fff; box-shadow: none !important; }
.t4s-form__actions .btn:hover { background: #008fbf; }
.t4s-form__note { margin-top: 10px; text-align: center; font-size: .82rem; color: var(--c-muted); }
.t4s-form__note a { color: var(--c-primary-dark); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* --------------------------------------------------------------------------
   12. Partenariat écoles
   -------------------------------------------------------------------------- */
.t4s-schools { display: grid; gap: 28px; }
.t4s-offers { margin-top: 22px; display: grid; gap: 12px; }
.t4s-offer {
    display: flex; gap: 14px; align-items: flex-start;
    padding: 16px;
    background: var(--c-white);
    border: 1px solid var(--c-line);
    border-radius: var(--r-md);
}
.t4s-offer__icon {
    flex: none;
    width: 42px; height: 42px;
    display: grid; place-items: center;
    border-radius: 12px;
    color: var(--c-white);
}
.t4s-offer h3 { font-family: var(--f-body); font-size: .98rem; font-weight: 700; }
.t4s-offer p { margin-top: 2px; font-size: .88rem; color: var(--c-muted); line-height: 1.45; }

/* --------------------------------------------------------------------------
   13. FAQ
   -------------------------------------------------------------------------- */
.t4s-faq { max-width: 820px; margin-inline: auto; display: grid; gap: 10px; }
.t4s-faq details {
    background: var(--c-white);
    border: 1px solid var(--c-line);
    border-radius: var(--r-md);
    transition: border-color .25s, box-shadow .25s;
}
.t4s-faq details[open] { border-color: var(--c-primary); box-shadow: var(--sh-md); }
.t4s-faq summary {
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    padding: 16px 18px;
    font-weight: 700; font-size: .98rem; line-height: 1.4;
    color: var(--c-navy);
    cursor: pointer;
    list-style: none;
}
.t4s-faq summary::-webkit-details-marker { display: none; }
.t4s-faq summary::after {
    content: '+';
    flex: none;
    width: 30px; height: 30px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: var(--c-soft);
    color: var(--c-primary-dark);
    font-size: 1.2rem; font-weight: 600;
    transition: transform .3s var(--ease), background .25s, color .25s;
}
.t4s-faq details[open] summary::after { transform: rotate(45deg); background: var(--c-primary); color: var(--c-white); }
.t4s-faq__answer { padding: 0 18px 18px; color: var(--c-muted); font-size: .95rem; }
.t4s-faq__answer a { color: var(--c-primary-dark); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.t4s-faq-cta { margin-top: 28px; text-align: center; color: var(--c-muted); }
.t4s-faq-cta .btn { margin-top: 12px; }

/* --------------------------------------------------------------------------
   14. Pied de page
   -------------------------------------------------------------------------- */
.t4s-footer {
    background: linear-gradient(135deg, #00AAE4 0%, #008fbf 100%);
    color: #ffffff;
    padding: 48px 0 24px;
}
.t4s-footer__grid { display: grid; gap: 30px; }
.t4s-footer__brand img { height: 40px; width: auto; border-radius: 8px; background: none; padding: 0; border: none; box-shadow: none; }
.t4s-footer__brand p { margin-top: 14px; font-size: .92rem; max-width: 22rem; color: rgba(255, 255, 255, 0.95); }
.t4s-footer h4 { margin: 0 0 12px; color: #ffffff; font-size: 1rem; font-weight: 800; letter-spacing: 0.02em; }
.t4s-footer__links li + li { margin-top: 8px; }
.t4s-footer__links a { font-size: .92rem; color: rgba(255, 255, 255, 0.92); transition: all .2s; }
.t4s-footer__links a:hover { color: #ffffff; text-decoration: underline; }
.t4s-footer__contact li { display: flex; gap: .6rem; align-items: center; font-size: .92rem; color: rgba(255, 255, 255, 0.95); }
.t4s-footer__contact li + li { margin-top: 10px; }
.t4s-footer__contact a { color: #ffffff; }
.t4s-footer__contact a:hover { text-decoration: underline; }
.t4s-footer__contact i { color: #ffffff; width: 16px; }
.t4s-socials { margin-top: 16px; display: flex; gap: 10px; }
.t4s-socials a {
    width: 40px; height: 40px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, .22);
    border: 1px solid rgba(255, 255, 255, .35);
    color: #ffffff;
    transition: all .25s ease;
}
.t4s-socials a:hover { background: #ffffff; color: #00AAE4; transform: translateY(-2px); }
.t4s-footer__bottom {
    margin-top: 36px; padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, .25);
    display: flex; flex-direction: column; gap: 8px;
    font-size: .85rem; text-align: center;
    color: rgba(255, 255, 255, 0.92);
}
.t4s-footer__slogan { color: #ffffff; font-family: var(--f-display); font-weight: 700; font-size: 1.05rem; }

/* --------------------------------------------------------------------------
   15. Barre d'action fixe mobile
   -------------------------------------------------------------------------- */
.t4s-actionbar { display: none !important;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    display: flex; gap: 10px;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: rgba(10, 31, 68, .96);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 -8px 24px rgba(10, 31, 68, .18);
    transform: translateY(110%);
    transition: transform .35s var(--ease);
}
.t4s-actionbar.is-visible { transform: none; }
.t4s-actionbar .btn { flex: 1; min-height: 48px; }
.t4s-actionbar .btn--whatsapp { flex: 0 0 52px; padding: 0; font-size: 1.35rem; }

/* --------------------------------------------------------------------------
   16. Animations
   -------------------------------------------------------------------------- */
.reveal { opacity: 1; transform: none; }
.reveal.is-visible { opacity: 1; transform: none; }

.t4s-hero .anim-in { opacity: 0; transform: translateY(18px); animation: t4s-in .9s var(--ease) forwards; }
.t4s-hero .anim-in:nth-child(1) { animation-delay: .05s; }
.t4s-hero .anim-in:nth-child(2) { animation-delay: .15s; }
.t4s-hero .anim-in:nth-child(3) { animation-delay: .25s; }
.t4s-hero .anim-in:nth-child(4) { animation-delay: .35s; }
.t4s-hero .anim-in:nth-child(5) { animation-delay: .45s; }
.t4s-hero .anim-in:nth-child(6) { animation-delay: .55s; }

@keyframes t4s-in { to { opacity: 1; transform: none; } }
@keyframes t4s-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes t4s-kenburns { from { transform: scale(1.05); } to { transform: scale(1.15) translateX(-2%); } }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .reveal, .t4s-hero .anim-in { opacity: 1; transform: none; }
}

/* ==========================================================================
   Mobile Optimization (< 640px)
   Sections compactes, hauteurs maîtrisées, navigation fluide et design calibré
   ========================================================================== */
@media (max-width: 639px) {
    :root {
        --header-h: 58px;
    }
    
    .container {
        padding-inline: 14px;
    }

    /* En-tête */
    .t4s-brand img {
        height: 32px;
    }

    /* Hero : aéré et décompressé */
    .t4s-hero {
        padding: 42px 0 54px;
    }
    .t4s-hero__content {
        padding: 0 22px;
    }
    .t4s-hero__title {
        font-size: clamp(1.7rem, 7vw, 2.2rem);
        line-height: 1.22;
        letter-spacing: -0.01em;
    }
    .t4s-rotator {
        margin-top: 12px;
        font-size: 1.18rem;
        min-height: 1.4em;
    }
    .t4s-hero__lead {
        margin-top: 14px;
        font-size: .92rem;
        line-height: 1.6;
        max-width: 95%;
    }
    .t4s-hero__actions {
        margin-top: 24px;
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }
    .t4s-hero__actions .btn {
        width: 100%;
        justify-content: center;
        min-height: 48px;
        padding: .75rem 1.2rem;
        font-size: .95rem;
        border-radius: 12px;
    }
    .t4s-hero__trust {
        margin-top: 24px;
        justify-content: center;
        gap: 8px 18px;
        font-size: .84rem;
    }
    .t4s-hero__scroll {
        display: none !important;
    }

    /* Accès rapides : espacé du hero pour respirer */
    .t4s-quick {
        margin-top: 6px;
    }
    .t4s-quick__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .t4s-quick__item {
        padding: 14px 12px;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 8px;
        border-radius: 14px;
        min-height: 90px;
        justify-content: center;
        border: 1px solid var(--c-line);
        background: #FFFFFF;
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
    }
    .t4s-quick__icon {
        width: 36px;
        height: 36px;
        border-radius: 10px;
        font-size: 1rem;
    }
    .t4s-quick__title {
        font-size: .82rem;
        line-height: 1.25;
        font-weight: 700;
    }

    /* Sections génériques */
    .t4s-section {
        padding: 34px 0;
    }
    .t4s-head {
        margin-bottom: 20px;
    }
    .t4s-kicker {
        font-size: .74rem;
        font-weight: 800;
        letter-spacing: .05em;
        margin-bottom: 4px;
    }
    .t4s-title {
        font-size: clamp(1.4rem, 5.5vw, 1.8rem);
        line-height: 1.22;
    }
    .t4s-sub {
        margin-top: 6px;
        font-size: .88rem;
        line-height: 1.45;
    }

    /* À propos */
    .t4s-about {
        display: flex;
        flex-direction: column;
        gap: 18px;
    }
    .t4s-about__media {
        aspect-ratio: 16 / 9;
        max-height: 200px;
        border-radius: 14px;
        overflow: hidden;
        box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    }
    .t4s-about__badge {
        padding: .35rem .7rem;
        font-size: .74rem;
        border-radius: 20px;
        left: 10px;
        bottom: 10px;
    }
    .t4s-about__text {
        margin-top: 8px;
        font-size: .88rem;
        line-height: 1.5;
    }
    .t4s-tags {
        margin-top: 14px;
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }
    .t4s-tag {
        padding: .35rem .7rem;
        font-size: .78rem;
        border-radius: 20px;
    }

    /* Programme par âge */
    .t4s-scroller {
        grid-auto-columns: 78%;
        gap: 12px;
        padding: 4px 14px 14px;
        margin-inline: -14px;
        scroll-padding-inline: 14px;
    }
    .t4s-level {
        border-radius: 14px;
    }
    .t4s-level__media {
        aspect-ratio: 16 / 10;
    }
    .t4s-level__body {
        padding: 12px 14px;
        gap: 4px;
    }
    .t4s-level__name {
        font-size: 1.1rem;
    }
    .t4s-level__desc {
        font-size: .82rem;
        line-height: 1.42;
    }
    .t4s-level__age {
        top: 10px;
        left: 10px;
        padding: .25rem .65rem;
        font-size: .75rem;
    }
    .t4s-swipe-hint {
        font-size: .78rem;
        margin-top: 4px;
    }

    /* Pourquoi Tech4School - En bleu ciel sur mobile */
    .t4s-why {
        padding: 24px 16px;
        border-radius: 20px;
        box-shadow: 0 12px 32px -8px rgba(0, 170, 228, 0.45);
        border: 1px solid rgba(255, 255, 255, 0.4);
    }
    .t4s-why .t4s-kicker {
        font-size: .74rem;
        margin-bottom: 8px;
        background: rgba(10, 31, 68, 0.22);
        color: #ffffff;
        padding: 3px 10px;
        border-radius: var(--r-pill);
    }
    .t4s-why .t4s-title {
        font-size: 1.42rem;
        line-height: 1.25;
        margin-bottom: 8px;
    }
    .t4s-why .t4s-title .hl {
        color: var(--c-navy) !important;
    }
    .t4s-why .t4s-sub {
        font-size: .85rem;
        line-height: 1.42;
        margin-bottom: 14px;
        color: rgba(255, 255, 255, 0.95);
    }
    .t4s-why__photo-mobile {
        display: block;
        width: 100%;
        aspect-ratio: 16 / 10;
        max-height: 220px;
        border-radius: 14px;
        overflow: hidden;
        margin-bottom: 14px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
    }
    .t4s-why__photo-mobile img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .t4s-why__photo {
        display: none !important;
    }
    .t4s-why__grid {
        margin-top: 0;
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
        scroll-behavior: smooth !important;
        -webkit-overflow-scrolling: touch !important;
        gap: 12px !important;
        padding: 4px 6px 14px !important;
        scrollbar-width: none;
    }
    .t4s-why__grid::-webkit-scrollbar {
        display: none;
    }
    .t4s-benefit {
        flex: 0 0 66% !important;
        scroll-snap-align: start !important;
        transition: transform 0.4s ease, opacity 0.4s ease;
        padding: 16px 14px;
        border-radius: 14px;
        min-height: 100px;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        background: rgba(255, 255, 255, 0.22);
        border: 1.5px solid rgba(255, 255, 255, 0.45);
        box-sizing: border-box;
    }
    .t4s-benefit i {
        font-size: 1.4rem;
        margin-bottom: 6px;
        color: #ffffff;
    }
    .t4s-benefit h3 {
        margin: 0 0 4px;
        font-size: .98rem;
        color: #ffffff;
    }
    .t4s-benefit p {
        margin: 0;
        font-size: .82rem;
        line-height: 1.42;
        color: rgba(255, 255, 255, 0.95);
    }

    /* Galerie */
    .t4s-gallery {
        grid-auto-columns: 68%;
        gap: 10px;
        padding: 4px 14px 14px;
        margin-inline: -14px;
        scroll-padding-inline: 14px;
    }
    .t4s-gallery__item {
        aspect-ratio: 4 / 5;
        border-radius: 14px;
    }
    .t4s-gallery__item figcaption {
        padding: 24px 10px 10px;
        font-size: .78rem;
        line-height: 1.35;
    }

    /* Inscription */
    .t4s-signup {
        padding: 22px 16px;
        gap: 18px;
        border-radius: 18px;
    }
    .t4s-checks {
        margin-top: 12px;
        gap: 8px;
    }
    .t4s-checks li {
        font-size: .85rem;
    }
    .t4s-checks i {
        width: 20px;
        height: 20px;
        font-size: .65rem;
    }
    .t4s-form {
        padding: 18px 14px;
        border-radius: 14px;
        box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    }
    .t4s-form__title {
        font-size: 1.08rem;
        margin-bottom: 12px;
    }
    .t4s-field label {
        font-size: .78rem;
        margin-bottom: 4px;
        font-weight: 600;
    }
    .t4s-field input,
    .t4s-field select,
    .t4s-field textarea {
        min-height: 44px;
        padding: .6rem .8rem;
        font-size: 15px; /* Évite le zoom auto iOS */
        border-radius: 10px;
    }
    .t4s-form__actions {
        margin-top: 14px;
    }
    .t4s-form__actions .btn {
        min-height: 44px;
        font-size: .92rem;
        width: 100%;
        justify-content: center;
    }

    /* Partenariat écoles */
    .t4s-schools {
        gap: 20px;
    }
    .t4s-offers {
        margin-top: 14px;
        gap: 8px;
    }
    .t4s-offer {
        padding: 12px;
        gap: 10px;
        border-radius: 12px;
    }
    .t4s-offer__icon {
        width: 36px;
        height: 36px;
        border-radius: 10px;
        font-size: .95rem;
    }
    .t4s-offer h3 {
        font-size: .92rem;
    }
    .t4s-offer p {
        font-size: .78rem;
        line-height: 1.38;
    }

    /* FAQ */
    .t4s-faq {
        gap: 8px;
    }
    .t4s-faq summary {
        padding: 12px 14px;
        font-size: .88rem;
        line-height: 1.35;
        border-radius: 12px;
    }
    .t4s-faq summary::after {
        width: 24px;
        height: 24px;
        font-size: 1rem;
    }
    .t4s-faq__answer {
        padding: 0 14px 12px;
        font-size: .82rem;
        line-height: 1.48;
    }
    .t4s-faq-cta {
        margin-top: 20px;
    }
    .t4s-faq-cta .btn {
        margin-top: 8px;
        min-height: 44px;
        padding: .65rem 1.2rem;
        font-size: .9rem;
        width: 100%;
        justify-content: center;
    }

    /* Pied de page */
    .t4s-footer {
        padding: 32px 0 20px;
    }
    .t4s-footer__grid {
        gap: 22px;
        text-align: center;
    }
    .t4s-footer__brand {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .t4s-footer__brand img {
        height: 36px;
    }
    .t4s-footer__brand p {
        font-size: .84rem;
        margin-top: 8px;
        max-width: 280px;
    }
    .t4s-footer h4 {
        margin: 0 0 10px;
        font-size: .95rem;
    }
    .t4s-footer__links,
    .t4s-footer__contact {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .t4s-footer__contact li {
        justify-content: center;
    }
    .t4s-footer__contact li + li,
    .t4s-footer__links li + li {
        margin-top: 8px;
    }
    .t4s-footer__links a,
    .t4s-footer__contact li {
        font-size: .85rem;
    }
    .t4s-socials {
        margin-top: 12px;
        justify-content: center;
        gap: 10px;
    }
    .t4s-socials a {
        width: 38px;
        height: 38px;
        font-size: .95rem;
    }
    .t4s-footer__bottom {
        margin-top: 24px;
        padding-top: 14px;
        font-size: .78rem;
        flex-direction: column;
        gap: 6px;
        text-align: center;
    }
    .t4s-footer__slogan {
        font-size: .88rem;
    }

    /* Barre d'action fixe mobile */
    .t4s-actionbar { display: none !important;
        padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
        gap: 8px;
    }
    .t4s-actionbar .btn {
        min-height: 44px;
        font-size: .88rem;
    }
    .t4s-actionbar .btn--whatsapp {
        flex: 0 0 46px;
        font-size: 1.25rem;
    }
}

/* ==========================================================================
   Tablette ≥ 640px
   ========================================================================== */
@media (min-width: 640px) {
    .container { padding-inline: 28px; }

    .t4s-hero__actions { grid-auto-flow: column; justify-content: start; }

    .t4s-quick__sub { display: block; }

    .t4s-scroller { grid-auto-columns: 46%; padding-inline: 28px; margin-inline: -28px; }

    .t4s-why { padding: 44px 36px; }
    .t4s-why__grid { gap: 14px; }

    .t4s-form { padding: 26px 24px; }
    .t4s-form__grid--2 { grid-template-columns: 1fr 1fr; }
    .t4s-field--full { grid-column: 1 / -1; }
    .t4s-form__actions { grid-template-columns: 1fr; }

    .t4s-footer__grid { grid-template-columns: 1.4fr 1fr 1fr; }
    .t4s-footer__bottom { flex-direction: row; justify-content: space-between; text-align: left; }
}

/* ==========================================================================
   Desktop ≥ 1024px
   ========================================================================== */
@media (min-width: 1024px) {
    :root { --header-h: 76px; }

    body { padding-bottom: 0; }

    .only-desktop { display: inline; }
    .only-mobile { display: none; }

    .t4s-brand img { height: 42px; }

    .t4s-nav { display: flex; gap: 4px; }

    .t4s-header__cta { display: inline-flex; min-height: 44px; padding: .7rem 1.2rem; font-size: .92rem; }
    .t4s-burger, .t4s-mobile-menu { display: none; }

    .t4s-hero { padding: 80px 0 110px; }
    .t4s-hero__grid { grid-template-columns: 1.05fr .95fr; gap: 64px; }
    .t4s-hero__visual { display: block; }
    .t4s-hero__lead { font-size: 1.1rem; }
    .t4s-hero__scroll { display: block; grid-column: 1 / -1; text-align: center; margin-top: 8px; }

    .t4s-quick { margin-top: -56px; }
    .t4s-quick__grid { grid-template-columns: repeat(4, 1fr); gap: 18px; }
    .t4s-quick__item { padding: 22px 20px; }

    .t4s-section { padding: 96px 0; }
    .t4s-head { margin-bottom: 44px; }

    .t4s-about { grid-template-columns: 1fr 1fr; gap: 64px; }

    .t4s-scroller:not(.t4s-gallery) {
        grid-auto-flow: row;
        grid-template-columns: repeat(4, 1fr);
        overflow: visible;
        padding: 0; margin: 0;
        gap: 22px;
    }
    .t4s-swipe-hint { display: none; }

    .t4s-why {
        display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: stretch;
        padding: 52px 48px; border-radius: 28px;
    }
    .t4s-why__photo-mobile { display: none !important; }
    .t4s-why__grid { margin-top: 0; gap: 16px; }
    .t4s-why__content .t4s-why__grid { margin-top: 28px; }
    .t4s-benefit { padding: 20px 18px; border-radius: 16px; }
    .t4s-benefit i { font-size: 1.55rem; margin-bottom: 12px; }
    .t4s-benefit h3 { font-size: 1.08rem; }
    .t4s-benefit p { font-size: .88rem; }
    .t4s-why__photo {
        display: block;
        position: relative; z-index: 1;
        height: 100%; min-height: 420px;
        border-radius: 20px;
        overflow: hidden;
        box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
    }
    .t4s-why__photo img { width: 100%; height: 100%; object-fit: cover; }

    .t4s-gallery__item { aspect-ratio: 3 / 4; }

    .t4s-signup { grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: center; padding: 56px; }

    .t4s-schools { grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: start; }
    .t4s-schools__info { position: sticky; top: calc(var(--header-h) + 24px); }

    .t4s-actionbar { display: none !important; display: none; }
}

/* ==========================================================================
   Ajustements mobile uniquement (< 640px)
   ========================================================================== */
@media (max-width: 639px) {
    .container {
        padding-inline: 11px;
    }
    .t4s-section {
        padding: 34px 12px !important;
    }
    .t4s-form {
        padding: 21px;
        box-shadow: none;
        border: none;
    }
    .t4s-hero {
        padding: 61px 1px;
    }
    .t4s-hero__title {
        font-size: 40px;
    }
    .t4s-hero__actions .btn {
        width: 100%;
        justify-content: center;
        min-height: 48px;
        padding: .75rem 1.2rem;
        font-size: .95rem;
        color: black;
        border-radius: 34px;
        background: white;
        box-shadow: none;
    }
    .only-mobile {
        display: inline;
    }
}


/* --------------------------------------------------------------------------
   Carousel Galerie (Desktop & Mobile)
   -------------------------------------------------------------------------- */
.t4s-gallery-wrap {
    position: relative;
    width: 100%;
}

.t4s-gallery {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    scroll-behavior: smooth !important;
    -webkit-overflow-scrolling: touch !important;
    gap: 18px !important;
    padding: 10px 4px 22px !important;
    margin: 0 !important;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 170, 228, 0.4) transparent;
}

.t4s-gallery::-webkit-scrollbar {
    height: 6px;
    display: block !important;
}

.t4s-gallery::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.04);
    border-radius: 999px;
}

.t4s-gallery::-webkit-scrollbar-thumb {
    background: #00AAE4;
    border-radius: 999px;
}

.t4s-gallery .t4s-gallery__item {
    flex: 0 0 310px !important;
    min-width: 310px !important;
    max-width: 310px !important;
    aspect-ratio: 3 / 4 !important;
    scroll-snap-align: start !important;
    border-radius: 18px;
    overflow: hidden;
    position: relative;
}

@media (max-width: 768px) {
    .t4s-gallery .t4s-gallery__item {
        flex: 0 0 68% !important;
        min-width: 68% !important;
        max-width: 68% !important;
        aspect-ratio: 4 / 5 !important;
    }
}

.t4s-gallery-nav {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 14px;
}

.t4s-gallery-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: white;
    border: 1.5px solid rgba(0, 170, 228, 0.25);
    color: #0b1f44;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
    transition: all 0.25s ease;
}

.t4s-gallery-btn:hover {
    background: #00AAE4;
    color: white;
    border-color: #00AAE4;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 170, 228, 0.3);
}

.t4s-gallery-btn:active {
    transform: translateY(0);
}


/* ==========================================================================
   Galerie Carousel Double Ligne en Différé (Continuous Marquee)
   ========================================================================== */
#galerie {
    overflow: hidden;
}

#galerie .container {
    max-width: 100% !important;
    padding-inline: 0 !important;
}

#galerie .t4s-head {
    max-width: 800px;
    margin-inline: auto;
    padding-inline: 20px;
}

.t4s-gallery-dual {
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: 100%;
    overflow: hidden;
    padding: 10px 0 20px;
    position: relative;
    /* Fondu progressif sur les bords gauche et droite */
    mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
}

.t4s-marquee-row {
    width: 100%;
    overflow: hidden;
    user-select: none;
    display: flex;
}

.t4s-marquee-track {
    display: flex;
    flex-shrink: 0;
    gap: 0; /* l'espacement est porté par chaque carte (margin-right) pour une boucle exacte à -50% */
    width: max-content;
    will-change: transform;
    backface-visibility: hidden;
}

/* Ligne 1 : Défilement fluide vers la gauche */
.t4s-marquee-row--left .t4s-marquee-track {
    animation: t4s-marquee-left 42s linear infinite;
}

/* Ligne 2 : Défilement fluide vers la droite (décalé/sens inverse) */
.t4s-marquee-row--right .t4s-marquee-track {
    animation: t4s-marquee-right 46s linear infinite;
}

/* Pause au survol pour contempler les photos (souris uniquement : sur mobile, un toucher figeait la galerie) */
@media (hover: hover) and (pointer: fine) {
    .t4s-marquee-row:hover .t4s-marquee-track {
        animation-play-state: paused;
    }
}

.t4s-marquee-track .t4s-gallery__item {
    flex: 0 0 260px !important;
    min-width: 260px !important;
    max-width: 260px !important;
    aspect-ratio: 4 / 3 !important;
    height: 195px !important;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    margin: 0 16px 0 0;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.t4s-marquee-track .t4s-gallery__item:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 28px rgba(0, 170, 228, 0.25);
    z-index: 2;
}

.t4s-marquee-track .t4s-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.t4s-marquee-track .t4s-gallery__item figcaption {
    position: absolute;
    inset: auto 0 0 0;
    padding: 24px 12px 10px;
    background: linear-gradient(to top, rgba(10, 31, 68, 0.88), transparent);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.82rem;
    line-height: 1.25;
}

@keyframes t4s-marquee-left {
    from { transform: translate3d(0, 0, 0); }
    to   { transform: translate3d(-50%, 0, 0); }
}

@keyframes t4s-marquee-right {
    from { transform: translate3d(-50%, 0, 0); }
    to   { transform: translate3d(0, 0, 0); }
}

@media (max-width: 768px) {
    .t4s-gallery-dual {
        gap: 12px;
    }
    .t4s-marquee-track .t4s-gallery__item {
        flex: 0 0 210px !important;
        min-width: 210px !important;
        max-width: 210px !important;
        height: 155px !important;
        border-radius: 12px;
    }
    .t4s-marquee-row--left .t4s-marquee-track {
        animation-duration: 32s;
    }
    .t4s-marquee-row--right .t4s-marquee-track {
        animation-duration: 36s;
    }
}

/* ==========================================================================
   Accès rapides — panneau unifié (sous le hero)
   Remplace les anciennes règles .t4s-quick* (déclaré en fin de fichier pour primer).
   ========================================================================== */
.t4s-quick { position: relative; z-index: 3; margin-top: -40px; }

.t4s-quick__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    padding: 6px;
    background: var(--c-white);
    border: 1px solid var(--c-line);
    border-radius: 22px;
    box-shadow: none;
}

.t4s-quick__item {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas: "icon title" "icon sub";
    align-items: center;
    column-gap: 14px;
    row-gap: 2px;
    min-width: 0;
    min-height: 0;
    padding: 16px 14px;
    background: transparent;
    border: 0;
    border-radius: 16px;
    box-shadow: none;
    text-align: left;
    transition: background-color .25s var(--ease);
}
.t4s-quick__item:hover { transform: none; background: #EEF9FE; }
.t4s-quick__item:focus-visible { outline: 2px solid var(--c-primary); outline-offset: -2px; }

/* Séparateurs fins entre les cases */
.t4s-quick__item::after {
    content: "";
    position: absolute;
    right: 0; top: 22%; bottom: 22%;
    width: 1px;
    background: var(--c-line);
}
.t4s-quick__item:nth-child(2n)::after { display: none; }

.t4s-quick__icon {
    grid-area: icon;
    width: 46px; height: 46px;
    border-radius: 14px;
    font-size: 1.1rem;
    box-shadow: none;
    transition: transform .3s var(--ease);
}
.t4s-quick__item:hover .t4s-quick__icon { transform: scale(1.06) rotate(-4deg); }

.t4s-quick__title {
    grid-area: title;
    align-self: end;
    font-size: .88rem;
    color: var(--c-navy);
}
.t4s-quick__sub {
    grid-area: sub;
    align-self: start;
    display: block;
    font-size: .74rem;
    color: var(--c-muted);
}
.t4s-quick__arrow { display: none; }

/* Téléphone : cases compactes, icône au-dessus, centrées */
@media (max-width: 639px) {
    .t4s-quick { margin-top: -24px; }
    .t4s-quick__grid { padding: 4px; border-radius: 18px; border-bottom: 0; }
    .t4s-quick__item {
        grid-template-columns: 1fr;
        grid-template-areas: "icon" "title";
        justify-items: center;
        text-align: center;
        row-gap: 8px;
        padding: 14px 8px;
        border-radius: 14px;
    }
    /* Ligne de séparation horizontale entre les deux rangées */
    .t4s-quick__item:nth-child(-n+2) { box-shadow: inset 0 -1px 0 var(--c-line); border-radius: 14px 14px 0 0; }
    .t4s-quick__icon { width: 40px; height: 40px; border-radius: 12px; font-size: 1rem; }
    .t4s-quick__title { font-size: .76rem; align-self: auto; }
    .t4s-quick__sub { display: none; }
}

/* Tablette : 2 × 2 avec séparation horizontale */
@media (min-width: 640px) and (max-width: 1023px) {
    .t4s-quick__item:nth-child(-n+2) { box-shadow: inset 0 -1px 0 var(--c-line); border-radius: 16px 16px 0 0; }
}

/* Ordinateur : 4 cases sur une ligne, flèche qui glisse au survol */
@media (min-width: 1024px) {
    .t4s-quick { margin-top: -56px; }
    .t4s-quick__grid { grid-template-columns: repeat(4, 1fr); padding: 8px; border-radius: 24px; }
    .t4s-quick__item {
        grid-template-columns: auto 1fr auto;
        grid-template-areas: "icon title arrow" "icon sub arrow";
        padding: 20px 18px;
    }
    .t4s-quick__item:nth-child(2n)::after { display: block; }
    .t4s-quick__item:last-child::after { display: none; }
    .t4s-quick__arrow {
        grid-area: arrow;
        display: block;
        font-size: .8rem;
        color: var(--c-primary);
        opacity: 0;
        transform: translateX(-6px);
        transition: opacity .25s, transform .25s var(--ease);
    }
    .t4s-quick__item:hover .t4s-quick__arrow { opacity: 1; transform: none; }
}

/* ==========================================================================
   Hero — bleu de nuit (remplace le quasi-noir #0A1F44 dans le hero)
   ========================================================================== */
.t4s-hero { --c-navy: #0A2A66; }
.t4s-hero .btn--primary:hover { background: #071F4D; }
@media (max-width: 639px) {
    .t4s-hero__actions .btn { color: var(--c-navy); }
}

/* ==========================================================================
   Hero — image visible sur mobile et tablette
   Carte photo arrondie sous le bouton, pastilles posées à l'intérieur.
   ========================================================================== */
@media (max-width: 1023px) {
    .t4s-hero__grid { gap: 32px; }
    .t4s-hero__visual {
        display: block;
        width: 100%;
        max-width: 520px;
        margin: 0 auto;
        padding-inline: 22px;
    }
    .t4s-hero__photo {
        aspect-ratio: 4 / 3;
        border-radius: 22px;
        border: 3px solid rgba(255, 255, 255, .35);
        box-shadow: none;
    }
    .t4s-hero__photo img { object-position: center 35%; }

    /* Bulle et pastilles disposées comme sur ordinateur, réduites et contenues dans l'écran */
    .t4s-bubble {
        top: -16px; right: 34px; left: auto;
        padding: .5rem .85rem;
        font-size: .82rem;
        border-radius: 14px 14px 14px 4px;
        transform: rotate(-4deg);
    }
    .t4s-chip {
        padding: .42rem .75rem;
        font-size: .74rem;
        gap: .35rem;
    }
    .t4s-chip--b { left: 6px; bottom: 12%; top: auto; right: auto; }
    .t4s-chip--c { right: 6px; top: 48%; bottom: auto; left: auto; }
}
@media (max-width: 380px) {
    .t4s-chip { font-size: .68rem; padding: .36rem .6rem; }
}

/* ==========================================================================
   Pied de page — simplifié (logo + phrase + copyright), centré
   ========================================================================== */
.t4s-footer__grid { grid-template-columns: 1fr !important; justify-items: center; text-align: center; }
.t4s-footer__brand { display: flex; flex-direction: column; align-items: center; }
.t4s-footer__brand p { margin-inline: auto; max-width: 30rem; }
.t4s-footer__bottom { justify-content: center !important; text-align: center !important; }

/* ==========================================================================
   Vidéo de présentation (YouTube, chargée au clic)
   ========================================================================== */
.t4s-video {
    position: relative;
    max-width: 880px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    border-radius: var(--r-lg);
    overflow: hidden;
    background: var(--c-navy);
    border: 4px solid #EEF9FE;
}
.t4s-video iframe,
.t4s-video__poster {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    border: 0;
}
.t4s-video__poster {
    padding: 0;
    cursor: pointer;
    background: var(--c-navy);
}
.t4s-video__poster img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .6s var(--ease), opacity .3s;
}
.t4s-video__poster::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(10, 31, 68, .45), rgba(10, 31, 68, .05));
}
.t4s-video__play {
    position: absolute; top: 50%; left: 50%; z-index: 1;
    width: 78px; height: 78px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: var(--c-primary);
    color: var(--c-white);
    font-size: 1.6rem;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 0 10px rgba(0, 170, 228, .25);
    transition: transform .3s var(--ease), box-shadow .3s;
}
.t4s-video__play i { margin-left: 4px; }
.t4s-video__poster:hover img { transform: scale(1.04); }
.t4s-video__poster:hover .t4s-video__play,
.t4s-video__poster:focus-visible .t4s-video__play {
    transform: translate(-50%, -50%) scale(1.08);
    box-shadow: 0 0 0 16px rgba(0, 170, 228, .22);
}
.t4s-video__poster:focus-visible { outline: 3px solid var(--c-primary); outline-offset: -3px; }

@media (max-width: 639px) {
    .t4s-video { border-radius: 16px; border-width: 3px; }
    .t4s-video__play { width: 60px; height: 60px; font-size: 1.25rem; box-shadow: 0 0 0 7px rgba(0, 170, 228, .25); }
}
