/* ==========================================================================
   WIDEVIEW — Page « Contact »
   S'ajoute à styles.css (charte validée), sans le modifier.
   ========================================================================== */
:root { --text-soft: #3E4652; }

/* ---------- Bandeau de page ---------- */
.page-hero { position: relative; color: var(--white); background: var(--navy); overflow: hidden; isolation: isolate; }
.page-hero__media { position: absolute; inset: 0 0 0 38%; z-index: -2; display: block; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 72%; }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, var(--navy) 0%, var(--navy) 38%, rgba(16,36,58,.72) 56%, rgba(16,36,58,.35) 100%); }
.page-hero__inner { padding-top: 56px; padding-bottom: 72px; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; font-size: 14px; color: #C9D3DE; }
.breadcrumb li + li::before { content: "›"; margin-right: 8px; color: #8FA2B6; }
.breadcrumb a { color: #FFFFFF; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; text-underline-offset: 3px; }
.page-hero h1 { margin-top: 26px; font-size: clamp(2.3rem, 4.6vw, 3.6rem); line-height: 1.05; font-weight: 800; }
.page-hero h1::after { content: ""; display: block; width: 64px; height: 3px; margin-top: 22px; background: var(--red); }
.page-hero__sub { margin-top: 22px; max-width: 30em; font-size: clamp(1.15rem, 1.8vw, 1.4rem); line-height: 1.4; font-weight: 700; }
.page-hero__lead { margin: 16px 0 0; max-width: 36em; font-size: clamp(1.02rem, 1.4vw, 1.15rem); line-height: 1.65; color: #E3E9EF; }



/* ---------- Mise en page ---------- */
.ct-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; align-items: start; }
.ct-formbox h2, .ct-aside h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); line-height: 1.15; font-weight: 800; }
.ct-formbox h2::before, .ct-aside h2::before { content: ""; display: block; width: 44px; height: 3px; margin-bottom: 18px; background: var(--red); }
.ct-intro { margin: 14px 0 28px; font-size: 1.06rem; line-height: 1.65; color: #2F3640; max-width: 46em; }

/* ---------- Formulaire ---------- */
.ct-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 24px; }
.ct-field { display: flex; flex-direction: column; gap: 8px; }
.ct-field--full { grid-column: 1 / -1; }
.ct-field label { font-size: .98rem; font-weight: 700; color: var(--black); }
.ct-req { color: var(--red); }
.ct-opt { font-weight: 500; color: #5B6472; }
.ct-field input, .ct-field select, .ct-field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid #C3CAD3; border-radius: 6px; background: var(--white);
  font: 500 1rem/1.4 var(--font); color: var(--black); transition: border-color .15s, box-shadow .15s; }
.ct-field textarea { min-height: 170px; resize: vertical; line-height: 1.6; }
.ct-field select { appearance: none; padding-right: 42px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23161616' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; }
.ct-field input:hover, .ct-field select:hover, .ct-field textarea:hover { border-color: #8E99A6; }
.ct-field input:focus, .ct-field select:focus, .ct-field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(16,36,58,.15); }
.ct-field [aria-invalid="true"], .ct-consent input[aria-invalid="true"] { border-color: var(--red); box-shadow: 0 0 0 3px rgba(215,25,32,.12); }
.ct-help { font-size: .9rem; color: #4A5260; }
.ct-help[hidden] { display: none; }
.ct-field select:disabled { background-color: var(--grey-bg); border-color: #D5DAE0; color: #6B7480; cursor: not-allowed; }
.ct-err { display: flex; align-items: center; gap: 6px; font-size: .92rem; font-weight: 600; color: #B0141A; }
.ct-err::before { content: "!"; flex: none; width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; background: #B0141A; color: var(--white); font-size: 12px; font-weight: 800; }
.ct-err[hidden], .ct-alert[hidden], .ct-form[hidden] { display: none; }
.ct-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ct-consent { display: flex; align-items: flex-start; gap: 12px; margin-top: 28px; }
.ct-consent input { flex: none; width: 22px; height: 22px; margin-top: 2px; accent-color: var(--navy); cursor: pointer; }
.ct-consent label { font-size: .98rem; line-height: 1.55; color: #2F3640; cursor: pointer; }
.ct-consent a { color: var(--red-dark); font-weight: 600; }
.ct-consent + .ct-err { margin: 8px 0 0 34px; }
.ct-actions { margin-top: 28px; }
.ct-submit { min-height: 54px; padding: 0 30px; border: 0; cursor: pointer; font-size: 16px; }
.ct-submit:disabled { opacity: .7; cursor: progress; }
.ct-privacy { margin-top: 18px; font-size: .9rem; line-height: 1.6; color: #4A5260; max-width: 52em; }

/* ---------- Messages ---------- */
.ct-alert { margin-bottom: 26px; padding: 18px 22px; border-radius: 10px; outline: none; }
.ct-alert p { line-height: 1.6; }
.ct-alert__title { font-weight: 800; font-size: 1.08rem; margin-bottom: 4px; }
.ct-alert--ok { background: #E8F2EA; border-left: 4px solid var(--green-net); color: #0F3F21; }
.ct-alert--err { background: #FCEDEE; border-left: 4px solid var(--red); color: #5E0A0E; }
.ct-alert--err a { color: #8A0F14; font-weight: 700; }
.ct-alert__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 16px; }
.ct-alert__actions .btn { min-height: 44px; }
.ct-count { margin-top: 6px; font-size: .85rem; color: #4A5260; text-align: right; font-variant-numeric: tabular-nums; }
.ct-count.is-over { color: #A3131A; font-weight: 700; }
.ct-again { padding: 10px 0; border: 0; background: none; font: 600 .95rem var(--font); color: #0F3F21; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.ct-again:hover { color: var(--black); }

/* ---------- Coordonnées ---------- */
.ct-aside { position: sticky; top: 112px; padding: 30px; border-radius: 14px; background: var(--grey-bg); }
.ct-coords { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 18px; }
.ct-coords li { display: flex; align-items: center; gap: 14px; }
.ct-coords__ico { flex: none; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: var(--white); color: var(--red); }
.ct-coords__ico svg { width: 22px; height: 22px; }
.ct-coords__ico--in { color: #0A66C2; }
.ct-coords__label { display: block; font-size: 13.5px; font-weight: 700; color: #4A5260; }
.ct-coords a { font-size: 1.05rem; font-weight: 700; color: var(--black); text-decoration: none; word-break: break-word; }
.ct-coords a:hover { text-decoration: underline; text-underline-offset: 3px; }
.ct-anchor { margin-top: 26px; padding-top: 22px; border-top: 1px solid #DCE0E6; }
.ct-flags { display: flex; flex-wrap: wrap; gap: 10px 20px; list-style: none; margin: 12px 0 0; padding: 0; }
.ct-flags li { display: flex; align-items: center; gap: 9px; font-weight: 700; }
.flag { display: inline-block; width: 28px; height: 21px; object-fit: cover; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.12); }
.ct-anchor__text { margin-top: 14px; font-size: .98rem; line-height: 1.6; color: #2F3640; }
.ct-anchor__link { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; font-weight: 700; color: var(--red-dark); text-decoration: none; }
.ct-anchor__link svg { width: 16px; height: 16px; }
.ct-anchor__link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .ct-layout { grid-template-columns: 1fr; gap: 40px; }
  .ct-aside { position: static; }
}
@media (max-width: 620px) {
  .ct-grid { grid-template-columns: 1fr; gap: 18px; }
  .ct-submit { width: 100%; justify-content: center; }
  .ct-aside { padding: 22px; }
}
