/* =========================================================================
   STUDIA PRO — le langage visuel
   =========================================================================

   RELEVÉ SUR PIÈCE, pas de mémoire. Le client a fourni un accès à
   live.pro-compta.fr et demandé que Studia Pro en reprenne le design. Les
   valeurs ci-dessous sont celles que le navigateur CALCULE sur cette
   plateforme, relevées écran par écran — pas celles que j'aurais devinées
   d'après une capture.

   Ce fichier ne contient que des JETONS et les composants de base. Il
   n'habille encore aucun écran : le poser d'abord évite que chaque page
   réinvente sa propre nuance d'orange.
   ========================================================================= */

:root {
  /* --- Les couleurs mesurées --------------------------------------------
     L'orange est l'accent unique : badges, boutons, barres de progression,
     soulignements. Le bleu nuit porte les médias et les pieds de carte. Le
     gris très clair alterne avec le blanc d'une section à l'autre — c'est ce
     qui donne le rythme vertical de la page. */
  --pro-orange: #0EA07B;          /* mesuré : rgb(250,167,51) */
  --pro-orange-fonce: #0B7F61;
  --pro-orange-voile: rgba(14, 160, 123, .14);

  --pro-nuit: #0C2234;            /* bandeaux de carte, pieds, titres */
  --pro-nuit-clair: #14344F;

  --pro-page: #F7F7F7;            /* mesuré : rgb(247,247,247) */
  --pro-surface: #FFFFFF;
  --pro-encre: #333333;           /* mesuré : rgb(51,51,51) */
  --pro-texte-doux: #5F6B7A;
  --pro-texte-faible: #8A94A3;
  --pro-bord: #E4E7EC;

  --pro-vert: #2BA84A;            /* la pastille « terminé » */
  --pro-bleu-lien: #2563C9;       /* la ligne de catégorie sur les cartes */

  /* --- Les formes --------------------------------------------------------
     6 px partout : c'est le rayon mesuré sur les cartes ET sur les boutons.
     L'ombre est basse et large, jamais portée. */
  --pro-rayon: 6px;
  --pro-ombre: 0 1px 5px rgba(0, 0, 0, .15);
  --pro-ombre-forte: 0 4px 14px rgba(16, 40, 74, .16);

  /* --- Les polices -------------------------------------------------------
     Lato pour le corps en 16 px, Oxygen pour les titres en 40 px. Les deux
     sont libres et servies par Google Fonts. */
  --pro-police: 'Lato', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --pro-police-titre: 'Oxygen', 'Lato', system-ui, sans-serif;
}

/* =========================================================================
   LES SECTIONS — le rythme de la page
   =========================================================================
   La page alterne blanc et gris clair d'une section à l'autre. C'est ce qui
   sépare « Prochains lives » de « Tous vos cours » sans tracer un seul
   filet. */

/* LE GRIS S'EN VA. Le client l'a demandé : « je ne veux pas du gris ».
   L'alternance blanc/gris donnait son rythme vertical au modèle, mais elle
   faisait ici des bandes ternes sur des écrans déjà sobres. Les sections sont
   blanches, et c'est un FILET qui les sépare — il suffit à dire où l'une
   finit, sans teinter la moitié de la page. */
.pro-section { padding: 38px 0; background: var(--pro-surface); }
.pro-section + .pro-section { border-top: 1px solid var(--pro-bord); }
.pro-section.pro-section-grise { background: var(--pro-surface); }

.pro-section-corps { max-width: 1290px; margin: 0 auto; padding: 0 24px; }

/* Les titres de section sont en petites capitales : la première lettre reste
   haute, les autres descendent. C'est la signature typographique du modèle,
   et sans elle le titre ne ressemble à rien d'autre qu'un h2 ordinaire. */
.pro-section-titre {
  margin: 0 0 22px;
  font-family: var(--pro-police-titre);
  font-size: 1.62rem;
  font-weight: 700;
  font-variant: small-caps;
  letter-spacing: .01em;
  color: var(--pro-nuit);
}

/* =========================================================================
   LE BANDEAU D'OUVERTURE — la prochaine échéance
   =========================================================================
   Une photographie assombrie, la date en très gros chiffres orange à gauche,
   un filet vertical, puis le titre en blanc. C'est la première chose que
   l'élève voit, et elle répond à « qu'est-ce qui m'attend ». */

.pro-bandeau {
  position: relative;
  display: flex; align-items: center; gap: 34px;
  min-height: 330px;
  padding: 40px 24px;
  background: var(--pro-nuit) center/cover no-repeat;
  color: #fff;
  overflow: hidden;
}

