/* =========================================================================
   COMPLEXE SCOLAIRE PRIVE ADIAWIAKOYE — Design system
   Palette inspiree du blason de l'etablissement (cheval aile tricolore)
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Work+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@500;600&display=swap');

:root{
  /* Couleurs de marque, tirees du blason */
  --vert:        #145A32;
  --vert-fonce:  #0C3A20;
  --or:          #C99A2E;
  --or-clair:    #E4C878;
  --rouge:       #9C2B2B;
  --bleu-sarcelle: #1F7A72;

  --encre:       #12241B;
  --encre-2:     #1B3327;
  --papier:      #EFF1EA;
  --papier-carte:#FFFFFF;
  --texte:       #1B2A20;
  --texte-doux:  #55645B;
  --ligne:       #DEE1D6;

  --ombre: 0 18px 40px -18px rgba(18,36,27,.35);
  --rayon: 14px;

  --police-affiche: 'Fraunces', serif;
  --police-corps:   'Work Sans', system-ui, sans-serif;
  --police-donnee:  'IBM Plex Mono', monospace;
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  font-family:var(--police-corps);
  color:var(--texte);
  background:var(--papier);
  -webkit-font-smoothing:antialiased;
}
a{color:inherit;text-decoration:none;}
img{max-width:100%;display:block;}
:focus-visible{outline:3px solid var(--or);outline-offset:2px;}

@media (prefers-reduced-motion: reduce){
  *{animation-duration:.001ms !important;animation-iteration-count:1 !important;transition-duration:.001ms !important;}
}

/* ---------- Ruban tricolore : element signature ------------------------- */
.ruban{
  display:flex;
  height:6px;
  width:100%;
}
.ruban span{flex:1;}
.ruban .b-vert{background:var(--vert);}
.ruban .b-or{background:var(--or);}
.ruban .b-rouge{background:var(--rouge);}

