/* =====================================================
   PAGE CONTACT (en plus de css/site.css et css/pages.css)
   Deux colonnes : le texte à gauche, le formulaire dans une carte crème à droite.
   Toutes les classes sont préfixées « ct- » (voir le piège des noms de classes dans le README).
===================================================== */
.ct-page { padding-bottom: 90px; }
.ct-grille { display: grid; grid-template-columns: .85fr 1fr; gap: 56px; align-items: start; }
.ct-texte h1 { margin-top: 20px; margin-bottom: 20px; font-size: clamp(2.1rem, 3.6vw, 3.1rem); }

/* Colonne de gauche : adresse directe et rassurances */
.ct-adresse { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 28px; }
.ct-mail { font-family: var(--f-title); font-weight: 600; font-size: clamp(1.15rem, 2.2vw, 1.5rem); letter-spacing: -.02em; color: #fff; overflow-wrap: anywhere; transition: color .25s; }
.ct-mail:hover { color: var(--y); }
.ct-promesses { display: grid; gap: 10px; margin-top: 26px; color: #B8C6D4; }
.ct-promesses li { display: flex; align-items: center; gap: 10px; }
.ct-promesses svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--gr); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Carte crème (palette de la fenêtre « Maison Dupin » : crème, encre, terracotta) */
.ct-carte { padding: 28px; border-radius: 10px; background: #F8F4EC; color: #1D1A16; border: 1px solid rgba(255,255,255,.1); box-shadow: 0 30px 80px -30px rgba(0,0,0,.6); }
/* sans JavaScript le formulaire ne peut pas fonctionner (jeton anti-spam) : on affiche l'adresse e-mail à la place */
.ct-form { display: none; }
.js .ct-form { display: grid; gap: 16px; }
.ct-sans-js { display: block; }
.js .ct-sans-js { display: none; }
.ct-sans-js p { color: #4A4234; line-height: 1.6; }
.ct-sans-js a { color: #1D1A16; border-bottom: 1px solid #C8642B; }

.ct-ligne { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ct-champ { display: grid; gap: 6px; align-content: start; min-width: 0; }
.ct-champ label { font-size: .84rem; font-weight: 600; color: #4A4234; }
.ct-opt { font-weight: 400; color: #6B604F; }
.ct-champ input, .ct-champ select, .ct-champ textarea { width: 100%; padding: 11px 12px; border-radius: 10px; border: 1px solid #9C917C; background: #FFFDF8; color: #1D1A16; font: inherit; font-size: 1rem; }
.ct-champ textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
.ct-champ input:focus-visible, .ct-champ select:focus-visible, .ct-champ textarea:focus-visible { outline: 3px solid #C8642B; outline-offset: 1px; }
.ct-champ [aria-invalid="true"] { border-color: #B3261E; }
.ct-erreur { font-size: .84rem; line-height: 1.4; color: #B3261E; }
.ct-erreur:empty { display: none; }
.ct-compteur { font-size: .8rem; text-align: right; color: #6B604F; }
.ct-depasse { color: #B3261E; font-weight: 600; }

.ct-consent { display: flex; align-items: flex-start; gap: 10px; }
.ct-consent input { flex: none; width: 18px; height: 18px; margin-top: 3px; accent-color: #C8642B; }
.ct-consent label { font-size: .88rem; font-weight: 400; line-height: 1.5; color: #4A4234; }
.ct-consent a { color: #1D1A16; border-bottom: 1px solid #C8642B; }

.ct-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.ct-actions button:disabled { opacity: .6; cursor: wait; }
.ct-statut { font-size: .95rem; line-height: 1.5; color: #1D1A16; }
.ct-statut:empty { display: none; }
.ct-ok { color: #1F6B3E; font-weight: 600; }
.ct-ko { color: #B3261E; font-weight: 600; }
.ct-statut:focus { outline: none; }

/* Fenêtre de résultat (élément <dialog> : focus et touche Échap gérés par le navigateur) */
.ct-dialogue { margin: auto; padding: 0; border: 0; border-radius: 10px; width: min(440px, calc(100% - 32px)); background: #F8F4EC; color: #1D1A16; box-shadow: 0 30px 80px -20px rgba(0,0,0,.7); }
.ct-dialogue::backdrop { background: rgba(6,12,20,.72); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.ct-dialogue[open] { animation: ct-entree .28s var(--ease); }
@keyframes ct-entree { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.ct-dialogue-corps { display: grid; justify-items: center; gap: 10px; padding: 34px 28px 28px; text-align: center; }
.ct-dialogue-icone { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; font-size: 1.7rem; font-weight: 700; line-height: 1; }
.ct-dialogue-icone::before { content: "✓"; }
.ct-dialogue-ok .ct-dialogue-icone { background: #DDEFE3; color: #1F6B3E; }
.ct-dialogue-ko .ct-dialogue-icone { background: #F6DAD6; color: #B3261E; }
.ct-dialogue-ko .ct-dialogue-icone::before { content: "!"; }
.ct-dialogue-titre { font-family: var(--f-title); font-weight: 700; font-size: 1.4rem; letter-spacing: -.02em; }
.ct-dialogue-texte { line-height: 1.55; color: #4A4234; }
.ct-dialogue-corps button { margin-top: 12px; }
/* croix de fermeture en haut à droite (zone de toucher de 40 px) */
.ct-dialogue-croix { position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; color: #4A4234; transition: background .2s; }
.ct-dialogue-croix:hover { background: #EAE4D8; }
.ct-dialogue-croix:focus-visible { outline: 3px solid #C8642B; outline-offset: 1px; }
.ct-dialogue-croix svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }

/* Champ piège : hors de l'écran (pas display:none, certains robots l'ignoreraient) */
.ct-piege { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 1000px) {
  .ct-grille { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 700px) {
  .ct-ligne { grid-template-columns: 1fr; }
  .ct-carte { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .ct-mail { transition: none; }
  .ct-dialogue[open] { animation: none; }
}