/* Le voile : sans lui, un titre blanc sur une photographie claire devient
   illisible, et on ne peut pas choisir les photographies à l'avance. */
.pro-bandeau::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(8, 20, 38, .86) 0%, rgba(8, 20, 38, .62) 58%, rgba(8, 20, 38, .45) 100%);
}

.pro-bandeau-corps {
  position: relative;
  display: flex; align-items: center; gap: 34px; flex-wrap: wrap;
  max-width: 1290px; margin: 0 auto; width: 100%;
}

.pro-bandeau-date { flex-shrink: 0; text-align: left; }

.pro-bandeau-jour {
  display: flex; align-items: baseline; gap: 12px;
  font-family: var(--pro-police-titre);
  color: var(--pro-orange);
}

.pro-bandeau-nombre { font-size: 4.6rem; font-weight: 700; line-height: .9; }
.pro-bandeau-mois { font-size: 1.9rem; font-weight: 400; line-height: 1.1; }

.pro-bandeau-heure {
  margin-top: 14px; padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, .34);
  font-size: 1.02rem; color: rgba(255, 255, 255, .92);
}

/* Le filet vertical qui sépare la date du titre. Il est orange et fin : c'est
   lui qui fait lire les deux blocs comme une seule annonce. */
.pro-bandeau-filet {
  flex-shrink: 0; width: 2px; align-self: stretch; min-height: 118px;
  background: var(--pro-orange);
}

.pro-bandeau-texte { flex: 1; min-width: 0; }

.pro-bandeau-surtitre {
  margin: 0 0 6px;
  font-size: 1.02rem; color: var(--pro-orange);
}

.pro-bandeau-titre {
  margin: 0 0 20px;
  font-family: var(--pro-police-titre);
  font-size: 2.5rem; font-weight: 700; line-height: 1.12;
  color: #fff;
}

/* =========================================================================
   LA BARRE DE RECHERCHE — une bande blanche à part entière
   =========================================================================
   Elle n'est pas dans l'en-tête : elle occupe sa propre bande, entre le
   bandeau et le contenu. La loupe est orange, le champ sans bordure. */

.pro-recherche {
  background: var(--pro-surface);
  border-bottom: 1px solid var(--pro-bord);
}

.pro-recherche-corps {
  display: flex; align-items: center; gap: 14px;
  max-width: 1290px; margin: 0 auto; padding: 0 24px;
  height: 58px;
}

.pro-recherche svg { width: 20px; height: 20px; color: var(--pro-orange); flex-shrink: 0; }

.pro-recherche input {
  flex: 1; min-width: 0;
  border: 0; border-left: 1px solid var(--pro-bord);
  padding: 8px 0 8px 16px;
  font: inherit; font-size: 1.02rem; color: var(--pro-encre);
  background: transparent;
}

.pro-recherche input::placeholder { color: var(--pro-texte-faible); }
.pro-recherche input:focus { outline: none; }

/* =========================================================================
   LA CARTE DE MATIÈRE — titre, icône, compte, progression
   =========================================================================
   C'est la carte la plus employée du modèle. La barre de progression est
   POSÉE SUR LE BORD BAS, pas au-dessus : elle fait office de soulignement et
   ne coûte aucune hauteur. */

.pro-grille {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 248px), 1fr));
}

.pro-carte {
  position: relative;
  display: flex; flex-direction: column; gap: 10px;
  min-height: 132px;
  padding: 18px 18px 22px;
  background: var(--pro-surface);
  border-radius: var(--pro-rayon);
  box-shadow: var(--pro-ombre);
  overflow: hidden;
  transition: box-shadow .18s ease, transform .18s ease;
}

.pro-carte:hover { box-shadow: var(--pro-ombre-forte); transform: translateY(-2px); }

.pro-carte-tete { display: flex; align-items: flex-start; gap: 12px; }

.pro-carte-titre {
  flex: 1; min-width: 0; margin: 0;
  font-size: .98rem; font-weight: 700; line-height: 1.34;
  color: var(--pro-nuit);
}

/* L'icône est un trait orange, jamais un aplat : sur une carte blanche, un
   aplat de couleur tirerait l'œil avant le titre. */
.pro-carte-icone {
  flex-shrink: 0; width: 38px; height: 38px;
  display: grid; place-items: center;
  color: var(--pro-orange);
}

.pro-carte-icone svg { width: 100%; height: 100%; stroke-width: 1.2; }

