/* ===============================
   Font & Reset minimal
================================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

html, body {
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: var(--text-color);
  background: #ffffff; /* ✅ fond global blanc */
  margin: 0;
}

/* ===============================
   Palette (fond 100% blanc hors footer)
================================= */
:root {
  --primary-color: #0575E6;
  --primary-dark:  #021B79;

  --text-color: #0F172A;
  --text-secondary: #475569;
  --white: #ffffff;

  --main-background-color: #fefefe;
  --video-section-bg: #ffffff;

  --border-color: #D7DFE8;
  --shadow-color: rgba(2, 6, 23, 0.12);
}

/* ===============================
   Logo Occulto.fr (wordmark)
================================= */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&display=swap');

.logo-wordmark {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-weight: 700;
  font-size: 2.2rem;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--text-color);
  text-decoration: none;
  display: inline-block;
}
.logo-wordmark .censor { position: relative; display: inline-block; }
.logo-wordmark .censor::after {
  content: "";
  position: absolute;
  left: 20%;
  top: 52%;
  width: 60%;
  height: 0.12em;
  background: var(--text-color);
  border-radius: 2px;
  transform: translateY(-50%);
  opacity: 0.9;
}
.logo-wordmark .tld {
  font-weight: 600;
  font-size: 0.75em;   /* ✅ .fr plus petit */
  margin-left: 2px;
  color: var(--text-color);
}
@media (max-width: 768px) {
  .logo-wordmark { font-size: 1.7rem; }
}

