/* =========================
   Fonts (local)
========================= */
@font-face{
  font-family: "Moonlight";
  src: url("../fonts/MOONLIGHT.woff2") format("woff2"),
       url("../fonts/MOONLIGHT.woff") format("woff"),
       url("../fonts/MOONLIGHT.ttf") format("truetype");
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

/* Variable font "Author" (recommandé) */
@font-face{
  font-family: "Author";
  src: url("../fonts/Author-Variable.ttf") format("truetype");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face{
  font-family: "Author";
  src: url("../fonts/Author-VariableItalic.ttf") format("truetype");
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}

/* =========================
   Theme
========================= */
:root{
  --c1:#6d2236;
  --c2:#ba3353;

  --bg:#0f0c0d;
  --paper: #ffffff;
  --muted: rgba(255,255,255,.78);
  --text: rgba(255,255,255,.92);
  --ink: #141014;

  --shadow: 0 18px 50px rgba(0,0,0,.18);
  --radius: 18px;
  --radius2: 26px;

  --container: 1160px;
}
header{
    background-color: #6d2236;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family: "Author", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background-color: #fff5ee;
  color: var(--text);
}

a{ color:inherit; text-decoration:none; }
img{ max-width:100%; display:block; }

.container{
  /*width:min(var(--container), calc(100% - 40px));*/
  margin-inline:auto;
  padding: 20px;
}

/* =========================
   Topbar
========================= */
.topbar{
  position: relative;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
}

.topbar__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 16px;
  padding: 50px;
}

.brand{
  display:flex;
  gap: 12px;
  align-items:center;
  color: var(--c3);
}
.brand__mark{
  width:40px; height:40px;
  display:grid; place-items:center;
  border-radius: 14px;
  color: var(--c3);
}
.brand__text{ display:flex; flex-direction:column; line-height:1.05; }
.brand__name{
  font-weight: 700;
  letter-spacing: .2px;
}
.brand__tag{
  font-size: 12px;
  opacity: .85;
}

.nav{
  display:flex;
  align-items:center;
  gap: 18px;
}
.nav a{
  font-size: 14px;
  opacity:.92;
}
.nav a:hover{ opacity:1; }
.nav__contact{ position:relative; }
.nav__contact::after{
  content:"";
  position:absolute;
  left:0; bottom:-6px;
  width:100%; height:2px;
  background: linear-gradient(90deg, var(--c2), transparent);
  opacity:.6;
}

.burger{
  display:none;
  width:44px; height:44px;
  border-radius: 14px;
  border: 1px solid rgba(244,238,236,.16);
  background: rgba(244,238,236,.06);
  color: var(--c3);
}
.burger span{
  display:block;
  width:18px;
  height:2px;
  margin:4px auto;
  background: currentColor;
  border-radius: 99px;
}
#nous-contacter{
    font-family: "Author";
    letter-spacing: 0.05rem;
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    padding-left: 35px;
    padding-right: 35px;
    padding-bottom: 10px;
    padding-top: 10px;
    background-color: #6d2236;
}

/* =========================
   Buttons
========================= */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding: 13px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 650;
  letter-spacing: .2px;
  cursor:pointer;
  user-select:none;
  transition: transform .08s ease, filter .2s ease, background .2s ease, border-color .2s ease;
}
.btn:active{ transform: translateY(1px); }

.btn--sm{ padding: 10px 14px; font-size: 13px; }
.btn--block{ width:100%; border-radius: 16px; }

.btn--primary{
    background-color: transparent;
  color: #f4eeec;
border-color: #f4eeec;
}
#envoyer{
    opacity: 0.92;
}
#envoyer:hover{
    opacity: 1;
}
.btn--secondary{
  background: rgba(244,238,236,.12);
  border-color: rgba(244,238,236,.20);
  color: var(--c3);
}
.btn--ghost{
  background: transparent;
  border-color: rgba(244,238,236,.16);
  color: var(--c3);
}
.btn:hover{ filter: brightness(1.03); }

/* =========================
   Hero
========================= */
#titre{
        font-size: 60px;
    line-height: 1.3em;
    text-align: center;
    letter-spacing: 0.2rem;
}

