/* One Code Pro : feuille de style

   Sommaire
   1. Base : variables, typographie, couleurs
   2. Composants communs : cartes et boutons
   3. En-tête : logo, navigation, langue, menu mobile
   4. Accueil : accroche et profils
   5. À propos : présentation, réseaux sociaux, logo, stack
   6. Services
   7. Projets : carousel 3D
   8. Contact : coordonnées et formulaire
   9. Boutons flottants : installer l'app, remonter en haut
   10. Pied de page
   11. Media queries : 1200px, 992px, 768px, 576px */

/* 1. Base : variables, typographie, couleurs */

/* Réinitialisation */
img {
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--fg);
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.65;
}

html {
  color-scheme: light;
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
  scrollbar-color: var(--accent) var(--black-color);
}

/* Variables et couleurs des sections (blanc ou noir) */
:root {
  --white-color: #FFFFFF;
  --black-color: #000000;
  --front-color: #0088BE;
  --back-color: #FF8000;
  --bg: var(--white-color);
  --fg: var(--black-color);
  --accent: var(--front-color);
  --font-title: "Space Grotesk",system-ui,sans-serif;
  --font-text: "Poppins",system-ui,sans-serif;
  --radius: 8px;
}

.bg-black,
header,
footer {
  --bg: var(--black-color);
  --fg: var(--white-color);
}

.bg-white,
.bg-black {
  background-color: var(--bg);
  color: var(--fg);
}

.hero,
#services,
#contact {
  background-image: linear-gradient(color-mix(in srgb, var(--fg) 8%, transparent) 1px,transparent 1px),linear-gradient(90deg,color-mix(in srgb, var(--fg) 8%, transparent) 1px,transparent 1px);
  background-size: 48px 48px;
  background-position: center top;
  background-attachment: fixed;
}

/* Typographie et liens */
h1,
h2,
h3 {
  font-family: var(--font-title);
  line-height: 1.1;
  margin: 0;
  text-wrap: balance;
}

h1 {
  font-size: 72px;
  font-weight: 700;
}

h2 {
  font-size: 40px;
  font-weight: 700;
}

h3 {
  font-size: 20px;
  font-weight: 700;
}

p {
  margin: 0;
}

a {
  color: var(--accent);
}

/* Conteneur et titres de section */
.wrap {
  max-width: 1152px;
  margin-inline: auto;
  padding-inline: 24px;
}

section {
  padding-block: 96px;
}

.eyebrow {
  font-family: var(--font-title);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.lead {
  color: color-mix(in srgb, var(--fg) 70%, transparent);
  max-width: 60ch;
  margin-top: 16px;
}

.head {
  margin-bottom: 48px;
}

/* Couleurs par métier : Frontend en bleu, Backend en orange */
.key {
  color: var(--accent);
}

.c-front {
  color: var(--front-color);
}

.c-back {
  color: var(--back-color);
}

.is-front,
.tech.front {
  --accent: var(--front-color);
}

.is-back,
.tech.back {
  --accent: var(--back-color);
}

/* Barre de défilement de la page */
::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: var(--black-color);
}

::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: var(--radius);
}

/* 2. Composants communs : cartes et boutons */

/* Cartes : rayon 8px, survol scale(1.04) */
.card {
  background: var(--bg);
  border: 1px solid color-mix(in srgb, var(--fg) 16%, transparent);
  border-radius: var(--radius);
  box-shadow: 0 0 24px color-mix(in srgb, var(--accent) 16%, transparent);
  transition: .3s;
}

.card:hover {
  transform: scale(1.04);
  box-shadow: 0 0 40px color-mix(in srgb, var(--accent) 40%, transparent);
}

/* Bouton texte */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font: 600 16px var(--font-text);
  padding: 12px 24px;
  border-radius: var(--radius);
  border: 1px solid color-mix(in srgb, var(--fg) 16%, transparent);
  background: var(--bg);
  color: var(--fg);
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 0 24px color-mix(in srgb, var(--accent) 16%, transparent);
  transition: .3s;
}

