/* ===== Pages intérieures : contact, mentions légales, nos valeurs, alliance durable,
   offres associées et 404. ===== */

.page-head {
    background: var(--gris-clair);
    border-bottom: 1px solid var(--gris-bord);
    padding: 38px 0 32px;
}

.page-head h1 {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* Fil d'Ariane */
.fil {
    margin: 0 0 10px;
    font-size: 14px;
}

.fil a {
    color: var(--texte);
    text-decoration: none;
}

.fil a:hover {
    color: var(--vert);
}

.fil span::before {
    content: "›";
    margin: 0 8px;
    color: #999;
}

/* ⚠️ `.page-content` est posé sur le même élément que `.adapt-content` : n'écrire ici QUE les
   paddings verticaux. La forme raccourcie `padding: 45px 0 60px` remettait les paddings
   latéraux à zéro et le texte des pages intérieures venait coller aux bords de l'écran. */
.page-content {
    padding-top: 45px;
    padding-bottom: 60px;
}

.page-content h2 {
    font-size: 1.6em;
    margin: 1.8em 0 0.6em;
}

.page-content h2:first-child {
    margin-top: 0;
}

.page-content p {
    margin: 0 0 1.2em;
}

.page-content hr {
    border: none;
    border-top: 1px solid var(--gris-bord);
    margin: 30px 0;
}

/* Bloc de texte long, centré et à largeur de lecture confortable */
.carte-doc {
    max-width: 900px;
    margin: 0 auto;
}

.carte-doc.centre {
    text-align: center;
}

.carte-doc img {
    display: block;
    width: 100%;
    height: auto;
    margin: 22px 0;
}

/* ----- Page contact ----- */
.contact-infos {
    display: flex;
    flex-wrap: wrap;
    gap: 30px 60px;
    margin-bottom: 45px;
}

.contact-infos .info {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.contact-infos .ico {
    width: 28px;
    height: 28px;
    flex: none;
    fill: var(--vert);
    margin-top: 4px;
}

.contact-infos h2 {
    font-size: 1.15em;
    margin: 0 0 4px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.contact-infos p {
    margin: 0;
}

.contact-infos a {
    color: var(--texte);
    text-decoration: none;
}

.contact-infos a:hover {
    color: var(--vert);
}

.formulaire-contact {
    max-width: 900px;
}

.formulaire-contact .ligne-trois {
    display: flex;
    gap: 25px;
}

.formulaire-contact .ligne-trois > label {
    flex: 1;
    min-width: 0;
}

/* ----- Plan d'accès (voir MAPS-SANS-TIERS.md à la racine du projet) -----
   Le plan interactif de Google n'est inséré qu'au clic ; jusque-là son adresse dort dans
   un <template>, que le navigateur n'interprète jamais. Aucune requête ne part avant. */
.carte {
    position: relative;
    overflow: hidden;
    margin-top: 10px;
}

.carte__plan {
    display: block;
    width: 100%;
    height: 420px;
    object-fit: cover;
    /* Le fond est cadré pour que l'adresse tombe pile au centre : c'est ce qui autorise
       l'épingle à 50 % / 50 % quelle que soit la forme du conteneur. Ne pas décentrer. */
    object-position: center;
}

.carte__epingle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 44px;
    height: 44px;
    /* la pointe de l'épingle, pas son centre, doit tomber sur le point */
    transform: translate(-50%, -100%);
    fill: var(--vert);
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.45));
    pointer-events: none;
}

.carte__credit {
    position: absolute;
    right: 0;
    bottom: 0;
    margin: 0;
    padding: 3px 8px;
    font-size: 12px;
    background: rgba(255, 255, 255, 0.82);
    color: #333;
}

.carte__credit a {
    color: #333;
}

.carte__voile {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 20px;
    text-align: center;
    color: #fff;
    background: rgba(0, 0, 0, 0.55);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.carte:hover .carte__voile,
.carte__voile:focus-within {
    opacity: 1;
}

/* Sur écran tactile il n'y a pas de survol : le bouton et la mention Google ne seraient
   jamais visibles. */
@media (hover: none) {
    .carte__voile {
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .carte__voile {
        transition: none;
    }
}

.carte__adresse {
    margin: 0;
    font-weight: 600;
    font-size: 1.05em;
}

.carte__bouton {
    background: var(--vert);
    border: 1px solid var(--vert-bordure);
    color: #fff;
    padding: 11px 26px;
    border-radius: 3px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
}

.carte__bouton:hover {
    background: var(--vert-fonce);
}

.carte__mention {
    margin: 0;
    font-size: 13px;
    max-width: 460px;
}

/* Le cadre Google se pose par-dessus l'image, qui reste dans le flux et donne sa
   hauteur au bloc : sans cela, la page sauterait au clic. */
.carte iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ----- Page offres associées -----
   L'animation est une page autonome héritée du site d'origine, servie dans un cadre.
   Elle porte déjà son propre .adapt-content : l'envelopper une seconde fois la
   rétrécirait sous la largeur pour laquelle ses positions sont calibrées. */
.page-content.offres {
    padding-left: 0;
    padding-right: 0;
}

.offres-frame {
    display: block;
    width: 100%;
    border: 0;
    min-height: 700px;
}

/* ----- Page 404 ----- */
/* même remarque que `.page-content` : la classe est posée sur le conteneur, on ne touche
   qu'aux paddings verticaux */
.page404 {
    text-align: center;
    padding-top: 80px;
    padding-bottom: 100px;
}

.page404 .code {
    font-size: 6em;
    font-weight: 700;
    line-height: 1;
    color: var(--vert);
    margin: 0;
}

.page404 h1 {
    margin: 10px 0 15px;
}

/* ----- Responsive ----- */
@media all and (max-width: 800px) {
    .formulaire-contact .ligne-trois {
        flex-direction: column;
        gap: 0;
    }

    .carte__plan {
        height: 320px;
    }
}
