* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lato', sans-serif; 
    color: #fff; 
    margin: 0; /* Important: Supprime les marges par défaut du navigateur */
    padding: 0; /* Important: Supprime les paddings par défaut du navigateur */
    background-image: url('../media/backgroundHD.png');
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center center;
    background-size: cover;         
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    text-align: center;
}

.hero-description-card {
    background-color: rgba(26, 26, 26, 0.85);
    padding: 2rem;
    border-radius: 15px;
    max-width: 600px;
    margin: 2rem auto 0 auto;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero-description-card p {
    font-size: 1.2rem; /* Taille de police ajustée */
    color: #fff;
    line-height: 1.6;
}

.background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 0;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 1rem;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    z-index: 100;
}

/* Burger Menu Icon */
.burger-menu {
    position: relative;
    display: flex;
    justify-content: flex-end;
}

.burger-icon {
    width: 60px;
    height: 60px;
    cursor: pointer;
    z-index: 101;
}

.burger-icon .light-glow {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.burger-icon:hover .light-glow,
.burger-menu.active .burger-icon .light-glow {
    opacity: 1;
}

/* Burger Menu Animation */
.burger-menu.active .burger-icon {
    transform: rotate(90deg);
    transition: transform 0.4s ease;
}

.line {
    width: 100%;
    height: 3px;
    background: #F5E050;
    border-radius: 5px;
    transition: all 0.4s ease;
    box-shadow: 0 0 5px rgba(245, 224, 80, 0.7);
}

/* Navigation Links */
.nav-links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(245, 224, 80, 0.1);
    backdrop-filter: blur(5px);
    list-style: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateX(100%);
    transition: transform 0.4s ease;
    opacity: 0;
    visibility: hidden;
}

.nav-links.active {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
}

