/* ==========================================================================
   Page contact — thème sombre bleu marine (variables et animations : blog.css)
   Deux cartes : à gauche la carte de France en points + coordonnées + réseaux,
   à droite le formulaire.
   ========================================================================== */

.ctx { padding: 12.5rem 0 7.5rem; }

.ctx-grid {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
  gap: 1.5rem;
  align-items: stretch;
}

.ctx-card {
  padding: 2.25rem;
  border: 1px solid var(--blog-trait);
  border-radius: .75rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, .065), rgba(255, 255, 255, .03));
  font-family: var(--font-family--text);
  color: #fff;
}

/* ---------- Carte de gauche ---------- */
.ctx-infos { display: flex; flex-direction: column; gap: 1.75rem; }

.ctx-map {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 19rem;
  color: #8ecbf5;
}

.ctx-map-svg { display: block; width: 100%; max-width: 27rem; height: auto; overflow: visible; }

.ctx-dots { opacity: .92; }

/* Quelques points s'allument à tour de rôle */
.ctx-pulse {
  fill: var(--blog-orange);
  transform-box: fill-box;
  transform-origin: center;
  animation: ctx-pulse 3.6s ease-in-out infinite;
  animation-delay: var(--d, 0s);
}

@keyframes ctx-pulse {
  0%, 100% { transform: scale(1); opacity: .85; }
  50% { transform: scale(2.2); opacity: 1; }
}

.ctx-info-title {
  margin: 0 0 .35rem;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -.01em;
}

.ctx-info-value {
  display: inline-block;
  margin: 0;
  color: var(--blog-texte);
  font-size: 1.125rem;
  line-height: 1.55;
  text-decoration: none;
  transition: color .2s ease;
}

a.ctx-info-value:hover { color: var(--blog-orange); }

/* 5 boutons : 2 sur la première ligne, 3 sur la seconde */
.ctx-socials { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .75rem; }

.ctx-social {
  grid-column: span 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .85rem .4rem;
  border: 1px solid var(--blog-trait);
  border-radius: .5rem;
  background-color: rgba(255, 255, 255, .03);
  color: #fff;
  font-size: 1rem;
  white-space: nowrap;
  text-decoration: none;
  transition: transform .35s var(--blog-courbe), border-color .25s ease, background-color .25s ease;
}

.ctx-social:nth-child(-n+2) { grid-column: span 3; }

/* Au survol, le dégradé de la charte (celui de la carte « analyse gratuite » de l'accueil)
   apparaît progressivement derrière le bouton, et le texte passe en foncé pour rester lisible. */
.ctx-social {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transition: transform .45s var(--blog-courbe), border-color .6s ease, color .6s ease;
}

.ctx-social::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(circle at 0 0, #ff6b35 0%, #ffd580 35%, #b3e2ff 65%, #1f4e79);
  opacity: 0;
  transition: opacity .8s ease;
}

.ctx-social:hover,
.ctx-social:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, .7);
  color: #1a1a1a;
}

.ctx-social:hover::before,
.ctx-social:focus-visible::before { opacity: 1; }

.ctx-social svg { flex: none; width: 1.35rem; height: 1.35rem; }

/* ---------- Formulaire ---------- */
.ctx-form-title {
  margin: 0 0 .9rem;
  color: #fff;
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -.01em;
}

.ctx-form-text { margin: 0 0 1.25rem; color: var(--blog-texte); font-size: 1.125rem; line-height: 1.6; }

/* la signature de la marque, entre le texte et les champs */
.ctx-signature {
  margin: 0 0 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, .16);
  color: #fff;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -.01em;
}

.ctx-fields { display: flex; flex-direction: column; gap: 1.4rem; margin: 0; }

.ctx-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }

.ctx-field { display: flex; flex-direction: column; gap: .6rem; margin: 0; font-weight: 400; }

