/* Nuences Studio : la mise en page sur téléphone (écrans de 900 px et moins).
   Chargée après site.css et themes.css. Les couleurs, les matières et les boutons viennent de themes.css : ici, seulement la place des choses.

   Le module : un carré --u, 6 colonnes dans la largeur (65 px sur un écran de 390 px). Les hauteurs sont des multiples du module.
   Au-delà de 576 px de large (tablette tenue debout), le module ne grandit plus et les 6 colonnes sont centrées. */

:root {
  --u: round(down, min(100vw / 6, 96px), 1px);
  --x0: calc((100vw - 6 * var(--u)) / 2);
  --pad: calc(var(--u) * .22);
  --bandeau: 112px;
  /* les cases fusionnées de l'accueil : chaque bloc de texte ou d'images ouvre la grille sur toute la largeur */
  --trous:
    var(--plein) calc(var(--x0) + 1px) 1px / calc(2 * var(--u) - 1px) calc(var(--u) - 1px) no-repeat,                                  /* le logo */
    var(--plein) calc(var(--x0) + 1px) calc(var(--u) + 1px) / calc(2 * var(--u) - 1px) calc(var(--u) - 1px) no-repeat,                 /* les trois liens : une case chacun */
    var(--plein) calc(var(--x0) + 2 * var(--u) + 1px) calc(var(--u) + 1px) / calc(2 * var(--u) - 1px) calc(var(--u) - 1px) no-repeat,
    var(--plein) calc(var(--x0) + 4 * var(--u) + 1px) calc(var(--u) + 1px) / calc(2 * var(--u) - 1px) calc(var(--u) - 1px) no-repeat,
    var(--plein) 0 calc(2 * var(--u) + 1px) / 100vw calc(var(--u) - 1px) no-repeat,                              /* l'étiquette */
    var(--plein) 0 calc(3 * var(--u) + 1px) / 100vw calc(3 * var(--u) - 1px) no-repeat,                          /* le titre */
    var(--plein) 0 calc(6 * var(--u) + 1px) / 100vw calc(2 * var(--u) - 1px) no-repeat,                          /* la roue */
    var(--plein) 0 calc(11 * var(--u) + 1px) / 100vw calc(var(--u) - 1px) no-repeat,                             /* « Ils nous ont fait confiance » */
    var(--plein) 0 calc(12 * var(--u) + 1px) / 100vw calc(var(--u) - 1px) no-repeat,                             /* la bande des logos */
    var(--plein) calc(var(--x0) + var(--u) + 1px) calc(13 * var(--u) + 1px) / 100vw calc(var(--u) - 1px) no-repeat,   /* « Voir le canvas » */
    var(--plein) 0 calc(14 * var(--u) + 1px) / 100vw calc(3 * var(--u) - 1px) no-repeat;                         /* la nappe d'images */
}

/* ---------- L'en-tête : deux rangées. Le logo, le thème et le bouton ; puis les trois liens. ---------- */
.entete { left: var(--x0); right: var(--x0); display: grid; grid-template-columns: repeat(6, var(--u)); grid-template-rows: var(--u) var(--u); gap: 0; align-items: stretch; padding: 0; color: var(--p-texte); }
.entete-logo { grid-column: 1 / 3; grid-row: 1; display: flex; align-items: center; margin: 0; padding-left: var(--pad); }
.entete-logo .logo { height: calc(var(--u) * .52); filter: var(--p-filtre-logo); }
.entete .theme { grid-column: 3; grid-row: 1; }
.theme svg { padding: 5px; }
.entete .bouton { grid-column: 4 / 7; grid-row: 1; min-height: 0; justify-content: center; padding: 0; font-size: 13.5px; line-height: var(--u); }
.entete .bouton .rond { display: none; }
.entete-nav { grid-column: 1 / 7; grid-row: 2; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; align-items: stretch; }
.entete-nav a { display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 700; text-decoration: none; }
.page-accueil .entete { color: var(--a-texte); }
.page-accueil .entete-logo .logo { filter: var(--a-filtre-logo); }
.page-accueil .entete-nav a { text-shadow: var(--a-ombre-petit); }
/* sur les pages de texte : le bouton Retour d'abord, puis le logo ; le bouton de contact est dans la page */
.retour-page { position: relative; isolation: isolate; overflow: hidden; grid-column: 1; grid-row: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; margin: 0;
  color: inherit; text-decoration: none; font-size: 11.5px; font-weight: 700; background: var(--v2-fond); box-shadow: var(--v2-ombre); -webkit-backdrop-filter: var(--flou); backdrop-filter: var(--flou); }