.btn:hover {
  transform: scale(1.04);
  box-shadow: 0 0 40px color-mix(in srgb, var(--accent) 40%, transparent);
}

/* Bouton icône */
.icon-btn {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  border: 1px solid color-mix(in srgb, var(--fg) 16%, transparent);
  background: var(--bg);
  color: var(--fg);
  font: 600 12px var(--font-title);
  cursor: pointer;
  transition: .3s;
}

.icon-btn:hover {
  transform: scale(1.04);
}

/* Bouton principal : fond bleu, texte blanc */
.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white-color);
}

/* Ombres : aucune au repos, au survol de la couleur du fond */
.btn,
.icon-btn,
.socials .icon-btn,
.to-top,
.install,
#menu,
#prev,
#next {
  box-shadow: none;
}

.icon-btn,
.to-top,
.install {
  transition: .3s;
}

.btn:hover,
.filters .btn:hover,
.icon-btn:hover,
.socials .icon-btn:hover,
.to-top:hover,
.install:hover,
#menu:hover,
#prev:hover,
#next:hover {
  box-shadow: 0 0 24px color-mix(in srgb, var(--accent) 70%, transparent);
}

.hero .btn:not(.primary):hover {
  box-shadow: none;
}

.filters [data-filter="*"]:hover,
.filters [data-filter=".other"]:hover,
.socials .icon-btn[title="Facebook"]:hover,
#prev:hover,
#next:hover {
  box-shadow: 0 0 24px color-mix(in srgb, var(--white-color) 70%, transparent);
}

/* 3. En-tête : logo, navigation, langue, menu mobile */

/* Barre d'en-tête et logo */
header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg);
  border-bottom: 1px solid color-mix(in srgb, var(--fg) 16%, transparent);
}

.bar {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font: 700 20px var(--font-title);
  color: var(--fg);
  text-decoration: none;
  margin-right: auto;
  white-space: nowrap;
}

.brand svg {
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
}

.logo-bg {
  fill: var(--black-color);
}

.logo-front {
  fill: var(--front-color);
}

.logo-back {
  fill: var(--back-color);
}

/* Navigation : lien survolé ou actif en bleu et agrandi */
nav {
  display: flex;
  gap: 24px;
}

nav a:hover {
  color: var(--accent);
}

nav a {
  color: var(--fg);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  display: inline-block;
  transition: .3s;
}

nav a:hover,
nav a.active {
  color: var(--accent);
  transform: scale(1.04);
}

/* Sélecteur de langue : couleur de la langue active */
.tools {
  display: flex;
  gap: 8px;
}

.lang {
  position: relative;
}

#lang {
  width: auto;
  display: flex;
  gap: 8px;
  padding-inline: 12px;
  border: 0;
  background: var(--front-color);
  color: var(--white-color);
}

#lang[data-tone="back"] {
  background: var(--back-color);
}

#lang[data-tone="back"]:hover {
  box-shadow: 0 0 24px color-mix(in srgb, var(--back-color) 70%, transparent);
}

#lang .fa-angle-down {
  transition: .3s;
}

#lang.open .fa-angle-down {
  transform: rotate(180deg);
}

.lang-list {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 40;
  display: grid;
  gap: 4px;
  min-width: 160px;
  margin: 0;
  padding: 8px;
  list-style: none;
  background: var(--black-color);
  border: 1px solid color-mix(in srgb, var(--fg) 16%, transparent);
  border-radius: var(--radius);
  box-shadow: 0 0 24px color-mix(in srgb, var(--accent) 16%, transparent);
}

.lang-list[hidden] {
  display: none;
}

