/*
Theme Name: Auto-école Lacassagne
Description: Thème sur mesure reprenant le design du site statique (HTML5 UP Massively). Coordonnées, réseaux sociaux et mentions légales modifiables dans Apparence → Personnaliser → Coordonnées.
Version: 1.2.0
Requires at least: 6.4
Requires PHP: 8.1
Text Domain: lacassagne
*/

/* Les styles du site sont dans assets/css/main.css. Ajustements propres à WordPress : */

:root {
    --lc-red: #c8302a;       /* rouge du logo, réservé aux actions de contact */
    --lc-red-dark: #a8241f;
    --lc-ink: #212931;
}

/* En-tête compact : remplace l'écran d'accueil (#intro) du template, qui occupait 77 % de la hauteur. */

#masthead {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem 2rem;
    width: calc(100% - 4rem);
    max-width: 72rem;
    margin: 0 auto;
    padding: 2.5rem 0 2rem 0;
    color: #ffffff;
}

#masthead a {
    border-bottom: 0;
    text-decoration: none;
}

#masthead a:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 4px;
}

.masthead-brand {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    color: #ffffff;
}

#masthead .masthead-brand:hover {
    color: #ffffff !important;
}

.masthead-logo {
    display: block;
    width: auto;
    height: 7rem;
}

.masthead-text {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

#masthead .masthead-name {
    margin: 0;
    color: #ffffff;
    font-family: "Source Sans Pro", Helvetica, sans-serif;
    font-size: 1.75rem;
    font-weight: 900;
    letter-spacing: 0.03em;
    line-height: 1.1;
    text-transform: none;
}

.masthead-tagline {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
    font-style: italic;
    line-height: 1.4;
}

.masthead-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.masthead-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    min-height: 3rem;
    padding: 0 1.4rem;
    color: #ffffff;
    font-family: "Source Sans Pro", Helvetica, sans-serif;
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.masthead-actions .icon:before {
    font-size: 1.05em;
}

.masthead-call {
    background-color: var(--lc-red);
}

#masthead .masthead-call:hover {
    background-color: var(--lc-red-dark);
    color: #ffffff !important;
}

.masthead-whatsapp {
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.55);
}

#masthead .masthead-whatsapp:hover {
    background-color: rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 0 0 2px #ffffff;
    color: #ffffff !important;
}

/* Le menu n'a plus à chevaucher l'écran d'accueil. */
#nav {
    margin-top: 0;
}

/* Bouton « Menu » mobile : le template ne lui donne un fond qu'au défilement (via un #header absent ici),
   il restait donc blanc sur le panneau blanc. */
#navPanelToggle,
#navPanelToggle.alt {
    background-color: rgba(33, 41, 49, 0.92);
    box-shadow: none;
    color: #ffffff;
}

@media screen and (max-width: 980px) {
    #masthead {
        padding-top: 3.75rem; /* sous le bouton « Menu », fixé en haut à droite */
    }
}

@media screen and (max-width: 736px) {
    #masthead {
        gap: 1.25rem;
        padding-bottom: 1.5rem;
    }

    .masthead-logo {
        height: 5rem;
    }

    #masthead .masthead-name {
        font-size: 1.35rem;
    }

    .masthead-tagline {
        font-size: 0.85rem;
    }

    .masthead-actions {
        width: 100%;
    }

    .masthead-actions a {
        flex: 1 1 0;
        padding: 0 1rem;
    }
}

@media screen and (max-width: 480px) {
    #masthead {
        width: calc(100% - 2rem);
    }
}

#main .wpcf7 form {
    margin-top: 2rem;
}

#main .wpcf7-response-output {
    margin: 2rem 0 0 0;
    padding: 1rem;
}

#main .wpcf7-not-valid-tip {
    font-size: 0.8rem;
}

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    height: 1px;
    overflow: hidden;
    position: absolute !important;
    width: 1px;
}