.retour-page::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(circle 9em at var(--px, 50%) var(--py, 50%), rgb(255 255 255 / .6), transparent 70%); opacity: 0; transition: opacity .6s ease; }
.retour-page:active::after { opacity: 1; transition-duration: .06s; }
.page-texte .entete-logo { grid-column: 2 / 4; }
.page-texte .entete .theme { grid-column: 6; }
.page-texte .entete .bouton { display: none; }

/* ---------- Écran 1 : l'accueil, 6 colonnes sur 17 rangées ---------- */
.hero { padding: 0; }
.hero-cadre { display: grid; grid-template-columns: repeat(6, var(--u)); grid-template-rows: repeat(17, var(--u)); min-height: 0; height: calc(17 * var(--u)); padding: 0 var(--x0); color: var(--a-texte); }
.hero-corps { display: contents; }
.tapis { background: var(--a-fond); }
.tapis::before { content: none; }
.tapis::after, .tapis.roue-ouverte::after { opacity: 1; background:
    linear-gradient(to right, var(--ligne) 1px, transparent 1px) var(--x0) 0 / var(--u) var(--u),
    linear-gradient(to bottom, var(--ligne) 1px, transparent 1px) var(--x0) 0 / var(--u) var(--u);
  -webkit-mask: var(--trous), var(--plein); mask: var(--trous), var(--plein);
  -webkit-mask-composite: xor; mask-composite: exclude; }
.hero-texte, .hero-roue, .hero-actions, .hero-logos, .apercu { position: relative; z-index: 2; }

.hero-texte { grid-column: 1 / 7; grid-row: 3 / 7; display: grid; grid-template-rows: var(--u) calc(3 * var(--u)); font-size: calc(var(--u) * .46); }
.hero-texte .repere { align-self: center; padding-left: var(--pad); color: var(--a-texte); font-size: 10.5px; text-shadow: var(--a-ombre-petit); }
html.t-sombre .hero-texte .repere::before { background: currentColor; }
.accroche { display: flex; flex-direction: column; justify-content: center; margin: 0; padding: 0 var(--pad); font-size: 1em; line-height: 1.14; letter-spacing: -.012em; text-shadow: var(--a-ombre-titre); }
.accroche .ligne + .ligne { margin-top: .2em; }

/* la roue : deux rangées, « Avec » et le mot en cours au milieu, un mot au-dessus, un au-dessous. Elle ne se déploie pas au toucher. */
.hero-roue { grid-column: 1 / 7; grid-row: 7 / 9; display: flex; align-items: center; gap: .4em; height: auto; margin: 0; padding-left: var(--pad); font-size: calc(var(--u) * .3); --pas: calc(var(--u) * .62);
  background: var(--roue-fond); color: var(--roue-texte); box-shadow: var(--roue-ombre); text-shadow: var(--roue-ombre-texte); }
.avec { grid-area: auto; font-weight: 300; }
.cran { grid-area: auto; filter: none; }
.roue, .roue.ouverte { grid-area: auto; height: 100%; --angle: 0deg; }
.roue-piste { transform: none; }
.roue li, .roue:not(.ouverte) li { transform: translateY(calc(var(--d, 0) * var(--pas))); font-weight: 400; --t: clamp(0, calc(1.46 - var(--a)), 1); }
.roue li.actif { font-weight: 700; }

