/* ==========================================================================
   Mathadore - Feuille de style
   Refonte 2026 - Digital Swiss Agency
   Couleurs de la marque : bleu (#2456c4) et vert (#2fa84f)
   ========================================================================== */

:root {
  --bleu: #2456c4;
  --bleu-fonce: #16326e;
  --bleu-clair: #eaf0fd;
  --vert: #2fa84f;
  --vert-fonce: #1f7a39;
  --vert-clair: #e8f7ec;
  --sombre: #1c2130;
  --texte: #2b3141;
  --texte-doux: #5a6275;
  --bordure: #e3e7ef;
  --fond: #ffffff;
  --fond-doux: #f6f8fc;
  --ombre: 0 2px 10px rgba(28, 33, 48, .06);
  --ombre-forte: 0 8px 28px rgba(28, 33, 48, .10);
  --rayon: 14px;
  --hauteur-entete: 128px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--texte);
  background: var(--fond);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--bleu); }
a:hover { color: var(--bleu-fonce); }

/* --------------------------------------------------------------------------
   BANDEAU FIXE (conservé, comme sur l'ancien site)
   -------------------------------------------------------------------------- */

#fixed-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--sombre);
  color: #fff;
  box-shadow: 0 2px 14px rgba(0, 0, 0, .18);
}

.entete-haut {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 22px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 34px;
  font-weight: 700;
  font-style: italic;
  letter-spacing: -.5px;
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
}
.logo img {
  height: 48px;
  width: 48px;
  object-fit: cover;
  border-radius: 9px;
}
.logo .math  { color: #3333ff; }
.logo .adore { color: #33cc00; }
.logo:hover { color: inherit; }

.entete-contact {
  display: flex;
  align-items: center;
  gap: 10px 20px;
  flex-wrap: wrap;
  font-size: 15px;
}
.entete-contact span {
  color: #ffffff;
  font-size: 19px;
  font-weight: 600;
}
.entete-contact a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
}
.entete-contact a:hover { color: #5fd47e; }

/* Navigation */
#navigation { border-top: 1px solid rgba(255, 255, 255, .10); }

#navigation ul {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 22px;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

#navigation li { margin: 0; }

#navigation a {
  display: block;
  padding: 12px 15px;
  color: #dfe3ee;
  text-decoration: none;
  font-size: 15.5px;
  font-weight: 500;
  border-bottom: 3px solid transparent;
  transition: color .15s, border-color .15s;
}
#navigation a:hover { color: #fff; border-bottom-color: var(--vert); }
#navigation a.actif { color: #fff; border-bottom-color: var(--vert); font-weight: 600; }

/* Bouton menu (mobile) - sans JavaScript */
#menu-toggle { display: none; }
.menu-bouton {
  display: none;
  cursor: pointer;
  padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 8px;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  user-select: none;
}

/* --------------------------------------------------------------------------
   CONTENU
   -------------------------------------------------------------------------- */

#container {
  margin-top: var(--hauteur-entete);
}

.zone {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 22px;
}

/* Bandeau d'accroche */
.hero {
  background: linear-gradient(135deg, var(--bleu-fonce) 0%, var(--bleu) 62%, var(--vert-fonce) 130%);
  color: #fff;
  padding: 54px 0 48px;
}
.hero h1 {
  margin: 0 0 14px;
  font-size: 38px;
  line-height: 1.22;
  font-weight: 700;
  color: #fff;
}
.hero p {
  margin: 0 0 10px;
  font-size: 18.5px;
  color: #dbe4fb;
  max-width: 760px;
}
.hero .lieux {
  margin-top: 20px;
  font-size: 16px;
  color: #cfdcfa;
}

/* Titres */
h1, h2, h3, h4 { color: var(--bleu-fonce); line-height: 1.3; }
h1 { font-size: 34px; margin: 0 0 18px; }
h2 {
  font-size: 27px;
  margin: 44px 0 16px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--vert);
  display: inline-block;
}
h3 { font-size: 21px; margin: 28px 0 10px; }
h4 { font-size: 18px; margin: 22px 0 8px; }

p { margin: 0 0 15px; }

/* Blocs de contenu */
.bloc { padding: 46px 0; }
.bloc-doux { background: var(--fond-doux); }

/* Cartes */
.cartes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
  margin: 26px 0;
}
.carte {
  background: #fff;
  border: 1px solid var(--bordure);
  border-radius: var(--rayon);
  padding: 24px 26px;
  box-shadow: var(--ombre);
}
.carte h3 { margin-top: 0; color: var(--bleu); }
.carte p:last-child { margin-bottom: 0; }

