/* 1. VARIABLES ET COULEURS */
:root {
    --fond: #0c021a;
    --carte-bg: rgba(255, 255, 255, 0.05);
    --texte: #f5f6f7;
    --accent: #4dadff;
    --accent-gradient: linear-gradient(135deg, #6e8efb, #a777e3);
}

:root[data-theme="light"] {
    --fond: #dbd5aedc;
    --carte-bg: #d3d0a79f;
    --texte: #1a1a1a;
    --accent: #2575fc;
    --accent-gradient: linear-gradient(135deg, #4facfe, #00f2fe);
}

body.light-mode {
    --fond: #f0f2f8;
    --carte-bg: rgba(255, 255, 255, 0.85);
    --texte: #1c1e21;
    --accent: #1a73e8;
    --accent-gradient: linear-gradient(135deg, #4facfe, #00f2fe);
}

body.light-mode .navbar.scrolled {
    background: rgba(240, 242, 248, 0.7);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

body.light-mode .nav-links a {
    color: rgba(0, 0, 0, 0.7);
}

body.light-mode .nav-links a:hover,
body.light-mode .nav-links a.active {
    color: var(--accent);
}

body.light-mode .logo-text {
    color: #1a1a1a;
}

body.light-mode .main-title {
    color: #1a1a1a;
}

body.light-mode .main-title span {
    color: #1a73e8;
}

body.light-mode .tagline {
    color: rgba(0, 0, 0, 0.75);
}

body.light-mode .tagline strong {
    color: #1a1a1a;
}

body.light-mode .section-subtitle,
body.light-mode .transition-text p {
    color: rgba(0, 0, 0, 0.6);
}

body.light-mode .service-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

body.light-mode .service-card p {
    color: #444;
}

body.light-mode .item-card.video-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

body.light-mode .card-info h3 {
    color: #1a1a1a;
}

body.light-mode .card-info ul {
    color: rgba(0, 0, 0, 0.65);
}

body.light-mode .card-channel-name {
    color: rgba(0, 0, 0, 0.55);
}

body.light-mode .contact-form-container {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

body.light-mode .contact-form-container h2 {
    color: #1a1a1a;
}

body.light-mode .form-group input,
body.light-mode .form-group select,
body.light-mode .form-group textarea {
    color: #1c1e21;
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.15);
}

body.light-mode .form-group input::placeholder,
body.light-mode .form-group textarea::placeholder {
    color: rgba(0, 0, 0, 0.4);
}

body.light-mode footer {
    color: rgba(0, 0, 0, 0.5);
}

body.light-mode .scroll-arrow span {
    border-color: #1a73e8;
}

body.light-mode .titre-realisations {
    background: linear-gradient(135deg, #1a1a1a 0%, #6e3cbf 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

body.light-mode .transition-text h2 {
    background: linear-gradient(135deg, #1a1a1a 0%, #6e3cbf 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 2. BASE */
html {
    font-size: 15px;
}

@media (min-width: 1920px) {
    html { font-size: 17px; }
}

@media (min-width: 2560px) {
    html { font-size: 22px; }
    .video-gallery { max-width: 1800px; }
    .item-card.video-card { max-width: 1750px; }
    .video-wrapper { width: 480px; min-height: 580px; }
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--fond);
    color: var(--texte);
    font-family: 'Segoe UI', Tahoma, sans-serif;
    transition: background-color 0.5s ease, color 0.5s ease;
    min-height: 100vh;
    position: relative;
}

html { overflow-x: hidden; }

/* 3. NAVIGATION */
.navbar {
    display: flex;
    min-height: 70px;
    justify-content: space-between;
    align-items: center;
    padding: 16px 45px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(15, 20, 30, 0);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    z-index: 9999;
    border-bottom: 1px solid transparent;
    box-sizing: border-box;
    transition: all 0.8s ease;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.navbar.scrolled {
    min-height: 70px;
    background: rgba(15, 20, 30, 0.3);
    backdrop-filter: blur(30px) saturate(150%) brightness(110%);
    -webkit-backdrop-filter: blur(30px) saturate(150%) brightness(110%);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.navbar::after {
    content: '';
    position: absolute;
    bottom: -40px;
    left: 0;
    width: 100%;
    height: 40px;
    background: linear-gradient(to bottom, rgba(15,20,35,0.3) 0%, rgba(15,20,35,0.15) 50%, transparent 100%);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    opacity: 0;
    transition: opacity 0.8s ease;
    pointer-events: none;
}

.navbar.scrolled::after { opacity: 1; }

.nav-left, .nav-right {
    flex: 1;
    display: flex;
    align-items: center;
}

.nav-left { justify-content: flex-start; }
.nav-right { justify-content: flex-end; }

.nav-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 2;
}

.nav-links li { list-style: none; }

.nav-links a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    font-size: 0.92rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--accent);
    text-shadow: 0 0 8px rgba(77, 173, 219, 0.6);
}

.nav-links a.active {
    border-bottom: 3px solid var(--accent);
    padding-bottom: 5px;
}

.btn-nav {
    background: var(--accent-gradient);
    border: none;
    padding: 10px 24px;
    border-radius: 50px;
    color: white;
    font-weight: bold;
    font-size: 0.88rem;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 5px 15px rgba(110, 142, 251, 0.4);
    transition: all 0.3s ease;
}

.btn-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(110, 142, 251, 0.6);
    filter: brightness(1.1);
}

/* Logo navbar */
.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.logo-wrapper:hover { opacity: 0.8; }

.nav-logo-img {
    width: 32px;
    height: 32px;
    filter: drop-shadow(0 0 5px rgba(0, 150, 255, 0.5));
}

.logo-text {
    font-size: 1.35rem;
    font-weight: 800;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: -0.5px;
    font-family: 'Poppins', -apple-system, sans-serif;
}

.logo-blue {
    color: #6eb4ff;
    font-weight: 800;
    text-shadow: 0 0 10px rgba(110, 180, 255, 0.4);
}

.light-mode .logo-text { color: #1a1a1a; }

/* 4. HERO SECTION */
.hero-section {
    padding-top: 55px;
    padding-bottom: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    opacity: 1 !important;
    transform: none !important;
}

.hero-logo-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 28px;
    margin-bottom: -18px;
    margin-top: -75px;
}

.hero-logo {
    width: 88px;
    height: auto;
    margin-bottom: 12px;
    filter: drop-shadow(0 0 10px rgba(0, 150, 255, 0.3));
}

.main-title {
    font-size: 3rem;
    margin: 8px 0;
    line-height: 1.1;
    color: #fff;
    font-weight: 800;
    font-family: 'Poppins', -apple-system, sans-serif;
    letter-spacing: -1px;
}

.main-title span {
    color: #6eb4ff;
    text-shadow: 0 0 15px rgba(110, 180, 255, 0.5);
}

.h1-copyright {
    font-size: 0.9rem;
    vertical-align: super;
    opacity: 0.6;
    margin-left: 5px;
}

.tagline {
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.5;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.85);
}

.tagline strong {
    font-weight: 700;
    color: #ffffff;
}

/* 5. SCROLL ARROW */
.scroll-down-container {
    position: relative;
    width: 100%;
    height: 60px;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 100;
    pointer-events: auto;
}

.scroll-down-container.index { bottom: 0; margin-top: 20px; margin-bottom: 20px; }
.scroll-down-container.projets { bottom: -80px; margin-top: -60px; }

.scroll-arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    pointer-events: auto;
}

.scroll-arrow span {
    display: block;
    width: 18px;
    height: 18px;
    border-bottom: 3px solid #0096ff;
    border-right: 3px solid #0096ff;
    transform: rotate(45deg);
    margin: -9px;
    animation: arrowScroll 2s infinite;
    pointer-events: none;
}

.blob-container { pointer-events: none; }

.scroll-arrow span:nth-child(2) { animation-delay: -0.2s; }

@keyframes arrowScroll {
    0%   { opacity: 0; transform: rotate(45deg) translate(-20px, -20px); }
    50%  { opacity: 1; }
    100% { opacity: 0; transform: rotate(45deg) translate(20px, 20px); }
}

/* 6. SERVICES */
.services-section {
    padding: 35px 0;
    margin-top: -35px;
    margin-bottom: 80px;
}

.services-section .transition-text {
    margin-top: -35px;
    margin-bottom: -35px;
}

.transition-text {
    text-align: center;
    margin: 0 auto 35px;
    padding: 0 20px;
}

.transition-text h2 {
    font-size: 2.2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff 0%, #a777e3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
}

.transition-text p, .section-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.5);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
}

.services-container {
    display: flex;
    justify-content: center;
    gap: 22px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    margin-top: 100px;
}

.service-card {
    flex: 1;
    min-width: 260px;
    max-width: 330px;
    background: var(--carte-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 35px;
    padding: 26px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: space-between;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s ease;
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-12px) scale(1.03);
    border-color: var(--accent);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.service-card h3 {
    color: var(--accent);
    font-size: 1.1rem;
    margin-top: 0;
    margin-bottom: 12px;
    transition: 0.3s;
}

.service-card:hover h3 {
    color: #fff;
    text-shadow: 0 0 10px var(--accent);
}

.service-card p { margin-bottom: 12px; font-size: 0.95rem; }

/* 7. BOUTONS */
.btn-savoir-plus {
    display: block;
    width: 100%;
    background: transparent;
    color: #6e8efb;
    border: 1px solid #6e8efb;
    padding: 9px 22px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9rem;
    text-align: center;
    transition: all 0.3s ease;
}

.btn-savoir-plus:hover {
    background: #6e8efb;
    color: white;
    transform: scale(1.02);
}

#monBoutonAccueil, .popup-cta, .btn-primary {
    background: var(--accent-gradient);
    color: white;
    padding: 13px 32px;
    border-radius: 50px;
    border: none;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(110, 142, 251, 0.4);
    transition: all 0.3s ease;
    display: inline-block;
    margin-top: 18px;
    text-decoration: none;
}

#submitBtn {
    background: #2455f5;
    color: white;
    padding: 17px 40px;
    border-radius: 11px;
    border: none;
    font-weight: 700;
    font-size: 0.94rem;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(36,85,245,.25);
    transition: opacity .2s, transform .18s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 8px;
    text-decoration: none;
}