.lang-list button {
  width: 100%;
  padding: 8px 12px;
  border: 0;
  border-radius: var(--radius);
  background: none;
  color: color-mix(in srgb, var(--fg) 70%, transparent);
  font: 500 16px var(--font-text);
  text-align: left;
  cursor: pointer;
  transition: .3s;
}

.lang-list button:hover {
  transform: scale(1.04);
  color: var(--white-color);
}

.lang-list .active,
.lang-list .active:hover {
  background: var(--front-color);
  color: var(--white-color);
}

.lang-list .active[data-tone="back"] {
  background: var(--back-color);
}

/* Bouton du menu mobile */
#menu {
  display: none;
}

#menu .fa-xmark {
  display: none;
}

/* Barre de progression du défilement */
.progress {
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 4px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
}

/* 4. Accueil : accroche et profils */

/* Accroche */
.hero .cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
}

.hero {
  padding-block: 96px;
  overflow-x: clip;
  display: flex;
  align-items: center;
  min-height: calc(100svh - 72px);
}

.hero .wrap {
  display: grid;
  gap: 48px;
  align-items: center;
  grid-template-columns: 1fr 1.2fr;
  width: 100%;
}

.hero h1 em {
  font-style: normal;
  color: inherit;
}

/* Profils : seule la photo est visible, le volet monte au survol */
.duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}

.role {
  font: 500 12px var(--font-title);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 4px 0 12px;
}

.person p {
  color: color-mix(in srgb, var(--fg) 70%, transparent);
  font-size: 16px;
}

.person .role {
  color: var(--accent);
}

.person {
  overflow: hidden;
  height: 100%;
  position: relative;
}

.person:hover .info,
.person:focus-within .info {
  translate: 0 0;
}

.person:hover img,
.person:focus-within img {
  filter: grayscale(1);
  transform: scale(1.04);
}

.person .info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  translate: 0 101%;
  transition: .3s;
  top: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  padding: 24px;
  border-top: 0;
  background: linear-gradient(to top,color-mix(in srgb, var(--white-color) 97%, transparent) 0%,color-mix(in srgb, var(--white-color) 90%, transparent) 38%,color-mix(in srgb, var(--white-color) 40%, transparent) 68%,color-mix(in srgb, var(--black-color) 40%, transparent) 100%);
}

.person .info h2 {
  color: var(--black-color);
}

.person .info p {
  color: var(--black-color);
}

.card.person:hover {
  transform: none;
}

.person h2 {
  font-size: 20px;
}

.person img {
  display: block;
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  transition: .3s;
  height: auto;
}

.person .info .role {
  order: 3;
  align-self: flex-start;
  margin: 8px 0 0;
  padding: 8px 16px;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--black-color);
  letter-spacing: .06em;
  white-space: nowrap;
  font-size: 12px;
}

/* 5. À propos : présentation, réseaux sociaux, logo, stack */

/* Présentation */
.about p+p {
  margin-top: 16px;
}

.about-desc {
  display: flex;
  align-items: center;
  gap: 32px;
}

.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-desc>div:last-child {
  min-width: 0;
}

/* Réseaux sociaux */
.socials {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}

.socials-v {
  order: 2;
  flex: none;
  flex-direction: column;
  margin: 0;
}

.socials .icon-btn {
  width: 48px;
  height: 48px;
  font-size: 20px;
  cursor: default;
  transition: .3s;
}

.socials .icon-btn:hover {
  transform: none;
  background: var(--accent);
  border-color: var(--accent);
  color: var(--black-color);
}

.socials .icon-btn[title="GitHub"] {
  --accent: var(--back-color);
}

.socials .icon-btn[title="Facebook"] {
  --accent: var(--white-color);
}

/* Logo animé */
.glass .mark {
  display: block;
  max-width: none;
  border-radius: 0;
  box-shadow: none;
}

.mark {
  width: 100%;
  max-width: 384px;
  justify-self: end;
  border-radius: var(--radius);
  box-shadow: 0 0 40px color-mix(in srgb, var(--accent) 40%, transparent);
}