.nav-links li {
    margin: 2rem 0;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 2rem;
    text-transform: uppercase;
    position: relative;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.nav-links a:hover {
    color: #F5E050;
    text-shadow: 0 0 10px rgba(245, 224, 80, 0.7);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: #F5E050;
    left: 0;
    bottom: -10px;
    transition: width 0.3s ease;
    box-shadow: 0 0 5px rgba(245, 224, 80, 0.7);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Burger to Cross Animation */
.burger-menu.active .line1 {
    transform: rotate(45deg) translate(7px, 7px);
}

.burger-menu.active .line2 {
    opacity: 0;
}

.burger-menu.active .line3 {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* Content */
.content {
    position: relative;
    z-index: 1;
    margin-top: 25vh;
}

h1 {
    font-family: 'Great Vibes', cursive;
    font-size: 4rem;
    color: #F5E050;
    text-shadow: 0 0 10px rgba(245, 224, 80, 0.7);
    margin-bottom: 1rem;
}

h1, h2 {
    animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% { text-shadow: 0 0 10px rgba(245, 224, 80, 0.7); }
    50% { text-shadow: 0 0 20px rgba(245, 224, 80, 1); }
}

p {
    font-size: 1.5rem;
}

.cta-button {
    display: inline-block;
    padding: 0.8rem 2rem;
    background-color: #D4A017;
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
    border-radius: 25px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.cta-button:hover {
    background-color: #F5E050;
    transform: scale(1.05);
}

.youtube-button {
    display: inline-block;
    width: 100px;
    height: 100px;
}

.youtube-button:hover {
    transform: scale(1.05);
}

/* Sections (Services and YouTube) */
.services-section, .youtube-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 100vh;
    padding-top:8rem;
    padding-bottom:8rem;
    background-clip: content-box;
    text-align: center;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

h2 {
    font-family: 'Great Vibes', cursive;
    font-size: 3rem;
    color: #F5E050;
    margin-bottom: 2rem;
    flex-shrink: 0;
    margin-top: 2rem;
}

.services-container, .youtube-section .services-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2rem;
    width: 90%;
    justify-content: center;
}

/* Service Card Default State */
.service-card {
    background-color: rgba(26, 26, 26, 0.85);
    padding: 2rem;
    border-radius: 15px;
    max-width: 300px;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-card h3 {
    font-size: 1.2rem;
    color: #D4A017;
    margin-bottom: 1rem;
}

.service-card p {
    font-size: 1rem;
    color: #fff;
}

.service-card p strong{
    color: #D4A017;
}

.service-card a {
    font-size: 1rem;
    color: #fff;
    text-decoration: none;
}

.service-card.hidden {
    display: none;
    opacity: 0;
    pointer-events: none;
    transform: scale(0.95);
}

/* Service Card Expanded State */
.service-card.expanded {
    background-color: rgba(26, 26, 26, 0.85);
    min-height: auto;
    margin: 2rem auto;
    margin-top: 2rem;
    max-width: 100%;
    padding: 2rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.service-card.expanded:hover {
    transform: none;
}

/* Service Content Teaser */
.service-content.teaser {
    display: block;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.service-content.teaser p {
    margin-top: 0;
    margin-bottom: 0;
}

/* Service Content Full */
.service-content.full {
    display: none;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.service-content.full p {
    font-size: 1rem;
    color: #fff;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

/* Service Buttons */
.service-button {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 1.5rem;
    background-color: #D4A017;
    color: #fff;
    text-decoration: none;
    border: none;
    border-radius: 20px;
    cursor: pointer;
}

/* Return Button Specific Styles */
.service-button.service-return {
    margin-top: 1rem;
    align-self: center;
    width: auto;
    max-width: 250px;
    display: block;
}

.service-button:hover {
    background-color: #F5E050;
    color: #D4A017;
}

.service-button:hover a{
    color: #D4A017;
}

stripe-buy-button {
    margin: 20px;
}

/* Full Content Container (inside expanded card) */
.full-content-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    width: 100%;
    flex-grow: 1;
    margin-bottom: 1rem;
    flex-shrink: 0;
}

/* Full Content Cards */
.full-content-card {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    color: #fff;
    max-width: 100%;
    padding: 1.25rem;
    transition: transform 0.3s ease;
    width: 100%;
}

.cgv{
    background-color:rgba(26, 26, 26, 0.85);
    max-width: 80%;
    text-align: left;
}

.cgv li{
    margin-left: 1rem;
}

.full-content-card:hover {
    transform: translateY(-5px);
}

.full-content-card h4 {
    font-size: 1.3rem;
    color: #D4A017;
    margin-bottom: 0.75rem;
}

.full-content-card p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

/* Checkbox Styles */
.terms-checkbox {
    margin: 10px 0;
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    color: #fff;
    text-align: center;
    width: 100%;
}
.terms-checkbox input[type="checkbox"] {
    margin-right: 8px;
    vertical-align: middle;
}
.terms-checkbox a {
    color: #F5E050;
    text-decoration: underline;
}
.terms-checkbox a:hover {
    color: #D4A017;
    text-shadow: 0 0 10px rgba(245, 224, 80, 0.7);
}

/* Classe utilitaire pour cacher des éléments de manière fiable */
.visually-hidden {
    display: none !important;
}

/* Style pour le bouton Stripe factice/placeholder */
.stripe-placeholder-button {
    display: inline-block; 
    background-color: #F5E050; 
    color: black;
    border: none;
    padding: 10px 20px;    
    font-size: 16px;      
    line-height: 1.5;      
    border-radius: 4px;    
    cursor: not-allowed;   
    opacity: 0.5;          
    width: 100%;           
    box-sizing: border-box;
    text-align: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    margin: 20px; 
}

stripe-buy-button {
    display: block; /* Assurez-vous qu'il prend la largeur si c'est le comportement souhaité */
    width: 100%;
    box-sizing: border-box;
}

/* Assurer que le wrapper centre ses enfants ou les dispose correctement */
.stripe-button-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center; /* Ou 'stretch' si vous voulez que les boutons prennent toute la largeur */
}

/* Contact Section */
#contact form {
    max-width: 500px;
    margin: 0 auto;
    text-align: left;
}

#contact label {
    font-size: 1.2rem;
    color: #F5E050;
}

#contact input, #contact textarea {
    width: 100%;
    padding: 0.5rem;
    margin-bottom: 1rem;
    border: none;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

#contact button {
    display: block;
}

.footer {
    background-color: rgba(26, 26, 26, 0.85);
    padding: 1rem;
    text-align: center;
    color: #fff;
    position: relative;
    z-index: 10;
    margin-top: 2rem;
}

.footer-content a {
    color: #F5E050;
    text-decoration: none;
    margin: 0 0.5rem;
    font-size: 1rem;
}

.footer-content a:hover {
    color: #D4A017;
    text-shadow: 0 0 10px rgba(245, 224, 80, 0.7);
}
/* Optionnel: Media query spécifique pour les écrans 4K réels (souvent > 3840px) */
@media (min-width: 3840px) {
     body {
        background-image: url('../media/background4K.png'); /* 4K quelle que soit la densité si l'écran est très large */
    }
}

@media (min-width: 1920px) {
    /* Image pour très grands écrans desktop basse densité */
    body {
        background-image: url('../media/backgroundFHD.png'); /* Base FHD pour cette taille */
    }
    /* Image pour très grands écrans desktop haute densité (4K) */
     @media
    (-webkit-min-device-pixel-ratio: 2),
    (min-resolution: 192dpi) {
        body {
            background-image: url('../media/background4K.png');
        }
    }
}

/* Écrans 4K (ex: 3840px de large et plus) */
@media (min-width: 3840px) {
    body {
        background-image: url('../media/background4K.png');
    }
}

/* Responsive Design */
@media (min-width: 769px) {
    /* Image pour écrans desktop basse densité */
    body {
        background-image: url('../media/backgroundHD.png'); /* Déjà défini par défaut, mais réaffirmé pour clarté */
    }

    /* Image pour écrans desktop haute densité (FHD, Retina, etc.) */
    @media
    (-webkit-min-device-pixel-ratio: 2),
    (min-resolution: 192dpi) {
        body {
            background-image: url('../media/backgroundFHD.png');
        }
    }

    .content {
        margin-top: 20vh;
    }

    /* Vertical centering for sections on desktop */
    .services-section, .youtube-section {
        justify-content: center;
        min-height: 100vh;
    }

    .services-section h2 {
        margin-bottom: 1rem;
        margin-top: 2rem;
    }

    .services-container {
        margin-top: 2rem;
    }

    .service-card.expanded {
        margin: 2rem auto;
        min-height: auto;
        margin-top: 2rem;
        padding: 2rem;
        max-width: 900px;
        width: 100%;
        display: flex;
        flex-direction: column;
    }

    /* Flexbox adjustments for default cards on desktop */
    .service-card {
        min-height: 350px;
        justify-content: space-between;
        display: flex;
        flex-direction: column;
    }

    /* Apply flex-grow and centering styles to teaser container ONLY when card is NOT expanded */
    .service-card:not(.expanded) .service-content.teaser {
         flex-grow: 1;
         display: flex;
         flex-direction: column;
         justify-content: center;
         align-items: center;
         text-align: center;
    }

    /* Remove paragraph margins inside Flex teaser container ONLY when card is NOT expanded */
    .service-card:not(.expanded) .service-content.teaser p {
        margin: 0;
    }

    /* Push "En savoir plus" button to bottom in non-expanded cards */
     .service-card:not(.expanded) .service-button.service-toggle-main {
        margin-top: auto;
    }

    /* General button style on desktop */
    .service-button {
        margin-top: 1rem;
    }
}

@media (max-width: 768px) {
    body {
        background-size: cover; /* Remis à cover */
        background-image: url('../media/backgroundMobFHD.png');
        background-repeat: no-repeat;
        background-position: center center; /* S'assurer que l'image est centrée */
    }

    .burger-icon {
        width: 40px;
        height: 40px;
    }

    .nav-links {
        padding: 1.5rem;
    }

    .nav-links a {
        font-size: 1.5rem;
    }

    .content {
        margin-top: 12vh;
    }

    .h1 {
        font-size: 2.5rem;
    }

    .hero-description-card {
        max-width: 92%;
        margin-top: 1rem;
        padding: 1rem;
    }

    .hero-description-card p {
        font-size: 1rem; /* Taille de police ajustée */
        color: #fff;
        line-height: 1;
    }

    .cta-button {
        font-size: 1rem;
        padding: 0.6rem 1.5rem;
    }

    .youtube-button {
        width: 50px;
        height: 50px;
    }

    .services-section, .youtube-section {
        padding-top:0rem;
        padding-bottom:0rem;
        min-height: auto;
        justify-content: flex-start;
    }

    .services-section h2, .youtube-section h2 {
         margin-top: 1rem;
         margin-bottom: 1rem;
        font-size: 2rem;
    }

    .services-container, .youtube-section .services-container {
        flex-direction: column;
        align-items: center;
        margin-top: 1rem;
        margin-bottom: 1rem;
        width:92%;
        max-width: 100%;
    }

    .service-card {
        min-height: auto;
        justify-content: flex-start;
        max-width: 100%;
    }

    .service-card h3 {
        font-size: 1rem;
    }

    .service-card.expanded {
        margin: 1rem auto;
        padding: 1.5rem;
        min-height: auto;
    }

    /* On mobile, teaser elements don't need vertical centering with flexbox */
    .service-content.teaser {
        display: block;
        flex-grow: 0;
        margin-bottom: 1rem;
    }

    /* Paragraph margins in teaser on mobile */
     .service-content.teaser p {
         margin-top: 0;
         margin-bottom: 0;
     }

    .full-content-card {
        max-width: 100%;
        padding: 1rem;
    }

    .cgv{
        max-width: 100%;
        text-align: left;
    }

    .footer-content a {
        font-size: 0.9rem;
    }

}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }

    p {
        font-size: 1rem;
    }

    .nav-links a {
        font-size: 1.2rem;
    }
}