/* ==========================================================================
   CUSTOM CSS - 9 MOIS DE DOUCEUR
   ========================================================================== */

/* ==========================================================================
   HEADER / LOGO
   ========================================================================== */

.site-logo img,
.custom-logo-link img,
.ast-site-identity .custom-logo {
    max-height: 32px !important;
    width: auto !important;
}

.site-branding {
    padding: 10px 0;
}

/* Padding du header - toutes tailles desktop */
.ast-builder-grid-row-container.ast-container {
    padding-left: 20px !important;
    padding-right: 20px !important;
}

@media (min-width: 921px) {
    .ast-builder-grid-row-container.ast-container {
        padding-left: 40px !important;
        padding-right: 40px !important;
    }
}

@media (min-width: 1200px) {
    .ast-builder-grid-row-container.ast-container {
        padding-left: 60px !important;
        padding-right: 60px !important;
    }
}

@media (min-width: 1400px) {
    .ast-builder-grid-row-container.ast-container {
        padding-left: calc((100% - 1280px) / 2) !important;
        padding-right: calc((100% - 1280px) / 2) !important;
    }
}

/* ==========================================================================
   PAGE ACCUEIL - CONTENEUR
   ========================================================================== */

/* Sections normales alignées avec le menu (même que .ast-container) */
.home-section {
    max-width: var(--ast-container-default-xlg-padding, 1200px);
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 3%;
}

@media (min-width: 1201px) {
    .home-section {
        padding-left: calc((100% - 1200px) / 2);
        padding-right: calc((100% - 1200px) / 2);
        max-width: 100%;
    }
}

/* Hero reste pleine largeur */
.hero-section {
    max-width: none;
    margin: 0;
}

/* ==========================================================================
   BOUTONS
   ========================================================================== */

/* Bouton CTA Principal */
.btn-cta-primary {
    background-color: #5A9BB5;
    color: white !important;
    padding: 15px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(90, 155, 181, 0.3);
}

.btn-cta-primary:hover {
    background-color: #3D7A94;
    color: white !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(90, 155, 181, 0.4);
}

.btn-cta-primary:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(90, 155, 181, 0.3);
}

/* Bouton CTA Secondaire (outline) */
.btn-cta-secondary {
    background-color: transparent;
    color: #5A9BB5;
    padding: 13px 33px;
    border: 2px solid #5A9BB5;
    border-radius: 30px;
    text-decoration: none;
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-cta-secondary:hover {
    background-color: #5A9BB5;
    color: white !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(90, 155, 181, 0.4);
}

.btn-cta-secondary:active {
    transform: translateY(-1px);
}

/* ==========================================================================
   SECTIONS
   ========================================================================== */

/* Section Hero */
.hero-section {
    background: linear-gradient(135deg, #D5E8F0 0%, #F5E6E0 100%);
    padding: 80px 20px;
    text-align: center;
}

.hero-section h1 {
    font-family: 'Quicksand', sans-serif;
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 20px;
}

.hero-section p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================================================
   MENU - DROPDOWN
   ========================================================================== */

/* Dernier élément du menu : dropdown vers la gauche */
.ast-desktop .main-header-menu > .menu-item:last-child .sub-menu,
.ast-desktop .main-header-menu > .menu-item:nth-last-child(1) .sub-menu,
.ast-desktop .main-header-menu > .menu-item:nth-last-child(2) .sub-menu {
    left: auto !important;
    right: 0 !important;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 1.8rem;
    }
    .hero-section p {
        font-size: 1rem;
    }
    .btn-cta-primary,
    .btn-cta-secondary {
        padding: 12px 25px;
        font-size: 0.9rem;
    }
}
