/* ============================================================
   DORASUP – OVERRIDES (FINAL)
   Mettre ce bloc TOUT EN BAS du main.css
   ============================================================ */

/* Palette Dorasup */
:root{
  --dora-coral:#FF8B94;
  --dora-peach:#F8AD9D;
  --dora-blue:#2F4858;
  --dora-cream:#FFF9F7;
  --dora-title:"Montserrat", sans-serif;
  --dora-text:"Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* Base */
body{
  font-family: var(--dora-text) !important;
  background: var(--dora-cream) !important;
  color: var(--dora-blue) !important;
}

/* Header fixed-top : on compense l’espace */
main#main{
  padding-top: 96px !important;
}

/* Le template met padding sur toutes les sections : on annule sur nos pages */
.hero-home{
  padding: 0 !important;           /* écrase section{padding:80px} */
  min-height: calc(100vh - 96px) !important;
  display: flex !important;
  align-items: center !important;  /* centrage vertical */
}

/* Card Hero */
.hero-content{
  background: #fff !important;
  width: 100% !important;
  max-width: 980px !important;
  margin: 0 auto !important;
  padding: 56px !important;
  border-radius: 50px !important;
  box-shadow: 0 20px 40px rgba(255, 139, 148, 0.10) !important;
}

/* === CENTRAGE DU TEXTE (c’est ce que tu veux) === */
.hero-home .hero-content{
  text-align: center !important;
}

/* Titre */
.hero-home h1{
  font-family: var(--dora-title) !important;
  font-weight: 800 !important;
  line-height: 1.05 !important;
  color: var(--dora-blue) !important;
  margin-bottom: 18px !important;
}

/* Badge */
.hero-home .badge{
  background: rgba(255, 139, 148, 0.10) !important;
  color: var(--dora-coral) !important;
}

/* Sous-texte */
.hero-home p{
  max-width: 650px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  color: rgba(47, 72, 88, 0.75) !important;
}

/* Bouton Dorasup */
.btn-magic{
  background: linear-gradient(45deg, var(--dora-coral), var(--dora-peach)) !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 999px !important;
  padding: 14px 44px !important;
  font-weight: 700 !important;
  display: inline-block !important;
  text-decoration: none !important;
  box-shadow: 0 10px 20px rgba(255, 139, 148, 0.25) !important;
}

/* Mobile */
@media (max-width: 991px){
  main#main{ padding-top: 86px !important; }

  .hero-home{
    min-height: auto !important;
    padding: 40px 0 !important;
  }

  .hero-content{
    padding: 32px !important;
    border-radius: 30px !important;
  }

  .hero-home h1{
    font-size: 2.6rem !important;
  }
}



/* ============================================================
   DORASUP – FINAL OVERRIDES (À COLLER TOUT EN BAS)
   ============================================================ */

/* Palette Dorasup */
:root{
  --dora-coral:#FF8B94;
  --dora-peach:#F8AD9D;
  --dora-blue:#2F4858;
  --dora-cream:#FFF9F7;
  --dora-title:"Montserrat", sans-serif;
  --dora-text:"Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* Base */
body{
  font-family: var(--dora-text) !important;
  background: var(--dora-cream) !important;
  color: var(--dora-blue) !important;
}

/* Compense le header fixed-top */
main#main{
  padding-top: 96px !important;
}

/* =======================
   HERO HOME
   ======================= */
.hero-home{
  padding: 0 !important;                          /* annule section{padding} */
  min-height: calc(100vh - 96px) !important;
  display: flex !important;
  align-items: center !important;
}

.hero-home .hero-content{
  width: 100% !important;
  max-width: 980px !important;
  margin: 0 auto !important;
  padding: 52px !important;
  border-radius: 50px !important;
  background: #fff !important;
  box-shadow: 0 20px 40px rgba(255, 139, 148, 0.10) !important;
  text-align: center !important;                  /* CENTRAGE TEXTE */
}

/* Titre */
.hero-home h1{
  font-family: var(--dora-title) !important;
  font-weight: 800 !important;
  line-height: 1.05 !important;
  font-size: clamp(2.6rem, 5vw, 4.1rem) !important;
  color: var(--dora-blue) !important;
  margin-bottom: 18px !important;
}

.hero-home h1 span{
  color: var(--dora-coral) !important;
}

/* Sous-texte */
.hero-home p{
  max-width: 650px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  color: rgba(47, 72, 88, 0.75) !important;
}