.hero{
  position:relative;
  padding: 64px 0 30px;
  overflow:hidden;
}
.hero__grid{
  display:grid;
  grid-template-columns: 1.35fr .85fr;
  gap: 28px;
  align-items: stretch;
}
.hero__content{
  padding: 26px 0;
}
.kicker{
  display:inline-flex;
  gap:10px;
  align-items:center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(244,238,236,.10);
  border: 1px solid rgba(244,238,236,.14);
  color: var(--c3);
  font-size: 13px;
  opacity: .95;
}
.hero__title{
  font-family: "Moonlight", "Author", serif;
  font-size: clamp(44px, 5.2vw, 74px);
  line-height: .95;
  letter-spacing: .2px;
  margin: 16px 0 10px;
  color: var(--c3);
}
.hero__lead{
  max-width: 62ch;
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0 0 18px;
}
.hero__cta{
  display:flex;
  flex-wrap:wrap;
  gap: 12px;
  margin: 22px 0 18px;
}
.hero__chips{
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
  padding:0;
  margin: 12px 0 0;
  list-style:none;
}
.hero__chips li{
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(109,34,54,.22);
  border: 1px solid rgba(186,51,83,.22);
  color: var(--c3);
  font-size: 13px;
}

.hero__card .card{
  background: linear-gradient(180deg, rgba(244,238,236,.10), rgba(244,238,236,.06));
  border: 1px solid rgba(244,238,236,.14);
  border-radius: var(--radius2);
  padding: 18px;
  box-shadow: var(--shadow);
}
.card__title{
  font-weight: 750;
  color: var(--c3);
  margin-bottom: 10px;
}
.card__rows{
  display:grid;
  gap: 10px;
  margin: 12px 0 14px;
}
.card__row{
  display:flex;
  justify-content:space-between;
  gap: 14px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(0,0,0,.22);
  border: 1px solid rgba(244,238,236,.10);
}
.label{ opacity:.8; font-size: 13px; }
.value{ font-weight: 700; font-size: 13px; color: var(--c3); }
.card__hint{
  margin: 12px 0 0;
  font-size: 12px;
  opacity:.8;
}

.hero__backdrop{
  position:absolute;
  inset: -20% -10% auto -10%;
  height: 520px;
  background:
    radial-gradient(closest-side at 25% 40%, rgba(186,51,83,.28), transparent 62%),
    radial-gradient(closest-side at 65% 10%, rgba(109,34,54,.34), transparent 58%),
    radial-gradient(closest-side at 85% 65%, rgba(244,238,236,.10), transparent 65%);
  pointer-events:none;
  filter: blur(8px);
  opacity: .9;
}

/* =========================
   Sections
========================= */
#basdepage{
    background-color: #6d2236; 
    width: 50%;
    height: 50px;
    margin: 0 auto;
    border-radius: 20px 20px 0px 0px;
    bottom: -2px;
    position: relative;
}
.section{ padding: 62px 0; }
.section--alt{
  display: grid;
  background-color: #6d2236;
}
.section__head{
  display:grid;
  gap: 10px;
  margin-bottom: 22px;
}
.section__title{
  margin:0;
  font-size: 34px;
  color: var(--c3);
  text-align: center;
  letter-spacing: 0.2rem;
  line-height: 3rem;
  padding-bottom: 30px;
}
.section__sub{
  margin:0;
  color: var(--muted);
  line-height: 1.7;
}
#ecole{
    background-image: url("/assets/img/fond3.svg");
    background-size: contain;
    min-height: 700px;
    background-position: right;
    background-repeat: no-repeat;
    background-color: #6d2236;
}
#formation {
    background-color: #fff5ee;
    color: #6d2236;
}
#formation h2 {
    color: #6d2236;
}
#formation h3 {
    color: #6d2236;
}
#formation p {
    color: #6d2236;
    text-align: center;
}

.wave-container {  
  height: 20px;
  position: relative;
  background-color: #fff5ee;
}

