/* Aurora : mise en page de l'accueil (étape 2 : navigation, hero, logos, problèmes, services).
   Les composants viennent de aurora.css (design system) ; ce fichier les assemble en sections. */

:root { color-scheme: dark; }
html { scroll-behavior: smooth; background: var(--noir); }
body { overflow-x: hidden; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Gouttière latérale qui dégage aussi les bords du téléphone */
.au-conteneur { padding-left: max(var(--marge-desktop), env(safe-area-inset-left, 0px)); padding-right: max(var(--marge-desktop), env(safe-area-inset-right, 0px)); }
@media (max-width: 1199px) { .au-conteneur { padding-left: max(var(--marge-tablette), env(safe-area-inset-left, 0px)); padding-right: max(var(--marge-tablette), env(safe-area-inset-right, 0px)); } }
@media (max-width: 809px) { .au-conteneur { padding-left: max(var(--marge-mobile), env(safe-area-inset-left, 0px)); padding-right: max(var(--marge-mobile), env(safe-area-inset-right, 0px)); } }

/* Sans script, rien ne reste caché */
html:not(.js) .au-revele, html:not(.js) .au-surtitre.au-anime::before, html:not(.js) .au-surtitre.au-anime > span { opacity: 1; transform: none; }

.h2, .display { text-wrap: balance; }
.corps, .corps-l { text-wrap: pretty; }
section[id] { scroll-margin-top: 88px; }

/* ---------- Navigation ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 31; background: var(--noir); }
.nav { position: fixed; top: env(safe-area-inset-top, 0px); left: 0; right: 0; z-index: 30; }
.nav .au-nav__liens a[aria-current="true"] { color: var(--blanc); }
.menu-mobile { position: fixed; inset: 0; z-index: 40; overflow-y: auto; padding-top: env(safe-area-inset-top, 0px); padding-bottom: max(var(--espace-5), env(safe-area-inset-bottom, 0px)); padding-left: max(var(--marge-mobile), env(safe-area-inset-left, 0px)); padding-right: max(var(--marge-mobile), env(safe-area-inset-right, 0px)); }
.menu-mobile .au-menu__liens a { display: block; padding: 4px 0; }
.menu-mobile .au-menu__liens a:hover { color: var(--violet); }
@media (min-width: 810px) { .menu-mobile { display: none !important; } }
body.menu-ouvert { overflow: hidden; }

/* ---------- Hero (conservé : textes, structure centrée, fond animé) ---------- */
.hero { position: relative; display: flex; align-items: center; min-height: 100svh; padding: 152px 0 var(--espace-8); overflow: hidden; isolation: isolate; }
.hero__fond { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero__plasma { width: 100%; height: 100%; display: block; }
.hero__orbes { display: none; }
.hero__orbes i { position: absolute; border-radius: 50%; }
.hero__orbes i:nth-child(1) { width: 600px; height: 600px; top: -20%; right: -15%; background: var(--violet); opacity: 0.2; filter: blur(120px); animation: orbe-1 20s ease-in-out infinite; }
.hero__orbes i:nth-child(2) { width: 500px; height: 500px; bottom: -10%; left: -15%; background: var(--bleu); opacity: 0.15; filter: blur(100px); animation: orbe-2 25s ease-in-out infinite; }
.hero__orbes i:nth-child(3) { width: 400px; height: 400px; top: 30%; left: 30%; background: var(--violet); opacity: 0.1; filter: blur(80px); animation: orbe-3 18s ease-in-out infinite; }
@media (max-width: 767px) { .hero__plasma { display: none; } .hero__orbes { display: block; } }
@keyframes orbe-1 { 0%, 100% { transform: translate(0, 0) scale(1); } 25% { transform: translate(-40px, 60px) scale(1.1); } 50% { transform: translate(20px, -30px) scale(0.95); } 75% { transform: translate(-20px, -40px) scale(1.05); } }
@keyframes orbe-2 { 0%, 100% { transform: translate(0, 0) scale(1); } 25% { transform: translate(50px, -40px) scale(1.08); } 50% { transform: translate(-30px, 50px) scale(1.15); } 75% { transform: translate(40px, 20px) scale(0.92); } }
@keyframes orbe-3 { 0%, 100% { transform: translate(0, 0) scale(1); } 33% { transform: translate(-60px, 30px) scale(1.12); } 66% { transform: translate(40px, -50px) scale(0.9); } }

.hero__contenu { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero__badge { display: inline-flex; align-items: center; gap: var(--espace-1); min-height: 36px; padding: 0 var(--espace-2); margin-bottom: var(--espace-4); border: 1px solid #b065ff4d; border-radius: var(--rayon-pilule); background: #b065ff26; color: var(--violet); }
.hero__point { width: var(--carre); height: var(--carre); border-radius: 50%; background: var(--violet); animation: point 2s infinite; }
@keyframes point { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(1.2); } }
.hero__titre { max-width: 1100px; margin-bottom: var(--espace-3); color: var(--blanc); text-wrap: initial; }
.hero__ligne { display: block; }
.hero__degrade { background: linear-gradient(135deg, var(--violet) 0%, var(--bleu) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: 0.06em; }
.hero__sous-titre { max-width: 640px; margin-bottom: var(--espace-5); color: var(--texte-secondaire); }
.hero__boutons { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--espace-2); }
.hero__avis { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 12px; min-height: var(--cible-tactile); margin-top: var(--espace-4); color: var(--texte-secondaire); text-decoration: none; transition: color var(--au-duree-survol) var(--au-ease); }
.hero__avis:hover { color: var(--blanc); }
.hero__avis strong { color: var(--blanc); font-weight: 600; }
.hero__etoiles { display: inline-flex; gap: 2px; color: var(--etoile); }
.hero__etoiles svg { width: 16px; height: 16px; fill: currentColor; }
@media (min-width: 810px) { .hero__ligne:first-child { white-space: nowrap; } }
@media (max-width: 809px) {
  .hero { padding-top: 120px; }
  .hero__boutons { flex-direction: column; align-items: stretch; width: 100%; max-width: 360px; }
}

/* Entrée en cascade du hero, jouée au chargement */
@media (prefers-reduced-motion: no-preference) {
  .entree { animation: entree 0.7s var(--au-ease) both; animation-delay: calc(var(--i, 0) * 0.1s); }
  .entree-mot { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.1em; margin-bottom: -0.1em; }
  .entree-mot > span { display: inline-block; animation: mot 0.8s var(--au-ease) both; animation-delay: calc(0.1s + var(--m, 0) * 0.04s); }
}
@media (prefers-reduced-motion: reduce) { .entree { animation: fondu 0.4s linear both; } }
@keyframes entree { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes mot { from { transform: translateY(105%); } to { transform: none; } }
@keyframes fondu { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Logos clients ---------- */
.logos { padding: var(--espace-4) 0; border-top: 1px solid var(--ligne); border-bottom: 1px solid var(--ligne); overflow: hidden; }
.logos__masque { -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.logos__piste { display: flex; width: max-content; animation: au-defile 40s linear infinite; }
.logos__piste li { flex: none; display: flex; align-items: center; padding: 0 var(--espace-5); }
.logos__piste img { height: 112px; width: auto; opacity: var(--opacite-logo); transition: opacity var(--au-duree-survol) var(--au-ease); }
.logos__piste img:hover { opacity: var(--opacite-logo-survol); }
@media (max-width: 809px) { .logos__piste img { height: 80px; } .logos__piste li { padding: 0 var(--espace-3); } }
@media (prefers-reduced-motion: reduce) { .logos__piste { animation: none; flex-wrap: wrap; width: auto; justify-content: center; } .logos__piste li[aria-hidden="true"] { display: none; } .logos__masque { -webkit-mask-image: none; mask-image: none; } }

/* ---------- En-têtes de section ---------- */
.section__entete { margin-bottom: var(--espace-8); }
@media (max-width: 809px) { .section__entete { margin-bottom: var(--espace-6); } }

/* ---------- Problèmes ---------- */
.problemes__grille { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gouttiere); }
.problemes__grille .au-probleme { min-height: 300px; }
@media (max-width: 1199px) { .problemes__grille { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 809px) { .problemes__grille { grid-template-columns: minmax(0, 1fr); } .problemes__grille .au-probleme { min-height: 0; } }

/* ---------- Services ---------- */
.services__entete { display: grid; grid-template-columns: 7fr 5fr; gap: var(--espace-4) var(--gouttiere); align-items: end; max-width: none; }
.services__entete .au-entete { max-width: 760px; }
.services__entete > .corps-l { color: var(--texte-secondaire); max-width: 460px; justify-self: end; }
@media (max-width: 1199px) { .services__entete { grid-template-columns: minmax(0, 1fr); } .services__entete > .corps-l { justify-self: start; } }
.au-bento .au-carte { min-width: 0; }

/* ---------- Transition damier (avant Chiffres et Divi 5) ---------- */
.transition .au-transition { grid-template-rows: repeat(3, var(--damier-pas)); }

/* ---------- Chiffres ---------- */
.chiffres__grille { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--espace-6) var(--gouttiere); }
.chiffres__etoile { display: inline-block; width: 0.62em; height: 0.62em; margin-left: 0.04em; fill: currentColor; }
@media (max-width: 1279px) { .chiffres__grille { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Réalisations : carrousel, captures sur fonds violet et bleu, texte dessous (choix de Quentin le 03/11/2026) ---------- */
.carrousel { display: flex; flex-direction: column; gap: var(--espace-4); }
.carrousel__piste { display: flex; gap: var(--gouttiere); margin-right: calc(50% - 50vw); padding-right: calc(50vw - 50%); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; cursor: grab; }
.carrousel__piste::-webkit-scrollbar { display: none; }
.carrousel__piste.est-glisse { scroll-snap-type: none; cursor: grabbing; }
.carrousel__piste.est-glisse .carrousel__carte { pointer-events: none; }
.carrousel__carte { flex: 0 0 min(760px, 56%); display: flex; flex-direction: column; gap: var(--espace-3); color: var(--texte-secondaire); text-decoration: none; scroll-snap-align: start; user-select: none; -webkit-user-drag: none; }
.carrousel__carte img { -webkit-user-drag: none; }
.carrousel__carte .projet__scene { aspect-ratio: 16 / 11; }
.carrousel__carte .projet__fenetre { transition: transform 0.6s var(--au-ease); }
.carrousel__carte:hover .projet__fenetre { transform: translateY(-8px); }
.carrousel__texte { display: flex; flex-direction: column; gap: 6px; }
.carrousel__secteur { color: var(--violet); }
.carrousel__nom { display: flex; align-items: center; gap: var(--espace-1); color: var(--blanc); }
.carrousel__oblique { flex: none; width: 24px; height: 24px; color: var(--violet); transition: transform 0.3s var(--au-ease); }
.carrousel__carte:hover .carrousel__oblique, .carrousel__carte:focus-visible .carrousel__oblique { transform: translate(3px, -3px); }
.carrousel__desc { max-width: 560px; }
.carrousel__commandes { display: flex; align-items: center; gap: var(--espace-4); }
.carrousel__compteur { min-width: 64px; color: var(--blanc); font-variant-numeric: tabular-nums; }
.carrousel__points { display: flex; flex: 1; gap: 8px; }
.carrousel__points i { width: 8px; height: 8px; background: var(--ligne); transition: width 0.45s var(--au-ease), background-color 0.3s var(--au-ease); }
.carrousel__points i { position: relative; overflow: hidden; }
.carrousel__points i::after { content: ""; position: absolute; inset: 0; background: var(--violet); transform: scaleX(0); transform-origin: left center; }
/* Carré actif : une barre qui se remplit pendant la lecture automatique (pleine sinon) */
.carrousel__points i.est-actif { width: 32px; }
.carrousel__points i.est-actif::after { transform: scaleX(var(--progres, 1)); }
.carrousel__piste.est-anime { scroll-snap-type: none; }
.carrousel__lecture[hidden] { display: none; }
.carrousel__lecture .carrousel__lire, .carrousel__lecture.est-en-pause .carrousel__pause { display: none; }
.carrousel__lecture.est-en-pause .carrousel__lire { display: block; }
/* Visite du projet : en lecture, le script fait défiler les captures de la carte en scène ; au survol, la capture défile seule */
.est-auto .carrousel__carte.est-en-scene .projet__ecran img { transition: none; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .carrousel__carte:hover .projet__ecran img { transform: translateY(var(--defil, 0px)); }
}
.carrousel__boutons { display: flex; gap: var(--espace-1); }
.carrousel__bouton { display: grid; place-items: center; width: 56px; height: 56px; border: 1px solid var(--contour-bouton); border-radius: 50%; background: transparent; color: var(--blanc); cursor: pointer; transition: background-color var(--au-duree-survol) var(--au-ease), color var(--au-duree-survol) var(--au-ease), border-color var(--au-duree-survol) var(--au-ease), opacity var(--au-duree-survol) var(--au-ease); }
.carrousel__bouton svg { width: 22px; height: 22px; }
.carrousel__bouton:hover:not(:disabled) { border-color: var(--violet); background: var(--violet); color: var(--noir); }
.carrousel__bouton:disabled { opacity: 0.35; cursor: default; }
@media (max-width: 1199px) { .carrousel__carte { flex-basis: 72%; } }
@media (max-width: 809px) {
  .carrousel__carte { flex-basis: 86%; }
  .carrousel__commandes { gap: var(--espace-2); }
  .carrousel__bouton { width: 48px; height: 48px; }
}
/* Petit écran : les carrés suffisent à situer le projet, le compteur laisse la place au bouton pause */
@media (max-width: 479px) { .carrousel__compteur { display: none; } }
.clients { display: flex; flex-direction: column; align-items: center; gap: var(--espace-3); margin-top: var(--espace-12); text-align: center; }
.clients__titre { color: var(--blanc); margin-bottom: var(--espace-1); }
.clients__liste { justify-content: center; max-width: 960px; }
@media (max-width: 809px) { .clients { margin-top: var(--espace-8); } }

/* ---------- Engagements ---------- */
.engagements__grille { display: grid; grid-template-columns: 5fr 7fr; gap: var(--espace-6) var(--gouttiere); align-items: start; }
.engagements__titre { position: sticky; top: 140px; }
.engagements__liste { counter-reset: none; }
.engagement { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: var(--espace-3); align-items: start; padding: var(--espace-6) 0; border-top: 1px solid var(--ligne-nuit); opacity: var(--opacite-engagement); transition: opacity 0.6s var(--au-ease); }
.engagement:last-child { border-bottom: 1px solid var(--ligne-nuit); }
.engagement.est-allumee, html:not(.js) .engagement { opacity: 1; }
/* Estompé à 0,7 (et non 0,4 comme le jeton du DS) : texte à 4,9:1 et numéros à 3,3:1 sur le nuit, seuils WCAG (audit du 03/11/2026) */
.engagements { --opacite-engagement: 0.7; }
.engagement__num { color: var(--violet); font-variant-numeric: tabular-nums; }
.engagement__texte { display: flex; flex-direction: column; gap: var(--espace-1); padding-top: 0.6em; }
.engagement__texte .h3 { color: var(--blanc); }
@media (max-width: 1199px) { .engagements__grille { grid-template-columns: minmax(0, 1fr); } .engagements__titre { position: static; } .engagement { grid-template-columns: 130px minmax(0, 1fr); } }
@media (max-width: 809px) { .engagement { grid-template-columns: minmax(0, 1fr); gap: var(--espace-1); padding: var(--espace-4) 0; } .engagement__texte { padding-top: 0; } }
@media (prefers-reduced-motion: reduce) { .engagement { opacity: 1; } }

/* ---------- Divi 5 ---------- */
.divi { position: relative; overflow: hidden; isolation: isolate; }
.divi__d5 { position: absolute; z-index: -1; top: -0.12em; right: -0.08em; font-weight: 700; font-size: 44vw; line-height: 0.8; letter-spacing: -0.06em; color: var(--nuit); transform: rotate(var(--rotation, -6deg)); transform-origin: 70% 40%; pointer-events: none; user-select: none; }
.divi__contenu { position: relative; }
.divi .au-entete { max-width: 720px; }
.divi__atouts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gouttiere); }
.divi__atouts .au-carte { min-height: 240px; }
.divi__bas { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--espace-6); margin-top: var(--espace-8); }
.divi__chiffres { display: flex; flex-wrap: wrap; gap: var(--espace-6) var(--espace-8); }
@media (max-width: 1199px) { .divi__atouts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .divi__d5 { font-size: 60vw; } }
@media (max-width: 809px) { .divi__atouts { grid-template-columns: minmax(0, 1fr); } .divi__atouts .au-carte { min-height: 0; } .divi__d5 { font-size: 80vw; top: -0.05em; right: -0.2em; } .divi__chiffres { gap: var(--espace-4) var(--espace-5); } .divi__bas .au-btn { width: 100%; } }

/* ---------- À propos ---------- */
.apropos { display: grid; grid-template-columns: 5fr 7fr; gap: var(--espace-8) var(--espace-8); align-items: center; }
.apropos__cadre { aspect-ratio: 4 / 5; max-width: 100%; border-radius: var(--rayon-image); overflow: hidden; background: var(--nuit); }
.apropos__cadre img { width: 100%; height: 100%; object-fit: cover; }
/* Le masque se lève sur la photo ; on observe le parent, car un élément entièrement masqué ne compte pas comme visible */
@media (prefers-reduced-motion: no-preference) {
  html.js .apropos__cadre { clip-path: inset(100% 0 0 0 round var(--rayon-image)); transition: clip-path 1.1s var(--au-ease); }
  html.js .apropos__cadre img { transform: scale(1.12); transition: transform 1.4s var(--au-ease); }
  html.js .apropos__photo.est-visible .apropos__cadre { clip-path: inset(0 0 0 0 round var(--rayon-image)); }
  html.js .apropos__photo.est-visible .apropos__cadre img { transform: none; }
}
.apropos__texte { display: flex; flex-direction: column; gap: var(--espace-4); }
.apropos__paragraphes { display: flex; flex-direction: column; gap: var(--espace-2); }
.apropos__paragraphes .corps-l { color: var(--blanc); }
.apropos__infos { display: flex; flex-wrap: wrap; align-items: center; gap: var(--espace-2) var(--espace-4); padding: var(--espace-3) 0; border-top: 1px solid var(--ligne); border-bottom: 1px solid var(--ligne); color: var(--blanc); }
.apropos__info { display: inline-flex; align-items: center; gap: var(--espace-1); }
.apropos__info svg { width: 20px; height: 20px; color: var(--violet); }
.apropos__infos .au-pied__icones { margin-left: auto; }
.apropos__bouton { align-self: flex-start; }
@media (max-width: 1199px) { .apropos { grid-template-columns: minmax(0, 1fr); } .apropos__photo { max-width: 520px; } }
@media (max-width: 809px) { .apropos__infos .au-pied__icones { margin-left: 0; } .apropos__bouton { align-self: stretch; } }

/* ---------- Avis ---------- */
.avis__note { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--espace-1) 12px; color: var(--texte-secondaire); }
.avis__note strong { color: var(--blanc); font-weight: 600; }
.avis__rangees { display: flex; flex-direction: column; gap: var(--gouttiere); }
.avis__bord { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
@media (prefers-reduced-motion: reduce) { .avis__bord { overflow-x: auto; -webkit-mask-image: none; mask-image: none; } }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: 5fr 7fr; gap: var(--espace-6) var(--gouttiere); align-items: start; }
.faq__titre { position: sticky; top: 140px; }
@media (max-width: 1199px) { .faq { grid-template-columns: minmax(0, 1fr); } .faq__titre { position: static; } }

/* ---------- Appel final ---------- */
.appel { position: relative; overflow: hidden; padding: var(--espace-12) var(--espace-8); border-radius: var(--rayon-appel); }
.appel__texte { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: var(--espace-3); max-width: 720px; }
.appel__texte .h2 { color: var(--nuit); }
.appel__texte .au-btn { margin-top: var(--espace-2); }
.appel__damier { position: absolute; top: 0; right: 0; --au-case: var(--nuit); }
.appel__damier > i { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  html.js .appel__damier > i { opacity: 0; transition: opacity 0.3s var(--au-ease); transition-delay: calc(var(--au-i, 0) * 45ms); }
  html.js .appel.est-visible .appel__damier > i { opacity: 1; }
}
@media (max-width: 1199px) { .appel { padding: var(--espace-8) var(--espace-5); } }
@media (max-width: 809px) { .appel { padding: 120px var(--espace-3) var(--espace-4); border-radius: var(--rayon-carte); } .appel__texte .au-btn { align-self: stretch; } }
.appel-section { padding-bottom: var(--espace-12); }

/* ---------- Pied de page ---------- */
.au-pied__geant > span { will-change: transform; }
/* Le grand mot déborde au-dessus de la ligne des mentions : décoratif, il laisse passer les clics (bug signalé par Quentin le 03/11/2026) */
.au-pied__geant, .au-pied__geant * { pointer-events: none; }

/* ---------- Étape 4 : passe animations, tablette et mobile ---------- */
/* Défilement doux : réglages recommandés par Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* Le plasma est dessiné à une case par pixel puis agrandi sans lissage */
.hero__plasma { image-rendering: pixelated; }

/* Les bandeaux s'arrêtent sous la souris */
.logos__masque:hover .logos__piste { animation-play-state: paused; }

/* Chiffres : une colonne sur les petits téléphones, où « 100+ » ne tient plus à deux par ligne */
@media (max-width: 389px) { .chiffres__grille { grid-template-columns: minmax(0, 1fr); } }

/* À propos en tablette : photo en bandeau 3:2 au-dessus du texte, au lieu d'un portrait plein écran */
@media (min-width: 810px) and (max-width: 1199px) {
  .apropos__photo { max-width: none; }
  .apropos__cadre { aspect-ratio: 3 / 2; }
  .apropos__cadre img { object-position: 40% 35%; }
}

/* ---------- Avis réels : l'auteur reste en bas de la carte ---------- */
.au-avis .au-avis__auteur { margin-top: auto; }
.au-avis .au-avis__auteur .petit + .petit { color: var(--texte-secondaire); }
/* Avis : même hauteur partout, texte coupé à 4 lignes ; « Lire la suite » déplie l'avis entier (demande de Quentin le 03/11/2026) */
.au-avis { gap: var(--espace-2); min-height: 316px; }
.au-avis__texte { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; }
.au-avis.est-deplie .au-avis__texte { display: block; overflow: visible; }
.au-avis__plus { align-self: flex-start; margin-top: -8px; padding: 0; border: 0; background: none; color: var(--violet); font: inherit; text-decoration: underline; text-decoration-color: currentColor; text-underline-offset: 3px; cursor: pointer; transition: color var(--au-duree-survol) var(--au-ease); }
.au-avis__plus:hover { color: var(--blanc); }
.au-avis__plus[hidden] { display: none; }
.au-defile { align-items: flex-start; }
.au-defile.est-arrete { animation-play-state: paused; }


/* Maquette seulement : lien vers les propositions de hero */
.maquette-lien { position: fixed; left: max(16px, env(safe-area-inset-left, 0px)); bottom: max(16px, env(safe-area-inset-bottom, 0px)); z-index: 35; display: inline-flex; align-items: center; gap: var(--espace-1); min-height: var(--cible-tactile); padding: 0 var(--espace-2); border: 1px solid var(--ligne-nuit); border-radius: var(--rayon-pilule); background: var(--nuit); color: var(--blanc); text-decoration: none; }
.maquette-lien svg { width: 18px; height: 18px; color: var(--violet); }
.maquette-lien:hover { background: var(--violet); color: var(--nuit); }
.maquette-lien:hover svg { color: var(--nuit); }

/* ---------- Hero « Motifs » : pixels discrets en fond, texte à gauche, carte d'avis, logos en bas ---------- */
.hero--motifs { flex-direction: column; align-items: stretch; justify-content: center; gap: var(--espace-6); padding: 136px 0 var(--espace-4); }
.hero__pixels { position: absolute; inset: 0; z-index: -1; display: block; width: 100%; height: 100%; }
.hero__grille { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: var(--espace-6); align-items: center; }
.hero--motifs .hero__texte { display: flex; flex-direction: column; align-items: flex-start; text-align: left; }
.hero--motifs .hero__titre { max-width: 860px; text-wrap: balance; }
.hero--motifs .hero__ligne { display: inline; }
.hero--motifs .hero__ligne:first-child { white-space: normal; }
.hero--motifs .hero__sous-titre { max-width: 620px; }
.hero--motifs .hero__boutons { justify-content: flex-start; }
.hero__carte { gap: var(--espace-3); padding: var(--espace-4); }
.hero__carte.au-sur-noir { background-color: var(--voile-nav); } /* encart « Voile » : Noir translucide, la trame se devine au travers */
.hero__note { display: flex; flex-direction: column; gap: 6px; min-height: var(--cible-tactile); color: var(--texte-secondaire); text-decoration: none; }
.hero__note strong { color: var(--blanc); font-weight: 600; }
.hero__note:hover strong { color: var(--violet); }
.hero__citation { display: flex; flex-direction: column; gap: var(--espace-2); min-height: 188px; margin: 0; padding-top: var(--espace-3); border-top: 1px solid var(--ligne); transition: opacity 0.45s var(--au-ease); }
.hero__citation.est-cache { opacity: 0; }
.hero__citation blockquote { margin: 0; color: var(--blanc); }
.hero__citation figcaption { color: var(--texte-secondaire); }
.hero__auteur { color: var(--blanc); }
.hero__puces { display: flex; gap: 2px; margin: -10px 0 -14px -8px; }
.hero__puce { display: grid; place-items: center; width: 28px; height: var(--cible-tactile); padding: 0; border: 0; background: transparent; cursor: pointer; }
.hero__puce::before { content: ""; width: var(--carre); height: var(--carre); background: var(--ligne-nuit); transition: background-color var(--au-duree-survol) var(--au-ease), transform var(--au-duree-survol) var(--au-ease); }
.hero__puce:hover::before { background: var(--texte-secondaire); }
.hero__puce[aria-pressed="true"]::before { background: var(--violet); transform: scale(1.25); }
.hero__logos { width: 100%; margin-top: var(--espace-4); } /* un peu plus d'air sous le contenu du hero (demande de Quentin le 03/11/2026) */
.hero__logos .logos__piste img { height: 84px; }
@media (max-width: 1199px) {
  .hero__grille { grid-template-columns: minmax(0, 1fr); }
  .hero__carte { max-width: 560px; }
}
@media (max-width: 809px) {
  .hero--motifs { padding-top: 112px; gap: var(--espace-4); }
  .hero__citation { min-height: 0; }
  .hero__logos { margin-top: var(--espace-2); }
  .hero__logos .logos__piste img { height: 64px; }
}
@media (prefers-reduced-motion: reduce) { .hero__logos .logos__piste li { padding: 0 var(--espace-1); } } /* sans défilement, les logos tiennent sur une ligne */

/* Maquette seulement : réglage de l'intensité des pixels */
.maquette-reglage { gap: 2px; padding: 0 6px 0 var(--espace-2); }
.maquette-reglage span { margin-right: var(--espace-1); color: var(--texte-secondaire); }
.maquette-reglage button, .maquette-reglage a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border: 0; border-radius: var(--rayon-pilule); background: transparent; color: var(--blanc); font: inherit; text-decoration: none; cursor: pointer; }
.maquette-reglage button[aria-pressed="true"] { background: var(--violet); color: var(--nuit); }
.maquette-reglage a { color: var(--violet); }
.maquette-reglage:hover { background: var(--nuit); color: var(--blanc); }
/* Hero « Motifs » : « convertit pas » en violet plein, comme le reste du design system */
.hero--motifs .hero__degrade { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--violet); }

/* ---------- Projets personnels : liste de produits, aperçu qui suit la souris au survol ---------- */
.perso { position: relative; }
.perso__liste { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--ligne-nuit); }
.perso__ligne { border-bottom: 1px solid var(--ligne-nuit); }
.perso__lien { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) minmax(0, 3fr) 48px; gap: var(--espace-2) var(--espace-5); align-items: center; padding: var(--espace-5) 0; color: inherit; text-decoration: none; }
.perso__titre { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.perso__nom { font-size: 40px; line-height: 1.05; letter-spacing: -0.035em; color: var(--blanc); transition: color var(--au-duree-survol) var(--au-ease), transform var(--au-duree-carte) var(--au-ease); }
.perso__domaine { color: var(--texte-secondaire); }
.perso__texte { color: var(--texte-secondaire); }
.perso__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.perso__meta .au-pastille { height: 32px; padding: 0 12px; color: var(--blanc); }
.perso__statut { display: inline-flex; align-items: center; gap: 8px; width: 100%; color: var(--blanc); }
.perso__statut i { width: var(--carre); height: var(--carre); background: var(--violet); }
.perso__statut--interne i { background: transparent; box-shadow: inset 0 0 0 1px var(--texte-secondaire); }
.perso__fleche { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--ligne-nuit); border-radius: 50%; color: var(--violet); transition: background-color var(--au-duree-survol) var(--au-ease), color var(--au-duree-survol) var(--au-ease), border-color var(--au-duree-survol) var(--au-ease); }
.perso__fleche svg { width: 20px; height: 20px; }
.perso__fleche--vide { border-color: transparent; }
a.perso__lien:hover .perso__nom, a.perso__lien:focus-visible .perso__nom { color: var(--violet); transform: translateX(8px); }
a.perso__lien:hover .perso__fleche, a.perso__lien:focus-visible .perso__fleche { border-color: var(--violet); background: var(--violet); color: var(--nuit); }
a.perso__lien:focus-visible { outline-offset: 6px; }

