/* ============================================================
   LUDELYS — Feuille de styles principale
   ludelys.com — Version 1.0.0
   Auteur : Ludelys SAS
   ============================================================ */

/* ── 1. IMPORTS GOOGLE FONTS ──────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Inter:wght@300;400;500;600&display=swap');

/* ── 2. VARIABLES CSS ──────────────────────────────────────── */
:root {
  /* Palette Ludelys */
  --bg:            #D8EDF4;
  --bleu-ludelys:  #B7D8DF;
  --bleu-fonce:    #8ABECF;
  --bleu-profond:  #5a9aaf;
  --noir:          #0d1b2a;
  --texte:         #1e3545;
  --texte-doux:    #4a6a7a;
  --ivoire:        #fafaf8;
  --blanc:         #ffffff;

  /* Typographie */
  --font-titre:  'Playfair Display', Georgia, serif;
  --font-texte:  'Inter', system-ui, sans-serif;

  /* Espacements */
  --section-py:  100px;
  --container:   1100px;
  --gap:         24px;

  /* Effets */
  --radius-sm:   8px;
  --radius-md:   16px;
  --radius-lg:   24px;
  --shadow-card: 0 8px 40px rgba(13, 27, 42, 0.10);
  --shadow-img:  0 12px 48px rgba(13, 27, 42, 0.14);
  --transition:  0.3s ease;
}

/* ── 3. RESET & BASE ───────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-texte);
  background-color: var(--bg);
  color: var(--texte);
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* ── 4. ARRIÈRE-PLAN HEXAGONES FLOUS ──────────────────────── */
/* Hexagones lumineux positionnés en fixed pour couvrir tout le scroll */
.bg-hexagons {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  z-index: 0;
  background-image: url('../images/MOTIF_FONCE.svg');
  background-repeat: repeat;
  background-size: 600px auto;
  opacity: 0.28;
}

/* Tout le contenu passe au-dessus du motif */
body > *:not(.bg-hexagons) {
  position: relative;
  z-index: 1;
}

/* ── 5. CONTAINER ──────────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
}

/* ── 6. HEADER ─────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: background var(--transition), box-shadow var(--transition);
}

/* Classe ajoutée par JS au scroll */
.site-header.scrolled {
  background: rgba(216, 237, 244, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 24px rgba(13, 27, 42, 0.07);
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-logo img {
  height: 84px;
  width: auto;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
}

.lang-option {
  font-family: var(--font-texte);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: var(--texte-doux);
  text-decoration: none;
  transition: color var(--transition);
}

.lang-option:hover { color: var(--noir); }

.lang-option.lang-active {
  color: var(--noir);
  border-bottom: 1.5px solid var(--noir);
  padding-bottom: 1px;
}

.lang-sep {
  font-size: 11px;
  color: var(--texte-doux);
  opacity: 0.5;
}

.header-logo-name {
  font-family: var(--font-titre);
  font-size: 18px;
  font-weight: 600;
  color: var(--noir);
  letter-spacing: 0.5px;
}

/* ── 7. BOUTONS ────────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: var(--font-texte);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.5px;
  padding: 14px 32px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  text-align: center;
  line-height: 1;
}

.btn-primary {
  background: var(--noir);
  color: var(--blanc);
  box-shadow: 0 4px 20px rgba(13, 27, 42, 0.22);
}

.btn-primary:hover {
  background: #1a3045;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(13, 27, 42, 0.28);
}

.btn-secondary {
  background: var(--blanc);
  color: var(--noir);
  box-shadow: var(--shadow-card);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(13, 27, 42, 0.15);
}

.btn-small {
  font-size: 13px;
  padding: 10px 22px;
}

/* ── 8. SECTION HERO ──────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 130px 40px 80px;
}

.hero-inner {
  max-width: 780px;
  margin: 0 auto;
}

/* Logo + tagline */
.hero-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-bottom: 48px;
}

.hero-brand img {
  width: 300px;
  height: 300px;
  object-fit: contain;
  /* Légère animation de balancement */
  animation: float 5s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

.hero-tagline {
  font-family: var(--font-texte);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--bleu-profond);
}

/* Titre H1 */
.hero h1 {
  font-family: var(--font-titre);
  font-size: clamp(34px, 5.5vw, 60px);
  font-weight: 700;
  color: var(--noir);
  line-height: 1.18;
  margin-bottom: 24px;
}

.hero h1 em {
  font-style: italic;
  color: var(--bleu-profond);
}

/* Texte intro */
.hero-text {
  font-size: 17px;
  color: var(--texte-doux);
  line-height: 1.8;
  max-width: 600px;
  margin: 0 auto 42px;
}

/* Flèche du bouton */
.btn-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-arrow svg {
  transition: transform var(--transition);
}

.btn-arrow:hover svg {
  transform: translateY(4px);
}

/* ── 9. SECTION 2 — POINTS DE DOULEUR ─────────────────────── */
.section-pain {
  padding: var(--section-py) 0;
}

.pain-inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 40px;
}