@keyframes logo-float {
  0%,
  100% {
    transform: perspective(600px) rotateX(8deg) rotateY(-24deg) translateY(0);
  }

  50% {
    transform: perspective(600px) rotateX(-8deg) rotateY(24deg) translateY(-16px);
  }
}

@keyframes chevron-push {
  0%,
  100% {
    translate: 0 0;
  }

  50% {
    translate: 4px 0;
  }
}

.glass {
  width: 100%;
  max-width: 288px;
  justify-self: center;
  align-self: center;
  border-radius: var(--radius);
  overflow: hidden;
  line-height: 0;
  animation: logo-float 8s ease-in-out infinite;
}

.mark path {
  animation: chevron-push 2s ease-in-out infinite;
}

.mark path:nth-of-type(2) {
  animation-delay: .25s;
}

/* Filtres de la stack : Tout, Frontend, Backend, Autre */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 48px 0 24px;
}

.filters button.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--black-color);
}

.filters .btn {
  transition: .3s;
}

.filters .btn:hover {
  transform: none;
  background: var(--accent);
  border-color: var(--accent);
  color: var(--black-color);
}

.filters [data-filter="*"],
.filters [data-filter=".other"] {
  --accent: var(--white-color);
}

.filters [data-filter=".front"] {
  --accent: var(--front-color);
}

.filters [data-filter=".back"] {
  --accent: var(--back-color);
}

/* Tuiles de la stack : nom affiché au survol */
.stack {
  margin-inline: -8px;
}

.tech {
  width: 12.5%;
  padding: 8px;
}

.tech:hover {
  z-index: 2;
}

.tech>div {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  position: relative;
  aspect-ratio: 1;
  justify-content: center;
  padding: 0;
  background: var(--white-color);
  border-color: var(--white-color);
}

.tech i {
  font-size: 48px;
  width: auto;
  color: var(--black-color);
  transition: .3s;
}

.tech>div:hover i {
  color: var(--accent);
}

.tech-name {
  position: absolute;
  left: 50%;
  bottom: -20px;
  translate: -50% 0;
  padding: 8px 20px;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--black-color);
  font: 600 12px var(--font-text);
  white-space: nowrap;
  opacity: 0;
  transition: .3s;
  pointer-events: none;
  box-shadow: 0 0 24px color-mix(in srgb, var(--front-color) 45%, transparent);
}

.tech>div:hover .tech-name {
  opacity: 1;
}

.tech.back .tech-name {
  box-shadow: 0 0 24px color-mix(in srgb, var(--back-color) 45%, transparent);
}

.tech.other {
  --accent: var(--black-color);
}

.tech.other>.card:hover {
  box-shadow: 0 0 40px color-mix(in srgb, var(--fg) 45%, transparent);
}

.tech.other .tech-name {
  color: var(--white-color);
  box-shadow: 0 0 24px color-mix(in srgb, var(--white-color) 45%, transparent);
}

/* 6. Services */

.services {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 24px;
}

.service {
  padding: 32px 24px;
}

.service>i {
  color: var(--accent);
  font-size: 32px;
  margin-bottom: 20px;
}

.service p {
  color: color-mix(in srgb, var(--fg) 70%, transparent);
  font-size: 16px;
  margin-top: 12px;
}

/* 7. Projets : carousel 3D */

/* Scène 3D : les cartes tournent sur un anneau */
.ring {
  position: relative;
  width: 336px;
  transform-style: preserve-3d;
  transition: .7s;
  height: 400px;
}

.stage {
  perspective: 1100px;
  overflow: hidden;
  display: grid;
  place-items: center;
  height: 576px;
}

/* Cartes : impaires Adrien (bleu), paires Gaetan (orange) */
.slide p {
  color: color-mix(in srgb, var(--fg) 70%, transparent);
  font-size: 16px;
}

