/* =====================================================================
   FEUILLE DE STYLE UNIQUE DU SITE
   ---------------------------------------------------------------------
   Pensée d'abord pour le téléphone, puis élargie pour l'ordinateur
   (voir les blocs « @media (min-width: ...) » en bas).

   Pour changer les couleurs du site, modifie seulement les variables
   ci-dessous (section « COULEURS »).
   ===================================================================== */

/* Police « Plus Jakarta Sans » (titres très gras, style moderne).
   Si elle ne se charge pas (connexion lente), le site garde la police du téléphone. */
@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap");

/* ---------- COULEURS ET RÉGLAGES GÉNÉRAUX ---------- */
:root {
  /* Zones sombres (en-tête, bandeau d'accueil, pied de page) : brun très foncé, de la famille de l'orange */
  --sombre: #1E0D06;
  --sombre-2: #2B140A;           /* panneaux posés sur le fond sombre */
  --sombre-ligne: rgba(255,182,39,.22);   /* fines lignes jaune-orangé sur fond sombre */
  --sombre-texte: #EBD9CC;       /* texte secondaire sur fond sombre */
  --teinte: #FFF5EC;             /* fond léger des bandes alternées */
  --police: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  /* Couleur principale : orange (assez foncé pour que le texte blanc reste lisible) */
  --principal: #C2410C;          /* boutons, liens */
  --principal-vif: #EA580C;      /* orange vif (dégradés) */
  --principal-fonce: #7C2D12;    /* en-tête, survol */
  --principal-clair: #FFEDD5;    /* fonds légers */
  /* Couleur d'accent : jaune-orangé, pour ce qui doit attirer l'œil */
  --orange: #FFB627;
  --orange-clair: #FFF4D6;
  --orange-texte: #9A3412;       /* orange foncé lisible sur fond clair */
  --whatsapp: #128C4A;           /* vert WhatsApp : on le garde, c'est la couleur connue de tous */
  --fond: #FBF7F3;               /* fond de page, blanc cassé chaud */
  --carte: #FFFFFF;              /* fond des cartes */
  --texte: #1C1410;              /* texte principal : presque noir = lisible au soleil */
  --texte-2: #4E4038;            /* texte secondaire */
  --bordure: #EADFD5;
  --rayon: 14px;                 /* arrondi des angles */
  --ombre: 0 2px 8px rgba(124,45,18,.08);
  --largeur-max: 1080px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font-family: var(--police);
  font-size: 16.5px;
  line-height: 1.55;
}

img { max-width: 100%; display: block; }
a { color: var(--principal); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.02em; }
h1 { font-size: 1.6rem; }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.08rem; }
p { margin: 0 0 1em; }

.conteneur {
  max-width: var(--largeur-max);
  margin: 0 auto;
  padding: 0 16px;
}

main { padding: 20px 0 48px; min-height: 60vh; }

.section { margin-bottom: 32px; }
.section-titre {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; margin-bottom: 12px;
}
.section-titre a { font-weight: 600; font-size: .95rem; white-space: nowrap; display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; }

/* Accessibilité : contour bien visible quand on navigue au clavier */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--orange); outline-offset: 2px;
}

/* Message affiché seulement si JavaScript est désactivé */
.noscript {
  margin: 0; padding: 14px 16px; background: var(--orange-clair); color: var(--texte);
  border-bottom: 3px solid var(--orange); font-weight: 600; text-align: center;
}

.texte-doux { color: var(--texte-2); }
.petit { font-size: .9rem; }

/* ---------- EN-TÊTE ---------- */
.entete {
  background: var(--sombre);
  color: #fff; position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid var(--sombre-ligne);
}
.entete .conteneur {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 58px; gap: 12px;
}
/* Logo : le nom du site, « Ivoire » en blanc et « Concours » en jaune-orangé */
.logo { color: #fff; text-decoration: none; font-weight: 800; font-size: 1.25rem; letter-spacing: -.01em; white-space: nowrap;
  display: inline-flex; align-items: center; min-height: 44px; }
.logo span { color: var(--orange); }

.menu-bouton {
  background: transparent; border: 2px solid rgba(255,255,255,.5); color: #fff;
  border-radius: 8px; padding: 6px 14px; font-size: 1rem; font-weight: 600; cursor: pointer;
  min-height: 44px;
}
.menu {
  display: none; position: absolute; top: calc(100% + 1px); left: 0; right: 0;   /* juste sous l'en-tête (et son liseré), quelle que soit sa hauteur */
  background: var(--sombre); padding: 8px 16px 16px; border-top: 1px solid rgba(255,255,255,.12);
}
.menu.ouvert { display: block; }
.menu a {
  display: block; color: #fff; text-decoration: none; padding: 12px 4px;
  font-weight: 600; border-bottom: 1px solid rgba(255,255,255,.1);
}
.menu a[aria-current="page"] { color: var(--orange); }