.pro-carte-compte {
  margin: auto 0 0;
  font-size: .86rem; color: var(--pro-texte-doux);
}

/* --- La progression, sur le bord bas ----------------------------------- */

.pro-jauge {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 5px; background: var(--pro-bord);
}

.pro-jauge i {
  display: block; height: 100%;
  background: var(--pro-orange);
  /* Le bout biseauté : c'est ce qui distingue cette jauge d'un simple trait,
     et il disparaît quand la barre est pleine. */
  clip-path: polygon(0 0, 100% 0, calc(100% - 5px) 100%, 0 100%);
}

.pro-jauge.pro-jauge-pleine i { clip-path: none; }

.pro-part {
  position: absolute; right: 12px; bottom: 9px;
  font-size: .78rem; font-weight: 700; color: var(--pro-orange);
}

/* =========================================================================
   LA CARTE À BANDEAU — annales, épreuves, diffusions
   =========================================================================
   Un bandeau bleu nuit en haut, le titre en blanc dessus, des étiquettes, et
   un pied bleu nuit. C'est la carte des ANNALES du modèle — celle qui servira
   aux épreuves. */

.pro-carte-media {
  display: flex; flex-direction: column;
  background: var(--pro-surface);
  border-radius: var(--pro-rayon);
  box-shadow: var(--pro-ombre);
  overflow: hidden;
  transition: box-shadow .18s ease, transform .18s ease;
}

.pro-carte-media:hover { box-shadow: var(--pro-ombre-forte); transform: translateY(-2px); }

.pro-bandeau-carte {
  position: relative;
  min-height: 118px; padding: 16px 16px 12px;
  background: var(--pro-nuit) center/cover no-repeat;
  color: #fff;
}

/* LE VOILE LAISSE VOIR LA PHOTOGRAPHIE.
   À 72 → 88 % d'opacité, l'image était là mais ne se devinait plus : les
   cartes redevenaient des aplats sombres, ce que le client ne voulait
   justement pas. On descend à 38 % en haut — assez pour que l'image existe —
   et on remonte à 82 % en bas, là où posent le titre et les étiquettes, qui
   doivent rester lisibles quelle que soit la photographie déposée. */
.pro-bandeau-carte::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8, 20, 38, .38) 0%, rgba(8, 20, 38, .62) 45%, rgba(8, 20, 38, .82) 100%);
}

.pro-bandeau-carte > * { position: relative; }

.pro-bandeau-carte h3 {
  margin: 0 0 8px;
  font-family: var(--pro-police-titre);
  font-size: 1.32rem; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase;
  /* Une ombre portée discrète : le voile ne peut pas tout garantir sur une
     photographie très claire, et on ne choisit pas les images déposées. */
  text-shadow: 0 1px 3px rgba(8, 20, 38, .55);
}

/* Le soulignement orange sous le titre du bandeau. */
.pro-bandeau-carte h3::after {
  content: ''; display: block; width: 92px; height: 3px;
  margin-top: 7px; background: var(--pro-orange);
}

.pro-etiquette-annee {
  display: inline-block; padding: 3px 11px;
  background: var(--pro-orange); color: var(--pro-nuit);
  font-size: .82rem; font-weight: 700;
}

.pro-etiquette-ue {
  display: inline-block; padding: 2px 9px;
  background: var(--pro-bleu-lien); color: #fff;
  font-size: .72rem; font-weight: 700;
}

.pro-carte-corps { flex: 1; display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; }

.pro-carte-categorie { font-size: .82rem; line-height: 1.4; color: var(--pro-bleu-lien); }

.pro-carte-nom { margin: 0; font-size: .95rem; font-weight: 700; line-height: 1.35; color: var(--pro-nuit); }

/* Le pied bleu nuit : une barre pleine, pas un filet. */
.pro-carte-pied { height: 7px; background: var(--pro-nuit); }

/* La pastille « terminé » : un rond blanc, une coche verte. */
.pro-fait {
  position: absolute; top: 12px; right: 12px;
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  background: #fff; color: var(--pro-vert);
  box-shadow: 0 1px 4px rgba(0, 0, 0, .25);
}

.pro-fait svg { width: 17px; height: 17px; }

/* =========================================================================
   LES BOUTONS
   =========================================================================
   Mesurés : fond orange, texte ENCRE et non blanc — c'est ce qui les rend
   lisibles sur l'orange clair —, rayon 6 px, rembourrage 9/24. */

.pro-bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 9px 24px;
  border: 0; border-radius: var(--pro-rayon);
  background: var(--pro-orange); color: var(--pro-encre);
  font: inherit; font-size: 1rem; font-weight: 600;
  cursor: pointer; white-space: nowrap;
  transition: background .18s ease;
}

