/* ============ Variables & Base ============ */
:root{
  --blue:#0b5ff0;
  --blue-600:#0a4fd0;
  --ink:#0f172a;
  --muted:#64748b;
  --border:#dbe3ee;
  --white:#fff;
  --shadow: 0 20px 50px rgba(2,6,23,.18);
  --radius:16px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  color:var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  background-image: url("/app/frontend/assets/images/arcs_fond.png");
  background-position: top center;
  background-size: 100%;  /* ou cover */
  background-repeat: no-repeat;
}




/* Conteneur header interne */
.header__inner{
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 18px;
  display: flex; align-items: center; justify-content: space-between;
}

/* ===== Header full-bleed qui RESSORT ===== */
.site-header{
  position: sticky; top: 0; left:0; right:0;
  z-index: 20;

  border-bottom: 1px solid rgba(255,255,255,.16);


  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}


/* Branding */
.brand{ display:flex; align-items:center; gap:12px; text-decoration:none; color:inherit; font-weight:700; }
.brand img{ height: 44px; width:auto; display:block; }
.brand-modal{ display:flex; align-items:center; gap:10px; color:inherit; text-decoration:none; font-weight:700; }
.brand-modal img{ height:30px; width:auto; display:block; }

.header__nav{ display:flex; align-items:center; gap:14px; }

/* ===== Boutons ===== */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:.5rem;
  font-weight:700; border-radius:12px; border:1px solid transparent;
  text-decoration:none; cursor:pointer;
  transition: transform .03s ease, background .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.btn:active{ transform: translateY(1px); }

/* Bouton du header (vrai bouton, très lisible sur fond bleu) */
.btn--header{
  height: 40px; padding: 0 16px;
  border-radius: 11px;
  background: rgba(255,255,255,.96);
  color: #0a3fe1;
  border: 1px solid #cfe0ff;
  box-shadow: 0 6px 16px rgba(6,20,90,.18);
}
.btn--header:hover{
  background:#ffffff;
  border-color:#b9d1ff;
  box-shadow: 0 8px 20px rgba(6,20,90,.22);
}