.wave-container::before {   
  content: "";
  width: 100%;
  height: 300px;
  position: absolute;
  bottom: 2%;
  left: 0;
  background-size: auto;
  background-repeat: repeat no-repeat;
  background-position: 52vw bottom;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 1200  134' fill='none' xmlns='http://www.w3.org/2000/svg'><path d='M0 98L50 92C100 86 200 74 300 50C400 26 500 -10 600 2C700 14 800 74 900 98C1000 122 1100 110 1150 104L1200 98V134H1150C1100 134 1000 134 900 134C800 134 700 134 600 134C500 134 400 134 300 134C200 134 100 134 50 134H0V98Z' fill='%23FFF5EE'/></svg>");
}

@media(max-width:850px) {
  .wave-container::before {    
    background-position: 5vw bottom;
 bottom: 50%;
}
  }  

.grid{
  display:grid;
  gap: 14px;
}
.grid--3{ grid-template-columns: repeat(2, 1fr); }

.feature{
  padding: 18px 18px 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(244,238,236,.14);
  background: rgb(0 0 0 / 8%);
}
.feature h3{
  margin:0 0 8px;
  color: var(--c3);
}
.feature p{
  margin:0;
  color: var(--muted);
  line-height: 1.65;
}

.stats{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 18px;
}
.stat{
  padding: 16px 14px;
  border-radius: 18px;
  background: rgba(244,238,236,.08);
  border: 1px solid rgba(244,238,236,.14);
}
.stat__num{
  font-size: 22px;
  font-weight: 850;
  color: var(--c3);
}
.stat__label{
  margin-top: 6px;
  font-size: 13px;
  opacity: .84;
}

/* Split (media + texte) */
.split{
  display: block;
  grid-template-columns: 1.05fr .95fr;
  gap: 22px;
  align-items:center;
}
.media{
  overflow:hidden;
  position:relative;
}
.media img{
  height: 100px;
  object-fit: cover;
  display:block;
}
.media--fallback .media__fallback{ opacity:1; }
.media__fallback{
  position:absolute;
  inset: 0;
  padding: 22px;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  gap: 8px;
  opacity: 0; /* devient visible si image manquante */
}
.media__badge{
  align-self:flex-start;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(0,0,0,.30);
  border: 1px solid rgba(244,238,236,.14);
  color: var(--c3);
  font-weight: 750;
}
.media__title{
  font-size: 24px;
  font-weight: 850;
  color: var(--c3);
}
.media__subtitle{
  color: var(--muted);
}

/* Bullets */
.bullets{ margin: 18px 0 22px; display:grid; gap: 12px; }
.bullet{ display:flex; gap: 12px; align-items:flex-start; }
.bullet__dot{
  width: 12px; height:12px; border-radius: 50%;
  background: linear-gradient(135deg, var(--c2), var(--c1));
  margin-top: 6px;
  flex: 0 0 auto;
}
.bullet__txt{ color: var(--muted); line-height: 1.65; }

/* CTA box */
.cta{
  border-radius: var(--radius2);
  border: 1px solid rgba(244,238,236,.16);
  background: linear-gradient(135deg, rgba(109,34,54,.38), rgba(244,238,236,.06));
  padding: 22px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 18px;
}
.cta__title{
  margin:0 0 8px;
  font-size: 32px;
  color: var(--c3);
}
.cta__text{
  margin:0;
  color: var(--muted);
  line-height:1.7;
  max-width: 70ch;
}
.cta__actions{ display:flex; gap: 12px; flex-wrap:wrap; }

/* Contact */
.contact{
  display:block;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items:start;
}
.infoCard{
  margin-top: 16px;
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(244,238,236,.14);
  background: rgba(0,0,0,.22);
}
.infoCard__row{
  display:flex;
  justify-content:space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(244,238,236,.14);
}
.infoCard__row:last-child{ border-bottom:0; }
.infoCard__label{ opacity:.82; }
.infoCard__value{ font-weight: 750; color: var(--c3); }

.small{ font-size: 12px; opacity:.8; }

/* Form */
.form{
  border-radius: var(--radius2);
  border: 1px solid rgba(244,238,236,.16);
  background: rgba(244,238,236,.06);
  padding: 18px;
  box-shadow: var(--shadow);
}
.field{
  display:grid;
  gap: 8px;
  margin-bottom: 12px;
}
label{ font-size: 13px; opacity:.92; }
input, select, textarea{
  width:100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(244,238,236,.18);
  background: rgba(0,0,0,.22);
  color: var(--c3);
  outline: none;
}
input:focus, select:focus, textarea:focus{
  border-color: rgba(186,51,83,.55);
  box-shadow: 0 0 0 4px rgba(186,51,83,.16);
}
textarea{ resize: vertical; }