/* les deux boutons : l'un sous l'autre, sur toute la largeur. Une rangée de grille reste vide au-dessus. */
.hero-actions { grid-column: 1 / 7; grid-row: 10 / 12; display: grid; grid-template-rows: var(--u) var(--u); gap: 0; margin: 0; }
.hero-actions .bouton { flex: none; min-height: 0; justify-content: space-between; padding: 0 var(--pad); font-size: calc(var(--u) * .27); line-height: var(--u); }
.hero-actions .bouton-noir .rond { width: auto; margin-left: 0; }

.hero-logos { grid-column: 1 / 7; grid-row: 12 / 14; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: var(--u) var(--u); gap: 0; align-items: stretch; margin: 0 calc(-1 * var(--x0)); }
.hero-logos p { display: flex; align-items: center; padding: 0 calc(var(--pad) + var(--x0)); font-family: var(--large); font-size: 10.5px; font-weight: 700; line-height: 1.45; letter-spacing: .07em; text-transform: uppercase; text-shadow: var(--a-ombre-petit); }
.defile { display: flex; align-items: center; width: 100%; -webkit-mask-image: none; mask-image: none; }
.defile-piste { padding-left: var(--pad); gap: 36px; }
.defile-piste img { height: calc(24px * var(--k, 1)); max-width: none; filter: var(--a-filtre-logos); }

/* « Voir le canvas », puis la nappe d'images sur trois rangées */
.apercu { grid-column: 1 / 7; grid-row: 14 / 18; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: var(--u) calc(3 * var(--u)); gap: 0; align-items: stretch; margin: 0 calc(-1 * var(--x0)); }
.apercu-tete { position: relative; display: grid; grid-template-columns: var(--u) minmax(0, 1fr); align-items: stretch; gap: 0; width: auto; margin-left: var(--x0); padding: 0; color: var(--a-texte); font-size: 13.5px; line-height: 1.3; text-shadow: var(--a-ombre-petit); }
.descente { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; width: auto; height: var(--u);
  background: var(--descente-fond); color: var(--descente-texte); box-shadow: var(--lumiere), var(--ombre-image-m); text-shadow: none; -webkit-backdrop-filter: var(--flou); backdrop-filter: var(--flou); transition: filter .2s ease; }
.descente::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(circle 9em at var(--px, 50%) var(--py, 50%), rgb(255 255 255 / .6), transparent 70%); opacity: 0; transition: opacity .6s ease; }
.apercu-tete:active .descente { filter: brightness(1.2); }
.apercu-tete:active .descente::after { opacity: 1; transition-duration: .06s; }
.descente i { display: block; width: 2.2px; height: 14px; background: currentColor; }
.descente svg { margin-top: -9px; }
.apercu-mots { display: flex; flex-direction: column; justify-content: center; padding: 0 var(--pad); }
.apercu-tete strong { display: block; font-size: calc(var(--u) * .27); }
.apercu-fenetre { width: 100%; height: auto; padding-top: calc(var(--u) * .1); -webkit-mask-image: none; mask-image: none; }
.apercu-piste { padding-left: var(--pad); }
.noeud { position: relative; background: var(--noeud-fond); box-shadow: var(--ombre-image-m); }
.noeud::after, .concret-preuve > a::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(128deg, rgb(255 255 255 / .24) 0%, rgb(255 255 255 / 0) 34%); }
.lien-n { filter: none; color: var(--a-texte); }

/* ---------- Écran 2 : « Concrètement », en une colonne ---------- */
.concret { padding: var(--u) var(--x0) 0; background: var(--p-fond); color: var(--p-texte); }
.concret-corps { display: block; max-width: none; margin: 0; }
.concret-tete { padding: 0 var(--pad); }
.concret h2 { margin-top: calc(var(--u) * .26); max-width: none; font-weight: 700; font-size: calc(var(--u) * .4); line-height: 1.1; letter-spacing: -.012em; }
/* les quatre promesses, l'une sous l'autre, toutes à la même hauteur, dans la même matière (blanche dans le thème sombre, orange dans le thème clair) et avec la même typographie :
   aucune ne passe devant les autres. Un filet les sépare. */
