/* ------------------------------
   🎨 Variables globales
------------------------------ */
:root {
  --bg: #0f172a;
  --bg-soft: #111827;
  --text: #0f172a;
  --muted: #5b6475;
  --brand: #2563eb;
  --brand-600: #1d4ed8;
  --accent: #22c55e;
  --accent-alt: #2cb0b7;
  --card: #ffffff;
  --surface: #f8fafc;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(2, 6, 23, .08);
  --maxw: 1160px;

  /* Typo & tailles */
  --fs-base: clamp(15px, .28vw + 14px, 17px);
  --fs-h1: clamp(1.8rem, 1.2rem + 3vw, 3rem);
  --fs-h2: clamp(1.4rem, .9rem + 2vw, 2.2rem);
  --fs-h3: clamp(1.05rem, .6rem + 1.2vw, 1.35rem);

  --font-title-oswald: "Oswald", Helvetica, sans-serif;
  --font-text-montserrat: "Montserrat", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.steps h2,
.mission h2,
.cta-final h2 {
  font-family: var(--font-title-oswald) !important;
}

/* ------------------------------
   🔄 Reset & éléments globaux
------------------------------ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: var(--font-text-montserrat);
  line-height: 1.6;
  color: var(--text);
  background: var(--surface);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
}



/* ------------------------------
   🧭 Header & Navigation
------------------------------ */

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #fff;
  border-bottom: 1px solid #eef2f7;
  width: 100%;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
}

/* 🔹 Logo & marque */
.brand {
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #111;
  text-decoration: none;
}