#monBoutonAccueil:hover, .popup-cta:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(110, 142, 251, 0.6);
    filter: brightness(1.1);
}

#submitBtn:hover {
    opacity: .85;
    transform: translateY(-2px);
}

#submitBtn:disabled {
    background: #555;
    cursor: not-allowed;
    transform: none;
    opacity: 0.7;
}

/* 8. FORMULAIRE CONTACT */
#contact {
    margin-top: 90px;
    padding-top: 55px;
}

.contact-form-container {
    max-width: 580px;
    width: 90%;
    margin: 35px auto 45px;
    background: var(--carte-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 35px;
    padding: 28px;
}

.contact-form-container h2 {
    margin-top: 0;
    margin-bottom: 18px;
    font-size: 1.6rem;
    text-align: center;
}

.form-group { margin-bottom: 18px; text-align: left; }

.form-group label {
    font-size: 0.88rem;
    display: block;
    margin-bottom: 7px;
    color: var(--accent);
    font-weight: 600;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 11px 14px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: white;
    font-family: inherit;
    font-size: 0.95rem;
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 15px;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.12);
}

.form-group textarea {
    resize: none;
    max-width: 100%;
    overflow: hidden;
    min-height: 100px;
}

body.light-mode .form-group input,
body.light-mode .form-group select,
body.light-mode .form-group textarea {
    color: #1c1e21;
    background: rgba(0, 0, 0, 0.05);
}