.section-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--bleu-profond);
  margin-bottom: 20px;
}

.pain-inner h2 {
  font-family: var(--font-titre);
  font-size: clamp(26px, 3.5vw, 42px);
  font-weight: 700;
  color: var(--noir);
  line-height: 1.25;
  margin-bottom: 48px;
}

/* Liste des points */
.pain-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.pain-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 28px 32px;
  background: rgba(255, 255, 255, 0.70);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 4px 20px rgba(13, 27, 42, 0.06);
  transition: transform var(--transition), box-shadow var(--transition);
}

.pain-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(13, 27, 42, 0.10);
}

.pain-bullet {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bleu-ludelys);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blanc);
  font-size: 16px;
  font-weight: 700;
  margin-top: 2px;
}

.pain-item p {
  font-size: 16px;
  color: var(--texte);
  line-height: 1.75;
}

/* ── 10. SECTIONS IMAGE PLEINE LARGEUR ─────────────────────── */
.section-image {
  padding: 60px 0;
}

.full-image {
  margin: 0 40px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-img);
}

.full-image img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  transition: transform 0.7s ease;
  display: block;
}

.full-image:hover img {
  transform: scale(1.03);
}

/* ── 11. SECTION 4 — À PROPOS ───────────────────────────────── */
.section-about {
  padding: var(--section-py) 0;
}

.about-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-text h2 {
  font-family: var(--font-titre);
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 700;
  color: var(--noir);
  line-height: 1.28;
  margin-bottom: 24px;
}

.about-text h2 em {
  font-style: italic;
  color: var(--bleu-profond);
}

.about-text p {
  font-size: 16px;
  color: var(--texte-doux);
  line-height: 1.85;
}

/* Piliers de valeurs */
.about-pillars {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.pillar {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 24px;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 16px rgba(13, 27, 42, 0.06);
}

.pillar-icon {
  font-size: 24px;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}

.pillar-content strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--noir);
  margin-bottom: 4px;
}

.pillar-content span {
  font-size: 13px;
  color: var(--texte-doux);
  line-height: 1.6;
}

/* ── 12. SECTION 6 — FORMULAIRE ─────────────────────────────── */
.section-form {
  padding: var(--section-py) 0;
}

.form-inner {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 40px;
  text-align: center;
}

.form-inner h2 {
  font-family: var(--font-titre);
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 700;
  color: var(--noir);
  line-height: 1.22;
  margin-bottom: 16px;
}

.form-inner .form-lead {
  font-size: 16px;
  color: var(--texte-doux);
  line-height: 1.75;
  margin-bottom: 48px;
}

/* Carte formulaire */
.form-card {
  background: var(--blanc);
  border-radius: var(--radius-lg);
  padding: 48px 52px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(183, 216, 223, 0.3);
  text-align: left;
}

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

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--texte);
  margin-bottom: 8px;
  letter-spacing: 0.3px;
}

.form-control {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid #d8e8ee;
  border-radius: var(--radius-sm);
  background: #f8fbfd;
  color: var(--texte);
  font-size: 15px;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  appearance: none;
}

.form-control:focus {
  border-color: var(--bleu-fonce);
  background: var(--blanc);
  box-shadow: 0 0 0 3px rgba(138, 190, 207, 0.20);
}

.form-control::placeholder {
  color: #a8bfc8;
}

/* Case à cocher */
.form-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 28px;
  cursor: pointer;
}

.form-check input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid #c8dce4;
  border-radius: 4px;
  background: #f8fbfd;
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 2px;
  transition: background var(--transition), border-color var(--transition);
  position: relative;
}

.form-check input[type="checkbox"]:checked {
  background: var(--bleu-fonce);
  border-color: var(--bleu-fonce);
}

.form-check input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  top: 3px; left: 6px;
  width: 5px; height: 9px;
  border: 2px solid white;
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}

.form-check-label {
  font-size: 13px;
  color: var(--texte-doux);
  line-height: 1.6;
}

/* Bouton soumettre */
.btn-submit {
  width: 100%;
  padding: 16px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.5px;
  background: var(--noir);
  color: var(--blanc);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(13, 27, 42, 0.22);
}

.btn-submit:hover {
  background: #1a3045;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(13, 27, 42, 0.30);
}

.btn-submit:active {
  transform: translateY(0);
}

/* Animation d'envoi */
.btn-submit.sending {
  pointer-events: none;
  opacity: 0.8;
}

.btn-submit.sending::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 20px; height: 20px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Message de succès local (fallback visuel) */
.form-success {
  display: none;
  text-align: center;
  padding: 32px;
  background: #eef8f4;
  border-radius: var(--radius-md);
  border: 1px solid #b4dece;
}

.form-success.visible {
  display: block;
}