.slide h3 a {
  color: inherit;
  text-decoration: none;
}

.slide .thumb {
  display: grid;
  place-items: center;
  color: var(--black-color);
  font-size: 36px;
  overflow: hidden;
  background: var(--black-color);
  flex: none;
  height: 50%;
  border-radius: 0;
}

.slide .thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-width: none;
  object-position: left top;
}

.slide h3,
.slide p,
.slide small {
  margin-inline: 20px;
}

.slide h3 {
  margin-top: 8px;
}

.slide small {
  margin-top: auto;
  font: 500 12px var(--font-title);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid color-mix(in srgb, var(--fg) 16%, transparent);
  border-radius: var(--radius);
  backface-visibility: hidden;
  padding: 0;
  overflow: hidden;
  gap: 8px;
  box-shadow: none;
  transition: .5s;
}

.slide.active {
  box-shadow: 0 0 32px color-mix(in srgb, var(--front-color) 55%, transparent);
}

.slide.active:hover {
  box-shadow: 0 0 64px var(--front-color), 0 0 24px color-mix(in srgb, var(--front-color) 60%, transparent);
}

.slide h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.slide:nth-child(even) {
  --accent: var(--back-color);
}

.slide:nth-child(even).active {
  box-shadow: 0 0 32px color-mix(in srgb, var(--back-color) 55%, transparent);
}

.slide:nth-child(even).active:hover {
  box-shadow: 0 0 64px var(--back-color), 0 0 24px color-mix(in srgb, var(--back-color) 60%, transparent);
}

/* Flèches et compteur */
.car-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
  position: relative;
}

#prev,
#next {
  position: absolute;
  bottom: calc(100% + 252px);
  width: 64px;
  height: 64px;
  font-size: 24px;
  transition: .3s;
}

#prev:hover,
#next:hover {
  border-color: var(--white-color);
  background: var(--white-color);
  color: var(--black-color);
}

#prev {
  left: 0;
}

#next {
  right: 0;
}

#count {
  font-family: var(--font-title);
  font-variant-numeric: tabular-nums;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font: 500 16px var(--font-title);
  letter-spacing: .08em;
  color: color-mix(in srgb, var(--fg) 70%, transparent);
}

#count strong {
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  color: var(--accent);
  transition: .5s;
}

/* 8. Contact : coordonnées et formulaire */

/* Mise en page en deux colonnes */
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

/* Coordonnées : e-mail, téléphone, localisation */
.coords i {
  color: var(--accent);
  width: 24px;
}

.coords {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  display: grid;
  gap: 20px;
}

.coords li {
  display: flex;
  align-items: center;
  gap: 20px;
}

.coords li>div {
  min-width: 0;
}

.coord-ico {
  flex: none;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: var(--black-color);
  font-size: 20px;
  box-shadow: 0 0 24px color-mix(in srgb, var(--front-color) 30%, transparent);
}

.coords .coord-ico i {
  width: auto;
  color: var(--accent);
}

.coords small {
  display: block;
  font: 500 12px var(--font-title);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--fg) 70%, transparent);
}

.coords a,
.coords strong {
  display: block;
  color: var(--fg);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.coords a:hover {
  color: color-mix(in srgb, var(--fg) 70%, transparent);
}

.coords a {
  transition: .3s;
}

.coords li:last-child .coord-ico {
  --accent: var(--back-color);
}

.coords li:first-child .coord-ico {
  --accent: var(--white-color);
}

/* Formulaire */
form {
  padding: 32px;
  display: grid;
  gap: 16px;
}

form.card:hover {
  transform: none;
}

label {
  font-size: 16px;
  font-weight: 500;
  display: grid;
  gap: 8px;
}

input,
textarea {
  font: inherit;
  padding: 12px;
  border-radius: var(--radius);
  border: 1px solid color-mix(in srgb, var(--fg) 16%, transparent);
  background: var(--bg);
  color: var(--fg);
  width: 100%;
}

#sent {
  color: var(--accent);
  font-size: 16px;
}

