/*
Theme Name: Astra Child
Template: astra
Version: 1.0
Author: Valentin
Description: Thème enfant Astra
*/

/* =====================================================
   Hero
===================================================== */
.hero-banner{
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-banner .wp-block-cover__image-background{
    object-fit: cover;
    object-position: center;
}

/* ========================================
   HERO : bouton d'appel à l'action
   ======================================== */

.hero-banner {
    position: relative;
}

.hero-banner .wp-block-cover__inner-container {
    position: relative;
}

.hero-banner .wp-block-buttons.hero-button {
    position: absolute;
    bottom: -400px;
    left: 0;
    right: 0;
    width: 100%;
    margin: 0;
    display: flex;
    justify-content: center;
    z-index: 5;
}


/* Mobile */
@media (max-width: 768px) {
    .hero-banner .wp-block-buttons.hero-button {
        bottom: -100px;
    }
}




/* =====================================================
   FAQ
=====================================================  */

/* La section FAQ */
.faq{
    max-width: 1100px;
    margin: 80px auto;
}

/* Chaque question */
.faq-item{
    background: #FBF8F4;
    border-radius: 18px;
    margin-bottom: 18px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
    transition: all .25s ease;
}

/* Petit effet au survol */
.faq-item:hover{
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0,0,0,.12);
}

/* La ligne de la question */
.faq-item summary{
    list-style: none;
    cursor: pointer;
    padding: 22px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #D19063;
    transition: color .2s;
}

/* Supprime la flèche native */
.faq-item summary::-webkit-details-marker{
    display:none;
}

/* Flèche personnalisée */
.faq-item summary::after{
    content:"+";
    float:right;
    font-size:1.5rem;
    font-weight:300;
    transition:.25s;
}

/* Quand la question est ouverte */
.faq-item[open] summary::after{
    content:"−";
}

.faq-item[open] summary{
    color:#333;
}

/* Réponse */
.faq-item p{
    padding:0 30px 25px;
    margin:0;
    color:#555;
    line-height:1.7;
}

/* Menu noir sur les pages légales */
body.page-id-59 .main-header-menu .menu-link,
body.page-id-62 .main-header-menu .menu-link,
body.page-id-65 .main-header-menu .menu-link,
body.page-id-237 .main-header-menu .menu-link,
body.page-id-227 .main-header-menu .menu-link {
    color: #000000 !important;
}

/* Couleur au survol */
body.page-id-59 .main-header-menu .menu-link:hover,
body.page-id-62 .main-header-menu .menu-link:hover,
body.page-id-65 .main-header-menu .menu-link:hover,
body.page-id-237 .main-header-menu .menu-link:hover,
body.page-id-227 .main-header-menu .menu-link:hover {
    color: #777777 !important;
}
/******************************************************************************/
/* Hero photo plein écran */
.hero-photo {
    position: relative;
    width: 100vw !important;
    max-width: none !important;
    min-height: 100vh !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    padding: 0;
}

/* Photo en plein cadre */
.hero-photo .wp-block-cover__image-background {
    object-fit: cover !important;
    width: 100%;
    height: 100%;
}

/* Suppression du voile sombre */
.hero-photo .wp-block-cover__background {
    opacity: 0 !important;
}

/* Header superposé au hero - page 237 */
body.page-id-237 #masthead {
    position: absolute !important;
    top: 0 !important;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 9999 !important;
    background: transparent !important;
}

/* Fond transparent sur le header PC */
body.page-id-237 #ast-desktop-header,
body.page-id-237 .ast-above-header-bar {
    background: transparent !important;
}

/* Fond transparent sur le header mobile */
body.page-id-237 #ast-mobile-header,
body.page-id-237 .ast-primary-header-bar {
    background: transparent !important;
}

/* Le contenu commence en haut de la page */
body.page-id-237 #content {
    margin-top: 0 !important;
}


/* Suppression des bordures et ombres du header */
body.page-id-237 #masthead,
body.page-id-237 #ast-desktop-header,
body.page-id-237 #ast-mobile-header,
body.page-id-237 .ast-above-header-bar,
body.page-id-237 .ast-primary-header-bar {
    border: none !important;
    box-shadow: none !important;
}


/* Mobile */
@media (max-width: 768px) {
body.page-id-237 h1 {
        bottom: -10px;
    }
}