.form-success p {
  font-size: 16px;
  color: #2a6e50;
}

/* ── 13. FOOTER ───────────────────────────────────────────── */
.site-footer {
  background: var(--noir);
  color: rgba(255, 255, 255, 0.65);
  padding: 60px 0 40px;
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
}

.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Bloc marque footer */
.footer-brand img {
  height: 54px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.85;
  margin-bottom: 14px;
}

.footer-brand-name {
  font-family: var(--font-titre);
  font-size: 20px;
  font-weight: 600;
  color: var(--blanc);
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.footer-tagline {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.40);
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* Réseaux sociaux */
.footer-social h4 {
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 16px;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
  font-weight: 500;
  transition: all var(--transition);
}

.social-link:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--blanc);
  transform: translateY(-2px);
}

.social-link svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* Bas de footer */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.40);
  transition: color var(--transition);
}

.footer-legal a:hover {
  color: rgba(255, 255, 255, 0.80);
}

.footer-copy {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.28);
}

/* ── 14. ANIMATIONS AU SCROLL ──────────────────────────────── */
/* Les éléments commencent invisibles */
.fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Décalages en cascade pour les listes */
.fade-up:nth-child(2) { transition-delay: 0.10s; }
.fade-up:nth-child(3) { transition-delay: 0.20s; }
.fade-up:nth-child(4) { transition-delay: 0.30s; }

/* ── 15. PAGE MERCI ────────────────────────────────────────── */
.merci-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 40px;
}

.merci-page img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin: 0 auto 32px;
  animation: float 5s ease-in-out infinite;
}

.merci-page h1 {
  font-family: var(--font-titre);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 700;
  color: var(--noir);
  margin-bottom: 20px;
}

.merci-page p {
  font-size: 17px;
  color: var(--texte-doux);
  max-width: 480px;
  line-height: 1.8;
  margin-bottom: 40px;
}

/* ── 16. PAGES LÉGALES ─────────────────────────────────────── */
.page-legale {
  padding: 140px 0 100px;
}

.page-legale .container {
  max-width: 760px;
}

.page-legale h1 {
  font-family: var(--font-titre);
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 700;
  color: var(--noir);
  margin-bottom: 12px;
}

.page-legale .date-maj {
  font-size: 13px;
  color: var(--texte-doux);
  margin-bottom: 48px;
}

.page-legale h2 {
  font-family: var(--font-titre);
  font-size: 22px;
  font-weight: 600;
  color: var(--noir);
  margin: 40px 0 12px;
}

.page-legale h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--texte);
  margin: 24px 0 8px;
}

.page-legale p,
.page-legale li {
  font-size: 15px;
  color: var(--texte-doux);
  line-height: 1.85;
  margin-bottom: 12px;
}

.page-legale ul {
  list-style: disc;
  padding-left: 24px;
}

.page-legale a {
  color: var(--bleu-profond);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-legale .back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--bleu-profond);
  text-decoration: none;
  margin-bottom: 48px;
  transition: gap var(--transition);
}

.page-legale .back-link:hover {
  gap: 12px;
}

/* ── 17. RESPONSIVE ─────────────────────────────────────────── */

/* ── Tablette (≤ 900px) ── */
@media (max-width: 900px) {
  :root {
    --section-py: 72px;
  }

  .container,
  .header-inner,
  .footer-inner,
  .pain-inner,
  .about-inner,
  .form-inner {
    padding-left: 28px;
    padding-right: 28px;
  }

  .about-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .footer-top {
    flex-direction: column;
    gap: 36px;
  }

  .full-image {
    margin: 0 28px;
  }

  .full-image img {
    height: 400px;
  }

  .form-card {
    padding: 36px 36px;
  }
}

/* ── Mobile (≤ 600px) ── */
@media (max-width: 600px) {
  :root {
    --section-py: 56px;
  }

  .container,
  .header-inner,
  .footer-inner,
  .pain-inner,
  .about-inner,
  .form-inner {
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero {
    padding: 110px 20px 60px;
  }

  .hero-brand img {
    width: 110px;
    height: 110px;
  }

  .pain-item {
    padding: 20px 20px;
    flex-direction: column;
    gap: 12px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .form-card {
    padding: 28px 24px;
  }

  .full-image {
    margin: 0 16px;
    border-radius: var(--radius-md);
  }

  .full-image img {
    height: 260px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .footer-top {
    margin-bottom: 32px;
    padding-bottom: 32px;
  }

  .social-links {
    flex-direction: column;
  }

  .social-link {
    justify-content: center;
  }

  /* Navigation header */
  .header-logo-name {
    display: none;
  }

  .btn-small {
    font-size: 12px;
    padding: 9px 16px;
  }
}

/* ── Très petit (≤ 380px) ── */
@media (max-width: 380px) {
  .hero h1 { font-size: 28px; }
  .form-card { padding: 24px 18px; }
}