form .btn {
  justify-self: start;
}

textarea {
  resize: vertical;
  min-height: 120px;
  max-height: 400px;
}

/* 9. Boutons flottants : installer l'app, remonter en haut */

/* Installer l'app : en bas à gauche, en orange */
.install:hover {
  transform: scale(1.04);
}

.install {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 15;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 48px;
  padding: 0 20px;
  border: 0;
  border-radius: var(--radius);
  background: var(--back-color);
  color: var(--black-color);
  font: 600 16px var(--font-text);
  cursor: pointer;
  transition: .3s;
  --accent: var(--back-color);
}

/* Remonter en haut : visible après 400px */
.to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 15;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--black-color);
  font-size: 20px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
}

.to-top.show {
  opacity: 1;
  visibility: visible;
}

.to-top:hover {
  transform: scale(1.04);
}

/* 10. Pied de page */

footer {
  border-top: 1px solid color-mix(in srgb, var(--fg) 16%, transparent);
  padding-block: 32px;
  color: color-mix(in srgb, var(--fg) 70%, transparent);
  font-size: 16px;
  background: var(--bg);
}

footer .wrap {
  text-align: center;
}

/* 11. Media queries */

/* 1200px et moins : petits ordinateurs */
@media (max-width: 1200px) {
  /* Typographie et liens */
  h1 {
    font-size: 60px;
  }

  /* Conteneur et titres de section */
  .wrap {
    max-width: 960px;
  }

  /* Profils */
  .person .info {
    padding: 16px;
  }

  .person .info .role {
    font-size: 12px;
    letter-spacing: 0;
    padding: 8px 12px;
  }

  /* Tuiles de la stack */
  .tech {
    width: 16.666%;
  }
}

/* 992px et moins : tablette, navigation en panneau latéral */
@media (max-width: 992px) {
  /* Typographie et liens */
  h1 {
    font-size: 52px;
  }

  h2 {
    font-size: 36px;
  }

  /* Barre d'en-tête et logo */
  header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 0;
    border-bottom: 0;
    background: none;
  }

  .bar {
    position: fixed;
    top: 0;
    bottom: 0;
    right: -100%;
    width: 82vw;
    height: auto;
    max-width: 320px;
    margin: 0;
    z-index: 30;
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    padding: 28px 24px 24px;
    background: var(--black-color);
    border-left: 1px solid color-mix(in srgb, var(--fg) 16%, transparent);
    visibility: hidden;
    transition: .3s;
  }

  .bar:has(nav.open) {
    right: 0;
    visibility: visible;
    box-shadow: 0 0 48px color-mix(in srgb, var(--front-color) 35%, transparent);
  }

  .brand {
    margin-right: 0;
  }

  .brand span {
    display: inline;
  }

  /* Navigation */
  nav a {
    padding: 20px 0;
    font-size: 20px;
    border-bottom: 1px solid color-mix(in srgb, var(--fg) 16%, transparent);
    transform-origin: left center;
  }

  nav {
    display: flex;
    top: 0;
    bottom: 0;
    left: auto;
    flex-direction: column;
    gap: 0;
    border-left: 1px solid color-mix(in srgb, var(--fg) 16%, transparent);
    border-bottom: 0;
    position: static;
    width: auto;
    padding: 0;
    border: 0;
    background: none;
    visibility: inherit;
    transition: none;
    z-index: auto;
  }

  nav.open {
    display: flex;
    right: 0;
    visibility: visible;
    box-shadow: none;
  }

  nav.open::before {
    content: "";
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    background: color-mix(in srgb, var(--black-color) 60%, transparent);
    right: 0;
    z-index: -1;
  }

  /* Sélecteur de langue */
  .tools {
    position: static;
    z-index: auto;
  }

  .lang-list {
    right: auto;
    left: 0;
  }

  /* Bouton du menu mobile */
  #menu.open .fa-bars {
    display: none;
  }

  #menu.open .fa-xmark {
    display: block;
  }

  #menu {
    display: grid;
    position: fixed;
    top: 16px;
    z-index: 32;
    width: 48px;
    height: 48px;
    visibility: visible;
    right: 24px;
    border: 0;
    background: var(--accent);
    color: var(--black-color);
    font-size: 20px;
  }

  /* Barre de progression du défilement */
  .progress {
    position: fixed;
    top: 0;
    bottom: auto;
  }

  /* Accroche */
  .hero {
    min-height: 100vh;
    min-height: 100svh;
  }

  /* Profils */
  .person .info {
    padding: 24px;
  }

  .person .info .role {
    white-space: normal;
    font-size: 12px;
    letter-spacing: .06em;
    padding: 8px 16px;
  }

  /* Grille des services */
  .services {
    grid-template-columns: 1fr 1fr;
  }

  /* Scène 3D */
  .ring {
    width: 288px;
  }

  /* Flèches et compteur */
  #prev,
  #next {
    position: static;
    width: 40px;
    height: 40px;
    font-size: 12px;
  }

  #count strong {
    font-size: 24px;
  }
}