.pro-bouton:hover { background: var(--pro-orange-fonce); }

.pro-bouton-nuit { background: var(--pro-nuit); color: #fff; }
.pro-bouton-nuit:hover { background: var(--pro-nuit-clair); }

.pro-bouton-contour {
  background: transparent; color: var(--pro-nuit);
  border: 1.5px solid var(--pro-bord);
}
.pro-bouton-contour:hover { border-color: var(--pro-orange); background: var(--pro-orange-voile); }

/* =========================================================================
   ÉCRANS ÉTROITS
   ========================================================================= */

@media (max-width: 860px) {
  .pro-bandeau { min-height: 250px; padding: 28px 18px; }
  .pro-bandeau-corps { gap: 18px; }
  .pro-bandeau-nombre { font-size: 3.2rem; }
  .pro-bandeau-mois { font-size: 1.4rem; }
  .pro-bandeau-titre { font-size: 1.68rem; }
  /* Le filet vertical n'a plus de sens quand les deux blocs s'empilent. */
  .pro-bandeau-filet { display: none; }
  .pro-section { padding: 26px 0; }
  .pro-section-titre { font-size: 1.34rem; }
}

@media (prefers-reduced-motion: reduce) {
  .pro-carte, .pro-carte-media { transition: none; }
  .pro-carte:hover, .pro-carte-media:hover { transform: none; }
}

/* =========================================================================
   LES BLOCS PROPRES AU TABLEAU DE BORD
   ========================================================================= */

/* --- La carte de séance, avec sa date en tête --------------------------- */

.pro-date-carte { text-decoration: none; }

.pro-date-tete {
  display: flex; align-items: baseline; gap: 10px;
  padding: 16px 16px 6px;
  font-family: var(--pro-police-titre);
  color: var(--pro-nuit);
}

.pro-date-nombre { font-size: 2.4rem; font-weight: 700; line-height: .95; }
.pro-date-mois { font-size: 1rem; font-weight: 700; line-height: 1.2; }

.pro-date-heure {
  margin: 0 16px; padding: 7px 0;
  border-top: 1px solid var(--pro-bord); border-bottom: 1px solid var(--pro-bord);
  font-size: .84rem; color: var(--pro-texte-doux); text-align: center;
}

/* --- La liste simple ----------------------------------------------------- */

.pro-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }

.pro-liste a {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 14px 18px;
  background: var(--pro-surface); border-radius: var(--pro-rayon);
  box-shadow: var(--pro-ombre); text-decoration: none;
  transition: box-shadow .18s ease;
}

.pro-liste a:hover { box-shadow: var(--pro-ombre-forte); }

.pro-liste-titre { font-weight: 700; color: var(--pro-nuit); }
.pro-liste-detail { font-size: .86rem; color: var(--pro-texte-doux); }

.pro-echeance {
  margin-left: auto; padding: 3px 11px; border-radius: 999px;
  background: var(--pro-orange-voile); color: var(--pro-orange-fonce);
  font-size: .78rem; font-weight: 700; white-space: nowrap;
}

/* Une échéance dépassée ne se lit pas comme les autres. */
.pro-echeance-passee { background: rgba(200, 40, 40, .12); color: #B42318; }

/* --- Le trio de suivi ---------------------------------------------------- */

.pro-trio { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }

.pro-bloc .pro-section-titre { font-size: 1.16rem; margin-bottom: 12px; }

.pro-bloc-ligne {
  margin: 0 0 9px; padding-bottom: 9px;
  border-bottom: 1px solid var(--pro-bord);
}
.pro-bloc-ligne:last-child { border-bottom: 0; }
.pro-bloc-ligne strong { display: block; font-size: .92rem; color: var(--pro-nuit); font-weight: 700; }
.pro-bloc-ligne span { font-size: .82rem; color: var(--pro-texte-doux); }

.pro-bloc-vide { margin: 0; font-size: .86rem; color: var(--pro-texte-faible); }

/* --- L'état vide d'une section ------------------------------------------ */

.pro-vide {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 40px 24px; text-align: center;
  background: var(--pro-surface); border-radius: var(--pro-rayon);
  box-shadow: var(--pro-ombre);
}

.pro-vide h3 { margin: 0; font-size: 1.08rem; color: var(--pro-nuit); }
.pro-vide p { margin: 0; max-width: 52ch; font-size: .9rem; color: var(--pro-texte-doux); }