/* ===============================
   Navbar
================================= */
.navbar {
  width: 100%;
  background-color: var(--white);
  box-shadow: 0 2px 5px rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.navbar-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo-img { height: 50px; width: auto; }
@media (max-width: 768px) {
  .navbar-container { padding: 10px 15px; }
  .logo-img { height: 40px; }
}

/* ===============================
   Boutons principaux (CTA + Login)
================================= */
.cta-button,
.btn-login {
  display: inline-block;
  padding: 14px 26px;
  text-align: center;
  font-weight: 700;
  text-decoration: none;
  border-radius: 10px;
  border: none;
  color: #fff;
  cursor: pointer;

  background-image: linear-gradient(to right, var(--primary-color) 0%, var(--primary-dark) 51%, var(--primary-color) 100%);
  background-size: 200% auto;
  transition: background-position 0.5s ease, transform 0.15s ease;
  box-shadow: none;
}
.cta-button:hover,
.btn-login:hover {
  background-position: right center;
  transform: translateY(-1px);
}
.cta-button:active,
.btn-login:active {
  transform: translateY(0);
}
@media (max-width: 768px) {
  .btn-login { padding: 10px 18px; font-size: 0.95rem; border-radius: 10px; }
  .cta-button { margin-top: 10px; }
}

/* ===============================
   Hero Section (image visible & responsive)
================================= */
.hero-section {
  background-color: var(--main-background-color);
  padding: 70px 0 50px; /* réduit en haut, conserve un peu d’air en bas */
}
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}
.hero-text { flex: 1 1 50%; text-align: left; }
.hero-text h1 {
  font-size: 3.6rem;               /* plus impactant */
  line-height: 1.15;
  margin: 0 0 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.hero-text p {
  font-size: 1.3rem;               /* lisible */
  margin: 0 0 36px;
  color: var(--text-secondary);
  max-width: 520px;
}
.hero-section .cta-button { font-size: 1rem; padding: 14px 32px; }

.hero-image {
  flex: 1 1 50%;
  text-align: right;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
.hero-image img {
  max-width: 480px;
  width: 100%;
  height: auto;
  display: block;
  margin-top: -20px;               /* aligne au titre */
  border-radius: 12px;
  box-shadow: none;
}

/* Responsive */
@media (max-width: 980px) {
  .hero-inner { gap: 40px; padding: 0 20px; }
  .hero-text h1 { font-size: 2.6rem; }
}
@media (max-width: 900px) {
  .hero-inner { flex-direction: column; text-align: center; gap: 28px; }
  .hero-text { text-align: center; }
  .hero-image { justify-content: center; text-align: center; }
  .hero-image img { max-width: 340px; margin-top: 0; }
}
@media (max-width: 600px) {
  .hero-section { padding: 30px 0 40px; } /* ✅ moins haut sur mobile */
  .hero-text h1 { font-size: 2.1rem; }
  .hero-text p { font-size: 1rem; max-width: 90%; margin: 0 auto 20px; }
  .hero-image img { max-width: 260px; }
}

/* ===============================
   Section 2 : Vidéo (fond blanc)
================================= */
.video-section {
  background-color: var(--main-background-color);
  padding: 80px 20px;
  text-align: center;
}
.video-section h2 {
  font-size: 2.2rem;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
  color: var(--text-color);
}
.video-section p {
  font-size: 1.1rem;
  margin: 0 auto 40px;
  color: var(--text-secondary);
  max-width: 700px;
}
.video-wrapper {
  max-width: 900px;
  margin: 0 auto;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 22px var(--shadow-color);
}
.video-wrapper video { width: 100%; height: auto; display: block; object-fit: cover; }

/* ===============================
   Section 3 : Votre démarche en 3 étapes
================================= */
.project-section {
  padding: 60px 20px 100px 20px; /* air intégré avant la FAQ */
  text-align: center;
  background-color: var(--main-background-color);
}
.project-section h2 {
  font-size: 2.2rem;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
  color: var(--text-color);
}
.project-section .project-intro {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto 65px;
}
.project-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px;
  align-items: start;
}
.project-step { background: transparent; border: none; box-shadow: none; padding: 0 10px; text-align: center; }
.project-step img { width: 64px; height: auto; margin-bottom: 14px; }
.project-step h3 {
  font-size: 1.15rem;
  color: var(--text-color);
  margin: 0 0 8px;
  letter-spacing: -0.005em;
}
.project-step p { font-size: 0.95rem; color: var(--text-secondary); margin: 0; }
@media (max-width: 900px) { .project-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .project-steps { grid-template-columns: 1fr; } }

/* ===============================
   FAQ (accordéons compacts, flat)
================================= */
.faq-section {
  background-color: var(--main-background-color);
  padding: 40px 20px;
}
.faq-container { max-width: 700px; margin: 0 auto; }
.faq-section h2 {
  font-size: 1.4rem;
  margin: 0 0 8px;
  color: var(--text-color);
  text-align: center;
}
.faq-intro {
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-align: center;
  max-width: 600px;
  margin: 0 auto 24px;
}
.faq-list { display: grid; gap: 6px; }
.faq-item { border: 1px solid var(--border-color); border-radius: 6px; background: #fff; overflow: hidden; }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 12px 36px 12px 14px;
  font-weight: 600; color: var(--text-color); position: relative; font-size: 0.9rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item .chevron {
  position: absolute; right: 14px; top: 50%;
  transform: translateY(-50%) rotate(0deg);
  width: 12px; height: 12px;
  border-right: 2px solid var(--text-secondary);
  border-bottom: 2px solid var(--text-secondary);
  transition: transform 0.2s ease;
}
.faq-item[open] .chevron { transform: translateY(-50%) rotate(45deg); }
.faq-content {
  padding: 0 14px 12px 14px; color: var(--text-secondary);
  line-height: 1.45; font-size: 0.85rem; border-top: 1px solid var(--border-color);
}
.faq-item summary:hover { background-color: #f9fbff; }

/* ===============================
   Footer : Sobre, compact, sans logo
================================= */
.site-footer {
  background-color: rgb(10, 10, 10);
  color: var(--white);
  padding: 25px 20px 15px 20px;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 10px;
}
.footer-bottom {
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.7);
}
.footer-links { display: flex; gap: 18px; }
.footer-links a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}
.footer-links a:hover { color: rgba(255,255,255,0.95); }

/* ===============================
   Accessibilité & confort
================================= */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ===============================
   Statuts Info (bandeau explicatif sous le hero)
================================= */
.statuts-info {
  padding: 40px 20px;
  text-align: center;
  border-top: 1px solid var(--border-color);
}

.statuts-text {
  max-width: 880px;
  margin: 0 auto;
  font-family: "Inter", sans-serif;
  color: var(--text-color);
}

.statuts-text p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 18px;
}

.statuts-text strong {
  font-weight: 600;
}

.statuts-text em {
  font-style: normal;
  color: var(--primary-color);
  font-weight: 500;
}

.statuts-text .highlight {
  display: block;
  margin-top: 10px;
  font-weight: 700;
  color: var(--primary-dark);
}

.statuts-link {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.2s, text-decoration 0.2s;
}