/* Aperçu : dans la ligne sur mobile, flottant près du pointeur sur ordinateur */
.perso__lien .perso__apercu { display: none; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-radius: var(--rayon-image); }
.perso__survol { position: fixed; left: 0; top: 0; z-index: 30; width: 400px; aspect-ratio: 16 / 10; border: 1px solid var(--ligne-nuit); border-radius: var(--rayon-image); overflow: hidden; pointer-events: none; opacity: 0; scale: 0.92; transition: opacity 0.3s var(--au-ease), scale 0.45s var(--au-ease); }
.perso__survol.est-visible { opacity: 1; scale: 1; }
.perso__survol-vue { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; transition: opacity 0.25s var(--au-ease); }
.perso__survol-vue.est-active { opacity: 1; }

@media (max-width: 1199px) {
  .perso__lien { grid-template-columns: minmax(0, 1fr) 48px; }
  .perso__lien .perso__apercu { grid-row: 1; }
  .perso__titre { grid-column: 1; grid-row: 2; }
  .perso__fleche { grid-column: 2; grid-row: 2; }
  .perso__texte { grid-column: 1 / -1; grid-row: 3; }
  .perso__meta { grid-column: 1 / -1; grid-row: 4; }
}
@media (max-width: 1199px), (hover: none), (prefers-reduced-motion: reduce) {
  .perso__lien { padding: var(--espace-4) 0; }
  .perso__lien .perso__apercu { display: block; grid-column: 1 / -1; }
  .perso__survol { display: none; }
}
@media (max-width: 809px) {
  .perso__nom { font-size: 32px; }
}