.promesses { display: grid; grid-template-columns: minmax(0, 1fr); grid-auto-rows: 1fr; margin-top: calc(var(--u) * .6); border: 0; }
.promesses li { position: relative; padding: 0 var(--pad) calc(var(--u) * .48); border: 0; background: var(--carte-fond); color: var(--carte-texte); text-shadow: var(--carte-ombre-texte); }
.promesses li + li { margin-top: 0; border-top: 1px solid var(--carte-filet); }
.promesses .repere::before { background: var(--carte-carre); }
.promesses li::before { content: none; }
.promesses .repere { display: flex; align-items: center; height: calc(var(--u) * .95); margin: 0; max-width: none; font-size: 10.5px; color: inherit; }
.promesses h3 { font-weight: 700; font-size: calc(var(--u) * .46); line-height: 1.1; letter-spacing: -.012em; }
.promesses li > p:not(.repere) { margin-top: 8px; max-width: none; color: var(--carte-doux); font-size: 16.5px; font-weight: 500; line-height: 1.45; }
.concret-resultats { max-width: none; margin: var(--u) 0 0; padding: 0 var(--pad); }
.concret-millions { margin-top: calc(var(--u) * .26); max-width: none; font-weight: 700; font-size: calc(var(--u) * .4); line-height: 1.1; letter-spacing: -.012em; }
/* la preuve : l'image, puis le chiffre dans un module de satin orange */
.concret-preuve { display: block; max-width: none; margin: calc(var(--u) * .6) 0 0; }
.concret-preuve > a { position: relative; display: block; height: calc(6 * var(--u) * 9 / 16); box-shadow: var(--ombre-photo); }
.concret-preuve figcaption { display: flex; flex-direction: column; padding: 0; background: var(--satin-module); color: var(--blanc); box-shadow: inset 0 18px 20px -18px rgb(255 255 255 / .45); text-shadow: 0 1px 2px rgb(var(--ombre-orange) / .38);
  --v2-fond: rgb(255 255 255 / .2); --v2-texte: #fff; --v2-ombre: inset 0 16px 18px -16px rgb(255 255 255 / .4); }
.concret-preuve figcaption .repere { display: flex; align-items: center; height: calc(var(--u) * .9); max-width: none; margin: 0; padding: 0 var(--pad); color: var(--blanc); font-size: var(--etiquette); }
.concret-preuve figcaption .repere::before { background: currentColor; }
.concret-preuve strong { display: block; padding: 0 var(--pad); font-weight: 900; font-size: calc(var(--u) * 1.25); line-height: 1.05; letter-spacing: -.02em; color: var(--blanc); white-space: nowrap; }
.concret-preuve figcaption p:not(.repere) { margin: 10px 0 calc(var(--u) * .34); padding: 0 var(--pad); max-width: 24ch; font-size: 18px; font-weight: 700; line-height: 1.35; }
.concret-preuve .lien-fleche, .concret-preuve .lien-fleche:hover { display: flex; justify-content: space-between; align-items: center; height: var(--u); padding: 0 var(--pad); border: 0; font-size: calc(var(--u) * .27); font-weight: 700; text-shadow: none; color: var(--v2-texte); background: var(--v2-fond); box-shadow: var(--v2-ombre); }
.liens-bas { display: flex; flex-wrap: wrap; align-items: center; gap: .5em; max-width: none; margin: 0; padding: calc(var(--u) * .5) var(--pad); color: var(--p-discret); }
.liens-bas a { color: var(--p-doux); }
.liens-bas a:hover { color: var(--p-texte); }          /* sans cela, l'ancienne règle de base les passe en blanc : invisibles sur le thème clair */

/* ---------- Écran 3 : le canvas. Le bandeau tient en deux rangées ; la rangée des marques se fait défiler du doigt. ---------- */
.bandeau-haut { padding-left: 12px; }
.bandeau-haut .bouton-texte { margin-right: 8px; }
.bandeau-haut .theme { margin-right: 6px; }
.bandeau-haut .bouton-plein { padding: 0 14px; font-size: 13px; }
.nav-titre { gap: 7px; margin-right: 4px; padding: 0 12px 0 14px; font-size: 10.5px; }
.nav-titre .long { display: none; }
.nav-titre .court { display: inline; }
.puce { min-height: 44px; padding: 0 13px; font-size: 15.5px; }
.sous .puce { font-size: 14.5px; }
.commandes { right: 50%; transform: translateX(50%); }
.commandes button { width: 52px; height: 52px; }
.separateur { height: 52px; }
/* l'invitation : sur toute la largeur, en gros, posée juste au-dessus des commandes (elle ne cache pas le titre du projet).
   Elle reste encore deux secondes après le premier geste (canvas.js) ; sa croix est dans le coin. */
.invite { left: 12px; right: 12px; top: auto; bottom: calc(18px + 52px + 10px + env(safe-area-inset-bottom)); display: flex; max-width: none; transform: none; text-align: left; font-size: 16px; line-height: 1.4; }
.invite p { flex: 1; padding: 14px 4px 15px 16px; }
.invite strong { display: block; margin: 0 0 2px; font-size: 19px; }
.invite.cache { transform: translateY(12px); }
.fermer { width: 48px; min-height: 48px; align-self: flex-start; }

/* ---------- Pages de texte, en une colonne ---------- */
.page-texte { background: var(--p-fond); }
.page-texte main { min-height: 100svh; padding: calc(2.6 * var(--u)) var(--x0) 0; }
.page-texte h1 { margin-top: calc(var(--u) * .2); max-width: none; font-weight: 700; font-size: calc(var(--u) * .5); line-height: 1.08; letter-spacing: -.014em; }
.chapeau { margin-top: calc(var(--u) * .3); max-width: none; font-size: 17px; line-height: 1.5; color: var(--p-doux); }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: calc(var(--u) * .45); }
.actions .bouton { flex: none; min-height: 0; padding: 0 8px; font-size: 14.5px; line-height: calc(var(--u) * .9); }
.texte { max-width: none; margin: 0; padding: 0 var(--pad); }
.legal h2 { margin-top: calc(var(--u) * .5); font-weight: 700; font-size: 20px; }
.legal p, .legal ul { color: var(--p-doux); }
.legal a { color: var(--p-texte); }
.pied { display: block; max-width: none; margin: var(--u) 0 0; padding: calc(var(--u) * .4) var(--pad) calc(var(--u) * .6); color: var(--p-discret); }
.pied p + p { margin-top: 6px; }
.pied a { color: var(--p-doux); }
.pied a:hover { color: var(--p-texte); }