/* 768px et moins : une seule colonne */
@media (max-width: 768px) {
  /* Typographie et liens */
  h1 {
    font-size: 44px;
  }

  /* Conteneur et titres de section */
  section,
  .hero {
    padding-block: 72px;
  }

  /* Sections en une colonne */
  .hero .wrap,
  .about,
  .contact {
    grid-template-columns: 1fr;
  }

  /* Présentation */
  .about-desc {
    gap: 24px;
  }

  /* Logo animé */
  .glass {
    max-width: 240px;
    order: 0;
  }

  /* Tuiles de la stack */
  .tech {
    width: 25%;
  }
}

/* 576px et moins : mobile */
@media (max-width: 576px) {
  /* Typographie et liens */
  h1 {
    font-size: 36px;
  }

  h2 {
    font-size: 28px;
  }

  /* Conteneur et titres de section */
  .wrap {
    padding-inline: 16px;
  }

  /* Barre d'en-tête et logo */
  .bar {
    padding-inline: 24px;
  }

  /* Bouton du menu mobile */
  #menu {
    right: 16px;
  }

  /* Accroche */
  .hero .cta {
    flex-direction: column;
  }

  .hero .cta .btn {
    justify-content: center;
  }

  /* Profils */
  .duo {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .person p {
    font-size: 16px;
  }

  .person .info .role {
    font-size: 12px;
  }

  /* Présentation */
  .about-desc {
    display: block;
  }

  /* Réseaux sociaux */
  .socials-v {
    flex-direction: row;
    margin: 0 0 20px;
  }

  /* Filtres de la stack */
  .filters {
    flex-wrap: nowrap;
    gap: 8px;
  }

  .filters .btn {
    flex: 1;
    min-width: 0;
    justify-content: center;
    padding: 12px 4px;
    font-size: 12px;
  }

  /* Tuiles de la stack */
  .tech {
    width: 33.333%;
  }

  .tech i {
    font-size: 40px;
  }

  /* Grille des services */
  .services {
    grid-template-columns: 1fr;
  }

  /* Scène 3D */
  .stage {
    height: 528px;
  }

  .ring {
    width: 256px;
    height: 352px;
  }

  /* Cartes */
  .slide .thumb {
    height: 42%;
  }

  .slide h3 {
    font-size: 20px;
  }

  .slide p {
    font-size: 12px;
  }

  /* Formulaire */
  form {
    padding: 20px;
  }

  /* Installer l'app */
  .install {
    left: 16px;
    bottom: 16px;
  }

  /* Remonter en haut */
  .to-top {
    right: 16px;
    bottom: 16px;
  }
}