.brand__logo {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: var(--brand, #2563eb);
  color: #fff;
  display: grid;
  place-items: center;
}

/* 🔹 Navigation principale */
nav ul {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav ul li a {
  display: inline-block;
  padding: 8px 16px;
  font-weight: 600;
  color: #111;
  text-decoration: none;
  transition: all 0.25s ease;
}

nav ul li a:hover {
  background: #2a67eb;
  color: #fff;
  border-radius: 100px;
}

/* Connexion hover spécifique */
nav ul li a#openLogin:hover {
  background: var(--brand, #2563eb);
  color: #fff;
}

/* 🔹 Bouton hamburger */
.nav-toggle {
  display: none;
  cursor: pointer;
  font-size: 1.8rem;
  background: none;
  border: none;
  margin-left: auto;
}

.nav-close {
  display: none;
}



/* --- Desktop --- */

.body-no-scroll {
  overflow: hidden;
  height: 100vh;
}

.desktop-only {
  display: inline-block;
}

.mobile-only {
  display: none;
}


.user-dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  list-style: none;
  padding: 0.5rem 0;
  min-width: 190px;
  z-index: 1000;
}

.dropdown-menu li a {
  display: block;
  padding: 10px 16px;
  color: #111;
  text-decoration: none;
  font-weight: 500;
}

.dropdown-menu li a:hover {
  background: #2a67eb;
  color: #fff;
  border-radius: 0px;
}

/* Hover desktop */
.user-dropdown:hover .dropdown-menu {
  display: block;
}



/* --- Mobile --- */
@media (max-width: 1200px) {

  /* Bouton de fermeture visible sur mobile */
  .nav-close {
    display: block;
    position: absolute;
    top: 14px;
    right: 14px;
    border: none;
    background: transparent;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #111;
    padding: 6px;
    border-radius: 6px;
  }

  .nav-close:hover {
    background: rgba(0, 0, 0, 0.05);
  }

  /* Panneau latéral */
  .nav-public {
    position: fixed;
    top: 0;
    right: 0;
    width: 75%;
    max-width: 300px;
    height: 100%;
    background: #fff;
    box-shadow: -4px 0 12px rgba(0, 0, 0, 0.2);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    flex-direction: column;
    padding: 3rem 1.5rem;
    display: flex;
    z-index: 9999;
  }

  .nav-public.show {
    transform: translateX(0);
  }

  /* Liens menu mobile */
  .nav-public li {
    list-style: none;
  }

  .nav-public li a {
    font-size: 1rem;
    padding: 14px 0;
    border-bottom: 1px solid #eee;
    display: block;
    color: #111;
    text-decoration: none;
    font-weight: 600;
  }

  .nav-public li:last-child a {
    border-bottom: none;
  }

  .nav-public li a:hover {
    background: #2a67eb;
    color: #fff;
  }

  /* Gestion visibilité bureau / mobile */
  .desktop-only {
    display: none !important;
  }

  .mobile-only {
    display: block !important;
  }

  /* Pas de dropdown sur mobile */
  .user-dropdown {
    display: none !important;
  }
}








/* ------------------------------
   🔳 Boutons génériques
------------------------------ */
.btn--primary,
.btn-primary {
  background: var(--brand);
  color: #fff;
  padding: 8px 14px;
  border-radius: 6px;
  border: none;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn--primary:hover,
.btn-primary:hover {
  background: var(--brand-600);
}

.btn--secondary {
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
  padding: 8px 14px;
  border-radius: 6px;
  transition: all 0.3s ease;
  text-align: center;
}

.btn--secondary:hover {
  background: #fff;
  color: var(--brand);
  font-weight: bold;
}

.btn-google {
  background: #fff;
  border: 1px solid #ddd;
  color: #444;
  padding: 12px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-google img {
  width: 18px;
  height: 18px;
}

.btn-apple {
  background: #000;
  color: #fff;
  padding: 12px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.btn-apple img {
  width: 18px;
  height: 18px;
  filter: invert(1);
}

.btn {
  width: 100%;
}

/* ------------------------------
   🪟 Modals (Connexion / Inscription)
------------------------------ */

body.modal-open {
  overflow: hidden;
}

.modal {
  display: none;
  position: fixed;
  inset: 0;
  width: 100%;
  background: rgba(0, 0, 0, .5);
  z-index: 100;
  align-items: center;
  justify-content: center;

  /* Fix iOS Safari safe-area */
  height: 100vh;
  /* fallback */
  height: 100dvh;
  /* iOS 16.4+ */
  padding-bottom: env(safe-area-inset-bottom, 0);
  /* colle au bas */
}

/* dVH si dispo (iOS 16.4+, Android récents) */
@supports (height: 100dvh) {
  .modal {
    height: 100dvh;
  }
}

/* fallback JS var(--vh) pour vieux iOS si dVH indispo */
@supports not (height: 100dvh) {
  .modal {
    height: calc(var(--vh, 1vh) * 100);
  }
}

.modal.show {
  display: flex;
}

.modal-content {
  position: relative;
  background: #fff;
  padding: 30px 24px;
  border-radius: 16px;
  width: 100%;
  max-width: 420px;
  max-height: 100%;
  overflow-y: auto;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .15);
  text-align: center;
  animation: fadeIn .3s ease;
}

.modal-content h2 {
  margin: 0 0 20px;
  font-size: 1.4rem;
  font-weight: 700;
  color: #111;
}

.close-modal {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: #666;
}

.close-modal:hover {
  color: #000;
}

.input-group {
  margin-bottom: 12px;
}

.input-group input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-size: 0.95rem;
  outline: none;
  transition: border .2s;
}

.input-group input:focus {
  border-color: var(--brand);
}

.divider {
  display: flex;
  align-items: center;
  margin: 16px 0;
  color: #888;
  font-size: 0.85rem;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #ddd;
}

.divider span {
  margin: 0 8px;
}

.modal-footer {
  margin-top: 16px;
  font-size: 0.9rem;
  color: #555;
}

.modal-footer a {
  color: var(--brand);
  font-weight: 600;
  text-decoration: none;
}

.modal-footer a:hover {
  text-decoration: underline;
}


@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ------------------------------
   📢 Hero
------------------------------ */
.hero {
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
  padding: 100px 20px;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.hero__container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
}

.hero__content {
  max-width: 600px;
}

.hero-title {
  font-family: var(--font-title-oswald);
  font-size: var(--fs-h1);
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 20px;
  opacity: 0.9;
}

.hero-highlight {
  font-size: 1.1rem;
  font-weight: 600;
  display: block;
  max-width: 500px;
  line-height: 1.4;
  text-align: left;
}

.hero-highlight--first {
  margin-bottom: 0;
}

.hero-highlight--last {
  margin-top: 0;
  margin-bottom: 30px;
}

.hero__cta {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.hero__image img {
  max-width: 100%;
  animation: float 7s ease-in-out infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

/* ------------------------------
   📜 Mission
------------------------------ */
.mission {
  padding: 60px 20px;
  background: var(--surface);
}

.section-title {
  font-family: var(--font-title-oswald);
  font-size: var(--fs-h2);
  text-align: center;
  margin-bottom: 30px;
  color: var(--text);
}

.mission-text {
  max-width: 800px;
  margin: 0 auto 40px;
  font-size: 1.1rem;
  text-align: center;
  color: var(--muted);
}

.mission__highlight {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.highlight-card {
  background: #fff;
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform 0.3s ease;
}

.highlight-card:hover {
  transform: translateY(-5px);
}

.highlight-card h3 {
  font-size: var(--fs-h3);
  margin: 10px 0;
}

.highlight-card p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* ------------------------------
   🚶 Steps
------------------------------ */
.steps {
  padding: 60px 20px;
  background: #f1f5f9;
}

.grid--steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.step-card {
  background: #fff;
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform 0.3s ease;
}

.step-card:hover {
  transform: translateY(-5px);
}

.step-icon {
  font-size: 2rem;
  margin-bottom: 10px;
}

.step-card h3 {
  font-size: var(--fs-h3);
  margin: 10px 0;
}

.step-card p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* ------------------------------
   📣 CTA Final
------------------------------ */
.cta-final {
  padding: 60px 20px;
  background: #0ebbde;
  color: #fff;
  text-align: center;
}

.cta-text {
  max-width: 600px;
  margin: 0 auto 30px;
  font-size: 1.1rem;
  opacity: 0.9;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
}

/* ------------------------------
   📜 Footer
------------------------------ */
footer {
  background: #1e1e1e;
  ;
  color: #cbd5e1;
}

.foot {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
  padding: 28px 0;
  width: 1160px;
}

.foot h4 {
  margin: 0 0 8px;
}

.foot a {
  color: #cbd5e1;
}

.foot__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: white !important;
}

.foot__brand .brand__logo {
  background: var(--brand);

}



.foot__logo {
  width: 64px;
  height: 64px;
  border-radius: 6px;
  background: var(--brand);
  display: grid;
  place-items: center;

}

.copyright {
  border-top: 1px solid #1f2937;
  padding: 14px 0;
  color: #94a3b8;
  font-size: .9rem;
}

.foot__description {
  color: #94a3b8;
  margin: 0.5rem 0 0;
}

.foot nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 6px;
}

/* Liens du footer */
.foot__links {
  display: flex;
  flex-direction: column;
  /* en colonne par défaut (mobile) */
  gap: 6px;
}

.foot__links li a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.95rem;
}

.foot__links li a:hover {
  text-decoration: underline;
}

/* Version desktop */
@media (min-width: 768px) {
  .foot {
    grid-template-columns: 1fr 1fr;
    /* logo/texte à gauche, ressources à droite */
  }
}



/* ------------------------------
   📱 Responsive
------------------------------ */
@media (max-width: 1200px) {


  .hero {
    padding: 50px 20px;
  }

  /* nav ul {
    display: none;
  } */

  .nav-toggle {
    display: block;
  }

  .modal {
    align-items: normal !important;
  }

  .modal-content {
    max-width: 100%;
    justify-content: space-evenly;
    display: flex;
    flex-direction: column;
    border-radius: inherit;
  }

  .foot {
    width: inherit;
    padding-left: 20px;
    padding-right: 20px;
  }

  .copyright {
    justify-content: center;
    display: flex;
  }
}

@media (max-width: 880px) {

  .user-close {
    display: block;
    z-index: 1;
    /* au-dessus des liens */
  }


  .hero__container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-highlight {
    text-align: center;
  }

  .hero__cta {
    flex-direction: column;
    gap: 10px;
  }

  .hero__image {
    margin-top: 20px;
  }

  .mission__highlight,
  .grid--steps {
    grid-template-columns: 1fr;
  }

  .cta-buttons {
    flex-direction: column;
  }
}



/* ---------- PAGE CONFIDENTIALITE & CONDITIONS --------------- */
.confidencialite-x {
  background: var(--surface);
  padding: 0 1rem;
  /* optionnel : petit padding latéral */
}

.confidencialite-x div {
  max-width: var(--maxw);
  margin: 5rem auto;
  background: var(--card);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.confidencialite-x h1 {
  font-size: var(--fs-h1);
  font-family: var(--font-title-oswald);
  color: var(--accent-alt);
  margin-bottom: 1.5rem;
  text-align: center;
}

.confidencialite-x p {
  margin-bottom: 1rem;
  font-size: var(--fs-base);
  color: var(--text);
}

.confidencialite-x a {
  color: var(--brand);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.confidencialite-x a:hover {
  text-decoration: underline;
  color: var(--brand-600);
}

/* Responsive */
@media (max-width: 880px) {
  .confidencialite-x main {
    margin: 2rem auto;
    padding: 1.5rem;
  }

  .confidencialite-x div {
    margin: inherit;
    border-radius: inherit;
  }

  .confidencialite-x {
    padding: inherit
  }
}



/* ------------CONTACT PAGE----------- */

/* ==============================
   FORMULAIRE CONTACT
   ============================== */

.contact-page {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 6rem 1rem;
  background: var(--bg-light, #f9fafb);
}

.contact-form-section {
  max-width: 1160px;
  width: 100%;
  background: #fff;
  padding: 3rem 4rem;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.contact-form-section h1 {
  font-size: var(--fs-h1);
  font-family: var(--font-title-oswald);
  color: var(--accent-alt);
  text-align: center;
  margin-bottom: 2rem;
  letter-spacing: 0.5px;
}

/* Champs */
.contact-form .form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.5rem;
}

.contact-form label {
  font-family: var(--font-main, "Montserrat", sans-serif);
  font-weight: 600;
  color: var(--text-dark, #333);
  margin-bottom: 0.4rem;
  font-size: 1rem;
}

.contact-form input,
.contact-form textarea {
  font-family: var(--font-main, "Montserrat", sans-serif);
  font-size: 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid #d0d4d9;
  border-radius: 8px;
  background-color: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent-alt);
  box-shadow: 0 0 0 2px rgba(44, 176, 183, 0.2);
  outline: none;
}

/* Bouton */
.contact-form .btn-primary {
  background-color: var(--accent-alt);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 1rem 2rem;
  font-family: var(--font-main, "Montserrat", sans-serif);
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease;
  margin-top: 1rem;
  width: 100%;
}

.contact-form .btn-primary:hover {
  background-color: var(--brand-600);
  transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
  .contact-form-section {
    padding: 2rem;
  }

  .contact-form-section h1 {
    font-size: clamp(1.8rem, 4vw, 2.4rem);
  }
}

/* Page Merci */
.merci-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8rem 1rem;
  text-align: center;
  background: var(--bg-light, #f9fafb);
}

.merci-page h1 {
  font-size: var(--fs-h1);
  font-family: var(--font-title-oswald);
  color: var(--accent-alt);
  margin-bottom: 1rem;
}

.merci-page p {
  font-family: var(--font-main, "Montserrat", sans-serif);
  font-size: 1.1rem;
  color: var(--text-dark, #333);
  margin-bottom: 2rem;
}

.merci-page .btn-primary {
  background: var(--accent-alt);
  color: #fff;
  padding: 1rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s ease, transform 0.15s ease;
}

.merci-page .btn-primary:hover {
  background: var(--accent);
  transform: translateY(-2px);
}