/* =====================================================================
   Page « Contact » (/contact)
   En-tête orange avec les trois moyens directs (WhatsApp, téléphone, email),
   puis le formulaire et l'accès à l'auberge (itinéraire, carte au clic).
   ===================================================================== */

.ct-espace-entete { height: var(--hauteur-entete, 112px); background: #e7a45c; }

.page-contact {
    --ct-fond: #fffaf3;
    --ct-papier: #fcefdc;
    --ct-orange: #e7a45c;
    --ct-encre: #3d2614;
    --ct-titre: #4a260b;
    --ct-texte: #5a4232;
    --ct-doux: #6e5340;
    --ct-brun: #7a4612;
    --ct-action: #a2631d;
    --ct-violet: #6f2a86;
    --ct-vert: #0e7a3e;
    --ct-filet: #e8d6bf;
    --ct-erreur: #9f1c12;
    --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
    display: block;
    background: var(--ct-fond);
    color: var(--ct-encre);
}
.page-contact ::selection { background: var(--ct-violet); color: #fff; }
.page-contact h1, .page-contact h2, .page-contact h3 { font-family: 'Rancho', cursive; font-weight: 400; letter-spacing: 0; color: var(--ct-titre); }
.page-contact h1 span { font-family: inherit; }
.page-contact a:focus-visible, .page-contact button:focus-visible { outline: 3px solid var(--ct-action); outline-offset: 3px; }
.page-contact svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.page-contact .icone-whatsapp { stroke: none; }

/* ---------- En-tête : les moyens directs ---------- */
.ct-tete { display: grid; gap: 24px; align-items: center; padding: 18px 16px 36px; background: var(--ct-orange); }
.ct-tete > * { min-width: 0; }
.ct-tete h1 { display: flex; align-items: center; gap: .2em; font-size: clamp(3rem, 12vw, 5.2rem); line-height: .95; }
.ct-fleur-titre { width: .8em; height: .8em; }
.ct-accroche { max-width: 44ch; margin-top: 14px; font-size: 1.08rem; line-height: 1.6; color: #4f2c10; }

.ct-moyens { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.ct-moyens li { list-style: none; }
.page-contact a.ct-moyen {
    display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 10px 16px 10px 10px;
    border-radius: 16px; background: var(--ct-fond); color: var(--ct-encre); text-decoration: none;
    box-shadow: 0 10px 22px -16px rgba(74, 38, 11, .8);
    transition: transform .16s var(--ease-out), background-color .2s ease;
}
.page-contact a.ct-moyen:active { transform: scale(.98); }
.ct-moyen-icone {
    display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 12px;
    background: var(--ct-papier); color: var(--ct-brun);
}
.ct-moyen-icone svg { width: 22px; height: 22px; }
.ct-moyen-whatsapp .ct-moyen-icone { background: var(--ct-vert); color: #fff; }
/* Carte « Téléphone de l'auberge » : deux numéros, chacun un bouton facile à toucher */
.page-contact div.ct-moyen {
    display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 10px 16px 10px 10px;
    border-radius: 16px; background: var(--ct-fond); color: var(--ct-encre); box-shadow: 0 10px 22px -16px rgba(74, 38, 11, .8);
}
.ct-tels { display: flex; flex-wrap: wrap; gap: 6px 8px; margin-top: 6px; }
.page-contact .ct-tels a {
    display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px;
    background: var(--ct-papier); color: var(--ct-brun); font-weight: 600; font-size: .95rem; text-decoration: none;
    transition: background-color .2s ease, transform .16s var(--ease-out);
}
.page-contact .ct-tels a:active { transform: scale(.97); }
.ct-moyen-texte { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.ct-moyen-texte strong { font-weight: 600; font-size: 1rem; }
.ct-moyen-texte span { overflow-wrap: anywhere; font-size: .95rem; color: var(--ct-doux); }
@media (min-width: 900px) {
    .ct-tete { grid-template-columns: 1.1fr .9fr; gap: 56px; padding: 40px max(32px, calc((100% - 1180px) / 2)) 56px; }
}

/* ---------- Corps : formulaire et accès ---------- */
.ct-corps { display: grid; gap: 28px; max-width: 1180px; margin: 0 auto; padding: 32px 16px 56px; }
.ct-corps > * { min-width: 0; }
.ct-corps h2 { font-size: clamp(2.3rem, 7vw, 3rem); line-height: 1; }
@media (min-width: 960px) {
    .ct-corps { grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: start; padding: 56px 24px 72px; }
}

/* Formulaire */
.ct-formulaire {
    padding: 22px 18px 24px; border-radius: 22px; background: #fff;
    box-shadow: 0 1px 0 rgba(122, 70, 18, .06), 0 22px 44px -30px rgba(74, 38, 11, .65);
}
.ct-aide { margin-top: 8px; font-size: .92rem; color: var(--ct-doux); }
.ct-requis { color: var(--ct-action); font-weight: 700; }
.ct-champs { display: grid; gap: 14px; margin-top: 18px; }
.ct-champ { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ct-champ label { font-weight: 600; font-size: .95rem; color: var(--ct-encre); }
.ct-champ label small { font-weight: 400; color: var(--ct-doux); }
.page-contact .ct-champ input, .page-contact .ct-champ textarea {
    width: 100%; min-height: 48px; padding: 11px 14px;
    border: 1.5px solid var(--ct-filet); border-radius: 12px; background: var(--ct-fond);
    font: 400 1rem/1.4 'Poppins', sans-serif; color: var(--ct-encre);
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.page-contact .ct-champ textarea { min-height: 140px; resize: vertical; }
.page-contact .ct-champ input::placeholder, .page-contact .ct-champ textarea::placeholder { color: #9a8573; }
.page-contact .ct-champ input:focus, .page-contact .ct-champ textarea:focus {
    outline: none; border-color: var(--ct-action); background: #fff;
    box-shadow: 0 0 0 3px rgba(162, 99, 29, .2);
}
.page-contact .ct-champ .invalide { border-color: var(--ct-erreur); background: #fff6f4; }
.page-contact .ct-champ .invalide:focus { border-color: var(--ct-erreur); box-shadow: 0 0 0 3px rgba(159, 28, 18, .18); }
.ct-aide-champ { font-size: .85rem; color: var(--ct-doux); }
/* Erreurs : page-contact.css (ancienne page) impose blanc sur rouge en !important à tout p.comments */
.page-contact p.comments {
    width: auto; margin: 0 !important; padding: 0; background: none;
    font-size: .9rem !important; font-weight: 600; line-height: 1.4; color: var(--ct-erreur) !important;
}
.page-contact p.comments:empty { display: none; }
.page-contact p.comments-global {
    margin-top: 16px !important; padding: 10px 14px; border-radius: 12px; background: #fde8e6; border: 1px solid #f3b8b1;
}
/* Mention Google reCAPTCHA sous le bouton (style de base : style.css) */
.page-contact .ct-recaptcha { margin-top: 14px; color: var(--ct-doux); font-size: .82rem; }
.page-contact .ct-recaptcha svg { stroke: var(--ct-vert); }
.page-contact .ct-recaptcha a { color: var(--ct-brun); text-decoration-color: rgba(122, 70, 18, .35); }
@media (min-width: 600px) {
    .ct-formulaire { padding: 28px 28px 30px; }
    .ct-champs { grid-template-columns: 1fr 1fr; gap: 16px 18px; }
    .ct-champ-large { grid-column: 1 / -1; }
}

.page-contact .ct-envoyer {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%; min-height: 52px; margin-top: 20px; padding: 0 28px; border: 0; border-radius: 999px; cursor: pointer;
    background: var(--ct-action); color: #fff; font: 600 1.02rem/1 'Poppins', sans-serif;
    box-shadow: 0 10px 22px -14px rgba(74, 38, 11, .9);
    transition: background-color .2s ease, transform .16s var(--ease-out), opacity .2s ease;
}
.page-contact .ct-envoyer:active { transform: scale(.97); }
.page-contact .ct-envoyer:disabled { cursor: progress; opacity: .75; }
.page-contact .ct-envoyer.envoi::before {
    content: ""; width: 16px; height: 16px; border: 2px solid rgba(255, 255, 255, .45); border-top-color: #fff; border-radius: 50%;
    animation: ct-tourne .7s linear infinite;
}
@keyframes ct-tourne { to { transform: rotate(360deg); } }
@media (min-width: 600px) { .page-contact .ct-envoyer { width: auto; } }

.ct-merci {
    margin-top: 18px; padding: 16px 18px; border-radius: 14px;
    background: #e9f5ee; border: 1px solid #b9dcc6; color: #1f4a2f; line-height: 1.55;
}
.ct-merci:focus { outline: none; }
.ct-merci-titre { font-weight: 700; color: #145a33; }
.ct-merci p + p { margin-top: 4px; }

/* Accès */
.ct-adresse { display: flex; gap: 10px; margin-top: 14px; font-style: normal; line-height: 1.6; color: var(--ct-texte); }
.ct-adresse svg { flex: none; width: 22px; height: 22px; margin-top: 2px; color: var(--ct-action); }
.ct-etapes { display: grid; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; counter-reset: etape; }
.ct-etapes li {
    position: relative; padding: 2px 0 2px 40px; list-style: none; counter-increment: etape;
    font-size: .98rem; line-height: 1.55; color: var(--ct-texte);
}
.ct-etapes li::before {
    content: counter(etape); position: absolute; left: 0; top: 0;
    display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
    background: var(--ct-papier); color: var(--ct-brun); font-weight: 700; font-size: .88rem;
}
.ct-etapes li:not(:last-child)::after { /* le fil entre deux étapes : on suit la route */
    content: ""; position: absolute; left: 13px; top: 30px; bottom: -8px; width: 2px; background: var(--ct-papier);
}
.ct-acces-boutons { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 20px; }
.page-contact a.ct-bouton {
    display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 999px;
    background: var(--ct-titre); color: #fff; font-weight: 600; text-decoration: none;
    transition: background-color .2s ease, transform .16s var(--ease-out);
}
.page-contact a.ct-bouton svg { width: 18px; height: 18px; }
.page-contact a.ct-bouton:active { transform: scale(.97); }
.page-contact a.ct-lien {
    padding: 12px 0; font-weight: 600; color: var(--ct-brun);
    text-decoration: underline; text-decoration-color: rgba(122, 70, 18, .35); text-underline-offset: 4px;
}

.ct-carte {
    position: relative; overflow: hidden; margin-top: 22px; aspect-ratio: 4 / 3; border-radius: 18px;
    background:
        radial-gradient(circle at 70% 30%, rgba(231, 164, 92, .35), transparent 55%),
        repeating-linear-gradient(135deg, rgba(122, 70, 18, .05) 0 2px, transparent 2px 14px),
        var(--ct-papier);
}
.ct-carte iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ct-carte-attente {
    position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 10px; padding: 20px; text-align: center;
}
.ct-carte-icone { width: 40px; height: 40px; color: var(--ct-action); }
.ct-carte-attente p { font-family: 'Rancho', cursive; font-size: 1.7rem; line-height: 1; color: var(--ct-titre); }
.ct-carte-attente small { max-width: 34ch; font-size: .82rem; line-height: 1.45; color: var(--ct-doux); }
.page-contact .ct-carte-afficher {
    min-height: 44px; padding: 0 20px; border: 1.5px solid var(--ct-titre); border-radius: 999px; cursor: pointer;
    background: var(--ct-fond); color: var(--ct-titre); font: 600 .95rem/1 'Poppins', sans-serif;
    transition: background-color .2s ease, color .2s ease, transform .16s var(--ease-out);
}
.page-contact .ct-carte-afficher:active { transform: scale(.97); }

.ct-reseaux-titre { margin-top: 30px; font-size: 1.9rem; line-height: 1; }
.ct-reseaux { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.ct-reseaux li { list-style: none; }
.page-contact .ct-reseaux a {
    display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px 0 12px; border-radius: 999px;
    background: var(--ct-papier); color: var(--ct-brun); font-weight: 600; font-size: .95rem; text-decoration: none;
    transition: background-color .2s ease;
}
.page-contact .ct-reseaux svg { width: 20px; height: 20px; }

@media (hover: hover) and (pointer: fine) {
    .page-contact a.ct-moyen:hover { background: #fff; }
    .page-contact .ct-tels a:hover { background: #f6dfc0; }
    .page-contact .ct-envoyer:not(:disabled):hover { background: var(--ct-brun); }
    .page-contact a.ct-bouton:hover { background: var(--ct-brun); }
    .page-contact a.ct-lien:hover { text-decoration-color: currentColor; }
    .page-contact .ct-recaptcha a:hover { text-decoration-color: currentColor; }
    .page-contact .ct-carte-afficher:hover { background: var(--ct-titre); color: #fff; }
    .page-contact .ct-reseaux a:hover { background: #f6dfc0; }
}

@media (prefers-reduced-motion: reduce) {
    .page-contact a.ct-moyen:active, .page-contact .ct-tels a:active, .page-contact .ct-envoyer:active, .page-contact a.ct-bouton:active,
    .page-contact .ct-carte-afficher:active { transform: none; }
    .page-contact .ct-envoyer.envoi::before { animation-duration: 1.6s; }
}
