:root{
  --bg: #F4F2F2;
  --surface: #FFFFFF;
  --ink: #14171A;
  --ink-soft: #55595C;
  --ink-faint: #93989B;
  --blue: #3274BA;
  --blue-deep: #245A94;
  --blue-pale: #E4EEF7;
  --line: #E3E0DF;
}

*{ box-sizing:border-box; }
html, body{ margin:0; padding:0; height:100%; }

/* ---------- CURSEUR DYNAMIQUE (MASCOTTE) ---------- */

/* Curseur normal quand on se balade */
html, body, a, button, input, textarea, label {
  cursor: url('img/JAUNE-NORMAL.svg') 16 16, auto !important;
}

/* Curseur clin d'œil AU MOMENT DU CLIC */
html:active, body:active, a:active, button:active, input:active, textarea:active, label:active {
  cursor: url('img/JAUNE-CLIN-DOEIL.svg') 16 16, auto !important;
}

body{
  min-height:100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Fira Sans', sans-serif;
  line-height:1.5;
  -webkit-font-smoothing: antialiased;
  display:flex;
  flex-direction:column;
}

/* ---------- BACKGROUND WATERMARK ---------- */
.bg-marks{
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}
.bg-mark{ position:absolute; opacity:.05; }
.bg-mark .cls-1{ fill: var(--blue); }
.bg-mark .cls-2{ fill: var(--blue); }
.bg-mark--1{ width: 520px; top: -110px; right: -160px; transform: rotate(-10deg); }
.bg-mark--2{ width: 300px; bottom: 4%; left: -100px; transform: rotate(18deg); }
.bg-mark--3{
  width: 170px; top: 46%; right: 8%;
  transform: rotate(-24deg);
  opacity: .04;
  animation: drift 50s linear infinite;
}
@keyframes drift{
  0%   { transform: rotate(-24deg) translateY(0); }
  50%  { transform: rotate(-16deg) translateY(-18px); }
  100% { transform: rotate(-24deg) translateY(0); }
}
@media (prefers-reduced-motion: reduce){ .bg-mark--3{ animation: none; } }

/* ---------- PAGE SHELL ---------- */
.page{
  position:relative;
  z-index:1;
  flex:1;
  display:flex;
  flex-direction:column;
  min-height:100vh;
  width:100%;
}

.topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 22px clamp(20px, 4vw, 64px);
}
.topbar svg{ width:150px; height:auto; display:block; }

.split{
  flex:1;
  display:grid;
  grid-template-columns: 1.05fr 0.95fr;
  width:100%;
  gap: 24px;
  padding-bottom: 24px;
}

.intro{
  padding: 20px clamp(20px, 5vw, 72px) 32px;
  display:flex;
  flex-direction:column;
  justify-content:center;
}

h1{
  font-family:'Space Grotesk', sans-serif;
  font-weight:600;
  font-size: clamp(28px, 3.4vw, 42px);
  line-height:1.14;
  margin:0 0 16px;
  letter-spacing:-.01em;
  max-width:16ch;
}
h1 .accent{ color: var(--blue); }

p.lede{
  font-size:16px;
  color: var(--ink-soft);
  max-width:46ch;
  margin:0 0 26px;
}

/* ---------- SHOWCASE (CARROUSEL AGRANDI & DROIT) ---------- */
.showcase{
  width:100%;
  max-width: 680px;
  margin-bottom: 28px;
  overflow:hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 6%, black 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 6%, black 94%, transparent);
}
.showcase-track{
  display:flex;
  gap: 20px;
  width:max-content;
  animation: marquee 26s linear infinite;
}
.showcase:hover .showcase-track{ animation-play-state: paused; }
.showcase figure{ margin:0; flex:none; }
.showcase img{
  display:block;
  height: 240px;
  width:auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 12px 24px -10px rgba(20,23,26,.25);
  transition: transform .25s ease;
  transform: none !important;
}
.showcase-track figure:hover img{ 
  transform: scale(1.04) !important;
}