/* À propos : le texte, la photo du fondateur, son nom et sa citation, l'équipe, puis l'offre en quatre cases */
.apropos { display: block; }
.apropos-tete { padding: 0 var(--pad); }
.fondateur-colonne { margin-top: var(--u); }
.fondateur { position: relative; max-width: none; margin: 0; }
.fondateur img { width: 100%; height: calc(6 * var(--u)); aspect-ratio: auto; object-fit: cover; object-position: 50% 60%; background: var(--champ); }
.fondateur figcaption { display: flex; align-items: center; height: calc(var(--u) * .8); margin: 0; padding: 0 var(--pad); font-size: 15px; color: var(--p-doux); }
.fondateur strong { font-weight: 700; color: var(--p-texte); }
.citation { max-width: none; margin: 0; padding: 0 var(--pad); color: var(--p-texte); font-weight: 500; font-size: 18px; line-height: 1.42; }
.apropos-equipe { display: block; margin: var(--u) 0 0; padding: 0 var(--pad); }
.apropos-equipe h2 { margin-top: calc(var(--u) * .2); font-weight: 700; font-size: calc(var(--u) * .4); line-height: 1.1; }
.apropos-equipe > p:not(.repere) { margin-top: 14px; max-width: none; font-size: 17px; color: var(--p-doux); }
.apropos-offres { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; margin: var(--u) 0 0; border-top: 1px solid var(--p-ligne); }
.apropos-offres > div { padding: calc(var(--u) * .3) var(--pad) calc(var(--u) * .36); border-bottom: 1px solid var(--p-ligne); background: var(--tuile); }
.apropos-offres h2 { font-weight: 700; font-size: calc(var(--u) * .34); line-height: 1.12; color: var(--p-texte); }
.apropos-offres p { margin-top: 8px; color: var(--p-doux); font-size: 16px; line-height: 1.45; }

