/* ==================================================================
   contact.css — page « Nous contacter »
   Reprend la charte de l'inscription hôte, sans la barre latérale.
   Si commun.css définit déjà .page, .bloc, .colonne, .case-info,
   .btn-inscription ou .logo-centre, supprime ici les blocs en double.
   ================================================================== */

/* ---------- Mise en page ---------- */
.page-contact{
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    padding: 4vh 2vh;
    box-sizing: border-box;
}

/* Simple conteneur de centrage : le panneau vert, c'est .bloc */
.page-contact .centre{
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    background: none;
    border: none;
}

.page-contact form{
    width: 100%;
}

/* ---------- Panneau ---------- */
.page-contact .bloc{
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    padding: 2.5rem 2rem;
    margin: 0 auto;
    gap: 1.6rem;
    border-radius: 16px;
    background-color: #16321F;
    color: #F4EDE0;
    border: solid 2px #D9B36C;
    box-shadow: 0 10px 30px rgba(22, 50, 31, 0.25);
}

.page-contact .colonne{
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
    align-items: center;
}

.logo-centre{
    color: #D9B36C;
    border: dashed #D9B36C;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    display: flex;
    margin: 0;
}

.titre-centre{
    color: #F4EDE0;
    font-size: 26px;
    font-weight: 700;
    margin: 0;
}

.sous-titre-centre{
    color: #cfc7b2;
    font-size: 15px;
    font-weight: 400;
    text-align: center;
    margin: 0;
    max-width: 440px;
}

/* ---------- Champs ---------- */
.groupe{
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 0.5rem;
}

.page-contact label,
.label-groupe{
    font-size: 15px;
    font-weight: 600;
    color: #F4EDE0;
}

.grille-champs{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    width: 100%;
}

.champ{
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.champ-large{
    grid-column: 1 / -1;
}

.case-info{
    width: 100%;
    height: 42px;
    padding: 0 12px;
    box-sizing: border-box;
    font-size: 15px;
    font-family: inherit;
    color: #16321F;
    background-color: #F5F1E1;
    border: 1px solid transparent;
    border-radius: 8px;
    text-align: center;
}

/* Objet : le texte est long, on l'aligne à gauche */
.case-info-gauche{
    text-align: left;
}

.case-info:focus,
.page-contact textarea:focus{
    outline: none;
    border-color: #D9B36C;
    box-shadow: 0 0 0 3px rgba(217, 179, 108, 0.35);
}

.case-info::placeholder,
.page-contact textarea::placeholder{
    color: #9b9484;
}

.page-contact textarea{
    width: 100%;
    min-height: 170px;
    resize: vertical;
    padding: 12px;
    box-sizing: border-box;
    font-size: 15px;
    font-family: inherit;
    line-height: 1.5;
    color: #16321F;
    background-color: #F5F1E1;
    border: 1px solid transparent;
    border-radius: 8px;
}

.compteur{
    align-self: flex-end;
    font-size: 13px;
    color: #cfc7b2;
}

.compteur.limite-proche{
    color: #D9B36C;
}

.compteur.limite-atteinte{
    color: #f0a3a3;
}

/* ---------- Cases de motif ---------- */
.grille-motifs{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 0.8rem;
    width: 100%;
}

.case-checkbox{
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.9rem 1rem;
    border-radius: 12px;
    background-color: #1d4029;
    border: 1px solid #3a5c45;
    color: #F4EDE0;
    cursor: pointer;
    transition: transform 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.case-checkbox:hover{
    transform: translateY(-2px);
    border-color: #D9B36C;
}

/* La case native reste dans le flux pour que input:checked + .case-visuel
   fonctionne — on la rend juste invisible. */
.case-checkbox input[type="checkbox"]{
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    margin: 0;
}

.case-visuel{
    position: absolute;
    inset: 0;
    border-radius: 12px;
    pointer-events: none;
}

.case-checkbox input[type="checkbox"]:checked + .case-visuel{
    background-color: rgba(217, 179, 108, 0.16);
    box-shadow: inset 0 0 0 2px #D9B36C;
}

.case-checkbox input[type="checkbox"]:focus-visible + .case-visuel{
    box-shadow: inset 0 0 0 2px #F4EDE0;
}

.case-icone{
    flex: 0 0 auto;
    color: #cfc7b2;
    transition: color 0.15s ease, transform 0.15s ease;
}

.case-checkbox input[type="checkbox"]:checked ~ .case-icone{
    color: #D9B36C;
    transform: scale(1.1);
}

.case-texte{
    font-size: 15px;
    line-height: 1.2;
}

.case-checkbox input[type="checkbox"]:checked ~ .case-texte{
    font-weight: 600;
}

/* ---------- Boutons ---------- */
.btn-inscription{
    text-decoration: none;
    color: #16321F;
    font-size: 16px;
    font-weight: 600;
    width: 200px;
    height: 44px;
    border-radius: 999px;
    border: none;
    background-color: #D9B36C;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
    margin-top: 0.5rem;
    align-items: center;
    justify-content: center;
    display: flex;
    cursor: pointer;
}

.btn-inscription:hover{
    background-color: #F4EDE0;
    transform: translateY(-2px);
}

.btn-inscription[disabled]{
    opacity: 0.6;
    cursor: progress;
    transform: none;
}

/* ---------- Messages ---------- */
.message-erreur{
    margin: 0;
    font-size: 14px;
    color: #f0a3a3;
    min-height: 0;
}

.message-erreur:empty{
    display: none;
}

.erreur-php{
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 0.8rem 1rem;
    border-radius: 10px;
    background-color: #fdecee;
    color: #a00d18;
    border-left: 4px solid #c1121f;
    font-size: 15px;
}

.champ-invalide{
    border-color: #c1121f !important;
    box-shadow: 0 0 0 3px rgba(193, 18, 31, 0.25) !important;
}

/* ---------- Confirmation d'envoi ---------- */
.confirmation{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    text-align: center;
    padding: 1.5rem 1rem;
    width: 100%;
    box-sizing: border-box;
    border-radius: 12px;
    background-color: rgba(23, 107, 51, 0.18);
    border: 1px solid #176b33;
    color: #d6f0de;
}

.confirmation svg{
    color: #7ad39a;
}

.confirmation-titre{
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #F4EDE0;
}

.confirmation-texte{
    margin: 0;
    font-size: 15px;
    color: #cfc7b2;
}

/* ---------- Piège à robots ---------- */
.pot-de-miel{
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ---------- Téléphone ---------- */
@media (max-width: 720px){
    .page-contact{
        padding: 2vh 1rem;
    }

    .page-contact .bloc{
        padding: 2rem 1.2rem;
        gap: 1.3rem;
    }

    .grille-champs{
        grid-template-columns: 1fr;
    }

    .grille-motifs{
        grid-template-columns: 1fr;
    }

    .btn-inscription{
        width: 100%;
    }
}