.statuts-link:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  .statuts-text p {
    font-size: 1rem;
  }
  .statuts-link {
    font-size: 0.9rem;
  }
}

/* ===============================
   UI Téléversement (front-only)
================================= */
.upload-section { background: var(--main-background-color, #f8fafc); padding: 64px 20px 96px; }
.upload-container { max-width: 960px; margin: 0 auto; }

.upload-section h1 {
  font-size: 2.2rem;
  letter-spacing: -0.01em;
  color: var(--text-color, #0f172a);
  /* aligné à la dropzone + aération */
  width: min(820px, calc(100% - 40px));
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 18px;
  margin-top: -10px;
  text-align: left;
}
.upload-intro, .upload-help { color: var(--text-secondary, #64748b); font-size: 1rem; }

/* Intro alignée à la dropzone + espace avant */
.upload-section .upload-intro{
  width: min(820px, calc(100% - 40px));
  margin: -6px auto 28px;
  text-align: left;
}

/* base (autres pages) */
.dropzone {
  margin-top: 22px; border: 2px dashed var(--border-color, #e5eaf4);
  border-radius: 14px; padding: 40px; text-align: center; background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.dropzone .dz-sub { display:block; margin: 8px 0 14px; color: var(--text-secondary, #64748b); }
.dropzone .dz-btn { margin-top: 6px; }

/* === FILE LIST + FILE ITEM (icône + nom centrés) === */
.upload-section .file-list{
  width: min(700px, calc(100% - 40px));
  margin: 0 auto 40px auto;
  display: grid;
  gap: 12px;
}
.upload-section .file-item{
  display: flex;
  justify-content: center;   /* centre horizontalement */
  align-items: center;       /* centre verticalement */
  gap: 16px;                 /* espace entre icône et texte */
  min-height: 120px;
  padding: 20px;
  border: 1px solid var(--border-color, #e5eaf4); 
  border-radius: 12px; 
  background: #fff;
  text-align: center;
}
.upload-section .file-item.ready { border-color: #cde7ff; }

.upload-section .file-thumb{
  width: 84px;
  height: 84px;
  border-radius: 14px;
  background: #f3f6fb;
  display: flex;
  align-items: center;
  justify-content: center;
}
.upload-section .file-icon{ font-size: 36px; opacity: .85; }

.upload-section .file-item .file-name{
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-color, #0f172a);
}

/* Masquer le reste */
.upload-section .file-item .file-meta,
.upload-section .file-item .file-status,
.upload-section .file-item .file-progress,
.upload-section .file-item .file-remove{
  display: none !important;
}

.ui-actions { margin-top: 20px; display: flex; gap: 12px; }
.btn-ghost {
  padding: 12px 18px; border-radius: 10px; border: 1px solid var(--border-color, #e5eaf4);
  background: transparent; font-weight: 700; cursor: pointer; color: var(--text-color, #0f172a);
}
.btn-ghost:hover { background: #f7f9fc; }

@media (max-width: 640px) {
  .upload-section .file-list{
    width: calc(100% - 24px);
    margin: 0 12px 24px;
  }
  .upload-section .file-item{
    min-height: 90px;
    padding: 16px;
    gap: 12px;
  }
  .upload-section .file-thumb{ width: 64px; height: 64px; }
  .upload-section .file-icon{ font-size: 28px; }
}

/* >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
   Overrides finaux pour ma_demarche2 (harmonisation + dropzone)
   <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< */

/* Harmonisation des surfaces */
.upload-container { max-width: 1080px; margin: 0 auto; }

.upload-section .dropzone,
.upload-section .estimate-card{
  border-radius: 20px;
  border: 1.5px solid #e5eaf4;
  box-shadow: 0 8px 30px rgba(16,24,40,.06);
}

/* Dropzone moderne, plus étroite et centrée (sans halos) */
.upload-section .dropzone{
  --dz-bg: #f7f9ff;
  --dz-primary: var(--primary-color, #2563eb);
  --dz-border: #e5eaf4;
  --dz-text: var(--text-color, #0f172a);
  --dz-muted: #64748b;

  display: grid;
  place-items: center;
  min-height: 260px;

  /* largeur réduite et centrage */
  width: min(820px, calc(100% - 40px));
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 40px;           /* + d'air avant l'estimation */
  box-sizing: border-box;

  padding: 32px;
  background: linear-gradient(180deg, #fbfdff 0%, var(--dz-bg) 100%);
  position: relative;
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .25s ease, transform .2s ease;
}

/* input couvrant 100% */
.upload-section .dropzone input[type="file"]{ position:absolute; inset:0; opacity:0; cursor:pointer; }

/* contenu */
.upload-section .dz-content{ text-align:center; pointer-events:none; transform: translateZ(0); }
.upload-section .dz-icon-wrap{
  width: 92px; height: 92px; margin-inline:auto;
  display:grid; place-items:center; border-radius:22px;
  background: linear-gradient(180deg, #ffffff, #f1f5ff);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 10px 25px rgba(17,27,55,.10);
  transition: transform .25s ease, box-shadow .25s ease;
  animation: dz-float 2s ease-in-out infinite;
}
.upload-section .dz-icon{ width:58px; height:auto; display:block; }
.upload-section .dz-title{ display:block; margin-top:12px; font-weight:700; font-size:1.2rem; color:var(--dz-text); letter-spacing:.2px;}
.upload-section .dz-sub{ display:block; margin: 4px 0 14px; font-size:.98rem; color:var(--dz-muted); }
.upload-section .dz-link{ color: var(--dz-primary); font-weight:600; text-decoration:underline; }

/* états (hover/focus/drag unifiés) */
.upload-section .dropzone:hover,
.upload-section .dropzone:focus-within,
.upload-section .dropzone.is-dragover,
.upload-section .dropzone.drag{
  border-color: color-mix(in srgb, var(--dz-primary) 35%, var(--dz-border));
  box-shadow: 0 12px 42px rgba(37,99,235,.18), inset 0 1px 0 rgba(255,255,255,.85);
  transform: translateY(-1px);
}

@keyframes dz-float{ 0%,100%{ transform:translateY(0) } 50%{ transform:translateY(-4px) } }

/* Carte Estimation : plus petite que la dropzone, aérée */
.upload-section .estimate-card{
  background:#fff; 
  padding:24px 26px;

  /* largeur réduite vs dropzone et centrée */
  width: min(700px, calc(100% - 40px));
  margin-left: auto;
  margin-right: auto;
}
.upload-section .estimate-card .est-header{ margin:0 0 14px 0; font-size:1.05rem; }

.upload-section .estimate-card .est-row{
  display:grid; grid-template-columns:1fr auto; align-items:center;
  gap:10px 16px; padding:12px 0;
  color:var(--text-secondary, #64748b);
}
.upload-section .estimate-card .est-row + .est-row{ border-top:1px solid #eef2f7; }

.upload-section .estimate-card .est-divider{ display:none; } /* bordure gérée par les lignes */

.upload-section .estimate-card .est-total{
  display:grid; grid-template-columns:1fr auto; align-items:baseline;
  gap:10px 16px; margin-top:14px; font-weight:800; font-size:1.06rem;
  border-top:1px solid #eef2f7; padding-top:14px; color:var(--text-color, #0f172a);
}
.upload-section .estimate-card .est-note{ margin-top:10px; font-size:.95rem; color:#64748b; }

/* Bouton "Valider" plus court, centré et mieux détaché */
.upload-section .est-validate{
  height:48px; border-radius:12px;
  width: clamp(220px, 60%, 520px);
  display:block;
  margin: 20px auto 0;
}

@media (max-width:640px){
  /* h1 + intro alignés aux gouttières mobile */
  .upload-section h1,
  .upload-section .upload-intro{
    width: calc(100% - 24px);
    margin-left: 12px;
    margin-right: 12px;
    text-align: left;
  }
  .upload-section h1{ margin-bottom: 14px; margin-top: -8px;}
  .upload-section .upload-intro{ margin-bottom: 18px; margin-top: -4px; }

  .upload-section .dropzone{ 
    min-height:220px;
    width: calc(100% - 24px);
    margin-left: 12px;
    margin-right: 12px;
    margin-bottom: 24px;         /* + d'air en mobile */
    padding: 24px;
  }
  .upload-section .dz-icon-wrap{ width:82px; height:82px; }
  .upload-section .dz-icon{ width:50px; }
  .upload-section .dz-title{ font-size:1.1rem; }
  .upload-section .dropzone,
  .upload-section .estimate-card{ border-radius:16px; }
  .upload-section .estimate-card{ 
    padding:20px;
    width: calc(100% - 24px);
    margin-left: 12px;
    margin-right: 12px;
  }
  .upload-section .estimate-card .est-row{ padding:10px 0; }
  .upload-section .estimate-card .est-total{ margin-top:12px; padding-top:12px; }
  .upload-section .est-validate{ width: 100%; margin-top:16px; }
}

/* ===============================
   Auth Modal — thème global du site
   (place ce bloc à la fin de style.css)
================================= */
:root {
  /* Intensité du voile de fond */
  --auth-backdrop: rgba(0, 0, 0, .52);
}

.auth-modal {
  position: fixed;
  inset: 0;
  background: var(--auth-backdrop);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1200; /* au-dessus de la navbar */
  padding: 20px;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
}
.auth-modal[aria-hidden="false"] { display: flex; }

/* Carte */
.auth-dialog {
  background: #fff;
  max-width: 460px;
  width: 100%;
  border-radius: 16px;
  border: 1.5px solid var(--border-color, #e5eaf4);
  box-shadow: 0 8px 30px rgba(16,24,40,.06);
  padding: 22px 22px 26px;
  position: relative;
  color: var(--text-color, #0f172a);
}

/* Bouton de fermeture */
.auth-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: transparent;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  color: var(--text-secondary, #475569);
}
.auth-close:hover { color: var(--text-color, #0f172a); }

/* Titres & textes */
.auth-title {
  margin: 0 0 6px 0;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-color, #0f172a);
}
.auth-text {
  margin: 0 0 16px 0;
  color: var(--text-secondary, #475569);
  font-size: 0.98rem;
}

/* Labels / Inputs */
.auth-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 0 12px 0;
  font-weight: 600;
  color: var(--text-color, #0f172a);
}
.auth-label > span { font-size: 0.92rem; }

.auth-input {
  border: 1px solid var(--border-color, #e5eaf4);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 16px;
  outline: 0;
  color: var(--text-color, #0f172a);
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.auth-input::placeholder { color: color-mix(in srgb, var(--text-secondary, #475569) 55%, white); }
.auth-input:focus {
  border-color: var(--primary-color, #0575E6);
  box-shadow: 0 0 0 3px rgba(5,117,230,.15);
}

/* Bouton principal = même logique que .cta-button */
.auth-btn {
  display: inline-block;
  width: 100%;
  color: #fff;
  border: 0;
  border-radius: 12px;
  padding: 12px 18px;
  font-weight: 700;
  cursor: pointer;
  background-image: linear-gradient(
    to right,
    var(--primary-color, #0575E6) 0%,
    var(--primary-dark, #021B79) 51%,
    var(--primary-color, #0575E6) 100%
  );
  background-size: 200% auto;
  transition: background-position .5s ease, transform .15s ease, box-shadow .2s ease;
  box-shadow: none;
}
.auth-btn:hover {
  background-position: right center;
  transform: translateY(-1px);
}
.auth-btn:active { transform: translateY(0); }
.auth-btn[disabled] { opacity: .6; cursor: not-allowed; }

/* Lien secondaire (renvoyer le code) */
.auth-link {
  background: transparent;
  border: 0;
  color: var(--primary-color, #0575E6);
  width: 100%;
  cursor: pointer;
  font-weight: 600;
  padding: 0;
}
.auth-link:hover { color: var(--primary-dark, #021B79); text-decoration: underline; }

/* Messages */
.auth-msg {
  margin-top: 10px;
  font-size: 0.9rem;
  min-height: 18px;
  color: var(--text-secondary, #475569);
}
.auth-msg.error { color: #b00020; }
.auth-msg.success { color: #0a7a2b; }

/* Étapes */
.auth-step { margin-top: 8px; }

/* Responsive */
@media (max-width: 520px) {
  .auth-dialog { padding: 18px 16px 22px; border-radius: 14px; }
  .auth-title { font-size: 1.15rem; }
  .auth-input { padding: 11px 12px; }
  .auth-btn { padding: 11px 14px; }
}

/* ===== Auth modal: espacement + bouton plus petit ===== */
.auth-step .auth-btn {
  margin-top: 16px;                     /* ↓ descend un peu le bouton */
  width: clamp(200px, 70%, 360px);      /* bouton moins large, centré */
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.auth-btn {
  padding: 10px 14px;                   /* ↓ réduit la hauteur du bouton */
  font-size: 0.95rem;                   /* texte légèrement plus petit */
  border-radius: 10px;                  /* angle un peu moins massif */
}

@media (max-width: 520px) {
  .auth-step .auth-btn {
    width: 100%;                        /* plein écran sur mobile */
    margin-top: 14px;                   /* un peu d’air aussi en mobile */
  }
}

/* ===============================
   Page Login (centrée & harmonisée)
================================= */
.login-section {
  background: var(--main-background-color);
  min-height: calc(100vh - 120px); /* pleine hauteur hors navbar + footer */
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
}

.login-container {
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
}

.login-card {
  background: #fff;
  border-radius: 16px;
  border: 1.5px solid var(--border-color, #e5eaf4);
  box-shadow: 0 8px 30px rgba(16,24,40,.06);
  padding: 28px 26px 34px;
  text-align: center;
}

.login-title {
  margin: 0 0 8px;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-color);
}

.login-subtitle {
  margin: 0 0 20px;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.login-label {
  text-align: left;
  font-weight: 600;
  color: var(--text-color);
  font-size: 0.92rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.login-input {
  border: 1px solid var(--border-color, #e5eaf4);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 16px;
  color: var(--text-color);
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.login-input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(5,117,230,.15);
  outline: 0;
}

.login-links {
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
}
.login-links a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
}
.login-links a:hover { text-decoration: underline; }

@media (max-width: 520px) {
  .login-card { padding: 22px 18px 28px; }
  .login-title { font-size: 1.4rem; }
}



/* ===============================
             Paiement
================================= */

/* Overlay du modal */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}
.modal[hidden] {
  display: none !important;
}

/* Contenu du modal */
.modal-content {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  width: min(420px, 92vw);   /* largeur max + responsive */
  max-height: 90vh;          /* HAUTEUR MAX VUEPORT */
  overflow: auto;            /* scroll interne si besoin */
  box-shadow: 0 8px 30px rgba(0,0,0,0.25);
  position: relative;
  animation: slideUp .25s ease;
  -webkit-overflow-scrolling: touch;
}

/* Animation d’arrivée */
@keyframes slideUp {
  from { transform: translateY(30px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

/* Bouton fermer */
.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  border: none;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: #666;
}
.modal-close:hover {
  color: #000;
}

/* Titre */
.modal-content h2 {
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 1.25rem;
  font-weight: 600;
  text-align: center;
}

/* Zone du Payment Element */
#payment-element {
  margin: 20px 0;
  min-height: 48px;
}

/* Erreurs */
.payment-errors {
  color: #d32f2f;
  font-size: 0.9rem;
  margin-bottom: 12px;
  text-align: center;
}

/* Bouton payer */
#pay-button {
  display: block;
  width: 100%;
  background: #635bff; /* Stripe violet */
  color: white;
  border: none;
  border-radius: 8px;
  padding: 12px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
}
#pay-button:hover {
  background: #5345f5;
}
#pay-button:disabled {
  background: #bbb;
  cursor: not-allowed;
}

@media (max-width: 380px) {
  .modal-content { padding: 16px; }
  .modal-content h2 { font-size: 1.1rem; margin-bottom: 12px; }
}

.payment-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 0;
}
.payment-loading img {
  width: 48px;
  height: 48px;
}
.payment-loading[hidden] {
  display: none !important;
}

body.no-scroll {
  overflow: hidden;
  touch-action: none;
}

/* ===== Overlay de chargement (global) ===== */
#processing-overlay[aria-hidden="false"] { display: block; }
#processing-overlay[hidden] { display: none; }
#processing-overlay {
  position: fixed; inset: 0; z-index: 99999;
}
#processing-overlay .processing-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(2px);
}
#processing-overlay .processing-dialog {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  background: #fff; border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0,0,0,.25);
  padding: 20px 24px; text-align: center; min-width: 280px;
  display: flex; flex-direction: column; gap: 12px;
}
#processing-overlay .processing-dialog img {
  width: 72px; height: 72px; display: block; margin: 0 auto;
}
#processing-overlay .processing-dialog p {
  margin: 0; font: 600 16px/1.3 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: #333;
}

/* (optionnel) mode sombre si ton site en a un */
@media (prefers-color-scheme: dark) {
  #processing-overlay .processing-dialog { background: #0f1115; color: #e8eaed; }
  #processing-overlay .processing-dialog p { color: #e8eaed; }
}