/* Encadré */
.encadre {
  background: var(--bleu-clair);
  border-left: 4px solid var(--bleu);
  border-radius: 0 var(--rayon) var(--rayon) 0;
  padding: 20px 24px;
  margin: 24px 0;
}
.encadre.vert {
  background: var(--vert-clair);
  border-left-color: var(--vert);
}
.encadre p:last-child { margin-bottom: 0; }

/* Témoignages */
.temoignages {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 18px;
  margin: 26px 0 0;
}
.temoignage {
  background: #fff;
  border: 1px solid var(--bordure);
  border-left: 4px solid var(--vert);
  border-radius: 0 var(--rayon) var(--rayon) 0;
  padding: 20px 22px;
  font-style: italic;
  color: var(--texte);
  box-shadow: var(--ombre);
}

/* Boutons */
.bouton {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 9px;
  background: var(--vert);
  color: #fff !important;
  font-weight: 600;
  font-size: 16.5px;
  text-decoration: none;
  border: none;
  transition: background .15s, transform .1s;
}
.bouton:hover { background: var(--vert-fonce); transform: translateY(-1px); }
.bouton.bleu { background: var(--bleu); }
.bouton.bleu:hover { background: var(--bleu-fonce); }
.bouton.clair {
  background: #fff;
  color: var(--bleu-fonce) !important;
  border: 1px solid var(--bordure);
}
.bouton.clair:hover { background: var(--fond-doux); }

.boutons { display: flex; flex-wrap: wrap; gap: 14px; margin: 24px 0; }

/* Listes */
.liste-verte { list-style: none; padding: 0; margin: 16px 0; }
.liste-verte li {
  padding: 7px 0 7px 30px;
  position: relative;
}
.liste-verte li::before {
  content: "";
  position: absolute;
  left: 4px; top: 17px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--vert);
}

ul.numerotee { padding-left: 22px; }
ul.numerotee li { margin-bottom: 9px; }

/* Tableau des tarifs */
.tableau-zone { overflow-x: auto; margin: 24px 0; -webkit-overflow-scrolling: touch; }
table.tarifs {
  width: 100%;
  min-width: 660px;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--rayon);
  overflow: hidden;
  box-shadow: var(--ombre);
  font-size: 16px;
}
table.tarifs th {
  background: var(--bleu-fonce);
  color: #fff;
  padding: 14px 12px;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
}
table.tarifs th:first-child { text-align: left; }
table.tarifs td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--bordure);
  text-align: center;
  vertical-align: middle;
}
table.tarifs td:first-child {
  text-align: left;
  font-weight: 600;
  color: var(--bleu-fonce);
  background: var(--fond-doux);
}
table.tarifs tr:last-child td { border-bottom: none; }
table.tarifs .prix {
  display: inline-block;
  font-weight: 700;
  font-size: 17px;
  color: var(--bleu);
}
table.tarifs a.prix { text-decoration: none; }
table.tarifs a.prix:hover { text-decoration: underline; }
table.tarifs .total { display: block; font-size: 13.5px; color: var(--texte-doux); font-weight: 400; }

/* Horaires */
.horaires { display: flex; flex-wrap: wrap; gap: 9px; margin: 14px 0; }
.horaires span {
  background: var(--bleu-clair);
  color: var(--bleu-fonce);
  padding: 7px 13px;
  border-radius: 7px;
  font-weight: 600;
  font-size: 15.5px;
}

/* Équipe */
.equipe { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; margin: 22px 0; }
.prof {
  background: #fff;
  border: 1px solid var(--bordure);
  border-radius: 11px;
  padding: 13px 17px;
  box-shadow: var(--ombre);
}
.prof strong { color: var(--bleu-fonce); display: block; }
.prof span { color: var(--texte-doux); font-size: 15.5px; }

/* Images */
.image-cadre {
  border-radius: var(--rayon);
  overflow: hidden;
  box-shadow: var(--ombre-forte);
  margin: 22px 0;
}
.galerie { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 20px; margin: 22px 0; }
.legende { font-size: 15px; color: var(--texte-doux); margin-top: 8px; }

.photo-portrait { max-width: 330px; border-radius: var(--rayon); box-shadow: var(--ombre-forte); }