select option {
    background-color: #1a1a2e;
    color: white;
}

/* 9. POPUP */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 999999;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
    padding: 20px;
    box-sizing: border-box;
}

.popup-overlay.active { display: flex; }
body.popup-active { overflow: hidden; }

.popup-content {
    background: #1a1a2e;
    padding: 32px;
    border-radius: 20px;
    width: 90%;
    max-width: 480px;
    position: relative;
    opacity: 0;
}

.popup-overlay.active .popup-content {
    animation: popupIn 0.45s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

#shopPopup {
    align-items: flex-start;
    padding: 30px 20px;
}

#shopPopup .popup-content { overflow: hidden !important; }

#cartPanel {
    position: absolute;
    top: 0;
    right: 0;
    width: 320px;
    height: 100%;
    background: #0e0c22;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0 28px 28px 0;
    padding: 32px 24px;
    box-sizing: border-box;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 20;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

#cartPanel.open { transform: translateX(0) !important; }

.popup-overlay.closing .popup-content {
    animation: popupOut 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

@keyframes popupIn {
    from { opacity: 0; transform: translateY(30px) scale(0.95); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes popupOut {
    from { opacity: 1; transform: translateY(0) scale(1); }
    to   { opacity: 0; transform: translateY(30px) scale(0.95); }
}

.close-popup {
    position: absolute;
    top: 18px;
    right: 18px;
    font-size: 28px;
    color: white;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-popup:hover { color: var(--accent); }

#popupBenefits {
    padding-left: 0;
    list-style: none;
}

#popupBenefits li {
    margin: 11px 0;
    color: #e0e0e0;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

#infoPopup #popupBenefits li::before {
    content: "✓";
    color: var(--accent);
    font-weight: bold;
}

#socialPopup #popupBenefits li::before {
    content: none;
}

/* 10. THEME SWITCHER */
#theme-slider { display: none; }

.switch-container {
    position: fixed;
    bottom: 40px;
    right: 28px;
    z-index: 1000;
}

.slider-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px;
    width: 58px;
    height: 32px;
    background-color: #333;
    border-radius: 50px;
    position: relative;
}