/* ---------- Services : liste, la ligne survolée se remplit de bleu (choix de Quentin le 03/11/2026) ---------- */
.sa { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--ligne); }
.sa li { border-bottom: 1px solid var(--ligne); }
.sa__ligne { position: relative; isolation: isolate; display: grid; grid-template-columns: 64px minmax(0, 1fr) minmax(0, 380px) 48px; gap: var(--espace-3); align-items: center; padding: var(--espace-4) var(--espace-3); overflow: hidden; border-radius: var(--rayon-petit); color: var(--blanc); text-decoration: none; }
.sa__ligne::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--bleu); clip-path: inset(100% 0 0 0); transition: clip-path 0.55s var(--au-ease); }
.sa__num { color: var(--texte-secondaire); font-variant-numeric: tabular-nums; transition: color 0.3s var(--au-ease); }
.sa__titre { font-size: 48px; line-height: 1.05; font-weight: 500; letter-spacing: -0.035em; transition: transform 0.55s var(--au-ease); }
.sa__texte { color: var(--texte-secondaire); opacity: 0; transform: translateY(12px); transition: opacity 0.35s var(--au-ease), transform 0.55s var(--au-ease), color 0.3s var(--au-ease); }
.sa__fleche { justify-self: end; display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--ligne); border-radius: 50%; color: var(--violet); transition: background-color 0.3s var(--au-ease), color 0.3s var(--au-ease), border-color 0.3s var(--au-ease), transform 0.55s var(--au-ease); }
.sa__oblique { width: 22px; height: 22px; }
@media (hover: hover) and (min-width: 1200px) {
  /* Même hauteur pour toutes les lignes : le texte caché fait 3 ou 4 lignes selon le service */
  .sa__ligne { min-height: 176px; }
  .sa__ligne:hover::before, .sa__ligne:focus-visible::before { clip-path: inset(0 0 0 0); }
  .sa__ligne:hover .sa__titre, .sa__ligne:focus-visible .sa__titre { transform: translateX(12px); }
  .sa__ligne:hover .sa__num, .sa__ligne:focus-visible .sa__num, .sa__ligne:hover .sa__texte, .sa__ligne:focus-visible .sa__texte { color: var(--blanc); }
  .sa__ligne:hover .sa__texte, .sa__ligne:focus-visible .sa__texte { opacity: 1; transform: none; }
  .sa__ligne:hover .sa__fleche, .sa__ligne:focus-visible .sa__fleche { border-color: var(--blanc); background: var(--blanc); color: var(--bleu); transform: rotate(45deg); }
}
@media (max-width: 1199px), (hover: none) {
  .sa__ligne { grid-template-columns: minmax(0, 1fr) 48px; gap: var(--espace-1) var(--espace-2); padding: var(--espace-3) 0; }
  .sa__num { grid-column: 1; grid-row: 1; }
  .sa__titre { grid-column: 1; grid-row: 2; font-size: 32px; }
  .sa__texte { grid-column: 1 / -1; grid-row: 3; opacity: 1; transform: none; }
  .sa__fleche { grid-column: 2; grid-row: 1 / 3; }
}

/* Sous la liste des services : une phrase et le bouton de devis */
.services__bas { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--espace-3) var(--gouttiere); margin-top: var(--espace-6); }
.services__bas .corps-l { max-width: 560px; margin: 0; color: var(--texte-secondaire); }
@media (max-width: 767px) { .services__bas { margin-top: var(--espace-4); } .services__bas .au-btn { width: 100%; justify-content: center; } }

/* Images en AVIF avec repli WebP : l'enveloppe <picture> ne compte pas dans la mise en page */
picture { display: contents; }
/* Sans cela, <source> devient un élément de grille ou de flex (lignes des projets personnels décalées d'une colonne) */
picture > source { display: none; }