/* ---------- En-tete du site ---------------------------------------------- */
.site-entete{
  background:var(--encre);
  color:#fff;
  padding:22px clamp(20px,5vw,64px);
  display:flex;
  align-items:center;
  gap:16px;
}
.site-entete .logo{
  width:52px;height:52px;border-radius:50%;
  border:2px solid var(--or-clair);
  object-fit:cover;
  background:#fff;
}
.site-entete .titres{line-height:1.15;}
.site-entete h1{
  font-family:var(--police-affiche);
  font-size:clamp(18px,2.4vw,24px);
  font-weight:600;
  margin:0;
  letter-spacing:.2px;
}
.site-entete p{margin:2px 0 0;font-size:13px;color:#C7D2C9;letter-spacing:.4px;text-transform:uppercase;}

/* ---------- Section Hero (accueil) --------------------------------------- */
.hero{
  padding:clamp(48px,7vw,88px) clamp(20px,5vw,64px) 40px;
  text-align:center;
  position:relative;
}
.hero .eyebrow{
  display:inline-flex;align-items:center;gap:8px;
  font-family:var(--police-donnee);
  font-size:12px;letter-spacing:2px;text-transform:uppercase;
  color:var(--vert);
  background:rgba(20,90,50,.08);
  border:1px solid rgba(20,90,50,.2);
  padding:6px 14px;border-radius:99px;
  margin-bottom:22px;
}
.hero h2{
  font-family:var(--police-affiche);
  font-size:clamp(30px,5.2vw,54px);
  line-height:1.08;
  margin:0 auto 18px;
  max-width:820px;
  font-weight:600;
}
.hero h2 em{
  font-style:italic;
  color:var(--vert);
}
.hero p.lead{
  max-width:560px;margin:0 auto;
  color:var(--texte-doux);
  font-size:16.5px;
  line-height:1.6;
}

/* ---------- Cartes des cycles (medaillons) -------------------------------- */
.cycles{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(230px,1fr));
  gap:22px;
  max-width:1080px;
  margin:48px auto 0;
  padding:0 clamp(20px,5vw,64px);
}
.carte-cycle{
  background:var(--papier-carte);
  border:1px solid var(--ligne);
  border-radius:var(--rayon);
  padding:30px 24px 26px;
  text-align:center;
  position:relative;
  box-shadow:var(--ombre);
  transition:transform .22s ease, box-shadow .22s ease;
}
.carte-cycle:hover{
  transform:translateY(-6px);
  box-shadow:0 26px 50px -20px rgba(18,36,27,.42);
}
.carte-cycle .medaillon{
  width:64px;height:64px;border-radius:50%;
  margin:0 auto 18px;
  display:flex;align-items:center;justify-content:center;
  font-family:var(--police-affiche);
  font-size:22px;font-weight:600;color:#fff;
  position:relative;
}
.carte-cycle .medaillon::before{
  content:'';position:absolute;inset:-6px;
  border-radius:50%;
  border:1.5px dashed currentColor;
  opacity:.45;
}
.carte-cycle:nth-child(1) .medaillon{background:var(--vert);color:var(--vert);}
.carte-cycle:nth-child(2) .medaillon{background:var(--bleu-sarcelle);color:var(--bleu-sarcelle);}
.carte-cycle:nth-child(3) .medaillon{background:var(--or);color:var(--or);}
.carte-cycle:nth-child(4) .medaillon{background:var(--rouge);color:var(--rouge);}
.carte-cycle .medaillon span{position:relative;color:#fff;}

.carte-cycle h3{
  font-family:var(--police-affiche);
  font-size:20px;margin:0 0 6px;font-weight:600;
}
.carte-cycle p{
  margin:0 0 20px;color:var(--texte-doux);font-size:13.5px;
}
.carte-cycle .btn-entrer{
  display:inline-flex;align-items:center;gap:6px;
  font-size:13.5px;font-weight:600;
  color:var(--encre);
  border-bottom:2px solid var(--or);
  padding-bottom:2px;
}
.carte-cycle .btn-entrer:after{content:'\2192';transition:transform .2s;}
.carte-cycle:hover .btn-entrer:after{transform:translateX(4px);}

/* ---------- Pied de page --------------------------------------------------- */
.site-pied{
  margin-top:60px;
  padding:26px clamp(20px,5vw,64px) 34px;
  text-align:center;
}
.site-pied a.lien-direction{
  font-size:13px;color:var(--texte-doux);
  border:1px solid var(--ligne);
  padding:8px 18px;border-radius:99px;
  display:inline-block;
  background:#fff;
}
.site-pied a.lien-direction:hover{border-color:var(--or);color:var(--encre);}
.site-pied .copyright{margin-top:16px;font-size:12px;color:#8B978C;}

/* ---------- Page de connexion ---------------------------------------------- */
.page-connexion{
  min-height:100vh;
  display:flex;flex-direction:column;
}
.conteneur-connexion{
  flex:1;
  display:flex;align-items:center;justify-content:center;
  padding:40px 20px;
}
.carte-connexion{
  width:100%;max-width:400px;
  background:var(--papier-carte);
  border:1px solid var(--ligne);
  border-radius:var(--rayon);
  box-shadow:var(--ombre);
  overflow:hidden;
}
.carte-connexion .entete{
  background:var(--encre);
  color:#fff;
  padding:30px 30px 22px;
  text-align:center;
}
.carte-connexion .entete img{width:56px;height:56px;border-radius:50%;margin:0 auto 12px;border:2px solid var(--or-clair);background:#fff;}
.carte-connexion .entete h2{font-family:var(--police-affiche);font-size:19px;margin:0 0 4px;font-weight:600;}
.carte-connexion .entete p{margin:0;font-size:12.5px;color:#B9C6BB;letter-spacing:1px;text-transform:uppercase;}
.carte-connexion form{padding:28px 30px 32px;}
.groupe-champ{margin-bottom:18px;}
.groupe-champ label{
  display:block;font-size:13px;font-weight:600;
  margin-bottom:6px;color:var(--texte);
}
.groupe-champ input{
  width:100%;padding:12px 14px;
  border:1.5px solid var(--ligne);
  border-radius:9px;
  font-size:14.5px;font-family:var(--police-corps);
  background:#FBFBF8;
  transition:border-color .18s;
}
.groupe-champ input:focus{border-color:var(--vert);background:#fff;}
.champ-mot-de-passe{position:relative;}
.champ-mot-de-passe input{padding-right:44px;}
.bouton-oeil{
  position:absolute;right:6px;top:50%;transform:translateY(-50%);
  width:32px;height:32px;border:none;background:none;border-radius:7px;
  display:flex;align-items:center;justify-content:center;cursor:pointer;color:var(--texte-doux);
}
.bouton-oeil:hover{background:var(--papier);color:var(--vert);}
.bouton-oeil .icone{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;}
.btn-principal{
  width:100%;
  padding:13px 16px;
  border:none;border-radius:9px;
  background:var(--vert);color:#fff;
  font-weight:600;font-size:14.5px;
  cursor:pointer;
  transition:background .18s, transform .15s;
  font-family:var(--police-corps);
}
.btn-principal:hover{background:var(--vert-fonce);}
.btn-principal:active{transform:scale(.98);}
.retour-accueil{
  display:block;text-align:center;margin-top:16px;
  font-size:13px;color:var(--texte-doux);
}
.retour-accueil:hover{color:var(--vert);}

.alerte{
  display:flex;align-items:flex-start;gap:9px;
  padding:12px 16px;border-radius:9px;font-size:13.5px;
  margin-bottom:18px;border:1px solid transparent;
}
.alerte .icone{width:17px;height:17px;flex-shrink:0;margin-top:1px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;}
.alerte-erreur{background:#FBEAEA;color:#7A2020;border-color:#F1C6C6;}
.alerte-succes{background:#E9F5EC;color:#155724;border-color:#C3E6CB;}
.alerte-info{background:#EAF3F8;color:#1B4C63;border-color:#C6E2F1;}