.ctx-field span { color: #fff; font-size: 1.125rem; line-height: 1.3; }
.ctx-field em { color: rgba(255, 255, 255, .5); font-size: .9rem; font-style: normal; }

.ctx-field input,
.ctx-field select,
.ctx-field textarea {
  width: 100%;
  margin: 0;
  padding: 1rem 1.1rem;
  border: 1px solid var(--blog-trait);
  border-radius: .5rem;
  background-color: rgba(11, 28, 46, .6);
  color: #fff;
  font-family: inherit;
  font-size: 1.05rem;
  line-height: 1.4;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.ctx-field input::placeholder,
.ctx-field textarea::placeholder { color: rgba(255, 255, 255, .42); }

.ctx-field input:hover,
.ctx-field select:hover,
.ctx-field textarea:hover { border-color: rgba(255, 255, 255, .22); }

.ctx-field input:focus,
.ctx-field select:focus,
.ctx-field textarea:focus {
  border-color: var(--blog-orange);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, .2);
  background-color: rgba(11, 28, 46, .85);
}

.ctx-field select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 3rem;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'><path d='M1 1l6 6 6-6' fill='none' stroke='white' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 1.2rem center;
  cursor: pointer;
}
.ctx-field select:invalid { color: rgba(255, 255, 255, .42); }
.ctx-field select option { background: #fff; color: #111; }

.ctx-field textarea { min-height: 9.5rem; resize: vertical; }

/* Bouton d'envoi : c'est le bouton « Nous appeler » de la page d'accueil (classes .button.contact-button
   du site, survol compris). Ici on ne règle que ce qui change parce que c'est un <button> de formulaire. */
button.ctx-submit {
  width: 100%;
  max-width: 100%;
  margin: .4rem 0 0;
  padding: 0;
  font-size: 1rem;
  line-height: 1.375;
  letter-spacing: inherit;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
button.ctx-submit .button-text { display: block; }
button.ctx-submit .button-innershadow { display: block; }

.ctx-note { margin: 0; color: rgba(255, 255, 255, .55); font-size: .88rem; line-height: 1.5; }
.ctx-note a { color: #ffd580; text-decoration: underline; text-underline-offset: 3px; }
.ctx-note a:hover { color: var(--blog-orange); }

/* ---------- Tablette et téléphone ---------- */
@media screen and (max-width: 991px) {
  .ctx { padding-top: 10rem; }
  .ctx-grid { grid-template-columns: 1fr; }
  .ctx-map { min-height: 0; }
  .ctx-map-svg { max-width: 22rem; }
}

@media screen and (max-width: 767px) {
  .ctx { padding: 8.5rem 0 5rem; }
  .ctx-card { padding: 1.5rem 1.25rem; }
  .ctx-row { grid-template-columns: 1fr; }
  .ctx-social, .ctx-social:nth-child(-n+2) { grid-column: span 3; }
  .ctx-social:last-child { grid-column: span 6; }
  .ctx-form-title { font-size: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .ctx-pulse { animation: none; }
}

/* ==========================================================================
   Variante orange de la page contact (essai du 01/10/2026)
   Activée par la classe « ctx-orange » sur <body> (THEME dans generer_contact.py).
   Ne concerne que cette page : fond, cartes, carte de France et pied de page.
   Sur l'orange, le mot d'accent et les survols passent en sable (#FFD580),
   les boutons pleins en bleu marine.
   ========================================================================== */
body.ctx-orange {
  --blog-fond: #b9461b;
  --blog-carte: rgba(255, 255, 255, .1);
  --blog-trait: rgba(255, 255, 255, .24);
  --blog-texte: rgba(255, 255, 255, .92);
  --blog-orange: #ffd580;
  background-color: var(--blog-fond);
  background-image: linear-gradient(180deg, #a83e17 0%, #bd481c 45%, #cc5223 100%);
}

.ctx-orange .blogx-glow { background: radial-gradient(closest-side, rgba(255, 107, 53, .85), rgba(255, 107, 53, 0)); }

.ctx-orange .blogx .eye-brow { background-color: rgba(255, 255, 255, .16); }
.ctx-orange .blogx .eye-brow-dot { background-color: #ffd580; }

.ctx-orange .ctx-card { background: linear-gradient(180deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .06)); }

.ctx-orange .ctx-map { color: rgba(255, 255, 255, .92); }
.ctx-orange .ctx-pulse { fill: #1f4e79; }

.ctx-orange .ctx-social { background-color: rgba(255, 255, 255, .06); }
.ctx-orange .ctx-social:hover { border-color: #fff; background-color: rgba(255, 255, 255, .18); }

.ctx-orange .ctx-field em { color: rgba(255, 255, 255, .7); }
.ctx-orange .ctx-field input,
.ctx-orange .ctx-field select,
.ctx-orange .ctx-field textarea { background-color: rgba(70, 22, 4, .32); }
.ctx-orange .ctx-field input::placeholder,
.ctx-orange .ctx-field textarea::placeholder,
.ctx-orange .ctx-field select:invalid { color: rgba(255, 255, 255, .6); }
.ctx-orange .ctx-field input:hover,
.ctx-orange .ctx-field select:hover,
.ctx-orange .ctx-field textarea:hover { border-color: rgba(255, 255, 255, .45); }
.ctx-orange .ctx-field input:focus,
.ctx-orange .ctx-field select:focus,
.ctx-orange .ctx-field textarea:focus {
  border-color: #fff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .25);
  background-color: rgba(70, 22, 4, .45);
}

.ctx-orange .ctx-submit { border-color: #1f4e79; background: #1f4e79; }
.ctx-orange .ctx-submit:hover { border-color: #fff; background: #fff; color: #1f4e79; box-shadow: 0 14px 34px rgba(70, 22, 4, .35); }

.ctx-orange .ctx-note { color: rgba(255, 255, 255, .8); }
.ctx-orange .ctx-note a:hover { color: #fff; }

/* Pied de page orange, sur cette page uniquement */
body.ctx-orange .footer { background-color: #cc5223; }
body.ctx-orange .footer-main { background-image: linear-gradient(180deg, #cc5223, #0000 85%); }
body.ctx-orange .footer-bg-video { opacity: .4; }
body.ctx-orange .footer-bg-video::after { background-color: #c24c1e; }

/* bouton principal de la page (12/10/2026) : « Je veux mon analyse gratuite » → /analyse/,
   le bouton orange du site, sous le sous-titre */
.ctx-cta {
  display: flex;
  justify-content: center;
  margin-top: 1.75rem;
}