/* Badge */
.hero-home .badge{
  background: rgba(255, 139, 148, 0.10) !important;
  color: var(--dora-coral) !important;
}

/* Bouton */
.btn-magic{
  background: linear-gradient(45deg, var(--dora-coral), var(--dora-peach)) !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 999px !important;
  padding: 14px 44px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  display: inline-block !important;
  box-shadow: 0 10px 20px rgba(255, 139, 148, 0.25) !important;
}

/* =======================
   HEADER FIXES
   ======================= */
.header .logo h1,
.logo h1{
  color: var(--dora-coral) !important;
  font-family: var(--dora-title) !important;
  font-weight: 800 !important;
}

.header .container-xl{
  display: flex !important;
  align-items: center !important;
}

.navbar ul{
  display: flex !important;
  align-items: center !important;
  margin: 0 !important;
}

/* =======================
   MOBILE
   ======================= */
@media (max-width: 991px){
  main#main{ padding-top: 86px !important; }

  .hero-home{
    min-height: auto !important;
    padding: 40px 0 !important;
  }

  .hero-home .hero-content{
    padding: 32px !important;
    border-radius: 30px !important;
  }
}


/* Remonter légèrement la hero-card */
.hero-home{
  align-items: flex-start !important;
}

.hero-home .hero-content{
  margin-top: 40px !important; /* ajuste ici : 20 / 30 / 40 */
}

/* ============================================================
   RESULTS PAGE (isolé, n’impacte pas le hero)
   ============================================================ */

.results-page{
  padding: 40px 0 70px !important;
}

.results-wrap{
  max-width: 1100px;
}

.results-title{
  text-align: center;
  font-family: var(--dora-title);
  font-weight: 800;
  color: var(--dora-blue);
  margin: 10px 0 34px;
}

.results-list{
  display: grid;
  gap: 18px;
}

.result-card{
  background: #fff;
  border-radius: 28px;
  padding: 22px 22px;
  box-shadow: 0 14px 34px rgba(47, 72, 88, 0.06);
  border-left: 6px solid var(--dora-coral);
  display: grid;
  grid-template-columns: 1fr 170px 220px;
  gap: 18px;
  align-items: center;
}

.result-school{
  font-size: 0.9rem;
  opacity: 0.75;
  margin-bottom: 6px;
}

.result-program{
  font-family: var(--dora-title);
  font-weight: 800;
  color: var(--dora-blue);
  line-height: 1.15;
}

.result-link{
  display: inline-block;
  margin-top: 10px;
  font-weight: 600;
  color: var(--dora-blue);
  opacity: 0.8;
}

.result-link:hover{
  opacity: 1;
}

.result-metrics{
  text-align: center;
  padding: 10px 10px;
  border-left: 1px solid rgba(47,72,88,0.10);
  border-right: 1px solid rgba(47,72,88,0.10);
}

.result-label{
  font-size: 0.85rem;
  opacity: 0.7;
  margin-bottom: 6px;
}

.result-proba{
  font-family: var(--dora-title);
  font-weight: 900;
  font-size: 2rem;
  color: var(--dora-coral);
  line-height: 1;
}

.result-status{
  margin-top: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #2e9f6b;
}

.result-cta{
  display: flex;
  justify-content: flex-end;
}

.btn-magic-sm{
  padding: 12px 22px !important;
  font-size: 0.95rem !important;
}

/* responsive */
@media (max-width: 991px){
  .result-card{
    grid-template-columns: 1fr;
  }
  .result-metrics{
    border-left: 0;
    border-right: 0;
    border-top: 1px solid rgba(47,72,88,0.10);
    border-bottom: 1px solid rgba(47,72,88,0.10);
    padding: 14px 10px;
  }
  .result-cta{
    justify-content: center;
  }
}


/* ============================================================
   RESULTS – RENDU CARTE (COMME SUR LA CAPTURE)
   ============================================================ */

.results-page{
  padding: 40px 0 70px;
}

.results-wrap{
  max-width: 1200px;
}

/* Carte résultat */
.results-page .formation-card{
  background: #fff;
  border-radius: 30px;
  padding: 26px 28px;
  box-shadow: 0 14px 34px rgba(47, 72, 88, 0.08);
  border-left: 6px solid var(--dora-coral);
}

/* Bloc chances */
.results-page .chance-box{
  border-left: 1px solid rgba(0,0,0,0.08);
  border-right: 1px solid rgba(0,0,0,0.08);
  min-width: 140px;
}