/* Photo du directeur : flotte a gauche, le texte s'ecrit a cote */
.photo-flottante {
  float: left;
  width: 230px;
  margin: 6px 26px 12px 0;
  border-radius: var(--rayon);
  overflow: hidden;
  box-shadow: var(--ombre-forte);
}
.apres-flottant { clear: both; }
@media (max-width: 720px) {
  .photo-flottante { float: none; width: 100%; max-width: 300px; margin: 0 0 16px; }
}

/* Cases vides pour futurs profs (a completer dans BlueGriffon) */
.prof.vide {
  border-style: dashed;
  border-color: #c9cfdd;
  min-height: 58px;
  background: #fbfcfe;
}

/* Appel à l'action */
.cta {
  background: linear-gradient(135deg, var(--bleu-fonce), var(--bleu));
  color: #fff;
  border-radius: var(--rayon);
  padding: 38px 34px;
  margin: 42px 0;
  text-align: center;
}
.cta h2 {
  color: #fff;
  border: none;
  margin: 0 0 12px;
  padding: 0;
  display: block;
  font-size: 27px;
}
.cta p { color: #d8e2fb; margin-bottom: 22px; font-size: 17.5px; }
.cta .boutons { justify-content: center; margin-bottom: 0; }

/* Pied de page */
footer {
  background: var(--sombre);
  color: #b9c0d2;
  padding: 40px 0 26px;
  margin-top: 54px;
  font-size: 15.5px;
}
footer .zone { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 28px; }
footer h4 { color: #fff; margin: 0 0 12px; font-size: 16.5px; }
footer a { color: #dfe3ee; text-decoration: none; }
footer a:hover { color: #5fd47e; }
footer ul { list-style: none; padding: 0; margin: 0; }
footer li { margin-bottom: 7px; }
.bas-page {
  max-width: 1180px;
  margin: 26px auto 0;
  padding: 18px 22px 0;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: 14px;
  color: #8f97ab;
}

/* --------------------------------------------------------------------------
   TABLETTE
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  :root { --hauteur-entete: 118px; }
  .hero h1 { font-size: 31px; }
  h1 { font-size: 28px; }
  h2 { font-size: 24px; }
  .logo { font-size: 29px; }
  .entete-contact { font-size: 14px; }
}

/* --------------------------------------------------------------------------
   MOBILE
   -------------------------------------------------------------------------- */
@media (max-width: 720px) {
  :root { --hauteur-entete: 74px; }

  body { font-size: 16.5px; }

  .entete-haut { padding: 12px 16px; flex-wrap: nowrap; }
  .logo { font-size: 25px; }
  .entete-contact { display: none; }
  .menu-bouton { display: block; }

  /* Menu déroulant mobile (case à cocher, sans JavaScript) */
  #navigation {
    max-height: 0;
    overflow: hidden;
    transition: max-height .28s ease;
    border-top: none;
  }
  #menu-toggle:checked ~ #navigation {
    max-height: 620px;
    border-top: 1px solid rgba(255, 255, 255, .10);
  }
  #navigation ul { flex-direction: column; padding: 6px 10px 12px; gap: 0; }
  #navigation a {
    padding: 13px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
  }
  #navigation a:hover, #navigation a.actif {
    border-bottom-color: rgba(255, 255, 255, .07);
    border-left: 3px solid var(--vert);
    padding-left: 12px;
  }

  .contact-mobile {
    display: flex;
    gap: 8px;
    padding: 10px 12px 14px;
  }
  .contact-mobile a {
    flex: 1;
    text-align: center;
    background: var(--vert);
    color: #fff;
    padding: 11px 8px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
  }

  .zone { padding: 0 16px; }
  .hero { padding: 34px 0 30px; }
  .hero h1 { font-size: 25px; }
  .hero p { font-size: 16.5px; }
  h1 { font-size: 24px; }
  h2 { font-size: 21px; margin: 32px 0 13px; }
  h3 { font-size: 19px; }
  .bloc { padding: 32px 0; }
  .carte { padding: 20px; }
  .cta { padding: 28px 20px; }
  .cta h2 { font-size: 22px; }
  .boutons { flex-direction: column; }
  .bouton { text-align: center; }
  footer { padding: 30px 0 20px; }
}

@media (min-width: 721px) {
  .contact-mobile { display: none; }
}

/* --------------------------------------------------------------------------
   IMPRESSION
   -------------------------------------------------------------------------- */
@media print {
  #fixed-header, .cta, footer { display: none; }
  #container { margin-top: 0; }
}
