/* RESET & BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: #23262F;
    line-height: 1.6;
    background-color: #FCFCFD;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

img, video {
    display: block;
    max-width: 100%;
}

/* HEADER */
.header {
    padding: 24px 0;
    border-bottom: 1px solid #E6E8EC;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 700;
}

.logo span { color: #3B71FE; }

.nav-links a {
    margin: 0 15px;
    font-weight: 600;
    color: #777E91;
    transition: color 0.3s ease;
}

.nav-links a.active, .nav-links a:hover { color: #23262F; }

/* HERO */
.hero { padding: 80px 0; }

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text h1 {
    font-size: clamp(32px, 8vw, 64px); /* Taille adaptative */
   
    line-height: 1.1;
}

.hero-text p {
    font-size: 18px;
    color: #777E91;
    max-width: 450px;
}

/* GALLERY & CARDS */
.gallery-tabs {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    justify-content: center;
}

.gallery-tabs button {
    background: none;
    border: none;
    padding: 10px 20px;
    font-weight: 600;
    color: #777E91;
    border-radius: 12px;
    transition: 0.3s;
}

.gallery-tabs button.active {
    background: #23262F;
    color: white;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 32px;
}

/* MEDIA COMPONENT (Video/Image Container) */
.card {
    transition: transform 0.3s ease;
}

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

.media {
    position: relative;
    overflow: hidden;
    background-color: #000;
    border-radius: 16px;
    aspect-ratio: 1; /* Force le carré */
    cursor: pointer;
}

.media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 2;
    transition: opacity 0.4s ease;
    position: relative;
}

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

/* UI ELEMENTS OVER MEDIA */
.play-button {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: #000;
    font-size: 24px;
    border: none;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, opacity 0.3s ease;
    pointer-events: none; /* Laisse le clic passer vers .media */
}

.card:hover .play-button {
    transform: scale(1.1);
    background: #fff;
}

.sound-button {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    color: white;
    border: none;
    z-index: 11;
    display: none; /* Géré par JS */
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.video-loader {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 12;
    display: none;
    align-items: center;
    justify-content: center;
}

.video-loader::after {
    content: "";
    width: 30px;
    height: 30px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* FOOTER */
.footer {
    margin-top: 80px;
    padding: 40px 0;
    border-top: 1px solid #E6E8EC;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #777E91;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .hero-text h1 { font-size: 40px; }
    
    .hero-text p { margin: 0 auto; }
    
    .nav-links { display: none; }

    .play-button {
        width: 60px;
        height: 60px;
    }
}

.hero-title-container {
    display: inline-block; /* S'adapte à la largeur du texte */
    margin-bottom: 10px;
}

.hero-main-title {
    margin-bottom: 0px;
    line-height: 1.1;
    text-align: left;
}

.hero-subtitle {
    display: block; /* Force le passage à la ligne */
    font-size: 0.65rem;
    color: #777E91;
    text-align: right; /* Aligne à droite du bloc de texte */
    margin-top: 2px;
    font-weight: 400;
}

/* Ajustement pour mobile */
@media (max-width: 768px) {
    .hero-title-container {
        display: block; /* Prend toute la largeur sur mobile */
        text-align: center; /* Centre le bloc si besoin */
    }
    
    .hero-main-title {
        text-align: center; /* Centre le titre sur mobile */
margin-bottom:0px;
margin:0px;
    }
    
    .hero-subtitle {
        text-align: center; /* Sur mobile, l'alignement à droite fait souvent "erreur", le centrage est plus harmonieux */
        margin-top: 0px;
    }
}

.hero-actions {
    margin-top: 32px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-calendly {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #23262F; /* Ton noir profond */
    color: #ffffff;
    padding: 14px 28px;
    border-radius: 90px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(35, 38, 47, 0.15);
}

.btn-calendly:hover {
    background-color: #1E7189; /* Le bleu de ton logo */
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 113, 254, 0.25);
    color: #fff;
}

.btn-calendly svg {
    transition: transform 0.3s ease;
}

.btn-calendly:hover svg {
    transform: rotate(15deg);
}

.btn-note {
    font-size: 13px;
    color: #777E91;
    font-style: italic;
}

/* Adaptabilité Mobile */
@media (max-width: 768px) {
    .hero-actions {
        flex-direction: column;
        gap: 8px;
    }
}