.ball {
    position: absolute;
    left: 4px;
    top: 3px;
    width: 24px;
    height: 24px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.checkbox:checked ~ .slider-label .ball { transform: translateX(40px); }

/* 11. BLOB ANIMATION */
.blob-2 {
    position: fixed;
    width: 900px;
    height: 900px;
    background: var(--accent);
    filter: blur(100px);
    opacity: 0.1;
    border-radius: 90%;
    top: -10%;
    left: -10%;
    animation: moveEverywhere 70s infinite alternate ease-in-out;
    pointer-events: none;
}

@keyframes moveEverywhere {
    0%   { transform: translate(0, 0) rotate(0deg) scale(1); }
    25%  { transform: translate(80vw, 10vh) rotate(90deg) scale(1.2); }
    50%  { transform: translate(70vw, 70vh) rotate(180deg) scale(1); }
    75%  { transform: translate(10vw, 80vh) rotate(270deg) scale(1.3); }
    100% { transform: translate(40vw, 40vh) rotate(360deg) scale(1); }
}

/* 12. REVEAL ANIMATION */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* 13. MAIN CONTENT */
.main-content {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-top: 95px;
    z-index: 10;
}

/* 14. FOOTER */
footer {
    text-align: center;
    padding: 35px 20px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.88rem;
}

/* 15. NOTIFICATION */
.notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: rgba(30, 35, 50, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(110, 142, 251, 0.3);
    border-radius: 20px;
    padding: 22px 38px;
    display: none;
    align-items: center;
    gap: 14px;
    z-index: 999999;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    opacity: 0;
    animation: notifIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.notification.show { display: flex; }

.notification-icon {
    width: 38px;
    height: 38px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.4rem;
    font-weight: bold;
}

.notification-text {
    color: white;
    font-size: 1.05rem;
    font-weight: 600;
}

@keyframes notifIn {
    0%   { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
    100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

@keyframes notifOut {
    0%   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
}

.notification.hide { animation: notifOut 0.3s ease forwards; }

/* 16. PAGE PROJETS */
.container-grid {
    display: flex;
    justify-content: center;
    gap: 22px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 35px auto;
}

.item-card {
    background: var(--carte-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 22px;
    text-align: center;
}

.item-card.video-card {
    display: flex;
    flex-direction: row !important;
    max-width: 860px;
    min-width: unset;
    width: 100%;
    align-items: flex-start;
    text-align: left;
    gap: 22px;
    padding: 20px;
    margin: 0 auto;
}

.video-gallery {
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 100%;
    max-width: 900px;
    margin: 35px auto;
}

.video-left {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-shrink: 0;
}

.video-wrapper {
    position: relative;
    width: 230px;
    min-height: 300px;
    overflow: hidden;
    border-radius: 12px;
}

.card-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 12px;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 12px;
    opacity: 0;
    transition: all 0.3s ease;
}

.video-wrapper:hover .video-overlay {
    background: rgba(0, 0, 0, 0.5);
    opacity: 1;
}

.fullscreen-btn {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 9px 20px;
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.fullscreen-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.tiktok-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tiktok-btn:hover {
    background: rgba(0, 0, 0, 0.85);
    transform: scale(1.05);
}

.tiktok-icon { width: 15px; height: 15px; }

.card-channel {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
}

.card-channel img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.card-channel-name {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 600;
}

.card-info {
    display: flex;
    flex-direction: column;
    padding: 12px 16px;
    text-align: left;
    flex: 1;
    justify-content: center;
}

.card-info h3 {
    font-size: 1.55rem;
    font-weight: 800;
    color: white;
    margin: 0 0 18px 0;
    font-family: 'Poppins', sans-serif;
    letter-spacing: -0.5px;
}

.card-info ul {
    padding-left: 0;
    list-style: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    line-height: 1.3;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.card-info ul li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-info ul li::before {
    content: "▸";
    color: var(--accent);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.titre-realisations {
    text-align: center;
    margin-top: 140px;
    font-size: 2.2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff 0%, #a777e3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.titre-panier {
    text-align: center;
    margin-top: 85px;
    margin-bottom: -60px;
    font-size: 2.2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff 0%, #a777e3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 17. RESPONSIVE */
@media (max-width: 768px) {
    .navbar { padding: 14px 20px; }
    .nav-links { gap: 18px; }
    .nav-links a { font-size: 0.82rem; }
    .btn-nav { padding: 9px 18px; font-size: 0.82rem; }
    .main-title { font-size: 2.2rem; }
    .hero-section { padding-top: 100px; }
    .services-container { flex-direction: column; align-items: center; }
    .service-card { max-width: 100%; }
    .titre-realisations { font-size: 1.8rem; margin-top: 80px; }
    #scrollTopBtn { bottom: 90px !important; right: 16px; width: 44px; height: 44px; }
    .switch-container { bottom: 20px !important; right: 16px; }
}

@media (max-width: 480px) {
    .navbar { flex-direction: column; height: auto; padding: 12px 15px; gap: 10px; }
    .nav-left, .nav-links, .nav-right { flex: none; width: 100%; justify-content: center; }
    .nav-links { flex-direction: column; gap: 10px; margin: 8px 0; align-items: center; }
    .main-title { font-size: 1.8rem; }
    .tagline { font-size: 0.9rem; }
}

@media (max-width: 900px) {
    .item-card.video-card { flex-direction: column !important; max-width: 100% !important; width: 100% !important; margin: 0 auto; box-sizing: border-box !important; overflow: hidden !important; }
    .video-wrapper { width: 100% !important; max-width: 100% !important; min-height: 200px; box-sizing: border-box !important; }
    .video-gallery { max-width: 95vw; overflow: hidden; }
    .card-video { width: 100% !important; max-width: 100% !important; }
    .card-info h3 { font-size: 1.3rem; }
    .card-info ul { font-size: 0.92rem; gap: 14px; }
}

/* 18. MODAL */
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(0, 0, 0, 0.92);
    z-index: 999999;
    justify-content: center;
    align-items: center;
}

.modal[style*="display: block"] { display: flex !important; }

.modal-content { width: 90%; max-width: 800px; position: relative; }

.modal-content video {
    width: 100%;
    border-radius: 12px;
    max-height: 80vh;
}

.close-modal {
    position: absolute;
    top: -40px; right: 0;
    font-size: 36px;
    color: white;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal:hover { color: var(--accent); }

.service-card .btn-savoir-plus {
    width: auto;
    padding: 10px 28px;
    display: inline-block !important;
}

.hero-section .btn-primary {
    margin-top: 10px;
    margin-bottom: 40px;
}

/* 19. SOCIAL LINKS */
.social-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    color: white;
    cursor: pointer;
}

#socialPopup #popupBenefits {
    list-style: none;
    padding-left: 0;
}

#socialPopup #popupBenefits li {
    list-style: none;
    padding-left: 0;
    margin-left: 0;
}

.social-link.tiktok {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link.tiktok:hover {
    background: rgba(0, 0, 0, 0.8);
    border-color: white;
    transform: translateX(5px);
}

.social-link.instagram {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link.instagram:hover {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    border-color: transparent;
    transform: translateX(5px);
}

.social-link.youtube {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link.youtube:hover {
    background: #ff0000;
    border-color: transparent;
    transform: translateX(5px);
}

/* 20. VIDEO HORIZONTAL */
.video-wrapper.horizontal {
    width: 500px;
    height: 280px;
    min-height: unset;
    aspect-ratio: unset;
    overflow: hidden;
    border-radius: 12px;
}

.item-card.video-card:has(.horizontal) .video-left {
    width: 500px;
    max-width: 500px;
    flex-shrink: 0;
}

.item-card.video-card:has(.horizontal) { max-width: 1000px; }

.video-wrapper.horizontal .card-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 21. À PROPOS */
.about-section {
    max-width: 800px;
    margin: 80px auto 60px;
    padding: 0 20px;
    text-align: center;
}

.about-title {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff 0%, #a777e3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-content { text-align: left; line-height: 1.8; }
.about-content p { font-size: 1.05rem; color: rgba(255, 255, 255, 0.75); margin-bottom: 25px; }
.about-content p:last-child { margin-bottom: 0; }
.about-content strong { color: #fff; font-weight: 700; }

body.light-mode .about-title {
    background: linear-gradient(135deg, #1a1a1a 0%, #6e3cbf 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

body.light-mode .about-content p { color: rgba(0, 0, 0, 0.75); }
body.light-mode .about-content strong { color: #1a1a1a; }

@media (max-width: 768px) {
    .about-title { font-size: 2rem; }
    .about-content p { font-size: 0.95rem; }
}

/* 22. RECRUTEMENT */
.recruitment-section {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.recruitment-benefits {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
    margin: 50px auto;
    max-width: 900px;
}

.benefit-card {
    flex: 1;
    min-width: 220px;
    max-width: 280px;
    background: var(--carte-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.benefit-card:hover { transform: translateY(-8px); border-color: var(--accent); }
.benefit-icon { font-size: 3rem; display: block; margin-bottom: 15px; }
.benefit-card h3 { color: var(--accent); font-size: 1.2rem; margin: 10px 0; }
.benefit-card p { color: rgba(255, 255, 255, 0.7); font-size: 0.9rem; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }

@media (max-width: 600px) {
    .form-row { grid-template-columns: 1fr; }
    .recruitment-benefits { flex-direction: column; align-items: center; }
    .benefit-card { max-width: 100%; }
}

body.light-mode .benefit-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-mode .benefit-card p { color: rgba(0, 0, 0, 0.65); }

#recruitBtn {
    background: var(--accent-gradient);
    color: white;
    padding: 13px 32px;
    border-radius: 50px;
    border: none;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(110, 142, 251, 0.4);
    transition: all 0.3s ease;
    display: inline-block;
    margin-top: 18px;
    width: 100%;
}

#recruitBtn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 20px rgba(110, 142, 251, 0.6);
    filter: brightness(1.1);
}

#recruitBtn:disabled { background: #555; cursor: not-allowed; transform: none; opacity: 0.7; }

html.light-mode-early body,
html.light-mode-early { background-color: #f0f2f8; }

body.no-transition,
body.no-transition * { transition: none !important; }

/* ══════════════════════════════════════════════
   23. CURSEUR PERSONNALISÉ
══════════════════════════════════════════════ */




/* ══════════════════════════════════════════════
   24. BOUTON SCROLL TOP
══════════════════════════════════════════════ */
#scrollTopBtn {
    position: fixed;
    bottom: 32px; right: 32px;
    z-index: 1000;
    width: 52px; height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    border: none;
    color: white;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 24px rgba(110,142,251,0.45);
    opacity: 0;
    transform: translateY(20px) scale(0.8);
    transition: opacity .35s, transform .35s cubic-bezier(.34,1.56,.64,1);
    pointer-events: none;
}

#scrollTopBtn.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

#scrollTopBtn.clicked { transform: scale(0.88); }

#scrollTopBtn:hover {
    box-shadow: 0 10px 32px rgba(110,142,251,0.6);
    filter: brightness(1.1);
}

#scrollTopBtn svg { width: 22px; height: 22px; stroke: white; }

#scrollTopBtn::before {
    content: '';
    position: absolute; inset: -3px;
    border-radius: 50%;
    border: 2px dashed rgba(255,255,255,0.25);
    animation: spinRing 8s linear infinite;
}

@keyframes spinRing { to { transform: rotate(360deg); } }

/* ══════════════════════════════════════════════
   25. FAQ
══════════════════════════════════════════════ */
.faq-section {
    padding: 100px 24px;
    max-width: 960px;
    margin: 0 auto;
}

.faq-inner { width: 100%; }
.faq-header { text-align: center; margin-bottom: 56px; }

.faq-label {
    display: inline-block;
    font-size: 0.72rem; font-weight: 700; letter-spacing: .16em;
    text-transform: uppercase; color: #6e8efb;
    background: rgba(110,142,251,.1); border: 1px solid rgba(110,142,251,.2);
    padding: 5px 14px; border-radius: 20px; margin-bottom: 16px;
}

.faq-title {
    font-size: clamp(1.7rem, 4vw, 2.4rem);
    font-weight: 800; color: white; margin: 0 0 12px;
}

.faq-sub { font-size: .9rem; color: rgba(255,255,255,.4); margin: 0; }

.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }

@media (max-width: 720px) { .faq-grid { grid-template-columns: 1fr; } }

.faq-item {
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 18px;
    overflow: hidden;
    transition: border-color .25s;
}

.faq-item:hover { border-color: rgba(110,142,251,.25); }
.faq-item.open  { border-color: rgba(110,142,251,.4); background: rgba(110,142,251,.05); }

.faq-question {
    display: flex; align-items: center; gap: 12px;
    padding: 20px 22px;
    cursor: pointer;
    user-select: none;
    font-size: .9rem; font-weight: 700; color: white;
}

.faq-q-icon { font-size: 1.1rem; flex-shrink: 0; }
.faq-question span:nth-child(2) { flex: 1; }

.faq-arrow {
    font-size: 1.3rem; color: rgba(255,255,255,.3);
    transition: transform .3s, color .3s;
    line-height: 1;
}

.faq-item.open .faq-arrow { transform: rotate(90deg); color: #6e8efb; }

.faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    padding: 0 22px;
    font-size: .84rem; color: rgba(255,255,255,.55); line-height: 1.75;
    transition: grid-template-rows .4s cubic-bezier(.4,0,.2,1), padding .4s;
}
.faq-answer > * { overflow: hidden; }
.faq-item.open .faq-answer { grid-template-rows: 1fr; padding: 0 22px 20px; }
.faq-answer strong { color: rgba(255,255,255,.85); }

/* Light mode FAQ */
.light-mode .faq-item          { background: rgba(0,0,0,.03); border-color: rgba(0,0,0,.08); }
.light-mode .faq-item.open     { background: rgba(110,142,251,.05); }
.light-mode .faq-question      { color: #1a1a2e; }
.light-mode .faq-answer        { color: rgba(0,0,0,.55); }
.light-mode .faq-title         { color: #1a1a2e; }

/* ══════════════════════════════════════════════
   26. TRUSTPILOT
══════════════════════════════════════════════ */
.trustpilot-section {
    padding: 80px 24px 100px;
    max-width: 1100px;
    margin: 0 auto;
}

.trustpilot-inner { width: 100%; }
.tp-header { text-align: center; margin-bottom: 48px; }

.tp-label {
    display: inline-block;
    font-size: 0.72rem; font-weight: 700; letter-spacing: .16em;
    text-transform: uppercase; color: #00b67a;
    background: rgba(0,182,122,.1); border: 1px solid rgba(0,182,122,.2);
    padding: 5px 14px; border-radius: 20px; margin-bottom: 16px;
}

.tp-title { font-size: clamp(1.7rem, 4vw, 2.2rem); font-weight: 800; color: white; margin: 0 0 10px; }
.tp-sub { font-size: .88rem; color: rgba(255,255,255,.4); margin: 0; }

.trustpilot-widget-wrap {
    margin: 0 auto 44px;
    max-width: 600px;
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 16px;
    padding: 20px 24px;
}

.tp-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

@media (max-width: 900px) { .tp-cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .tp-cards { grid-template-columns: 1fr; } }

.tp-card {
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 20px;
    padding: 24px 22px;
    transition: border-color .25s, transform .25s;
}

.tp-card:hover { border-color: rgba(0,182,122,.3); transform: translateY(-4px); }
.tp-stars { font-size: 1.1rem; color: #00b67a; letter-spacing: 2px; margin-bottom: 14px; }

.tp-text {
    font-size: .83rem; color: rgba(255,255,255,.65);
    line-height: 1.65; margin: 0 0 18px; font-style: italic;
}

.tp-author { display: flex; align-items: center; gap: 10px; }

.tp-avatar {
    width: 34px; height: 34px; border-radius: 50%;
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    display: flex; align-items: center; justify-content: center;
    font-size: .85rem; font-weight: 800; color: white; flex-shrink: 0;
}

.tp-name { font-size: .82rem; font-weight: 700; color: white; }
.tp-role { font-size: .72rem; color: rgba(255,255,255,.35); }

.tp-verified {
    margin-left: auto;
    font-size: .68rem; font-weight: 700;
    color: #00b67a; background: rgba(0,182,122,.1);
    border: 1px solid rgba(0,182,122,.2);
    padding: 2px 8px; border-radius: 20px;
    white-space: nowrap;
}

.tp-cta {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(0,182,122,.1); border: 1px solid rgba(0,182,122,.25);
    color: #00b67a; padding: 12px 28px; border-radius: 50px;
    font-size: .88rem; font-weight: 700; text-decoration: none;
    cursor: pointer;
    transition: all .25s;
}

.tp-cta:hover { background: rgba(0,182,122,.18); transform: translateY(-2px); }

/* ── BADGE TRUSTPILOT CUSTOM ── */
.tp-badge-wrap {
    display: block;
    text-decoration: none;
    max-width: 520px;
    margin: 0 auto 44px;
}

.tp-badge {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(0,182,122,0.06);
    border: 1px solid rgba(0,182,122,0.25);
    border-radius: 18px;
    padding: 18px 24px;
    transition: all .3s ease;
}

.tp-badge-wrap:hover .tp-badge {
    background: rgba(0,182,122,0.12);
    border-color: rgba(0,182,122,0.5);
    transform: translateY(-2px);
    box-shadow: 0 10px 32px rgba(0,182,122,0.15);
}

.tp-badge-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.tp-star-logo {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.tp-badge-title {
    display: block;
    font-size: .95rem;
    font-weight: 800;
    color: white;
}

.tp-badge-sub {
    display: block;
    font-size: .75rem;
    color: rgba(255,255,255,.4);
    margin-top: 2px;
}

.tp-badge-stars {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.tp-badge-stars span:first-child {
    font-size: 1.1rem;
    color: #00b67a;
    letter-spacing: 2px;
}

.tp-badge-new {
    font-size: .65rem !important;
    font-weight: 700;
    color: #00b67a !important;
    background: rgba(0,182,122,.12);
    border: 1px solid rgba(0,182,122,.25);
    padding: 2px 8px;
    border-radius: 20px;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.tp-badge-arrow {
    font-size: 1.2rem;
    color: rgba(0,182,122,.6);
    transition: transform .3s;
}

.tp-badge-wrap:hover .tp-badge-arrow {
    transform: translateX(4px);
    color: #00b67a;
}

/* Light mode Trustpilot */
.light-mode .tp-title           { color: #1a1a2e; }
.light-mode .tp-card            { background: rgba(0,0,0,.02); border-color: rgba(0,0,0,.07); }
.light-mode .tp-name            { color: #1a1a2e; }
.light-mode .tp-text            { color: rgba(0,0,0,.6); }
.light-mode .trustpilot-widget-wrap { background: rgba(0,0,0,.02); }

/* ── MOBILE NAV DRAWER ── */
.mobile-nav-drawer {
    position: fixed;
    top: 0; left: 0; right: 0;
    background: rgba(12, 2, 26, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 998;
    padding: 80px 32px 36px;
    transform: translateY(-110%);
    transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
    border-bottom: 1px solid rgba(255,255,255,0.07);
    display: block;
}
.mobile-nav-drawer.open {
    transform: translateY(0);
}
.mobile-nav-drawer ul {
    list-style: none; padding: 0; margin: 0 0 20px;
}
.mobile-nav-drawer ul li {
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.mobile-nav-drawer ul li a,
.mobile-nav-drawer ul li button {
    display: block; width: 100%; text-align: left;
    padding: 14px 0; font-size: 1rem; font-weight: 600;
    color: rgba(255,255,255,0.75); text-decoration: none;
    background: transparent; border: none;
    cursor: pointer; font-family: inherit;
    transition: color 0.2s;
}
.mobile-nav-drawer ul li a:hover,
.mobile-nav-drawer ul li button:hover { color: white; }
.mobile-shop-btn {
    width: 100%; padding: 13px; border-radius: 50px;
    background: var(--accent-gradient); color: white;
    border: none; font-weight: 700; font-size: 0.95rem;
    cursor: pointer; font-family: inherit;
}
@media (min-width: 769px) {
    .mobile-nav-drawer { display: none !important; }
}
/* ── HAMBURGER BUTTON ── */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px;
    z-index: 9999;
    flex-shrink: 0;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: transform 0.35s ease, opacity 0.35s ease, width 0.35s ease;
    transform-origin: center;
}

/* Croix quand ouvert */
.hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
    opacity: 0;
    width: 0;
}
.hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 768px) {
    .hamburger { display: flex; }
    .nav-links  { display: none !important; }
    .btn-nav    { display: none !important; }
}


@media (max-width: 720px) {
    html, body { overflow-x: hidden !important; max-width: 100vw !important; }
    .carousel-section { padding: 0 !important; max-width: 100vw !important; overflow: hidden !important; }
    .carousel-outer { max-width: 100vw !important; width: 100vw !important; overflow: hidden !important; }
    .carousel-viewport { max-width: 100vw !important; overflow: hidden !important; }
    .carousel-track .item-card.video-card { width: calc(100vw - 32px) !important; flex: 0 0 calc(100vw - 32px) !important; max-width: calc(100vw - 32px) !important; box-sizing: border-box !important; overflow: hidden !important; }
    .carousel-track .item-card.video-card .video-wrapper { width: 100% !important; max-width: 100% !important; }
    .carousel-track .item-card.video-card .card-video { width: 100% !important; max-width: 100% !important; }
    #carouselTrackM .item-card.video-card { height: 200px !important; }
    #carouselTrackM .item-card.video-card img { height: 200px !important; width: 100% !important; object-fit: cover !important; }
}


/* Ajouter à la fin de style.css */
#carouselTrackM .item-card.video-card {
    box-shadow:
        0 0 0 1px rgba(110, 142, 251, 0.15),
        0 0 40px rgba(110, 142, 251, 0.45),
        0 0 80px rgba(167, 119, 227, 0.25);
    transition: box-shadow 0.3s ease;
}

#carouselTrackM .item-card.video-card.active {
    box-shadow:
        0 0 0 1px rgba(110, 142, 251, 0.3),
        0 0 50px rgba(110, 142, 251, 0.6),
        0 0 100px rgba(167, 119, 227, 0.4);
}

carousel-section:has(#carouselTrackM) .carousel-viewport {
    overflow: hidden !important;
    padding: 20px !important;
    margin: -20px !important;
}

/* Ajouter à la fin de style.css */

/* Autoriser le glow à déborder */
.carousel-section:has(#carouselTrackM) .carousel-outer {
    overflow: hidden;
    border-radius: 20px;
}
.carousel-section:has(#carouselTrackM) .carousel-outer {
    overflow: visible !important;
}
.carousel-section:has(#carouselTrackM) {
    position: relative;
    overflow: visible !important;
}

.carousel-section:has(#carouselTrackM)::after {
    content: '';
    position: absolute;
    inset: -20px;
    border-radius: 32px;
    pointer-events: none;
    z-index: 5;
    box-shadow:
        inset 0 0 0 2px rgba(110, 142, 251, 0.25),
        0 0 40px rgba(110, 142, 251, 0.55),
        0 0 80px rgba(167, 119, 227, 0.3);
}

.carousel-section:has(#carouselTrackM) .carousel-outer::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    pointer-events: none;
    z-index: 5;
    box-shadow:
        0 0 25px rgba(110, 142, 251, 0.6),
        0 0 60px rgba(167, 119, 227, 0.3);
}

.carousel-section:has(#carouselTrackM) .carousel-outer {
    position: relative;
}

/* Ajouter à la fin de style.css */
.carousel-section:has(#carouselTrackM) .carousel-viewport {
    overflow: hidden;
    border-radius: 20px;
}