/* MDE Conseil — style « pupitre » de mde-conseil.fr.
   La DA Pupitre telle qu'elle est (pupitre.css, ses jetons et ses composants), posée sur la structure
   simple de lovable.dev : barre collée avec un menu déroulant, grand titre centré, le générateur
   d'idées au centre. Choisi par Michael le 04/12/2026, à la place de la déclinaison floraison.
   Ce qui fait Pupitre : Sofia Sans Extra Condensed Black en capitales pour les titres, Rubik medium
   pour le texte, tout rond (blocs de 32 px, pilules), étiquettes ( entre parenthèses ), le rouge et ↳
   pour l'action principale, le citron en signature (le contact), les objets low poly sur le pastel
   de la famille, la boussole qui chevauche le titre. Pas de mots étalés ni de nom géant en pied :
   on garde la simplicité.
   Se charge après pupitre.css, avec la classe pp-pupitre sur <body>. Source : commun/styles/pupitre.css
   (vitrines construire pupitre la recopie dans le site sous css/commun.css).

   1. Les réglages : polices hébergées, jetons de mise en page.
   2. La mise en page : barre, accueil et générateur, sections, agences, contact, pied. */

/* Polices hébergées dans le site (CSP) */
@font-face {
  font-family: "Sofia Sans Extra Condensed";
  font-style: normal;
  font-weight: 800 900;
  font-display: swap;
  src: url("fonts/sofia-sans-extra-condensed-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Rubik";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/rubik-latin.woff2") format("woff2");
}

/* --- 1. Réglages ------------------------------------------------------------------------ */
.pp-pupitre {
  --largeur: 1200px;
  --marge: max(20px, calc((100% - var(--largeur)) / 2));
  --hauteur-barre: 68px;
  --filet: color-mix(in srgb, var(--encre) 14%, transparent);
  --sur-nuit-2: color-mix(in srgb, var(--sur-nuit) 82%, transparent);
  /* Une seule échelle de titres, celle de Pupitre (affiche-l 80, puis 56, affiche-m 44) */
  --titre-1: clamp(44px, 6vw, 80px);
  --titre-2: clamp(36px, 4.4vw, 56px);
  --titre-3: clamp(32px, 3.2vw, 44px);
  --section: clamp(56px, 7vw, 96px);
  font-size: 17px;
  line-height: 1.55;
}
.pp-pupitre [hidden] { display: none !important; }
.pp-pupitre ::selection { background: var(--citron); color: var(--sur-citron); }
.pp-pupitre .pp-affiche { font-size: var(--titre-2); line-height: .88; }

/* --- 2. Mise en page -------------------------------------------------------------------- */
html { scroll-behavior: smooth; scroll-padding-top: var(--hauteur-barre, 68px); }
body.pp-pupitre { overflow-x: hidden; }
.pp-pupitre :is(p, h1, h2, h3) { margin: 0; }
.invisible { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.evitement { position: absolute; left: -999px; }
.evitement:focus { left: 16px; top: 16px; z-index: 30; padding: 10px 18px; border-radius: var(--rayon-pilule); background: var(--citron); color: var(--sur-citron); font-weight: 600; }

/* Le contenu tient dans --largeur ; les blocs arrondis (accueil, méthode, contact) aussi */
.pp-pupitre :is(.barre, main > section, .pied) { box-sizing: border-box; width: 100%; margin: 0; padding-inline: var(--marge); }
.pp-pupitre main > section { padding-block: var(--section); }
.pp-pupitre main > :is(.accueil, .idee, .contact) { width: auto; margin-inline: var(--marge); padding: clamp(32px, 5vw, 64px) clamp(20px, 5vw, 64px); border-radius: var(--rayon-l); }

/* Barre : collée en haut, la marque en rouge, le menu au centre, la pilule rouge à droite */
.barre { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 16px 24px; min-height: var(--hauteur-barre); background: color-mix(in srgb, var(--fond) 86%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.barre .pp-barre__marque { flex: none; font-size: 30px; }
.menu { margin-inline: auto; }
.menu > ul { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.menu a, .menu summary { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: var(--rayon-pilule); color: var(--encre); font: 600 15px/1 var(--font-texte); text-decoration: none; white-space: nowrap; cursor: pointer; }
.menu a:hover, .menu summary:hover { background: var(--citron); color: var(--sur-citron); }
.menu details[open] > summary { background: var(--encre); color: var(--fond); }
.menu summary { list-style: none; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary::after { content: ""; width: 6px; height: 6px; border-right: 2px solid; border-bottom: 2px solid; transform: translateY(-2px) rotate(45deg); transition: transform 150ms; }
.menu details[open] > summary::after { transform: translateY(2px) rotate(-135deg); }
.menu__deroulant { position: relative; }
.menu__panneau { position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%); display: grid; gap: 4px; width: 420px; padding: 10px; border-radius: var(--rayon-l); background: var(--blanc); box-shadow: var(--ombre-flottant); }
.menu .menu__agence { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 16px; align-items: center; height: auto; padding: 12px; border-radius: 22px; color: var(--encre-2); font: 500 14px/1.45 var(--font-texte); }
.menu .menu__agence:hover { background: var(--famille); color: var(--encre-2); }
.menu__agence img { width: 64px; height: 64px; border-radius: 16px; background: var(--famille); }
.menu__agence strong { display: block; margin-bottom: 4px; color: var(--encre); font: 900 26px/.9 var(--font-affiche); text-transform: uppercase; }
.menu .menu__tout { justify-content: space-between; height: 46px; font-size: 14px; }
.menu .menu__tout::after { content: "( → )"; font-weight: 700; }
.pp-pupitre .barre .pp-touche { flex: none; height: 42px; padding: 0 18px; font-size: 15px; }
.menu-mobile { display: none; }

/* Accueil : un bloc pastel de la famille, le titre en affiche avec la boussole au bout, le générateur
   au centre. Tout tient dans le premier écran : le générateur et les services se voient sans défiler. */
.accueil { display: grid; justify-items: center; gap: 14px; background: var(--famille); text-align: center; }
.pp-pupitre main > .accueil { margin-top: 4px; padding-block: clamp(32px, 4.4vw, 56px) clamp(28px, 3.6vw, 44px); }
.accueil .pp-entete__nom { justify-self: center; max-width: 100%; margin-top: 2px; font-size: var(--titre-1); line-height: .86; overflow-wrap: normal; text-wrap: balance; }
/* La boussole au bout de la dernière ligne, qui déborde à droite sans décentrer le titre */
.accueil .pp-entete__nom::after { content: ""; display: inline-block; position: relative; top: -.16em; width: .95em; height: .95em; margin: -.5em -.95em -.5em .02em; vertical-align: middle; background: url("../objets/boussole.svg") center / contain no-repeat; pointer-events: none; }
.accueil .pp-entete__chapeau { max-width: 52ch; color: var(--encre-2); font-size: 18px; line-height: 27px; }

/* Le générateur : un grand champ arrondi, la source de l'idée, le dé et l'envoi */
.generateur { box-sizing: border-box; display: grid; gap: 8px; width: min(100%, 720px); margin-top: 8px; padding: 18px 12px 12px 22px; border: var(--trait) solid var(--encre); border-radius: var(--rayon-l); background: var(--blanc); text-align: left; box-shadow: var(--ombre-flottant); }
.generateur:has(textarea:focus-visible) { outline: 3px solid var(--rouge); outline-offset: 3px; }
.generateur textarea { box-sizing: border-box; width: 100%; min-height: 64px; margin: 0; padding: 2px 8px 0 0; border: 0; resize: none; background: none; color: var(--encre); font: 500 19px/1.45 var(--font-texte); outline: none; }
.generateur textarea::placeholder { color: var(--encre-2); }
.generateur__pied { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 8px; }
.generateur__source { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; flex: 1 1 240px; min-width: 0; }
.generateur__source .pp-voyant { font-size: 13px; line-height: 18px; }
.de { -webkit-appearance: none; appearance: none; display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 16px 0 4px; border: var(--trait) solid var(--encre); border-radius: var(--rayon-pilule); background: transparent; color: var(--encre); font: 600 15px/1 var(--font-texte); cursor: pointer; }
.de:hover { background: var(--citron); color: var(--sur-citron); }
.de img { width: 34px; height: 34px; }
.generateur .pp-touche--primaire { height: 44px; padding: 0 22px; }
.de.roule img { animation: roule 520ms cubic-bezier(.3, .7, .4, 1); }
@keyframes roule { 0% { transform: rotate(0) scale(1); } 45% { transform: rotate(-200deg) scale(1.18); } 100% { transform: rotate(-360deg) scale(1); } }

/* Les services : des pilules, comme les positions du sélecteur de Pupitre */
.services { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; max-width: 840px; }
.services__titre { margin-right: 4px; color: var(--encre-2); font: 700 12px/16px var(--font-texte); letter-spacing: .06em; text-transform: uppercase; }
.services__titre::before { content: "( "; }
.services__titre::after { content: " )"; }
.services button { -webkit-appearance: none; appearance: none; height: 36px; padding: 0 16px; border: var(--trait) solid var(--encre); border-radius: var(--rayon-pilule); background: transparent; color: var(--encre); font: 600 14px/1 var(--font-texte); cursor: pointer; }
.services button:hover { background: var(--citron); color: var(--sur-citron); }
.services button[aria-pressed="true"] { background: var(--encre); color: var(--fond); }
.accueil__note { max-width: 64ch; color: var(--encre-2); font-size: 13px; line-height: 1.5; }

/* Sections : titre en affiche centré, puis le contenu */
.section { display: grid; gap: clamp(32px, 4vw, 48px); }
.section__tete { display: grid; gap: 14px; justify-items: center; max-width: 48rem; margin-inline: auto; text-align: center; }
.section__chapeau { max-width: 52ch; color: var(--encre-2); font-size: 18px; line-height: 27px; }

/* Les trois gestes : trois blocs blancs, l'objet qui déborde en haut */
.colonnes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.colonnes li { display: grid; gap: 10px; justify-items: start; align-content: start; padding: 20px 28px 30px; border-radius: var(--rayon-l); background: var(--blanc); }
.colonnes img { width: 96px; height: auto; margin: -4px 0 0 -8px; }
.colonnes .pp-bloc__titre { font-size: var(--titre-3); }
.colonnes p { max-width: 32ch; color: var(--encre-2); }

/* La méthode : un bloc aubergine, le titre à gauche, le texte à droite */
.idee { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px clamp(32px, 5vw, 80px); justify-items: start; align-items: end; background: var(--nuit); color: var(--sur-nuit); }
.idee > * { grid-column: 1; }
.idee .pp-etiquette { color: var(--citron); }
.idee .pp-affiche { max-width: 22ch; }
.idee p { grid-column: 2; grid-row: 2; max-width: 34rem; color: var(--sur-nuit-2); font-size: 18px; line-height: 27px; }
.idee :focus-visible { outline-color: var(--citron); }

/* Références : des cartes blanches, l'objet sur le pastel de la famille, le nom en affiche */
.liste { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.liste li { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 12px 12px 24px; border-radius: var(--rayon-l); background: var(--blanc); }
.liste img { box-sizing: border-box; width: 100%; height: auto; aspect-ratio: 16 / 9; padding: 6% 30%; border-radius: 22px; background: var(--famille); object-fit: contain; }
.liste li > :not(img) { margin-inline: 12px; }
.liste h3 { align-self: stretch; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; margin-top: 8px; font: 900 var(--titre-3)/.88 var(--font-affiche); text-transform: uppercase; }
.liste p { color: var(--encre-2); }
.liste__etat { margin-top: auto; padding-top: 4px; }

/* Les agences : deux grands blocs pastel, l'agence et ce qu'elle a fabriqué, en pilules */
.agences { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 16px; }
.agence { display: grid; align-content: start; justify-items: start; gap: 12px; padding: clamp(24px, 3.4vw, 40px); border-radius: var(--rayon-l); background: var(--famille); scroll-margin-top: calc(var(--hauteur-barre) + 24px); }
.agence > img { width: 96px; height: auto; margin: -8px 0 0 -8px; }
.agence h3 { font: 900 var(--titre-3)/.88 var(--font-affiche); text-transform: uppercase; }
.agence > p { max-width: 44ch; color: var(--encre-2); }
.agence__liste { align-self: stretch; justify-self: stretch; display: grid; gap: 6px; margin: 6px 0 0; padding: 0; list-style: none; }
.agence__liste li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 16px; min-height: 48px; box-sizing: border-box; padding: 6px 20px; border-radius: var(--rayon-l); background: color-mix(in srgb, var(--blanc) 72%, transparent); }
.agence__liste li > span:first-child { flex: 1 1 8rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.agence__liste li > :last-child:not(:first-child) { flex: none; margin-left: auto; }
.agence__liste strong { font-weight: 700; }
/* Une étiquette longue peut passer à la ligne, mais jamais juste après sa parenthèse */
.agence__liste .pp-etiquette::before { content: "(\00a0"; }
.agence__liste .pp-etiquette::after { content: "\00a0)"; }

/* Contact : le bloc citron, la signature de Pupitre, avec la pilule rouge */
.contact { display: grid; gap: 14px; justify-items: center; background: var(--citron); color: var(--sur-citron); text-align: center; }
.pp-pupitre main > .contact { margin-bottom: clamp(24px, 4vw, 40px); padding-block: clamp(48px, 6vw, 80px); }
.contact .pp-affiche { max-width: 16ch; }
.contact .section__chapeau { max-width: 40ch; color: var(--sur-citron-2); }
.contact__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 8px; }
.contact .pp-touche:not(.pp-touche--primaire) { border-color: var(--sur-citron); color: var(--sur-citron); }
.contact .pp-touche:not(.pp-touche--primaire):hover { background: var(--sur-citron); color: var(--citron); }

/* Pied en colonnes : la marque, le cabinet, les agences, le contact */
.pied { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 32px; padding-block: 40px 56px; }
.pied__marque { display: grid; gap: 12px; align-content: start; justify-items: start; }
.pied__marque .pp-barre__marque { font-size: 32px; }
.pied__marque p { max-width: 30ch; color: var(--encre-2); font-size: 15px; }
.pied nav { display: grid; gap: 8px; align-content: start; justify-items: start; }
.pied__titre { margin-bottom: 4px; color: var(--encre-2); font: 700 12px/16px var(--font-texte); letter-spacing: .06em; text-transform: uppercase; }
.pied__titre::before { content: "( "; }
.pied__titre::after { content: " )"; }
.pied nav a { color: var(--encre); font-weight: 500; text-decoration: none; }
.pied nav a:hover { text-decoration: underline; text-decoration-color: var(--rouge); }

/* La barre complète demande près de 1 000 px : en dessous, le menu se replie */
@media (max-width: 1000px) {
  .pp-pupitre { --hauteur-barre: 60px; }
  .barre .pp-barre__marque { font-size: 28px; }
  .menu, .pp-pupitre .barre .barre__action { display: none; }
  .menu-mobile { display: block; margin-left: auto; }
  .menu-mobile summary { display: inline-flex; align-items: center; gap: 10px; height: 42px; padding: 0 18px; border: var(--trait) solid var(--encre); border-radius: var(--rayon-pilule); color: var(--encre); font: 600 15px/1 var(--font-texte); list-style: none; cursor: pointer; }
  .menu-mobile summary::-webkit-details-marker { display: none; }
  .menu-mobile summary::before { content: ""; width: 16px; height: 11px; background: linear-gradient(currentColor 0 0) top / 100% 2px no-repeat, linear-gradient(currentColor 0 0) center / 100% 2px no-repeat, linear-gradient(currentColor 0 0) bottom / 100% 2px no-repeat; }
  .menu-mobile[open] summary { background: var(--encre); color: var(--fond); }
  .menu-mobile__panneau { position: absolute; top: 100%; left: 0; right: 0; display: grid; padding: 8px var(--marge) 28px; border-radius: 0 0 var(--rayon-l) var(--rayon-l); background: var(--fond); box-shadow: var(--ombre-flottant); }
  .menu-mobile__panneau a:not(.pp-touche) { display: flex; align-items: center; min-height: 48px; padding-block: 6px; box-sizing: border-box; color: var(--encre); font: 900 26px/.95 var(--font-affiche); text-transform: uppercase; text-decoration: none; }
  .menu-mobile__panneau a:not(.pp-touche):hover { color: var(--rouge-texte); }
  .pp-pupitre .menu-mobile__panneau .pp-touche { height: 48px; margin-top: 16px; }
}
@media (max-width: 900px) {
  .generateur { padding: 16px 10px 10px 18px; }
  .generateur textarea { min-height: 88px; font-size: 18px; }
  .generateur__source { flex-basis: 100%; }
  .generateur .pp-touche--primaire { margin-left: auto; }
  .idee { grid-template-columns: minmax(0, 1fr); }
  .idee p { grid-column: 1; grid-row: auto; }
  .pied { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pied__marque { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .pp-pupitre main > :is(.accueil, .idee, .contact) { margin-inline: 12px; }
  .pp-pupitre main > .accueil { padding: 28px 14px 28px; }
  .generateur { padding: 14px 8px 8px 16px; }
  .de { padding-right: 14px; }
  .generateur .pp-touche--primaire { padding: 0 18px; }
  .accueil .pp-entete__chapeau { font-size: 17px; line-height: 25px; }
  .services__titre { flex-basis: 100%; margin: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .de.roule img, .menu summary::after { animation: none; transition: none; }
}