/* Contact : le titre, les coordonnées en grand dans un module de satin orange, puis le formulaire */
.contact-page { display: block; }
.contact-tete { padding: 0 var(--pad); }
.contact-projet { margin-top: 12px; font-size: 15px; font-weight: 700; color: var(--p-texte); }
.coordonnees { display: flex; flex-direction: column; margin: calc(var(--u) * .6) 0 0; background: var(--satin-module); color: #fff; box-shadow: inset 0 18px 20px -18px rgb(255 255 255 / .45); text-shadow: 0 1px 2px rgb(var(--ombre-orange) / .38);
  --v2-fond: rgb(255 255 255 / .2); --v2-texte: #fff; --v2-ombre: inset 0 16px 18px -16px rgb(255 255 255 / .4); }
.coordonnees .repere { display: flex; align-items: center; height: calc(var(--u) * .9); padding: 0 var(--pad); }
.coordonnees .repere::before { background: currentColor; }
.coordonnee { display: block; padding: 2px var(--pad) calc(var(--u) * .26); color: #fff; text-decoration: none; }
.coordonnee small { display: block; font-size: 13px; font-weight: 500; opacity: .9; }
.coordonnee strong { display: block; margin-top: 2px; font-weight: 900; font-size: calc(var(--u) * .62); line-height: 1.05; letter-spacing: -.012em; white-space: nowrap; }
.coordonnee + .coordonnee strong { font-weight: 700; font-size: calc(var(--u) * .3); letter-spacing: 0; }
.coordonnees-liens { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 4px 0 0; }
.coordonnees-liens .bouton { min-height: 0; padding: 0; font-size: 15.5px; font-weight: 700; line-height: var(--u); text-shadow: none; }
.contact-formulaire { margin: var(--u) 0 0; padding: 0 var(--pad) var(--pad); background: var(--tuile); }
.contact-formulaire > .repere { display: flex; align-items: center; height: calc(var(--u) * .9); }
.champs { grid-template-columns: minmax(0, 1fr); gap: 14px; }
.champs label { font-size: 14px; color: var(--p-doux); }
.champs label span { color: inherit; }
.champs small { color: var(--p-discret); }
.champs input, .champs textarea { margin-top: 6px; padding: 13px 14px; background: var(--champ); color: var(--p-texte); font-size: 16px; }
.champs input:focus, .champs textarea:focus { background: var(--champ-actif); box-shadow: inset 0 -2px 0 var(--orange); }
.contact-erreur { color: var(--p-texte); font-weight: 700; }
.contact-formulaire .bouton-plein { width: 100%; min-height: 0; margin-top: 16px; font-size: 16px; line-height: var(--u); }
.contact-note { color: var(--p-discret); }
.contact-note a { color: var(--p-doux); }
.contact-merci { color: var(--p-texte); }

@media (prefers-reduced-transparency: reduce) {
  .retour-page, .descente { -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* ---------- Le seuil (fin de l'accueil) : la bande, empilée ; le bouton-jauge de bord à bord ferme la page ---------- */
.seuil { display: flex; flex-direction: column; gap: calc(var(--u) * .3); padding: calc(var(--u) * .6) calc(var(--x0) + var(--pad)) 0; }
.seuil .repere { font-size: 10.5px; }
.seuil h2 { margin-bottom: calc(var(--u) * .3); font-size: calc(var(--u) * .4); }
.seuil-entrer { height: var(--u); margin: 0 calc(-1 * (var(--x0) + var(--pad))); padding: 0 calc(var(--x0) + var(--pad)); font-size: 16px; }