/* ---------- BOUTONS ---------- */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 10px 20px; border-radius: 10px; border: 0;
  font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer;
  background: var(--principal); color: #fff; text-align: center;
}
.bouton:hover { background: var(--principal-fonce); }
.bouton-whatsapp { background: var(--whatsapp); }
.bouton-whatsapp:hover { background: #0B6B37; }
.bouton-orange { background: var(--orange); color: #1A0E00; }
.bouton-orange:hover { background: #F5A300; }
.bouton { transition: transform .1s, background .15s; }
.bouton:active { transform: scale(.97); }
.bouton-youtube { background: #CC0000; }
.bouton-youtube:hover { background: #A30000; }
.bouton-contour { background: transparent; color: var(--principal); border: 2px solid var(--principal); }
.bouton-contour:hover { background: var(--principal-clair); }
.bouton-plein { width: 100%; }
.boutons { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- ACCUEIL : état vide soigné ---------- */
.etat-vide {
  grid-column: 1 / -1; text-align: center; padding: 26px 18px;
  background: var(--carte); border: 2px dashed var(--bordure); border-radius: var(--rayon);
}
.etat-vide-icone { font-size: 2.4rem; display: block; margin-bottom: 6px; }
.etat-vide p { color: var(--texte-2); }
.etat-vide .boutons { justify-content: center; }

/* ---------- FICHE : l'essentiel + sommaire ---------- */
.essentiel { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.essentiel-case {
  background: var(--carte); border: 1px solid var(--bordure); border-radius: 10px; padding: 10px 12px;
  display: flex; flex-direction: column; gap: 2px;
}
.essentiel-libelle { font-size: .78rem; font-weight: 700; color: var(--orange-texte); text-transform: uppercase; letter-spacing: .03em; }
.essentiel-valeur { font-weight: 700; font-size: .95rem; line-height: 1.3; }
.sommaire {
  position: sticky; top: 63px; z-index: 5; display: flex; gap: 8px; overflow-x: auto;
  margin: 0 -16px 16px; padding: 10px 16px; background: rgba(251,247,243,.96);
  border-bottom: 1px solid var(--bordure); scrollbar-width: none;
}
.sommaire::-webkit-scrollbar { display: none; }
.sommaire a {
  flex-shrink: 0; display: inline-flex; align-items: center; min-height: 40px; padding: 6px 14px;
  border-radius: 999px; background: var(--carte); border: 1px solid var(--bordure);
  color: var(--texte); text-decoration: none; font-weight: 700; font-size: .9rem;
}
.sommaire a:hover { border-color: var(--principal); color: var(--principal); }
/* Les rubriques ne se cachent pas sous l'en-tête et le sommaire quand on y saute */
.fiche-bloc { scroll-margin-top: 130px; }

/* ---------- FOIRE AUX QUESTIONS ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.faq-outils { position: sticky; top: 63px; z-index: 5; background: var(--fond); padding: 10px 0 8px; margin-bottom: 8px; }
.faq-outils input {
  width: 100%; min-height: 50px; padding: 10px 14px; font-size: 1rem;
  border: 2px solid var(--bordure); border-radius: 10px; background: #fff; color: var(--texte);
}
.faq-outils input:focus { outline: none; border-color: var(--principal); }
.faq-outils #faq-info { margin: 6px 0; min-height: 1em; }
.faq-themes a {
  flex-shrink: 0; display: inline-flex; align-items: center; min-height: 40px; padding: 6px 14px;
  border-radius: 999px; background: #fff; border: 1px solid var(--bordure);
  color: var(--texte); text-decoration: none; font-weight: 700; font-size: .9rem;
}
.faq-theme { margin-top: 22px; scroll-margin-top: 190px; }
.faq-theme h2 { font-size: 1.2rem; }
.faq-question {
  background: var(--carte); border: 1px solid var(--bordure); border-radius: var(--rayon);
  margin-bottom: 10px; box-shadow: var(--ombre);
}
.faq-question summary {
  list-style: none; cursor: pointer; padding: 14px 46px 14px 16px; font-weight: 700; position: relative; min-height: 44px;
}
.faq-question summary::-webkit-details-marker { display: none; }
.faq-question summary::after {
  content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  width: 26px; height: 26px; border-radius: 50%; background: var(--principal-clair); color: var(--principal);
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.1rem;
}
.faq-question[open] summary::after { content: "−"; background: var(--principal); color: #fff; }
.faq-question[open] summary { border-bottom: 1px solid var(--bordure); }
.faq-reponse { padding: 12px 16px 4px; color: var(--texte-2); }

/* ---------- PIÈCES À COCHER ---------- */
.cl-progression { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.cl-barre { height: 10px; background: var(--principal-clair); border-radius: 999px; overflow: hidden; }
.cl-barre span { display: block; height: 100%; width: 0; background: var(--principal); border-radius: 999px; transition: width .25s; }
.checklist.complet .cl-barre span { background: #0E9F6E; }
.cl-texte { font-weight: 700; font-size: .95rem; }
.liste-cocher { list-style: none; padding: 0; margin: 0 0 12px; }
.liste-cocher li { border-bottom: 1px solid #F3EAE2; }
.liste-cocher li:last-child { border-bottom: 0; }
.liste-cocher label {
  display: flex; align-items: flex-start; gap: 12px; padding: 10px 2px; cursor: pointer; min-height: 44px;
}
.liste-cocher input {
  flex-shrink: 0; width: 24px; height: 24px; margin: 1px 0 0; accent-color: var(--principal); cursor: pointer;
}
.liste-cocher input:checked + span { color: var(--texte-2); text-decoration: line-through; text-decoration-color: rgba(0,0,0,.3); }
.cl-aide {
  display: inline-block; margin: -4px 0 10px 36px; font-size: .82rem; font-weight: 700;
  background: var(--orange-clair); color: var(--orange-texte); border-radius: 999px; padding: 3px 10px; text-decoration: none;
}
.cl-actions .bouton { flex: 1; min-width: 160px; }
.cl-note { margin: 8px 0 0; }

/* ---------- COMPTE À REBOURS ---------- */
.compte-rebours {
  background: linear-gradient(135deg, var(--principal-fonce), var(--principal)); color: #fff;
  border-radius: var(--rayon); padding: 14px 16px; margin-bottom: 14px; box-shadow: 0 8px 20px rgba(124,45,18,.2);
}
.compte-rebours.cr-ouverture { background: linear-gradient(135deg, #17357A, #2563EB); }
.compte-rebours.urgent { background: linear-gradient(135deg, #7F1D1D, #DC2626); animation: pulsation 1.6s ease-in-out infinite; }
.cr-libelle { font-weight: 800; margin-bottom: 8px; }
.cr-cases { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.cr-case {
  background: rgba(255,255,255,.15); border-radius: 10px; padding: 8px 4px;
  display: flex; flex-direction: column; align-items: center;
}
.cr-case b { font-size: 1.6rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.cr-case small { font-size: .75rem; opacity: .9; }
.cr-date { margin-top: 8px; font-size: .88rem; opacity: .95; }
.cr-court { display: inline-block; font-weight: 800; font-variant-numeric: tabular-nums; color: #B91C1C; }
@keyframes pulsation { 50% { box-shadow: 0 0 0 6px rgba(220,38,38,.25); } }

/* Bandeau « Dernières 48 h » (accueil) */
.bandeau-urgence {
  background: #FEF2F2; border: 2px solid #DC2626; border-radius: var(--rayon); padding: 16px;
}
.bandeau-urgence h2 { color: #991B1B; }
.bandeau-urgence ul { list-style: none; padding: 0; margin: 0 0 14px; }
.bandeau-urgence li {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px;
  padding: 10px 0; border-bottom: 1px solid #FECACA;
}
.bandeau-urgence li a { font-weight: 700; color: var(--texte); }

/* ---------- Bouton « remonter en haut » ---------- */
.bouton-haut {
  position: fixed; left: 16px; bottom: 16px; z-index: 60; width: 46px; height: 46px; border-radius: 50%;
  border: 0; background: var(--principal-fonce); color: #fff; font-size: 1.3rem; font-weight: 800; cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,.25); opacity: 0; pointer-events: none; transform: translateY(10px);
  transition: opacity .2s, transform .2s;
}
.bouton-haut.visible { opacity: 1; pointer-events: auto; transform: none; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .carte-concours, .tuile-categorie, .bouton, .bouton-haut { transition: none; }
  .compte-rebours.urgent { animation: none; }
}
.bandeau-badge {
  display: inline-block; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.3);
  border-radius: 999px; padding: 4px 12px; font-size: .85rem; font-weight: 700; margin-bottom: 12px;
}

.recherche { display: flex; gap: 8px; margin-top: 16px; }
.recherche input {
  flex: 1; min-width: 0; min-height: 50px; padding: 10px 14px;
  border: 2px solid transparent; border-radius: 10px; font-size: 1rem;
}
.recherche input:focus { outline: none; border-color: var(--orange); }
.recherche button { flex-shrink: 0; }

/* ---------- CARTES DE CONCOURS ---------- */
.grille { display: grid; gap: 14px; grid-template-columns: 1fr; }

.carte {
  background: var(--carte); border: 1px solid var(--bordure);
  border-radius: var(--rayon); padding: 16px; box-shadow: var(--ombre);
}
.carte-concours {
  display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: inherit;
  border-left: 5px solid var(--principal); transition: transform .15s, box-shadow .15s;
}
.carte-concours:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(124,45,18,.14); }
.carte-concours h3 { margin: 0; color: var(--texte); }
.carte-concours .meta { font-size: .9rem; color: var(--texte-2); }
.carte-concours .limite { font-weight: 700; font-size: .95rem; }

/* Infos clés sur les cartes (diplôme, frais) */
.infos-cles { display: flex; flex-wrap: wrap; gap: 6px; }
.infos-cles span {
  font-size: .82rem; background: var(--fond); border: 1px solid var(--bordure);
  border-radius: 8px; padding: 3px 8px; color: var(--texte-2);
}
.carte-pied {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--bordure);
}
.voir-fiche { font-weight: 800; color: var(--principal); white-space: nowrap; font-size: .92rem; }
.carte-concours:hover .voir-fiche { text-decoration: underline; }

/* Couleur de la bande à gauche selon la catégorie */
.cat-sante { border-left-color: #0E9F6E; }
.cat-fonction-publique { border-left-color: var(--principal); }
.cat-police-armee { border-left-color: #1E3A8A; }
.cat-enseignement { border-left-color: #7C3AED; }
.cat-ecoles-formation { border-left-color: #B45309; }

.etiquettes { display: flex; flex-wrap: wrap; gap: 6px; }
.etiquette {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: .8rem; font-weight: 700; background: #EEF0EC; color: var(--texte-2);
}
.statut-ouvert  { background: var(--principal); color: #fff; }
.statut-a-venir { background: #DCE8FF; color: #17357A; }
.statut-termine { background: #E6E6E6; color: #3D3D3D; }
.etiquette-fictif { background: #FDE2E2; color: #8A1C1C; }

.compte-a-rebours { color: var(--orange-texte); }

/* ---------- LISTE : FILTRES ---------- */
.filtres { display: grid; gap: 10px; margin-bottom: 16px; }
.filtres label { font-weight: 700; font-size: .9rem; display: block; margin-bottom: 4px; }
.filtres input, .filtres select {
  width: 100%; min-height: 48px; padding: 8px 12px; font-size: 1rem;
  border: 2px solid var(--bordure); border-radius: 10px; background: #fff; color: var(--texte);
}
.filtres input:focus, .filtres select:focus { outline: none; border-color: var(--principal); }

.puces { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.puce {
  flex-shrink: 0; min-height: 42px; padding: 8px 16px; border-radius: 999px;
  border: 2px solid var(--bordure); background: #fff; font-weight: 700; font-size: .95rem;
  cursor: pointer; color: var(--texte);
}
.puce[aria-pressed="true"] { background: var(--principal); border-color: var(--principal); color: #fff; }

/* Recherche : mots trouvés surlignés + séparation « Autres concours » */
.carte-concours mark { background: var(--orange); color: var(--texte); border-radius: 3px; padding: 0 2px; }
.separateur-resultats {
  grid-column: 1 / -1; margin: 18px 0 0; padding-top: 14px; font-size: 1.05rem;
  color: var(--texte-2); border-top: 2px dashed var(--bordure);
}

.vide { text-align: center; padding: 32px 16px; color: var(--texte-2); }

/* ---------- FICHE D'UN CONCOURS ---------- */
.fil-ariane { font-size: .9rem; margin-bottom: 12px; color: var(--texte-2); }
.fil-ariane a { color: var(--texte-2); }

.alerte-fictif {
  background: var(--orange-clair); border: 2px solid var(--orange);
  color: #5C2C00; border-radius: var(--rayon); padding: 12px 14px; margin-bottom: 16px; font-weight: 600;
}

.fiche-entete { margin-bottom: 16px; }
.fiche-entete .organisme { color: var(--texte-2); font-weight: 600; }

.dates { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.date-bloc { background: var(--principal-clair); border-radius: 10px; padding: 10px 12px; }
.date-bloc .libelle { font-size: .8rem; font-weight: 700; color: var(--principal-fonce); text-transform: uppercase; letter-spacing: .03em; }
.date-bloc .valeur { font-weight: 700; }
.date-bloc.important { background: var(--orange-clair); }
.date-bloc.important .libelle { color: var(--orange-texte); }

.liste-propre { margin: 0; padding-left: 0; list-style: none; }
.liste-propre li { padding: 8px 0 8px 30px; position: relative; border-bottom: 1px solid #F3EAE2; }
.liste-propre li:last-child { border-bottom: 0; }
.liste-propre li::before {
  content: "✓"; position: absolute; left: 4px; top: 8px; color: var(--principal); font-weight: 800;
}

.tableau-conditions { width: 100%; border-collapse: collapse; }
.tableau-conditions th, .tableau-conditions td { text-align: left; padding: 8px 0; border-bottom: 1px solid #F3EAE2; vertical-align: top; }
.tableau-conditions th { width: 38%; color: var(--texte-2); font-weight: 600; padding-right: 10px; }

/* Évolution de carrière : étapes reliées par une ligne verticale */
.progression { list-style: none; margin: 0; padding: 0; counter-reset: etape; }
.progression li {
  counter-increment: etape; position: relative; padding: 4px 0 16px 44px;
  border-left: 3px solid var(--principal-clair); margin-left: 14px; padding-left: 30px;
}
.progression li:last-child { border-left-color: transparent; padding-bottom: 0; }
.progression li::before {
  content: counter(etape); position: absolute; left: -16px; top: 0; width: 29px; height: 29px;
  border-radius: 50%; background: var(--principal); color: #fff; font-weight: 800; font-size: .9rem;
  display: flex; align-items: center; justify-content: center;
}

.frais { font-size: 1.4rem; font-weight: 800; color: var(--principal-fonce); }

.fiche-bloc { margin-bottom: 16px; }
.fiche-bloc h2 { font-size: 1.15rem; }

.encart-aide {
  background: var(--sombre); border: 1px solid var(--sombre-ligne);
  color: #fff; border-radius: var(--rayon); padding: 20px 16px; margin-bottom: 16px;
  box-shadow: 0 8px 20px rgba(124,45,18,.2);
}
.encart-aide h2 { color: #fff; }
.encart-aide p { color: #FFE4D0; }
.encart-aide a.lien-adresse { color: #fff; }

.partage { display: flex; gap: 10px; flex-wrap: wrap; }
.partage .bouton { flex: 1; min-width: 140px; }
.bouton-facebook { background: #1559C4; }
.bouton-facebook:hover { background: #0F4499; }

.avertissement {
  font-size: .9rem; color: var(--texte-2); border-left: 4px solid var(--orange);
  padding: 8px 12px; background: #fff; border-radius: 0 8px 8px 0;
}

/* ---------- ENCARTS (cybercafé / YouTube) ---------- */
.encart { display: flex; flex-direction: column; gap: 10px; }
.encart-cyber { border-top: 5px solid var(--principal); }
.encart-youtube { border-top: 5px solid #CC0000; }
.encart-alertes { border-top: 5px solid var(--orange); }

/* ---------- VIDÉOS YOUTUBE (version légère) ----------
   On n'affiche qu'une image : la vraie vidéo ne se charge qu'au clic.
   Ça économise beaucoup de données sur les connexions lentes. */
.video {
  position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: 10px;
  overflow: hidden; cursor: pointer; border: 0; padding: 0; width: 100%; display: block;
}
.video img { width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.video .lecture {
  position: absolute; inset: 0; margin: auto; width: 68px; height: 48px;
  background: #CC0000; border-radius: 12px; display: flex; align-items: center; justify-content: center;
}
.video .lecture::after {
  content: ""; border-style: solid; border-width: 10px 0 10px 18px;
  border-color: transparent transparent transparent #fff; margin-left: 4px;
}
.video-lecteur { cursor: default; }
.bouton-plein-ecran { width: 100%; margin-top: 8px; min-height: 42px; font-size: .95rem; }
/* En plein écran, la vidéo occupe tout l'écran (sans arrondi ni rapport forcé) */
.video-lecteur:fullscreen { border-radius: 0; aspect-ratio: auto; width: 100%; height: 100%; }
.video-lecteur:-webkit-full-screen { border-radius: 0; width: 100%; height: 100%; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-titre { font-weight: 700; margin-top: 8px; }

/* ---------- CYBERCAFÉ ---------- */
.services { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.service {
  background: var(--carte); border: 1px solid var(--bordure); border-radius: 10px; padding: 12px;
  display: flex; flex-direction: column; gap: 4px; line-height: 1.35;
}
.service img { width: 100%; height: auto; max-width: 160px; margin: 0 auto 6px; }
/* Version photo : l'image prend toute la largeur de la carte */
.service { overflow: hidden; }
.service img.service-photo {
  max-width: none; width: calc(100% + 24px); margin: -12px -12px 8px;
  aspect-ratio: 3 / 2; object-fit: cover; background: #E5E8E3;
}

/* En-tête de la page cybercafé, avec le logo */
.cyber-entete { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.cyber-entete img { width: 92px; height: auto; background: #fff; border-radius: 12px; padding: 6px; border: 1px solid var(--bordure); flex-shrink: 0; }
.cyber-entete h1 { margin: 0; }
.logo-encart { width: 80px; height: auto; background: #fff; border-radius: 10px; }

.tarifs { width: 100%; border-collapse: collapse; }
.tarifs td { padding: 10px 0; border-bottom: 1px solid #F3EAE2; }
.tarifs td:last-child { text-align: right; font-weight: 800; white-space: nowrap; padding-left: 12px; }

.etapes { counter-reset: etape; list-style: none; padding: 0; margin: 0; }
.etapes li { counter-increment: etape; position: relative; padding: 6px 0 14px 46px; }
.etapes li::before {
  content: counter(etape); position: absolute; left: 0; top: 2px; width: 34px; height: 34px;
  border-radius: 50%; background: var(--orange); color: #1A0E00; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}

.carte-geo { width: 100%; height: 280px; border: 0; border-radius: 10px; background: #E5E8E3; }

/* ---------- FORMULAIRE ---------- */
.formulaire label { display: block; font-weight: 700; margin: 12px 0 4px; }
.formulaire input, .formulaire textarea, .formulaire select {
  width: 100%; padding: 12px; font-size: 1rem; border: 2px solid var(--bordure);
  border-radius: 10px; font-family: inherit; background: #fff; color: var(--texte);
}
.formulaire textarea { min-height: 130px; resize: vertical; }
.formulaire input:focus, .formulaire textarea:focus { outline: none; border-color: var(--principal); }
.formulaire .bouton { margin-top: 16px; }

/* ---------- DATE DE MISE À JOUR D'UNE FICHE ---------- */
.mise-a-jour { font-size: .88rem; color: var(--texte-2); margin: 6px 0 0; }
.mise-a-jour a { color: inherit; }

/* ---------- PAGE « RÉSERVER MON INSCRIPTION » ---------- */
.formulaire fieldset { border: 0; padding: 0; margin: 0 0 22px; min-width: 0; }
.formulaire legend { font-weight: 800; font-size: 1.1rem; color: var(--principal); padding: 0; margin-bottom: 4px; }
/* Cases à cocher et boutons ronds : sur une ligne, pas en pleine largeur */
.choix-multiples { display: grid; gap: 4px; }
.formulaire .choix-multiples label,
.formulaire .liste-cocher label { display: flex; align-items: flex-start; gap: 12px; font-weight: 400; margin: 0; padding: 10px 2px; min-height: 44px; cursor: pointer; }
.formulaire .choix-multiples input,
.formulaire .liste-cocher input { width: 24px; height: 24px; flex-shrink: 0; margin: 1px 0 0; padding: 0; accent-color: var(--principal); }
.formulaire .liste-cocher input:checked + span { text-decoration: none; color: var(--texte); }
.formulaire select:focus { outline: none; border-color: var(--principal); }
.champ-erreur { color: #B42318; font-weight: 700; font-size: .92rem; margin: 6px 0 0; }
.formulaire .erreur-champ { border-color: #B42318; }
.etapes-reservation { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 18px; list-style: none; counter-reset: etape; }
.etapes-reservation li {
  counter-increment: etape; flex: 1 1 180px; background: var(--principal-clair); border-radius: 10px;
  padding: 10px 12px; font-weight: 700; font-size: .95rem;
}
.etapes-reservation li::before { content: counter(etape) ". "; color: var(--principal); }

/* ---------- EMPLACEMENT PUBLICITÉ (AdSense plus tard) ---------- */
.pub {
  border: 2px dashed #B9BFB6; border-radius: 10px; color: #7A8077; font-size: .85rem;
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 100px; margin: 20px 0; background: #FAFBF9;
}

/* ---------- PIED DE PAGE ---------- */
.pied { background: var(--sombre); color: var(--sombre-texte); border-top: 1px solid var(--sombre-ligne); padding: 36px 0 90px; font-size: .95rem; }
.pied a { color: #fff; }
.pied h3 { color: var(--orange); font-size: 1rem; }
.pied-colonnes { display: grid; gap: 20px; }
.pied ul { list-style: none; padding: 0; margin: 0; }
.pied li { margin-bottom: 2px; }
/* Liens du pied de page : zone à toucher d'au moins 44 px de haut */
.pied li a, .pied p a { display: inline-flex; align-items: center; min-height: 44px; }
.pied .copyright { border-top: 1px solid #4A3326; margin-top: 20px; padding-top: 14px; font-size: .85rem; }

/* ---------- BOUTON WHATSAPP FLOTTANT ---------- */
.whatsapp-flottant {
  position: fixed; right: 16px; bottom: 16px; z-index: 60;
  display: flex; align-items: center; gap: 8px;
  background: var(--whatsapp); color: #fff; text-decoration: none; font-weight: 700;
  padding: 12px 18px; border-radius: 999px; box-shadow: 0 4px 14px rgba(0,0,0,.25);
}
.whatsapp-flottant svg { width: 24px; height: 24px; fill: #fff; }

/* ---------- TEXTE LÉGAL ---------- */
.texte-long { max-width: 720px; }
.texte-long h2 { margin-top: 1.5em; }

/* =====================================================================
   ÉCRANS PLUS LARGES (tablette, ordinateur)
   ===================================================================== */
@media (min-width: 640px) {
  .grille { grid-template-columns: 1fr 1fr; }
  .filtres { grid-template-columns: 2fr 1fr; }
  .dates { grid-template-columns: repeat(4, 1fr); }
  .services { grid-template-columns: repeat(3, 1fr); }
  .pied-colonnes { grid-template-columns: repeat(3, 1fr); }
  h1 { font-size: 2rem; }
  .essentiel { grid-template-columns: repeat(4, 1fr); }
}

/* Écrans moyens : menu de 7 liens un peu plus serré pour tenir sur une ligne */
@media (min-width: 900px) and (max-width: 1100px) {
  .menu a { padding: 8px 6px !important; font-size: .88rem !important; }
}

@media (min-width: 900px) {
  .menu-bouton { display: none; }
  .menu { display: flex !important; position: static; padding: 0; border: 0; gap: 4px; background: none; }
  .menu a { border: 0; padding: 8px 10px; font-size: .95rem; white-space: nowrap; }
  .grille-3 { grid-template-columns: repeat(3, 1fr); }
  .deux-colonnes { display: grid; grid-template-columns: 1.6fr 1fr; gap: 24px; align-items: start; }
  .colonne-collante { position: sticky; top: 76px; }
}


/* =====================================================================
   DESIGN « TABLEAU DE BORD » (inspiré de la mise en page de hostoweb.com,
   avec les couleurs d'Ivoire Concours)
   - barre d'info en haut, en-tête et bandeau sombres
   - petits surtitres en capitales précédés d'un point
   - titres très gras dont la fin est colorée
   - bande de chiffres, cartes avec icône en carré et bouton flèche
   ===================================================================== */

/* Couleur propre à chaque catégorie (petits détails des cartes) */
.cat-fonction-publique { --cat: var(--principal); }
.cat-sante { --cat: #0E9F6E; }
.cat-police-armee { --cat: #1E3A8A; }
.cat-enseignement { --cat: #7C3AED; }
.cat-ecoles-formation { --cat: #B45309; }
.cat-autres { --cat: #57534E; }

.cache-mobile { display: none; }
/* Téléphone : panneau du bandeau sans la liste (les catégories sont juste en dessous) */
.panneau .panneau-liste { display: none; }

.point { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); display: inline-block; box-shadow: 0 0 0 3px rgba(255,182,39,.2); flex-shrink: 0; }

/* ---------- En-tête ---------- */
.entete .conteneur { min-height: 64px; }
.logo { font-size: 1.35rem; letter-spacing: -.03em; }

/* ---------- Surtitres et titres de blocs ---------- */
.surtitre {
  display: block; margin: 0 0 10px; line-height: 1.5;
  font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--principal);
}
.surtitre::before { content: ""; display: inline-block; vertical-align: middle; margin: -2px 8px 0 2px; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 3px rgba(255,182,39,.25); }
.surtitre span { margin: 0 4px; }
.surtitre span { opacity: .5; }
.surtitre-clair { color: var(--orange); }
.titre-bloc { font-size: clamp(1.6rem, 1.1rem + 2vw, 2.6rem); letter-spacing: -.035em; line-height: 1.1; margin-bottom: 10px; }
.titre-bloc em, .bandeau h1 em { font-style: normal; color: var(--principal); }
.sous-titre { color: var(--texte-2); max-width: 60ch; margin-bottom: 22px; }

/* ---------- Grandes bandes de la page d'accueil ---------- */
.main-accueil { padding: 0; }
.bloc { padding: 44px 0; }
.bloc-teinte { background: var(--teinte); border-top: 1px solid var(--bordure); border-bottom: 1px solid var(--bordure); }
.bloc-sombre {
  color: #fff; position: relative; overflow: hidden;
  background:
    linear-gradient(rgba(255,182,39,.05) 1px, transparent 1px) 0 0 / 34px 34px,
    linear-gradient(90deg, rgba(255,182,39,.05) 1px, transparent 1px) 0 0 / 34px 34px,
    var(--sombre);
}
.bloc-sombre .titre-bloc em { color: var(--orange); }
.bloc-sombre-texte { color: var(--sombre-texte); }
.bloc-sombre-colonnes { display: grid; gap: 28px; align-items: center; }
.section-titre { align-items: flex-end; }

/* ---------- Bandeau d'accueil ---------- */
.bandeau {
  position: relative; overflow: hidden; color: #fff; padding: 34px 0 0;
  background:
    radial-gradient(ellipse at 85% 0%, rgba(234,88,12,.35), transparent 55%),
    radial-gradient(ellipse at 0% 100%, rgba(255,182,39,.12), transparent 50%),
    linear-gradient(rgba(255,182,39,.05) 1px, transparent 1px) 0 0 / 34px 34px,
    linear-gradient(90deg, rgba(255,182,39,.05) 1px, transparent 1px) 0 0 / 34px 34px,
    var(--sombre);
}
.bandeau .conteneur { position: relative; }
.bandeau h1 {
  font-size: clamp(1.9rem, 1.2rem + 3vw, 3.4rem); line-height: 1.05; letter-spacing: -.04em;
  max-width: 22ch; margin-bottom: 18px;
}
.bandeau h1 em { color: var(--orange); }
.bandeau-intro { color: var(--sombre-texte); font-size: clamp(1rem, .95rem + .3vw, 1.15rem); max-width: 48ch; }
.bandeau-colonnes { display: grid; gap: 26px; padding-bottom: 30px; }

/* Recherche */
.recherche { display: flex; gap: 8px; margin-top: 16px; max-width: 640px; }
.recherche input {
  flex: 1; min-width: 0; min-height: 54px; padding: 10px 16px;
  border: 2px solid transparent; border-radius: 12px; font-size: 1rem; font-family: inherit;
}
.recherche input:focus { outline: none; border-color: var(--orange); }
.recherche button { flex-shrink: 0; min-height: 54px; border-radius: 12px; }

/* Raccourcis de recherche */
.recherches-rapides { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.recherches-rapides a {
  display: inline-flex; align-items: center; min-height: 36px; padding: 4px 14px; border-radius: 10px;
  background: rgba(255,255,255,.05); border: 1px solid var(--sombre-ligne);
  color: #fff; text-decoration: none; font-weight: 700; font-size: .85rem;
}
.recherches-rapides a:hover { background: rgba(255,182,39,.15); border-color: var(--orange); }

/* Petite liste « ✓ » du bandeau */
.coches { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .9rem; font-weight: 700; }
.coches li::before { content: "✓ "; color: var(--orange); font-weight: 800; }

/* Panneau « tableau de bord » */
.panneau {
  background: rgba(43,20,10,.85); border: 1px solid var(--sombre-ligne); border-radius: 18px;
  padding: 16px; box-shadow: 0 20px 50px rgba(0,0,0,.35);
}
.panneau-haut {
  display: flex; align-items: center; gap: 8px; font-size: .68rem; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: #fff; padding-bottom: 12px; border-bottom: 1px solid var(--sombre-ligne);
}
.panneau-etat { margin-left: auto; color: var(--orange); }
.panneau-chiffres { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--sombre-ligne); }
.panneau-chiffres div { padding: 12px 10px; display: flex; flex-direction: column; gap: 2px; }
.panneau-chiffres div + div { border-left: 1px solid var(--sombre-ligne); }
.panneau-chiffres small { font-size: .64rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--sombre-texte); }
.panneau-chiffres b { font-size: 1.5rem; letter-spacing: -.03em; }
.panneau-liste { display: grid; gap: 8px; padding-top: 12px; }
.panneau-liste a {
  display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 12px; border-radius: 10px;
  border: 1px solid var(--sombre-ligne); background: rgba(255,182,39,.04); color: #fff; text-decoration: none; font-weight: 700; font-size: .92rem;
}
.panneau-liste a:hover { border-color: var(--orange); background: rgba(255,182,39,.1); }
.panneau-icone { width: 28px; text-align: center; }
.panneau-nombre { margin-left: auto; color: var(--orange); font-weight: 800; }

/* Bas du bandeau */
.bandeau-pied { border-top: 1px solid var(--sombre-ligne); font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.bandeau-pied .conteneur { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 50px; }
.bandeau-pied a { color: var(--orange); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }

/* Bande de chiffres clés */
.bande-chiffres { background: var(--teinte); border-bottom: 1px solid var(--bordure); }
.bande-chiffres ul { list-style: none; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); }
.bande-chiffres li { padding: 16px 14px; display: flex; flex-direction: column; gap: 2px; }
.bande-chiffres li + li { border-left: 1px solid var(--bordure); }
.bande-chiffres strong { font-size: 1.6rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.bande-chiffres span { font-size: .8rem; color: var(--texte-2); font-weight: 600; }

/* ---------- Boutons ---------- */
.bouton { border-radius: 12px; font-weight: 800; letter-spacing: -.01em; }
.fleche {
  display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px;
  border-radius: 7px; background: rgba(0,0,0,.12); font-size: .85rem;
}
.bouton-clair { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.35); }
.bouton-clair:hover { background: rgba(255,255,255,.08); }
.lien-fleche { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 800; text-decoration: none; color: var(--principal); }
.lien-fleche span {
  display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 9px;
  background: var(--orange); color: #1A0E00;
}
.lien-fleche-clair { color: #fff; }

/* Petit carré « ↗ » des cartes */
.fleche-carree {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 34px; height: 34px; border-radius: 10px; background: var(--orange); color: #1A0E00; font-weight: 800;
  transition: transform .15s;
}

/* ---------- Cartes ---------- */
.carte { border-radius: 16px; box-shadow: 0 1px 2px rgba(30,13,6,.04); }
.carte-concours { border-left: 1px solid var(--bordure); padding: 18px; gap: 10px; box-shadow: 0 1px 2px rgba(30,13,6,.04); }
.carte-concours::before { content: ""; display: block; width: 34px; height: 4px; border-radius: 4px; background: var(--cat, var(--principal)); }
.carte-concours:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(30,13,6,.1); border-color: var(--orange); }
.carte-concours:hover .fleche-carree { transform: translate(2px, -2px); }
.carte-concours h3 { font-size: 1.1rem; letter-spacing: -.02em; }
.carte-pied { border-top: 1px solid var(--bordure); padding-top: 12px; }
.etiquette { border-radius: 8px; letter-spacing: .01em; }
.infos-cles span { border-radius: 8px; font-weight: 600; }

/* Cartes des catégories (accueil) – téléphone : compactes */
.grille-categories { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tuile-categorie {
  position: relative; display: flex; flex-direction: column; gap: 4px; padding: 12px; min-height: 0;
  background: var(--carte); border: 1px solid var(--bordure); border-radius: 16px;
  text-decoration: none; color: var(--texte); transition: transform .15s, box-shadow .15s, border-color .15s;
}
.tuile-categorie:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(30,13,6,.1); border-color: var(--orange); }
.tuile-surtitre { display: none; font-size: .66rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--cat, var(--principal)); }
.tuile-icone {
  width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  font-size: 1.05rem; background: var(--teinte); border: 1px solid var(--bordure);
}
.tuile-nom { font-weight: 800; font-size: .92rem; line-height: 1.2; letter-spacing: -.01em; }
.tuile-pied { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; }
.tuile-nombre { font-size: .78rem; color: var(--texte-2); }
.tuile-nombre b { color: var(--texte); }
.tuile-pied .fleche-carree { width: 28px; height: 28px; border-radius: 8px; font-size: .85rem; }
.tuile-categorie:hover .fleche-carree { transform: translate(2px, -2px); }

/* Comment ça marche : bande d'atouts */
.etapes-accueil { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; }
.etapes-accueil li {
  display: grid; grid-template-columns: auto 1fr; column-gap: 14px; row-gap: 2px; align-items: start;
  background: var(--carte); border: 1px solid var(--bordure); border-radius: 16px; padding: 16px;
}
.etape-icone {
  grid-row: span 2; width: 44px; height: 44px; border-radius: 12px; background: var(--teinte); border: 1px solid var(--bordure);
  display: flex; align-items: center; justify-content: center; font-size: 1.25rem;
}
.etapes-accueil li strong { font-size: 1.02rem; letter-spacing: -.01em; }
.etapes-accueil li span:last-child { color: var(--texte-2); font-size: .93rem; }

/* Échéances */
.carte-echeances { margin-top: 18px; }
.carte-echeances h3 { font-size: 1.25rem; }

/* Panneau du Cyber ADM (bloc sombre) */
.panneau-cyber-logo { display: flex; justify-content: center; padding: 14px 0; }
.panneau-cyber-logo img { width: 110px; height: auto; background: #fff; border-radius: 14px; padding: 6px; }
.panneau-services { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 8px; }
.panneau-services li {
  padding: 8px 12px; border-radius: 10px; border: 1px solid var(--sombre-ligne); background: rgba(255,182,39,.04);
  font-weight: 700; font-size: .92rem;
}
.panneau-services li::before { content: "✓ "; color: var(--orange); }

/* Encarts de la dernière bande */
.encart { border-top: 1px solid var(--bordure); }
.encart h3 { font-size: 1.2rem; margin: 0; }
.encart p { margin: 0; }
.encart .boutons { margin-top: auto; }

/* Bandeau de page (en haut des fiches et des listes) : titre principal un peu plus serré */
main h1 { letter-spacing: -.035em; }

/* =====================================================================
   DESIGN « TABLEAU DE BORD » : écrans plus larges
   ===================================================================== */
@media (min-width: 640px) {
  .cache-mobile { display: inline-flex; }
  .panneau .panneau-liste { display: grid; }
  .bande-chiffres li { padding: 20px 18px; }
  .bande-chiffres strong { font-size: 1.9rem; }
  .grille-categories { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .tuile-categorie { padding: 18px; gap: 6px; min-height: 170px; }
  .tuile-surtitre { display: block; }
  .tuile-icone { position: absolute; top: 16px; right: 16px; width: 42px; height: 42px; font-size: 1.3rem; }
  .tuile-nom { font-size: 1.15rem; margin-top: 18px; padding-right: 10px; }
  .tuile-pied { border-top: 1px solid var(--bordure); padding-top: 12px; }
  .tuile-pied .fleche-carree { width: 34px; height: 34px; border-radius: 10px; }
  .etapes-accueil { grid-template-columns: repeat(3, 1fr); }
  .etapes-accueil li { grid-template-columns: 1fr; row-gap: 6px; }
  .etape-icone { grid-row: auto; margin-bottom: 6px; }
}

@media (min-width: 900px) {
  /* Menu en petites capitales, comme une barre d'outils */
  .menu a { font-size: .76rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 8px 10px; position: relative; }
  .menu a[aria-current="page"]::after {
    content: ""; position: absolute; left: 50%; bottom: 0; width: 5px; height: 5px; margin-left: -2px;
    border-radius: 50%; background: var(--orange);
  }
  .grille-categories { grid-template-columns: repeat(5, 1fr); }
  .bloc { padding: 64px 0; }
  .bandeau { padding-top: 48px; }
  .bandeau-colonnes { grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: start; padding-bottom: 44px; }
  .bloc-sombre-colonnes { grid-template-columns: 1.1fr .9fr; gap: 48px; }
}

/* Grands écrans : titre d'accueil sur une seule ligne, au-dessus des deux colonnes */
@media (min-width: 1200px) {
  .bandeau h1 { max-width: none; font-size: 2.45rem; white-space: nowrap; }
}
@media (min-width: 1400px) {
  :root { --largeur-max: 1280px; }
  .bandeau h1 { font-size: 2.95rem; }
  .recherche { max-width: 720px; }
}
@media (min-width: 1900px) {
  :root { --largeur-max: 1480px; }
  .bandeau h1 { font-size: 3.45rem; }
}

/* ---------- PAGE CYBERCAFÉ (même style que l'accueil) ---------- */
/* Infos pratiques dans le panneau du bandeau */
.panneau-infos { display: grid; gap: 8px; padding-top: 12px; }
.panneau-infos div {
  display: flex; align-items: flex-start; gap: 10px; padding: 8px 12px; border-radius: 10px;
  border: 1px solid var(--sombre-ligne); background: rgba(255,182,39,.04); font-weight: 600; font-size: .9rem; line-height: 1.35;
}
.panneau .panneau-cyber-logo { padding: 12px 0; }
.panneau-chiffres b { font-size: 1.25rem; }

/* Cartes des services */
.grille-services { display: grid; grid-template-columns: 1fr; gap: 12px; }
.carte-service {
  display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: 16px;
  background: var(--carte); border: 1px solid var(--bordure); color: var(--texte); text-decoration: none;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.carte-service:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(30,13,6,.1); border-color: var(--orange); }
.carte-service:hover .fleche-carree { transform: translate(2px, -2px); }
.carte-service-haut { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.carte-service .tuile-surtitre { display: block; }
.carte-service-image {
  width: 64px; height: 52px; flex-shrink: 0; border-radius: 12px; background: var(--teinte); border: 1px solid var(--bordure);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.carte-service-image img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.carte-service strong { font-size: 1.08rem; letter-spacing: -.02em; line-height: 1.25; }
.carte-service-texte { color: var(--texte-2); font-size: .92rem; line-height: 1.45; }
.carte-service .tuile-pied { border-top: 1px solid var(--bordure); padding-top: 10px; margin-top: auto; }
.carte-service .tuile-nombre { font-weight: 700; color: var(--principal); font-size: .85rem; }
/* La carte « Inscriptions » est mise en avant, en sombre */
.carte-service-sombre { background: var(--sombre); border-color: var(--sombre); color: #fff; }
.carte-service-sombre .tuile-surtitre { color: var(--orange); }
.carte-service-sombre .carte-service-texte { color: var(--sombre-texte); }
.carte-service-sombre .carte-service-image { background: #fff; border-color: transparent; }
.carte-service-sombre .tuile-pied { border-top-color: var(--sombre-ligne); }
.carte-service-sombre .tuile-nombre { color: var(--orange); }

/* Étapes à 4 cases */
.etapes-4 li span:last-child { color: var(--texte-2); }

/* Cartes des tarifs */
.grille-tarifs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.carte-tarif {
  display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: 16px;
  background: var(--carte); border: 1px solid var(--bordure);
}
.carte-tarif .tuile-surtitre { display: block; }
.carte-tarif strong { font-size: .95rem; line-height: 1.3; letter-spacing: -.01em; }
.carte-tarif-prix {
  margin-top: auto; padding-top: 10px; border-top: 1px solid var(--bordure);
  font-size: 1.5rem; font-weight: 800; letter-spacing: -.03em; color: var(--principal-fonce);
}

/* Horaires sur fond sombre */
.horaires-sombre { width: 100%; border-collapse: collapse; margin-top: 8px; }
.horaires-sombre td { padding: 10px 0; border-bottom: 1px solid var(--sombre-ligne); color: var(--sombre-texte); }
.horaires-sombre td:last-child { text-align: right; font-weight: 800; color: #fff; }
.bloc-sombre a:not(.bouton) { color: var(--orange); }
.panneau-carte { height: 320px; margin-top: 12px; border-radius: 12px; }

@media (min-width: 640px) {
  .grille-services { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .grille-tarifs { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .etapes-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .grille-services { grid-template-columns: repeat(3, 1fr); }
  .etapes-4 { grid-template-columns: repeat(4, 1fr); }
  .panneau-carte { height: 380px; }
}
@media (min-width: 1200px) {
  .grille-services { grid-template-columns: repeat(4, 1fr); }
}

/* Téléphone : cartes de services compactes, 2 par ligne (la carte « Inscriptions » prend toute la largeur) */
@media (max-width: 639px) {
  .grille-services { grid-template-columns: 1fr 1fr; gap: 10px; }
  .carte-service { padding: 12px; gap: 6px; }
  .carte-service .tuile-surtitre, .carte-service-texte, .carte-service .tuile-nombre { display: none; }
  .carte-service-image { width: 44px; height: 38px; border-radius: 10px; }
  .carte-service strong { font-size: .9rem; }
  .carte-service .tuile-pied { justify-content: flex-end; padding-top: 8px; }
  .carte-service .fleche-carree { width: 28px; height: 28px; border-radius: 8px; font-size: .85rem; }
  .carte-service-sombre { grid-column: 1 / -1; }
  .carte-service-sombre .tuile-surtitre, .carte-service-sombre .carte-service-texte, .carte-service-sombre .tuile-nombre { display: block; }
  .carte-service-sombre .tuile-pied { justify-content: space-between; }
}

/* Texte affiché seulement sur téléphone */
@media (min-width: 640px) { .cache-pc { display: none; } }

/* Slogan « Petits prix, grandes chances » (page Cybercafé) */
.slogan-prix {
  position: relative; overflow: hidden; border-radius: 20px; padding: 26px 20px;
  background: linear-gradient(135deg, var(--orange-clair), var(--principal-clair));
  border: 1px solid var(--bordure);
}
.slogan-prix .titre-bloc { font-size: clamp(2rem, 1.3rem + 3vw, 3.4rem); }
.slogan-texte { font-size: clamp(1.02rem, .95rem + .35vw, 1.25rem); max-width: 52ch; color: var(--texte); }
.coches-sombres li::before { color: var(--principal); }
@media (min-width: 900px) { .slogan-prix { padding: 40px 44px; } }
/* Panneau du bandeau Cybercafé : repères en texte (pas de prix) */
#panneau-prix b { font-size: 1.02rem; letter-spacing: -.01em; }

/* Téléphone : chiffres de la bande un peu plus petits pour que « Petits prix » tienne */
@media (max-width: 639px) { .bande-chiffres strong { font-size: 1.25rem; } .bande-chiffres li { padding: 14px 10px; } }

/* Rubrique « Vers l'université » : encadré du point de départ */
.depart-universite { background: var(--orange-clair); border: 1px solid var(--bordure); border-left: 4px solid var(--orange); border-radius: 12px; padding: 12px 14px; margin: 10px 0 16px; }
.depart-universite strong { display: block; margin-bottom: 4px; }
.depart-universite p { margin: 0; font-size: .95rem; line-height: 1.5; }

/* Cadre unique « Les plus demandés » (page Cybercafé) */
.cadre-vedettes {
  grid-column: 1 / -1; background: var(--sombre); color: #fff; border-radius: 18px; padding: 18px;
  border: 1px solid var(--sombre-ligne);
}
.cadre-vedettes .surtitre { margin-bottom: 12px; }
.cadre-vedettes-liste { display: grid; gap: 10px; }
.vedette {
  display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; text-decoration: none; color: #fff;
  border: 1px solid var(--sombre-ligne); background: rgba(255,182,39,.04); transition: border-color .15s, background .15s;
}
.vedette:hover { border-color: var(--orange); background: rgba(255,182,39,.1); }
.vedette .carte-service-image { background: #fff; border-color: transparent; }
.vedette-texte { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.vedette-texte strong { font-size: 1rem; letter-spacing: -.01em; line-height: 1.25; }
.vedette-texte span { color: var(--sombre-texte); font-size: .88rem; line-height: 1.4; }
.vedette-action { display: inline-flex; align-items: center; gap: 8px; color: var(--orange); font-weight: 800; font-size: .88rem; white-space: nowrap; }
.vedette:hover .fleche-carree { transform: translate(2px, -2px); }
@media (max-width: 639px) {
  .vedette { flex-wrap: wrap; }
  .vedette-texte span { display: block; }
  .vedette-action { width: 100%; justify-content: space-between; padding-top: 8px; border-top: 1px solid var(--sombre-ligne); }
}
@media (min-width: 900px) {
  .cadre-vedettes { padding: 22px; }
  .cadre-vedettes-liste { grid-template-columns: repeat(3, 1fr); }
  .vedette { flex-direction: column; align-items: flex-start; height: 100%; }
  .vedette-action { margin-top: auto; padding-top: 10px; }
}
