/* ============================================================
   PAGE CONTACT — refonte V2
   ------------------------------------------------------------
   Chargé UNIQUEMENT par contact.html, en dernier.
   Toutes les classes sont préfixées .ct-* : aucune collision
   possible avec les feuilles du développeur, et retirer ce
   fichier ne casse rien ailleurs sur le site.

   Grammaire commune au site :
     étiquette   12.5px · 700 · .05em · bleu marque
     titre       Manrope 700 · clamp(24px,3vw,38px) · #12151c
     paragraphe  14.5px · 400 · #5a6072 · interligne 1.65
     surfaces    blanc / #f6f7fb, rayons 14-24px
   ============================================================ */

body {
  padding-top: 0;
  background-color: #fff;
}

/* contact.css (fichier d'origine) pose `main { padding-top: 1rem }`
   sans cloisonnement : on le neutralise ici pour cette page. */
main { padding-top: 0; background: #fff; }


/* ============================================================
   1. BANDEAU DE TITRE
   Même gabarit que Solutions / Réalisations / À propos : 500px,
   photo passant sous la barre de navigation.
   Le voile est plus dense à gauche, là où se pose le texte, et
   s'ouvre à droite pour laisser voir les vitres et les outils.
   ============================================================ */
.ct-hero {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  padding: 170px 48px 90px;
  background-color: #0f1f4a;
  background-image:
    linear-gradient(100deg, rgba(9, 20, 60, 0.92) 0%, rgba(9, 20, 60, 0.62) 48%, rgba(9, 20, 60, 0.28) 100%),
    url('../../assets/images/contact-hero.webp?v=1');
  background-size: cover;
  background-position: center 62%;
  background-repeat: no-repeat;
  overflow: hidden;
}

.ct-hero-inner {
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 40px;
}

.ct-eyebrow {
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .03em;
  color: #bcd0f5;
  margin-bottom: 16px;
}

.ct-titre {
  font-family: var(--font-heading);
  font-size: clamp(32px, 4.4vw, 50px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #fff;
  margin: 0 0 18px;
  max-width: 640px;
}

.ct-titre .hl {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.ct-hero-texte {
  font-family: var(--font-primary);
  font-size: 14.5px;
  line-height: 1.6;
  color: #e2e8f7;
  max-width: 500px;
  margin: 0;
}

/* Appel direct : le geste le plus rapide pour un particulier qui a
   chaud chez lui. Bouton en verre, comme les autres CTA sur fond sombre. */
.ct-tel {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  padding: 16px 26px;
  border-radius: 14px;
  text-decoration: none;
  font-family: var(--font-primary);
  white-space: nowrap;
  transition: transform .25s ease, background .25s ease;
}

.ct-tel:hover { transform: translateY(-2px); }
.ct-tel-label { font-size: 12px; letter-spacing: .05em; text-transform: uppercase; color: #bcd0f5; font-weight: 700; }
.ct-tel-num { font-family: var(--font-heading); font-size: 23px; font-weight: 700; letter-spacing: -0.01em; color: #fff; }
.ct-tel-note { font-size: 12.5px; color: #cfdcf7; }


/* ============================================================
   2. CORPS DE PAGE : formulaire + colonne d'informations
   ============================================================ */
.ct-corps {
  max-width: 1180px;
  margin: 0 auto;
  padding: 64px 48px 90px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 56px;
  align-items: start;
}

.ct-bloc-tag {
  font-family: var(--font-primary);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--brand-blue);
  margin: 0 0 12px;
}

.ct-bloc-titre {
  font-family: var(--font-heading);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #12151c;
  margin: 0 0 12px;
}

.ct-bloc-texte {
  font-family: var(--font-primary);
  font-size: 14.5px;
  line-height: 1.65;
  color: #5a6072;
  margin: 0 0 34px;
  max-width: 62ch;
}


/* ============================================================
   3. FORMULAIRE
   ============================================================ */
.ct-form { display: block; }

.ct-etape { margin-bottom: 34px; }

.ct-etape-titre {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: #12151c;
  margin: 0 0 6px;
}

.ct-etape-num {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--grad-brand);
  color: #fff;
  font-family: var(--font-primary);
  font-size: 12.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ct-etape-note {
  font-family: var(--font-primary);
  font-size: 13px;
  color: #6b7185;
  margin: 0 0 18px 38px;
}

/* --- choix en pastilles (besoin, type de lieu) --- */
.ct-choix {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 26px 38px;
  border: 0;
  padding: 0;
}

.ct-choix legend { display: none; }

.ct-choix input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.ct-pastille {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 17px;
  border-radius: 999px;
  border: 1px solid rgba(18, 21, 28, 0.12);
  background: #fff;
  font-family: var(--font-primary);
  font-size: 13.5px;
  font-weight: 500;
  color: #3d4356;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, color .2s ease, transform .2s ease;
}

.ct-pastille:hover { border-color: rgba(36, 81, 196, 0.4); transform: translateY(-1px); }

.ct-pastille svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: var(--brand-blue);
}

/* état sélectionné */
input[type="radio"]:checked + .ct-pastille {
  background: rgba(36, 81, 196, 0.07);
  border-color: var(--brand-blue);
  color: #12151c;
  font-weight: 600;
}

input[type="radio"]:focus-visible + .ct-pastille {
  outline: 2px solid var(--brand-blue);
  outline-offset: 2px;
}

/* --- champs classiques --- */
.ct-champs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 18px;
  margin-left: 38px;
}

.ct-champ { display: flex; flex-direction: column; }
.ct-champ--large { grid-column: 1 / -1; }

.ct-champ label {
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: 600;
  color: #3d4356;
  margin-bottom: 7px;
}

.ct-champ .ct-obl { color: var(--brand-blue); }

.ct-champ input,
.ct-champ select,
.ct-champ textarea {
  font-family: var(--font-primary);
  font-size: 14px;
  color: #12151c;
  background: #fff;
  border: 1px solid rgba(18, 21, 28, 0.14);
  border-radius: 11px;
  padding: 12px 14px;
  width: 100%;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.ct-champ textarea { min-height: 110px; resize: vertical; }

.ct-champ input::placeholder,
.ct-champ textarea::placeholder { color: #9aa1b4; }

.ct-champ input:focus,
.ct-champ select:focus,
.ct-champ textarea:focus {
  outline: none;
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(36, 81, 196, 0.12);
}

/* --- bloc dimensions, replié par défaut --- */
.ct-mesures { margin: 26px 0 0 38px; }

.ct-bascule {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 15px 17px;
  border-radius: 14px;
  background: #f6f7fb;
  border: 1px solid rgba(18, 21, 28, 0.06);
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}

.ct-bascule:hover { border-color: rgba(36, 81, 196, 0.25); }

.ct-bascule input { width: 17px; height: 17px; margin-top: 2px; flex-shrink: 0; accent-color: var(--brand-blue); }

.ct-bascule-nom {
  font-family: var(--font-primary);
  font-size: 13.5px;
  font-weight: 600;
  color: #12151c;
  display: block;
  margin-bottom: 3px;
}

.ct-bascule-note {
  font-family: var(--font-primary);
  font-size: 12.5px;
  line-height: 1.5;
  color: #6b7185;
  display: block;
}

.ct-mesures-corps { display: none; margin-top: 18px; }
.ct-mesures.is-ouvert .ct-mesures-corps { display: block; }

.ct-vitrage {
  border: 1px solid rgba(18, 21, 28, 0.1);
  border-radius: 14px;
  padding: 18px 18px 16px;
  margin-bottom: 14px;
  background: #fff;
}

.ct-vitrage-tete {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.ct-vitrage-nom {
  font-family: var(--font-primary);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--brand-blue);
}

.ct-vitrage-suppr {
  background: none;
  border: 0;
  font-family: var(--font-primary);
  font-size: 12.5px;
  color: #8a90a3;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 6px;
  transition: color .2s ease, background .2s ease;
}

.ct-vitrage-suppr:hover { color: #c0392b; background: rgba(192, 57, 43, 0.07); }

.ct-vitrage-champs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.ct-ajouter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px dashed rgba(36, 81, 196, 0.4);
  background: #fff;
  color: var(--brand-blue);
  font-family: var(--font-primary);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}

.ct-ajouter:hover { background: rgba(36, 81, 196, 0.06); transform: translateY(-1px); }

/* --- envoi --- */
.ct-envoi { margin: 34px 0 0 38px; }

.ct-btn-envoi {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border: 0;
  border-radius: 12px;
  background: #12151c;
  color: #fff;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background .25s ease, transform .25s ease, box-shadow .25s ease;
}

.ct-btn-envoi:hover {
  background: var(--brand-blue);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(36, 81, 196, 0.25);
}

.ct-mention {
  font-family: var(--font-primary);
  font-size: 12px;
  line-height: 1.55;
  color: #8a90a3;
  margin: 14px 0 0;
  max-width: 52ch;
}

.ct-mention a { color: #6b7185; text-decoration: underline; }

/* honeypot anti-robots : invisible mais pas display:none, que
   certains robots savent détecter */
.ct-piege { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }


/* ============================================================
   4. COLONNE D'INFORMATIONS
   ============================================================ */
.ct-aside { position: sticky; top: 104px; display: flex; flex-direction: column; gap: 18px; }

.ct-carte {
  background: #f6f7fb;
  border: 1px solid rgba(18, 21, 28, 0.05);
  border-radius: 18px;
  padding: 22px 22px 24px;
}

.ct-carte-titre {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: #12151c;
  margin: 0 0 16px;
}

.ct-coord {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 11px 0;
  border-top: 1px solid rgba(18, 21, 28, 0.07);
  text-decoration: none;
}

.ct-coord:first-of-type { border-top: 0; padding-top: 0; }

.ct-coord-icone {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: #fff;
  color: var(--brand-blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(15, 31, 74, 0.06);
}

.ct-coord-icone svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ct-coord-val {
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 600;
  color: #12151c;
  display: block;
  margin-bottom: 2px;
  word-break: break-word;
}

a.ct-coord:hover .ct-coord-val { color: var(--brand-blue); }

.ct-coord-note {
  font-family: var(--font-primary);
  font-size: 12.5px;
  line-height: 1.5;
  color: #6b7185;
  display: block;
}

/* déroulé en trois temps : lève l'inquiétude du « et après ? » */
.ct-etapes { list-style: none; margin: 0; padding: 0; counter-reset: ctpas; }

.ct-etapes li {
  position: relative;
  padding: 0 0 18px 34px;
  counter-increment: ctpas;
}

.ct-etapes li:last-child { padding-bottom: 0; }

.ct-etapes li::before {
  content: counter(ctpas);
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--grad-brand);
  color: #fff;
  font-family: var(--font-primary);
  font-size: 11.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* filet reliant les pastilles */
.ct-etapes li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 10.5px;
  top: 26px;
  bottom: 8px;
  width: 1px;
  background: rgba(18, 21, 28, 0.12);
}

.ct-etape-nom {
  font-family: var(--font-primary);
  font-size: 13.5px;
  font-weight: 600;
  color: #12151c;
  display: block;
  margin-bottom: 2px;
}

.ct-etape-txt {
  font-family: var(--font-primary);
  font-size: 12.5px;
  line-height: 1.55;
  color: #6b7185;
  display: block;
}

.ct-rassure { display: flex; flex-direction: column; gap: 9px; }

.ct-rassure-item {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-family: var(--font-primary);
  font-size: 13px;
  line-height: 1.5;
  color: #3d4356;
}

.ct-rassure-item svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  margin-top: 2px;
  fill: none;
  stroke: var(--brand-blue);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}


/* ============================================================
   5. PAGE DE CONFIRMATION (merci.html)
   ------------------------------------------------------------
   Cette feuille est également chargée par merci.html, qui reprend
   le bandeau et les cartes ci-dessus. Seuls les quelques éléments
   propres à la confirmation sont définis ici.
   ============================================================ */
.ct-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.32);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  margin-bottom: 22px;
}

.ct-check svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: #5ce0e5;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* le corps de la page de confirmation n'a pas de colonne latérale */
.ct-corps--merci { grid-template-columns: minmax(0, 1fr) 340px; }

/* liens de rebond : plutôt qu'un cul-de-sac, on propose la suite */
.ct-rebonds {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
}

.ct-rebond {
  display: block;
  padding: 20px 20px 22px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(18, 21, 28, 0.1);
  text-decoration: none;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.ct-rebond:hover {
  transform: translateY(-3px);
  border-color: rgba(36, 81, 196, 0.3);
  box-shadow: 0 16px 36px rgba(15, 31, 74, 0.08);
}

.ct-rebond-nom {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: #12151c;
  display: block;
  margin-bottom: 6px;
}

.ct-rebond-txt {
  font-family: var(--font-primary);
  font-size: 12.5px;
  line-height: 1.55;
  color: #6b7185;
  display: block;
}

.ct-rebond-fleche {
  display: inline-block;
  margin-top: 12px;
  font-family: var(--font-primary);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--brand-blue);
}

/* rappel « urgent ? appelez » */
.ct-urgence {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 30px;
  padding: 20px 22px;
  border-radius: 16px;
  background: #f6f7fb;
  border: 1px solid rgba(18, 21, 28, 0.06);
}

.ct-urgence-txt {
  font-family: var(--font-primary);
  font-size: 13.5px;
  line-height: 1.55;
  color: #3d4356;
  margin: 0;
  flex: 1;
  min-width: 220px;
}

.ct-urgence-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 22px;
  border-radius: 12px;
  background: #12151c;
  color: #fff;
  font-family: var(--font-heading);
  font-size: 14.5px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background .25s ease, transform .25s ease;
}

.ct-urgence-btn:hover { background: var(--brand-blue); transform: translateY(-2px); }


/* ============================================================
   6. RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .ct-corps,
  .ct-corps--merci { grid-template-columns: 1fr; gap: 44px; padding: 52px 32px 72px; }
  .ct-aside { position: static; max-width: 560px; }
  .ct-hero-inner { grid-template-columns: 1fr; align-items: start; gap: 26px; }
  .ct-vitrage-champs { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .ct-hero { padding: 130px 20px 52px; min-height: 400px; }
  .ct-corps { padding: 44px 20px 64px; }

  /* on supprime le retrait aligné sur les numéros d'étape :
     sur petit écran, chaque pixel de largeur compte */
  .ct-etape-note,
  .ct-choix,
  .ct-champs,
  .ct-mesures,
  .ct-envoi { margin-left: 0; }

  .ct-champs { grid-template-columns: 1fr; }
  .ct-vitrage-champs { grid-template-columns: 1fr; }
  .ct-tel { width: 100%; }
  .ct-rebonds { grid-template-columns: 1fr; }
}