.consent{
  margin: 6px 0 14px;
}
.consent input{ width:auto; margin-right: 8px; }
.error{
  color: #ffd7df;
  font-size: 12px;
  min-height: 16px;
  opacity:.92;
}
.alert{
  margin-top: 12px;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(244,238,236,.16);
  background: rgba(0,0,0,.22);
  color: var(--c3);
}
.alert--ok{
  border-color: rgba(110, 230, 170, .35);
  background: rgba(110, 230, 170, .06);
}
.alert--ko{
  border-color: rgba(255, 120, 140, .35);
  background: rgba(255, 120, 140, .06);
}

/* Honeypot */
.hp{
  position:absolute;
  left:-9999px;
  top:auto;
  width:1px;
  height:1px;
  overflow:hidden;
}

/* Footer */
.footer{
  padding: 24px 0 34px;
  border-top: 1px solid rgba(244,238,236,.10);
  background-color: #6d2236;
}
.footer__inner{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 18px;
  padding: 20px;
}
.footer__brand{ font-weight: 850; color: var(--c3); }
.footer__sub{ font-size: 12px; opacity:.78; margin-top: 6px; }
.footer__right{ display:flex; gap: 14px; opacity:.9; }
.footer__right a:hover{ opacity:1; }


.contact-cta {
  margin-top: 12px;
  margin-bottom: 18px;
}

.btn-contact-toggle {
  display: inline;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid #fff5ee;
    background: transparent;
    cursor: pointer;
    font-weight: 600;
    color: #fff5ee;
}

.btn-contact-toggle:hover {
  background-color: #fff5ee;
    color: #6d2236;
}

.contact-form-wrap.is-active {
  display: block;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 10px;
}


.form-field label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}

.form-field input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.15);
}

.required {
  color: #b00020;
}

.form-hint {
  margin-top: 12px;
  font-size: 12px;
  opacity: 0.8;
}

.form-actions {
  margin-top: 14px;
}

.btn-submit {
  padding: 12px 16px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-weight: 700;
}

.form-feedback {
  margin-top: 10px;
  font-size: 14px;
}

.contact-cta--two{
  display: block;
  margin-bottom: 16px;
    text-align: center;
}

.btn-contact-toggle.is-active{
     background-color: #fff5ee;
    color: #6d2236;
}

#pi_jour, #pi_mois{
    width: 70px;
}
#pi_annee{
    width: 80px;
}
#djour, #dmois{
    display: inline-block;
}
#danne{
    display: inline-block;
}
#djour>label, #dmois>label, #danne>label{
    text-align: center;
}
#danne>label{
    text-align: center;
}
.traitdate{
    display: inline-block;
}
/* =========================
   Responsive
========================= */
@media (max-width: 980px){
  .hero__grid{ grid-template-columns: 1fr; }
  .grid--3{ grid-template-columns: 1fr; }
  .stats{ grid-template-columns: repeat(2, 1fr); }
  .split{ grid-template-columns: 1fr; }
  .contact{ grid-template-columns: 1fr; }
  .cta{ flex-direction:column; align-items:flex-start; }
}

@media (max-width: 860px){
  .burger{ display:inline-grid; place-items:center; }
  .nav{
    text-align : center;
    min-width: 260px;
    border-radius: 18px;
    display: block;
  }
  .brand{
      display: block;
        margin-bottom: 50px;
  }
  .section__title {
    font-size: 24px;
    line-height: 2rem;
}
.topbar__inner{
    display: block;
    margin: 0;
    padding-left: 0px;
    padding-right: 0px;
}
.media img {
    height: 150px;
    margin: auto;
}
.form-grid {
  display: block;
}

.form-field{
    display: block;
        margin-bottom: 15px;
}
.btn-contact-toggle {
  margin-bottom: 15px;
}

.contact-form-wrap.is-active {
  margin-bottom: 15px;
}
}
@media (max-width: 425px){
#basdepage{
    display: none;
}
#titre{
        font-size: 40px;
}
}