.results-page .chance-value{
  font-family: var(--dora-title);
  font-weight: 900;
  font-size: 2.2rem;
  color: var(--dora-coral);
  line-height: 1;
}

/* Bouton lettre */
.results-page .btn-magic{
  padding: 14px 28px;
  font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 991px){
  .results-page .formation-card{
    flex-direction: column;
    text-align: center;
  }

  .results-page .chance-box{
    border: 0;
    margin: 16px 0;
  }
}


/* ============================================================
   RESULTS (REPRO DU RENDU "PARFAIT")
   ============================================================ */

.results-wrap{ max-width: 1200px; }

.results-page .formation-card{
  background: #fff;
  border-radius: 30px;
  padding: 26px 28px;
  box-shadow: 0 14px 34px rgba(47, 72, 88, 0.08);
  border-left: 6px solid var(--dora-coral, #FF8B94);
}

.results-page .result-link{
  font-weight: 600;
  color: var(--dora-blue, #2F4858);
  opacity: 0.85;
}

.results-page .chance-box{
  min-width: 180px;
  border-left: 1px solid rgba(0,0,0,0.10);
  border-right: 1px solid rgba(0,0,0,0.10);
  padding-top: 8px;
  padding-bottom: 8px;
}

.results-page .chance-value{
  font-family: var(--dora-title, "Montserrat", sans-serif);
  font-weight: 900;
  font-size: 2.3rem;
  color: var(--dora-coral, #FF8B94);
  line-height: 1;
}

.results-page .chance-bar{
  height: 4px;
  width: 90px;
  border-radius: 999px;
  margin: 12px auto 0;
  background: rgba(255, 139, 148, 0.35);
}

.results-page .result-right{
  min-width: 220px;
}

.results-page .result-status{
  font-weight: 700;
  color: #1f8a55;
  margin-bottom: 10px;
}

.results-page .btn-magic-sm{
  padding: 14px 26px !important;
  font-size: 0.95rem !important;
}

/* Responsive */
@media (max-width: 991px){
  .results-page .chance-box{
    border: 0;
    min-width: auto;
    width: 100%;
  }
  .results-page .result-right{
    min-width: auto;
    width: 100%;
    text-align: center !important;
  }
}

/* ===== Results: match rendu "parfait" ===== */

.results-page .result-card{
  border-radius: 32px !important;
  padding: 28px 30px !important;
  box-shadow: 0 18px 50px rgba(47, 72, 88, 0.08) !important;
}

/* Badge établissement (pill gris clair) */
.results-page .school-pill{
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(47, 72, 88, 0.08);
  color: rgba(47, 72, 88, 0.85);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 12px;
}

/* Programme */
.results-page h5{
  font-size: 1.35rem;
  line-height: 1.2;
}

/* Lien Parcoursup plus clean */
.results-page .result-link{
  opacity: 0.9;
  text-decoration: underline;
}

/* Bloc chances: plus “carré” et separators comme avant */
.results-page .chance-box{
  min-width: 220px !important;
  border-left: 0 !important;
  border-right: 0 !important;
  position: relative;
}

.results-page .chance-box::before,
.results-page .chance-box::after{
  content: "";
  position: absolute;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: rgba(47,72,88,0.12);
  border-radius: 2px;
}

.results-page .chance-box::before{ left: 10px; }
.results-page .chance-box::after{ right: 10px; }

.results-page .chance-value{
  font-size: 2.6rem !important;
}

/* CTA aligné en haut à droite comme sur ta capture */
.results-page .result-right{
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 14px;
  min-width: 260px;
}

.results-page .result-status{
  margin: 0 !important;
}

/* Bouton un peu plus “premium” */
.results-page .btn-magic-sm{
  padding: 16px 30px !important;
  border-radius: 999px !important;
}

/* Responsive */
@media (max-width: 991px){
  .results-page .result-right{
    align-items: center;
  }
  .results-page .chance-box::before,
  .results-page .chance-box::after{
    display:none;
  }
}

/* =========================
   RESULTS – PIXEL MATCH
   ========================= */

.results-page .results-wrap { max-width: 1200px; }

/* Carte */
.results-page .result-card{
  background:#fff;
  border-radius:30px;
  padding:26px 28px;
  box-shadow:0 14px 34px rgba(47,72,88,0.08);
  border-left:6px solid #FF8B94;
}

/* Pill établissement */
.results-page .school-pill{
  display:inline-block;
  padding:6px 14px;
  border-radius:999px;
  background: rgba(47,72,88,0.08);
  color: rgba(47,72,88,0.85);
  font-size:0.85rem;
  font-weight:700;
  margin-bottom:12px;
}

/* Lien Parcoursup en bleu */
.results-page .result-link{
  display:inline-block;
  margin-top:10px;
  font-weight:600;
  color:#0d6efd;            /* bleu bootstrap */
  text-decoration:none;
}
.results-page .result-link:hover{
  text-decoration:underline;
}

/* Bloc chances avec 2 barres verticales */
.results-page .chance-box{
  min-width:220px;
  position:relative;
  padding-top:10px;
  padding-bottom:12px;
  border-left:0 !important;
  border-right:0 !important;
}
.results-page .chance-box::before,
.results-page .chance-box::after{
  content:"";
  position:absolute;
  top:12px;
  bottom:12px;
  width:2px;
  background: rgba(47,72,88,0.12);
  border-radius:2px;
}
.results-page .chance-box::before{ left:10px; }
.results-page .chance-box::after{ right:10px; }

.results-page .chance-value{
  font-family: "Montserrat", sans-serif;
  font-weight:900;
  font-size:2.6rem;
  line-height:1;
  color:#FF8B94;
}

/* Petite barre rose sous le % */
.results-page .chance-bar{
  height:4px;
  width:90px;
  border-radius:999px;
  margin:12px auto 0;
  background: rgba(255,139,148,0.35);
}

/* Colonne droite */
.results-page .result-right{
  min-width:260px;
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:12px;
}

/* Dossier Solide */
.results-page .result-status{
  font-weight:700;
  color:#1f8a55;
  margin:0;
}

/* Bouton */
.results-page .btn-magic{
  padding:16px 30px !important;
  border-radius:999px !important;
}

/* Mobile */
@media (max-width:991px){
  .results-page .result-right{
    min-width:auto;
    width:100%;
    align-items:center;
  }
  .results-page .chance-box::before,
  .results-page .chance-box::after{ display:none; }
}


/* Actions (Modifier profil / notes) */
.results-actions{
  display:flex;
  justify-content:center;
  gap:14px;
  margin: 18px 0 34px;
  flex-wrap:wrap;
}

.btn-outline-dora{
  display:inline-block;
  padding:10px 18px;
  border-radius:999px;
  border:1px solid rgba(255,139,148,0.75);
  color:#FF8B94;
  font-weight:700;
  background:transparent;
}

.btn-outline-dora:hover{
  background: rgba(255,139,148,0.12);
  transform: translateY(-1px);
}

/* Colonne droite: centre le status + le bouton */
.results-page .result-right{
  min-width: 260px;
  display:flex;
  flex-direction:column;
  align-items:center;   /* <-- centre */
  justify-content:center;
  gap:12px;
}

.results-page .result-status{
  width:100%;
  text-align:center;    /* <-- centre le texte */
  margin:0;
  font-size: 0.95rem;
  font-weight:700;
  color:#1f8a55;
}

.results-page{
  padding-top: 30px;   /* au lieu d’un margin énorme */
}


.results-page .chance-box .small{
  letter-spacing: 0.3px;
  text-transform: uppercase;
  font-size: 0.7rem;
}


.results-page .result-card{
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.results-page .result-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 22px 50px rgba(47,72,88,0.12);
}

/* Lettre: remonter le contenu (évite le grand vide) */
.letter-page{
  padding-top: 20px !important;
  padding-bottom: 50px !important;
}

.letter-page .hero-content{
  margin-top: 0 !important;
}


/* Loader overlay centré */
.loader-overlay{
  position: fixed;
  inset: 0;
  background: rgba(255, 249, 247, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.loader-card{
  background: #fff;
  border-radius: 22px;
  padding: 22px 26px;
  box-shadow: 0 18px 60px rgba(47,72,88,0.18);
  border: 1px solid rgba(0,0,0,0.06);
  min-width: 280px;
}

/* Modal lettre */
.letter-modal{
  position: fixed;
  inset: 0;
  z-index: 10000;
}

.letter-modal-backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
}

.letter-modal-card{
  position: relative;
  width: min(900px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  margin: 12px auto;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.25);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  top: 50%;
  transform: translateY(-50%);
}

.letter-modal-header{
  display: flex;
  align-items: start;
  justify-content: space-between;
  padding: 18px 18px 10px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.letter-modal-actions{
  display: flex;
  gap: 10px;
  padding: 12px 18px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.letter-modal-body{
  padding: 18px;
  overflow: auto;
  white-space: pre-wrap;
  line-height: 1.65;
  font-size: 1rem;
}

/* Boutons outline (si pas déjà global) */
.btn-outline-dora{
  display:inline-block;
  padding:10px 18px;
  border-radius:999px;
  border:1px solid rgba(255,139,148,0.75);
  color:#FF8B94;
  font-weight:700;
  background:transparent;
}

.btn-outline-dora:hover{
  background: rgba(255,139,148,0.10);
}

.btn-outline-secondary{
  border-color: rgba(47,72,88,0.35);
  color: #2F4858;
}
.btn-outline-secondary:hover{
  background: rgba(47,72,88,0.08);
}


.status{
  font-weight: 700;
  font-size: 0.95rem;
}

.status-good{
  color: #1E9E58; /* vert */
}

.status-medium{
  color: #F39C12; /* orange */
}

.status-bad{
  color: #E74C3C; /* rouge */
}


/* ===== MOBILE HEADER FIX (FINAL) ===== */
@media (max-width: 768px){
  /* header height stable */
  .header{
    padding: 10px 0 !important;
  }

  .header .container-xl{
    padding-left: 12px !important;
    padding-right: 12px !important;
    gap: 10px !important;
    align-items: center !important;
  }

  .header .logo h1{
    font-size: 1.45rem !important;
    line-height: 1 !important;
    white-space: nowrap !important;
  }

  /* nav: wrap proprement */
  #navbar{ margin-left: auto !important; }

  .navbar ul{
    display: flex !important;
    flex-wrap: wrap !important;         /* ✅ autorise retour ligne */
    justify-content: flex-end !important;
    gap: 8px !important;
    row-gap: 6px !important;
  }

  .navbar .nav-link{
    padding: 6px 8px !important;
    font-size: 0.92rem !important;
    white-space: nowrap !important;
  }

  .btn-magic{
    padding: 8px 12px !important;
    font-size: 0.9rem !important;
  }

  /* compensation fixed-top sur mobile */
  main#main{
    padding-top: 84px !important;
  }
}


@media (max-width: 768px){
  .hero-home{
    align-items: center !important;
  }
  .hero-home .hero-content{
    margin-top: 0 !important;
  }
}



/* ============================================================
   MOBILE HEADER – 2 ROWS (FINAL)
   ============================================================ */
@media (max-width: 768px){

  /* Header compact */
  .header{
    padding: 10px 0 !important;
  }

  /* On passe le container en wrap pour faire 2 lignes propres */
  .header .container-xl{
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 8px 10px !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  /* Logo */
  .header .logo{
    flex: 1 1 auto !important;
  }
  .header .logo h1{
    font-size: 1.45rem !important;
    line-height: 1 !important;
    white-space: nowrap !important;
  }

  /* Nav devient la 2e ligne */
  #navbar{
    order: 3 !important;
    flex: 1 1 100% !important;
  }

  .navbar ul{
    width: 100% !important;
    justify-content: center !important;
    flex-wrap: nowrap !important;
    gap: 14px !important;
  }

  .navbar .nav-link{
    padding: 6px 0 !important;
    font-size: 0.95rem !important;
    white-space: nowrap !important;
  }

  /* Le bouton (Déconnexion / S'inscrire) reste en haut à droite */
  .navbar li:last-child{
    order: 2 !important;
  }

  /* On force le bouton à rester compact */
  .btn-magic{
    padding: 8px 12px !important;
    font-size: 0.9rem !important;
    border-radius: 999px !important;
  }

  /* Comme le header prend 2 lignes, on compense mieux */
  main#main{
    padding-top: 110px !important;
  }
}


@media (max-width: 768px){
  .hero-home{
    align-items: center !important;
  }
  .hero-home .hero-content{
    margin-top: 0 !important;
    padding: 28px !important;
    border-radius: 28px !important;
  }
}


@media (max-width: 768px){
  .letter-modal-card{
    width: 100vw !important;
    height: 100vh !important;
    max-height: 100vh !important;
    border-radius: 0 !important;
    margin: 0 !important;
    top: 0 !important;
    transform: none !important;
  }

  .letter-modal-body{
    font-size: 1.05rem !important;
    line-height: 1.75 !important;
  }

  .letter-modal-actions{
    justify-content: center !important;
    flex-wrap: wrap !important;
  }

  .letter-modal-actions .btn-outline-dora{
    width: 48% !important;
    text-align: center !important;
  }
}