@keyframes marquee{
  from{ transform: translateX(0); }
  to{ transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce){
  .showcase-track{ animation:none; }
}
@media (max-width:480px){
  .showcase img{ height: 160px; }
}

/* ---------- BOUTON DECOUVRIR DYNAMIQUE ---------- */
.cta-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  max-width: 420px;
  background: linear-gradient(135deg, #3274BA 0%, #245A94 100%);
  color: #ffffff;
  font-family: 'Fira Sans', sans-serif;
  font-weight: 700;
  font-size: 16.5px;
  text-decoration: none;
  border: none;
  border-radius: 12px;
  padding: 18px 24px;
  overflow: hidden;
  box-shadow: 0 10px 25px -5px rgba(50, 116, 186, 0.5), 0 0 15px rgba(50, 116, 186, 0.2);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  animation: ctaPulse 3s infinite;
}

.cta-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 75%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.35) 50%,
    transparent 100%
  );
  transform: skewX(-20deg);
  transition: none;
}

.cta-primary:hover::before {
  left: 140%;
  transition: left 0.75s ease-in-out;
}

.cta-primary:hover {
  background: linear-gradient(135deg, #3b82d6 0%, #1d4d82 100%);
  transform: translateY(-2px) scale(1.015);
  box-shadow: 0 16px 32px -6px rgba(50, 116, 186, 0.65), 0 0 20px rgba(50, 116, 186, 0.35);
}

.cta-primary:active {
  transform: translateY(1px) scale(0.99);
  box-shadow: 0 6px 16px -4px rgba(50, 116, 186, 0.5);
}

.cta-primary .cta-icon {
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cta-primary:hover .cta-icon {
  transform: translate(3px, -3px);
}

@keyframes ctaPulse {
  0%, 100% {
    box-shadow: 0 10px 25px -5px rgba(50, 116, 186, 0.5), 0 0 0 0 rgba(50, 116, 186, 0.4);
  }
  50% {
    box-shadow: 0 12px 28px -4px rgba(50, 116, 186, 0.6), 0 0 0 8px rgba(50, 116, 186, 0);
  }
}

.cta-reassure{
  font-size:12.5px;
  color: var(--ink-faint);
  margin: 10px 0 0;
}

/* ---------- FORM PANEL (ARRONDI À 20PX) ---------- */
.form-panel{
  background: var(--surface);
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 40px clamp(20px, 4vw, 56px);
  border: 1px solid var(--line);
  border-radius: 20px;
  margin-right: clamp(20px, 4vw, 64px);
  box-shadow: 0 10px 30px -15px rgba(20, 23, 26, 0.08);
}

.form-card{ width:100%; max-width:440px; }

.form-head h2{
  font-family:'Space Grotesk', sans-serif;
  font-size:20px;
  font-weight:600;
  margin:0 0 6px;
}
.form-head p{
  color: var(--ink-soft);
  font-size:14px;
  margin:0 0 24px;
}

form{ display:flex; flex-direction:column; gap:16px; position:relative; }

.row{ display:grid; grid-template-columns:1fr 1fr; gap:14px; }

.field{ display:flex; flex-direction:column; gap:6px; }
.field label{ font-size:12.5px; font-weight:600; color: var(--ink); }
.field .optional{ font-weight:400; color: var(--ink-faint); }

.field input,
.field textarea{
  font-family:'Fira Sans', sans-serif;
  font-size:14.5px;
  color: var(--ink);
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 11px 13px;
  outline:none;
  transition: border-color .15s ease, box-shadow .15s ease;
  width:100%;
}
.field textarea{ resize:vertical; min-height:80px; font-family:'Fira Sans', sans-serif; }
.field input:focus,
.field textarea:focus{
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(50,116,186,.14);
  background:#fff;
}

.input-icon{ position:relative; }
.input-icon svg{ position:absolute; left:13px; top:50%; transform:translateY(-50%); pointer-events:none; }
.input-icon input{ padding-left:36px; }

.consent{
  display:flex;
  align-items:flex-start;
  gap:10px;
  font-size:12.5px;
  color: var(--ink-soft);
  margin-top:4px;
}
.consent input{ margin-top:3px; accent-color: var(--blue); flex:none; }

.submit-btn{
  margin-top:6px;
  background: var(--ink);
  color:#fff;
  border:none;
  border-radius: 12px;
  padding: 15px 18px;
  font-family:'Fira Sans', sans-serif;
  font-size:15px;
  font-weight:700;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  transition: background .15s ease, transform .1s ease;
}
.submit-btn:hover{ background: var(--blue-deep); }
.submit-btn:active{ transform: translateY(1px); }
.submit-btn:disabled{ background: var(--ink-faint); cursor: progress; transform:none; }

/* Champ leurre anti-robot : hors de l'ecran plutot que display:none, que
   certains automates savent detecter. Invisible et inatteignable au clavier. */
.leurre{
  position:absolute;
  left:-9999px;
  width:1px; height:1px;
  overflow:hidden;
}

.form-error{
  display:none;
  margin:0;
  padding: 11px 13px;
  border-radius: 10px;
  border: 1px solid #E4B4B4;
  background: #FBEFEF;
  color: #8A2B2B;
  font-size: 13px;
}
.form-error.visible{ display:block; }
.form-error:focus{ outline: 2px solid #8A2B2B; outline-offset: 2px; }

form.hidden{ display:none; }

.success{ display:none; flex-direction:column; align-items:flex-start; gap:14px; padding: 12px 0; }
.success.visible{ display:flex; }
.success-badge{
  width:46px; height:46px; border-radius:50%;
  background: var(--blue-pale);
  display:flex; align-items:center; justify-content:center;
}
.success h2{ font-family:'Space Grotesk', sans-serif; font-size:19px; margin:0; }
.success p{ color: var(--ink-soft); font-size:14px; margin:0; max-width:38ch; }

footer{
  text-align:center;
  font-size:12px;
  color: var(--ink-faint);
  padding: 18px 20px 26px;
}

@media (max-width: 900px){
  .split{ grid-template-columns: 1fr; margin-right: 0; padding-bottom: 0; }
  .form-panel{ border-left:none; border-top:1px solid var(--line); border-radius: 20px 20px 0 0; margin-right: 0; }
  h1{ max-width:none; }
}
@media (max-width: 480px){
  .row{ grid-template-columns:1fr; }
  .showcase{ max-width:100%; }
}
@media (prefers-reduced-motion: reduce) {
  .cta-primary { animation: none; }
  .cta-primary::before { display: none; }
}
/* ---------- PAGE CONFIDENTIALITE ---------- */

.retour{
  font-size:13px;
  font-weight:600;
  color: var(--blue);
  text-decoration:none;
}
.retour:hover{ text-decoration:underline; }

.legal{
  position:relative;
  z-index:1;
  max-width: 74ch;
  margin: 0 auto;
  padding: 8px 24px 48px;
}
.legal h1{
  font-family:'Space Grotesk', sans-serif;
  font-size: clamp(28px, 4vw, 40px);
  line-height:1.15;
  margin: 0 0 18px;
}
.legal h2{
  font-family:'Space Grotesk', sans-serif;
  font-size:18px;
  margin: 34px 0 10px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.legal p, .legal li{ font-size:15px; color: var(--ink-soft); }
.legal p{ margin: 0 0 12px; }
.legal ul{ margin: 0 0 12px; padding-left: 20px; }
.legal li{ margin-bottom: 6px; }
.legal strong{ color: var(--ink); }
.legal a{ color: var(--blue); }
.legal .lede{ font-size:16px; max-width:none; }
.legal .maj{ font-size:13px; color: var(--ink-faint); }

.tableau-legal{
  width:100%;
  border-collapse: collapse;
  margin: 4px 0 16px;
  font-size:14px;
}
.tableau-legal th, .tableau-legal td{
  text-align:left;
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.tableau-legal th{
  font-family:'Space Grotesk', sans-serif;
  font-size:13px;
  color: var(--ink);
  background: var(--blue-pale);
  border-bottom-color: transparent;
}
.tableau-legal td{ color: var(--ink-soft); }
.tableau-legal tr:last-child td{ border-bottom:none; }

/* Reperes voyants : ces mentions doivent etre remplacees avant mise en ligne. */
.a-completer{
  background: #FFF3CD;
  border-bottom: 2px dotted #B8860B;
  color: #6B4E00;
  font-weight:600;
  padding: 0 3px;
}

/* Lien vers la politique, a cote de la case de consentement. */
.consent a{ color: var(--blue); }

@media (max-width: 600px){
  .tableau-legal, .tableau-legal thead, .tableau-legal tbody,
  .tableau-legal tr, .tableau-legal th, .tableau-legal td{ display:block; }
  .tableau-legal thead{ display:none; }
  .tableau-legal tr{ border-bottom: 1px solid var(--line); padding: 8px 0; }
  .tableau-legal td{ border-bottom:none; padding: 3px 0; }
  .tableau-legal td:first-child{ font-weight:600; color: var(--ink); }
}