/* Boutons génériques (modales/panneaux) */
.btn--primary{ background:var(--blue); color:#fff; border-color:var(--blue); }
.btn--primary:hover{ background:var(--blue-600); }
.btn--outline{ background:#fff; border:1px solid var(--border); color:var(--ink); }
.btn--outline:hover{ border-color:#bfd6ff; }
.btn--ghost{ background:#fff; border:1px solid var(--border); color:var(--ink); }

/* ============ Split landing ============ */
.landing-split{
  position: relative;
  max-width: 1060px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(360px,1fr) 42px minmax(360px,1fr);
  gap: clamp(22px,4.2vw,46px);
  align-items: center;
  padding: clamp(32px,6vw,80px) clamp(16px,5vw,56px);
  min-height: calc(100vh - 88px);
}

/* Panneaux fins et lisibles sur fond bleu */
.panel{
  position: relative;
  display: grid;
  align-content: center;
  gap: 10px;
  text-align: center;
  padding: clamp(24px,2.6vw,34px);
  background: #ffffff;
  border-radius: 16px;
  border: 1.6px solid rgba(11,95,240,.45);
  box-shadow:
    0 14px 36px rgba(3,14,60,.16),
    0 4px 12px rgba(3,14,60,.08);
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.panel::after{
  content:"";
  position:absolute; left:0; right:0; top:0; height:3px;
  border-radius: 16px 16px 0 0;
  background: linear-gradient(90deg, rgba(11,95,240,0), rgba(11,95,240,.30), rgba(11,95,240,0));
  pointer-events:none;
}
.panel:hover{
  transform: translateY(-2px);
  border-color: rgba(11,95,240,.75);
  box-shadow:
    0 18px 42px rgba(3,14,60,.20),
    0 6px 16px rgba(3,14,60,.10);
}
.panel:focus-within{
  outline: 3px solid rgba(11,95,240,.20);
  outline-offset: 2px;
}

.panel__title{
  margin:0 0 4px;
  font-size: clamp(22px,1.2rem + .9vw,28px);
  letter-spacing: -.01em;
}
.panel__sub{
  margin:0 2px 16px;
  color: var(--muted);
  font-weight: 600;
}

/* CTA panneaux */
.panel__btn{
  min-width: 220px;
  height: 46px;
  border-radius: 12px;
  font-weight: 700;
  border: 1.6px solid rgba(11,95,240,.45);
  background: #fff;
  color: var(--ink);
}
.panel__btn:hover{ border-color: rgba(11,95,240,.78); background:#f8fbff; }

/* CTA principal plein bleu côté gauche */
.panel--left .panel__btn{
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}
.panel--left .panel__btn:hover{ background: var(--blue-600); }

/* Diviseur central qui marque bien la séparation */
.panel__divider{
  align-self: stretch;
  width: 100%; max-width: 2px; margin: 8px 0;
  border-radius: 2px;
  background:
    linear-gradient(to bottom,
      rgba(11,95,240,0) 0%,
      rgba(11,95,240,.26) 25%,
      rgba(11,95,240,.36) 50%,
      rgba(11,95,240,.26) 75%,
      rgba(11,95,240,0) 100%);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.85) inset,
    0 10px 30px rgba(11,95,240,.12);
}

/* ============ Modals ============ */
.modal{ position:fixed; inset:0; display:none;   z-index: 9999;}
.modal.is-open{ display:block; }
.modal__backdrop{
  position:absolute; inset:0;
  background:rgba(2,6,23,.55); backdrop-filter:blur(2px);
}
.modal__dialog{
  position:relative; z-index:9999;
  margin:7vh auto; max-width:560px;
  background:#fff; border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:24px;
  animation:modalIn .18s ease-out;
}
@keyframes modalIn{ from{opacity:.8;transform:translateY(8px)} to{opacity:1;transform:none} }
.modal__title{ margin:0 0 8px; text-align:center; }
.modal__close{
  position:absolute; right:12px; top:8px;
  border:0; background:transparent; font-size:28px; line-height:1;
  color:#334155; cursor:pointer;
}

/* ============ Tabs ============ */
.tabs{ display:grid; grid-template-columns:1fr 1fr; gap:8px; margin:8px 0 16px; }
.tabs__tab{
  padding:10px 12px; border:1px solid var(--border); border-radius:12px;
  background:#f1f5f9; color:var(--ink);
  font-weight:700; cursor:pointer;
}
.tabs__tab.is-active{ background:#e8f0ff; border-color:#bfdbfe; color:var(--blue); }
.tabs__panels{ min-height:220px; padding-top: 4px; }
.tabs__panel{ display:none; }
.tabs__panel.is-active{ display:block; }
.tabs__panel[hidden]{ display:none !important; }

/* ============ Formulaires ============ */
.form{ display:grid; gap:12px; }
.form--compact .form__input{ height:44px; }
.form__label{ text-align:left; font-weight:700; }
.form__input{
  width:100%; border:1px solid var(--border); border-radius:12px;
  padding:10px 12px; font-size:16px; outline:none;
  transition:border-color .12s, box-shadow .12s;
}
.form__input:focus{ border-color:#93c5fd; box-shadow:0 0 0 3px rgba(59,130,246,.2); }
.checkbox{ display:flex; gap:10px; align-items:center; text-align:left; }
.checkbox input{ accent-color: var(--blue); width: 18px; height: 18px; cursor: pointer; }
.checkbox span{ font-size: 15px; color: var(--ink); line-height: 1.4; }

.form__submit{ width:100%; margin-top:6px; }
.form__status{ min-height:18px; font-size:14px; color:#475569; }
.form__hint{ font-size: 14px; color: var(--muted); }

/* Séparateur "OU" */
.form__separator{
  display:flex; align-items:center; text-align:center;
  color:var(--muted); font-weight:600; margin:10px 0;
}
.form__separator::before,
.form__separator::after{
  content:""; flex:1; border-bottom:1px solid var(--border);
}
.form__separator:not(:empty)::before{ margin-right:.75em; }
.form__separator:not(:empty)::after{ margin-left:.75em; }

/* ============ Responsive ============ */
@media (max-width: 920px){
  .landing-split{
    max-width: 640px;
    grid-template-columns: 1fr;
    gap: 18px;
    min-height: auto;
    padding-top: 24px;
    padding-bottom: 40px;
  }
  .panel__divider{ display:none; }
  .panel{ text-align: left; }
}

/* ============ Motion ============ */
@media (prefers-reduced-motion: reduce){
  .site-header{ backdrop-filter: none; }
  .panel, .panel__btn, .modal__dialog{ transition: none !important; animation: none !important; }
}
/* ==== Boutons dans les modales : taille & confort ==== */
.modal .form .form__submit.btn{
  height: 48px;
  padding: 0 18px;            /* ← padding ajouté */
  border-radius: 12px;
  font-weight: 700;
}

/* Un peu de relief pour l’action principale */
.modal .form .btn--primary{
  box-shadow: 0 6px 16px rgba(10,79,208,.18);
}
.modal .form .btn--primary:hover{
  box-shadow: 0 8px 20px rgba(10,79,208,.22);
}

/* Outline clavier net */
.modal .form .btn:focus-visible{
  outline: 3px solid rgba(59,130,246,.28);
  outline-offset: 2px;
}

/* L’outline est déjà plein, on le rend un poil plus lisible au survol */
.modal .form .btn--outline:hover{
  border-color:#bfd6ff;
  background:#f8fbff;
}
