/* =========================================================
   AFRIGRAPHIK : feuille de style principale
   ========================================================= */


/* ---------------------------------------------------------
   1. VARIABLES
   Toutes les couleurs et tailles sont définies ici, une
   seule fois. Pour changer une couleur sur tout le site,
   il suffit de la modifier à cet endroit.
   --------------------------------------------------------- */
:root {
  /* Couleurs de la marque (inspirées du logo) */
  --bleu-profond: #0B1F3A;
  --bleu-nuit:    #071428;
  --cyan:         #1BB6E8;
  --orange:       #F7871F;
  --orange-fonce: #E06E0B;
  --blanc:        #FFFFFF;

  /* Couleurs neutres */
  --fond-clair:   #F5F7FA;
  --texte:        #1A2433;
  --texte-doux:   #5B6675;
  --bordure:      #E3E8EF;

  /* Polices */
  --police-titre: "Sora", system-ui, sans-serif;
  --police-texte: "Inter", system-ui, sans-serif;

  /* Arrondis et ombres */
  --arrondi:      14px;
  --arrondi-btn:  999px;
  --ombre:        0 10px 30px rgba(11, 31, 58, 0.08);

  /* Dimensions */
  --largeur-max:    1180px;
  --hauteur-header: 76px;
}


/* ---------------------------------------------------------
   2. REMISE À ZÉRO
   Chaque navigateur ajoute ses propres marges par défaut.
   On les retire pour partir sur une base identique partout.
   --------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth; /* défilement doux vers les sections */
  scroll-padding-top: var(--hauteur-header); /* évite que l'en-tête cache le titre des sections */
}

body {
  font-family: var(--police-texte);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--texte);
  background: var(--blanc);
  -webkit-font-smoothing: antialiased;
}

/* Quand le menu mobile est ouvert, la page derrière ne défile plus */
body.menu-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}


/* ---------------------------------------------------------
   3. TYPOGRAPHIE
   clamp(min, idéal, max) : la taille s'adapte à l'écran,
   plus petite sur téléphone, plus grande sur ordinateur.
   --------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--police-titre);
  color: var(--bleu-profond);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.2rem, 6vw, 3.8rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.4rem); font-weight: 600; }

.lead {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--texte-doux);
  max-width: 620px;
}

/* Petit texte au-dessus des titres */
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.75rem;
}

.text-orange { color: var(--orange); }
.text-cyan   { color: var(--cyan); }

/* Lien « Aller au contenu » : caché, il apparaît en haut à gauche
   quand on navigue au clavier avec la touche Tab */
.skip-link {
  position: absolute;
  z-index: 200;
  top: 12px;
  left: 12px;
  padding: 0.7rem 1.2rem;
  border-radius: 10px;
  background: var(--bleu-profond);
  color: var(--blanc);
  font-weight: 600;
  transform: translateY(-200%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: none;
}

/* Texte invisible à l'écran mais lu par Google et les lecteurs d'écran */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}


/* ---------------------------------------------------------
   4. MISE EN PAGE
   .container centre le contenu et garde une marge de
   chaque côté sur les petits écrans.
   --------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--largeur-max);
  margin: 0 auto;
  padding: 0 20px;
}


/* ---------------------------------------------------------
   5. BOUTONS
   --------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.8rem;
  border-radius: var(--arrondi-btn);
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px); /* léger soulèvement au survol */
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Petite version (utilisée dans l'en-tête) */
.btn--small {
  padding: 0.65rem 1.3rem;
  font-size: 0.95rem;
}

/* Bouton principal : orange */
.btn--primary {
  background: var(--orange);
  color: var(--blanc);
}
.btn--primary:hover {
  background: var(--orange-fonce);
}

/* Bouton secondaire : contour bleu */
.btn--outline {
  border-color: var(--bleu-profond);
  color: var(--bleu-profond);
}
.btn--outline:hover {
  background: var(--bleu-profond);
  color: var(--blanc);
}

/* Bouton secondaire pour fond foncé : contour blanc */
.btn--outline-light {
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--blanc);
}
.btn--outline-light:hover {
  background: var(--blanc);
  border-color: var(--blanc);
  color: var(--bleu-profond);
}


/* ---------------------------------------------------------
   6. EN-TÊTE
   « sticky » : l'en-tête reste collé en haut quand on défile.
   --------------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--hauteur-header);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

/* Fond blanc légèrement transparent avec effet de flou (verre dépoli).
   Il est placé sur un « calque » à part (::before) pour ne pas
   perturber le menu mobile. */
.header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

/* Ajouté par le JavaScript dès qu'on commence à défiler */
.header.is-scrolled {
  box-shadow: var(--ombre);
  border-color: var(--bordure);
}

.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.header__brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--police-titre);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  color: var(--bleu-profond);
}

.header__brand img {
  width: 46px;
  height: 46px;
  border-radius: 50%; /* le logo est rond : on coupe les coins noirs */
}

/* Menu (version ordinateur) */
.nav {
  display: flex;
  align-items: center;
  gap: 2.2rem;
}

.nav__list {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav__link {
  position: relative;
  font-weight: 500;
  color: var(--texte);
  padding: 0.3rem 0;
  transition: color 0.2s ease;
}

/* Trait orange qui apparaît sous le lien survolé ou actif */
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav__link:hover,
.nav__link.is-active {
  color: var(--bleu-profond);
}

.nav__link:hover::after,
.nav__link.is-active::after {
  transform: scaleX(1);
}

/* Bouton burger : caché sur ordinateur */
.burger {
  display: none;
}


/* ---------------------------------------------------------
   7. EN-TÊTE : VERSION TÉLÉPHONE ET TABLETTE
   Tout ce qui est entre ces accolades ne s'applique que
   sur les écrans de 900px de large ou moins.
   --------------------------------------------------------- */
@media (max-width: 900px) {

  /* Le burger : 3 traits */
  .burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: none;
    border: none;
    border-radius: 10px;
    cursor: pointer;
  }

  .burger span {
    display: block;
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background: var(--bleu-profond);
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  /* Quand le menu est ouvert, les 3 traits se transforment en croix */
  .burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* Le menu devient un panneau plein écran, caché par défaut */
  .nav {
    position: fixed;
    top: var(--hauteur-header);
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 2rem;
    padding: 1.5rem 20px 2rem;
    background: var(--blanc);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
  }

  /* Ajouté par le JavaScript quand on touche le burger */
  .nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav__list {
    flex-direction: column;
    gap: 0;
  }

  .nav__link {
    display: block;
    padding: 1rem 0;
    font-family: var(--police-titre);
    font-size: 1.4rem;
    font-weight: 600;
    border-bottom: 1px solid var(--bordure);
  }

  .nav__link::after {
    display: none;
  }

  .nav__link.is-active {
    color: var(--orange);
  }

  .nav__cta {
    width: 100%;
    padding: 0.9rem;
    font-size: 1rem;
  }
}


/* ---------------------------------------------------------
   8. ACCUEIL (HERO)
   --------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden; /* les formes qui dépassent sont coupées */
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - var(--hauteur-header));
  min-height: calc(100svh - var(--hauteur-header)); /* plus précis sur téléphone */
  background: radial-gradient(ellipse at 30% 0%, #12305A 0%, var(--bleu-profond) 50%, var(--bleu-nuit) 100%);
  color: var(--blanc);
}

/* Fine grille de points en fond, qui s'efface vers les bords */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}

/* Formes lumineuses floues (le « halo » du logo) */
.hero__decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  animation: flotter 16s ease-in-out infinite alternate;
}

.blob--cyan {
  width: 440px;
  height: 440px;
  top: -140px;
  left: -140px;
  background: var(--cyan);
  opacity: 0.40;
}

.blob--orange {
  width: 400px;
  height: 400px;
  bottom: -60px;
  right: -120px;
  background: var(--orange);
  opacity: 0.30;
  animation-delay: -8s;
}

@keyframes flotter {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(60px, 40px) scale(1.1); }
  100% { transform: translate(-30px, 70px) scale(0.95); }
}

/* Contenu : 1 colonne sur téléphone, 2 colonnes sur ordinateur */
.hero__inner {
  position: relative;
  z-index: 1;
  flex: 1;
  display: grid;
  align-items: center;
  gap: 3.5rem;
  padding-top: 60px;
  padding-bottom: 60px;
}

@media (min-width: 961px) {
  .hero__inner {
    grid-template-columns: 1.15fr 0.85fr;
  }
  /* Le logo grandit avec l'écran, sans que ses anneaux soient coupés */
  .hero__inner .hero__visual {
    width: min(380px, 30vw);
  }
}

.hero__title {
  color: var(--blanc);
  font-size: clamp(2rem, 4.6vw, 3.5rem);
  margin-bottom: 1.25rem;
}

/* Le mot qui change (titre animé) */
.rotator {
  display: block;
  white-space: nowrap;
}

.rotator__word {
  display: inline-block;
  color: var(--orange);
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.4s ease;
}

/* Le mot s'en va vers le haut... */
.rotator__word.is-out {
  opacity: 0;
  transform: translateY(-0.4em);
}

/* ...et le suivant arrive par le bas */
.rotator__word.is-in {
  opacity: 0;
  transform: translateY(0.4em);
  transition: none;
}

.hero__lead {
  color: rgba(255, 255, 255, 0.75);
}

.hero__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.2rem;
}

.hero__note {
  margin-top: 1.5rem;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.6);
}

.hero__note a {
  color: var(--blanc);
  font-weight: 600;
  border-bottom: 1px solid var(--orange);
}

/* Le logo et ses anneaux */
.hero__visual {
  position: relative;
  width: min(380px, 62vw);
  aspect-ratio: 1;
  margin: 0 auto;
}

.hero__visual img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  box-shadow: 0 0 70px rgba(27, 182, 232, 0.35), 0 0 140px rgba(247, 135, 31, 0.18);
  animation: flotter-doux 6s ease-in-out infinite;
}

.ring {
  position: absolute;
  border-radius: 50%;
  animation: tourner 40s linear infinite;
}

/* Anneau pointillé, tourne lentement */
.ring--1 {
  inset: -6%;
  border: 1.5px dashed rgba(255, 255, 255, 0.2);
}

/* Anneau extérieur cyan/orange, comme le cercle du logo */
.ring--2 {
  inset: -13%;
  border: 2px solid transparent;
  border-top-color: var(--cyan);
  border-bottom-color: var(--orange);
  opacity: 0.75;
  animation-duration: 12s;
}

@keyframes tourner {
  to { transform: rotate(360deg); }
}

@keyframes flotter-doux {
  50% { transform: translateY(-14px); }
}

/* Apparition en douceur au chargement de la page.
   --delai (dans le HTML) décale chaque élément pour un effet en cascade. */
.reveal-load {
  animation: monter 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  animation-delay: var(--delai, 0s);
}

@keyframes monter {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
}

/* Bandeau qui défile */
.marquee {
  position: relative;
  z-index: 1;
  overflow: hidden;
  padding: 1.1rem 0;
  background: rgba(7, 20, 40, 0.85);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: defiler 40s linear infinite;
}

/* Au survol de la souris, le bandeau se met en pause */
.marquee:hover .marquee__track {
  animation-play-state: paused;
}

.marquee__group {
  display: flex;
  flex-shrink: 0;
  list-style: none;
}

.marquee__group li {
  display: flex;
  align-items: center;
  padding-right: 2.5rem;
  font-family: var(--police-titre);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 600;
  white-space: nowrap;
}

/* Étoile orange entre chaque service */
.marquee__group li::after {
  content: "✦";
  margin-left: 2.5rem;
  color: var(--orange);
  font-size: 0.8em;
}

/* La liste étant écrite 2 fois, décaler de 50 % donne une boucle parfaite */
@keyframes defiler {
  to { transform: translateX(-50%); }
}

/* Sur téléphone : logo plus petit, sous le texte */
@media (max-width: 960px) {
  .hero__inner {
    padding-top: 48px;
    padding-bottom: 72px;
  }

  .hero__visual {
    width: min(240px, 60vw);
  }
}


/* ---------------------------------------------------------
   9. SECTIONS (styles communs à toutes les sections)
   --------------------------------------------------------- */
.section {
  padding: clamp(72px, 10vw, 120px) 0;
}

/* Variante avec fond gris très clair */
.section--light {
  background: var(--fond-clair);
}

/* En-tête de section : petit texte orange + titre + intro */
.section__head {
  max-width: 700px;
  margin: 0 auto clamp(40px, 6vw, 64px);
  text-align: center;
}

.section__head h2 {
  margin-bottom: 1rem;
}

.section__head .lead {
  margin: 0 auto;
}


/* ---------------------------------------------------------
   10. SERVICES
   Grille : 1 colonne sur téléphone, 2 sur tablette,
   et sur ordinateur 3 cartes en haut + 2 plus larges en bas.
   --------------------------------------------------------- */
.services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  /* La 5e carte prend toute la largeur pour ne pas rester seule */
  .service-card:last-child {
    grid-column: span 2;
  }
  .service-card:last-child .service-card__list {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .services__grid {
    grid-template-columns: repeat(6, 1fr);
  }
  .service-card {
    grid-column: span 2; /* 3 cartes par ligne */
  }
  .service-card.service-card--wide {
    grid-column: span 3; /* 2 cartes par ligne */
  }
  /* Dans les cartes larges, la liste passe sur 2 colonnes */
  .service-card--wide .service-card__list {
    grid-template-columns: 1fr 1fr;
  }
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2rem;
  background: var(--blanc);
  border: 1px solid var(--bordure);
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

/* Barre dégradée cyan → orange qui apparaît en haut au survol */
.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--cyan), var(--orange));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 45px rgba(11, 31, 58, 0.10);
  border-color: transparent;
}

.service-card:hover::before {
  transform: scaleX(1);
}

/* Grand numéro discret en haut à droite */
.service-card__num {
  position: absolute;
  top: 1.25rem;
  right: 1.6rem;
  font-family: var(--police-titre);
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1;
  color: rgba(11, 31, 58, 0.06);
}

/* Icône dans un carré arrondi (cyan ou orange) */
.service-card__icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 1.5rem;
  border-radius: 16px;
  background: rgba(27, 182, 232, 0.12);
  color: #0E8DB8; /* cyan plus foncé, plus lisible sur fond clair */
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.service-card--orange .service-card__icon {
  background: rgba(247, 135, 31, 0.12);
  color: var(--orange-fonce);
}

.service-card:hover .service-card__icon {
  background: var(--bleu-profond);
  color: var(--blanc);
  transform: rotate(-6deg) scale(1.05);
}

.service-card__icon svg {
  width: 26px;
  height: 26px;
}

.service-card h3 {
  margin-bottom: 0.6rem;
}

.service-card p {
  color: var(--texte-doux);
}

/* Liste avec des coches orange */
.service-card__list {
  display: grid;
  gap: 0.5rem 1.5rem;
  margin: 1.25rem 0 1.75rem;
  list-style: none;
  font-size: 0.95rem;
}

.service-card__list li {
  position: relative;
  padding-left: 1.6rem;
}

.service-card__list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  font-weight: 700;
  color: var(--orange);
}

/* Lien « Demander un devis → » toujours collé en bas de la carte */
.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  align-self: flex-start;
  margin-top: auto;
  font-weight: 600;
  color: var(--bleu-profond);
  border-bottom: 2px solid var(--orange);
  padding-bottom: 2px;
}

.service-card__link span {
  transition: transform 0.25s ease;
}

.service-card__link:hover span {
  transform: translateX(4px);
}

/* Bandeau « Un projet sur mesure ? » */
.services__cta {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 3rem;
  padding: 2.25rem;
  border-radius: 20px;
  background: var(--bleu-profond);
  color: var(--blanc);
}

/* Halo orange décoratif */
.services__cta::before {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  right: -80px;
  top: -150px;
  border-radius: 50%;
  background: var(--orange);
  opacity: 0.25;
  filter: blur(70px);
}

.services__cta > * {
  position: relative; /* le contenu passe au-dessus du halo */
}

.services__cta h3 {
  color: var(--blanc);
  margin-bottom: 0.3rem;
}

.services__cta p {
  color: rgba(255, 255, 255, 0.7);
}


/* ---------------------------------------------------------
   11. PORTFOLIO
   --------------------------------------------------------- */

/* Boutons de filtre */
.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
}

.filter {
  padding: 0.6rem 1.25rem;
  border: 1px solid var(--bordure);
  border-radius: var(--arrondi-btn);
  background: var(--blanc);
  color: var(--texte);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.filter:hover {
  border-color: var(--bleu-profond);
}

/* Filtre sélectionné */
.filter.is-active {
  background: var(--bleu-profond);
  border-color: var(--bleu-profond);
  color: var(--blanc);
}

/* Grille régulière : toutes les cartes ont la même taille.
   2 colonnes sur téléphone, 3 sur tablette, 4 sur ordinateur. */
.portfolio__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem 1rem;
}

@media (min-width: 768px) {
  .portfolio__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem 1.5rem;
  }
}

@media (min-width: 1100px) {
  .portfolio__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.project {
  position: relative;
}

/* Projet masqué par un filtre */
.project.is-hidden {
  display: none;
}

/* Petite animation quand un projet réapparaît après un filtre */
.project.is-entering {
  animation: apparaitre 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

@keyframes apparaitre {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.97);
  }
}

/* L'image (cliquable pour agrandir) */
.project__media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5; /* même format pour toutes les cartes */
  padding: 0;
  border: 0;
  border-radius: 16px;
  overflow: hidden;
  background: var(--fond-clair);
  cursor: zoom-in;
  box-shadow: 0 6px 20px rgba(11, 31, 58, 0.08);
}

/* L'image remplit la carte ; on garde le haut de l'affiche (titre).
   L'affiche entière reste visible en cliquant dessus. */
.project__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* Voile bleu qui apparaît au survol */
.project__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11, 31, 58, 0.7), rgba(11, 31, 58, 0.15));
  opacity: 0;
  transition: opacity 0.35s ease;
}

/* Rond orange « + » au centre */
.project__zoom {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin: -29px 0 0 -29px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--blanc);
  font-size: 2rem;
  font-weight: 400;
  line-height: 1;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.project__media:hover img,
.project__media:focus-visible img {
  transform: scale(1.06);
}

.project__media:hover::after,
.project__media:focus-visible::after {
  opacity: 1;
}

.project__media:hover .project__zoom,
.project__media:focus-visible .project__zoom {
  opacity: 1;
  transform: scale(1);
}

/* Étiquette « Exemple » en haut à gauche de l'image */
.project__tag {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 12px;
  padding: 0.2rem 0.65rem;
  border-radius: var(--arrondi-btn);
  background: rgba(255, 255, 255, 0.92);
  color: var(--bleu-profond);
  font-size: 0.72rem;
  font-weight: 600;
  pointer-events: none;
}

.project__info {
  padding: 1rem 0.25rem 0;
}

.project__cat {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange-fonce);
}

.project__title {
  margin-top: 0.15rem;
  font-size: 1.15rem;
}

/* Sur téléphone (2 colonnes étroites) : textes plus petits */
@media (max-width: 767px) {
  .project__info {
    padding-top: 0.6rem;
  }
  .project__cat {
    font-size: 0.68rem;
  }
  .project__title {
    font-size: 0.95rem;
  }
  .project__zoom {
    width: 46px;
    height: 46px;
    margin: -23px 0 0 -23px;
    font-size: 1.6rem;
  }
}

/* Appel à l'action sous la grille */
.portfolio__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 1.5rem;
  margin-top: 3.5rem;
  text-align: center;
}

.portfolio__cta p {
  font-family: var(--police-titre);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--bleu-profond);
}

/* Fenêtre d'agrandissement (lightbox) */
.lightbox {
  width: min(900px, calc(100% - 32px));
  max-height: calc(100% - 32px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 20px;
  background: var(--blanc);
  color: var(--texte);
  overflow: auto;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.lightbox[open] {
  animation: zoomer 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* Fond sombre derrière la fenêtre */
.lightbox::backdrop {
  background: rgba(7, 20, 40, 0.8);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

@keyframes zoomer {
  from {
    opacity: 0;
    transform: scale(0.94);
  }
}

/* L'image entière est visible, quelle que soit sa forme */
.lightbox__img {
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
  background: var(--bleu-nuit);
}

.lightbox__info {
  padding: 1.5rem 1.75rem 1.75rem;
}

.lightbox__info h3 {
  margin: 0.2rem 0 0.5rem;
}

.lightbox__desc {
  color: var(--texte-doux);
}

.lightbox__close {
  position: absolute;
  z-index: 1;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--bleu-profond);
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: var(--ombre);
  transition: background 0.2s ease, color 0.2s ease;
}

.lightbox__close:hover {
  background: var(--orange);
  color: var(--blanc);
}

/* Empêche la page de défiler derrière la fenêtre ouverte */
html:has(.lightbox[open]) {
  overflow: hidden;
}


/* ---------------------------------------------------------
   12. À PROPOS
   --------------------------------------------------------- */
.about__grid {
  display: grid;
  align-items: center;
  gap: 3.5rem;
}

@media (min-width: 961px) {
  .about__grid {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 5rem;
  }
}

/* Visuel : panneau bleu avec un bloc orange décalé derrière */
.about__visual {
  position: relative;
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
}

.about__visual::before {
  content: "";
  position: absolute;
  inset: 16px -16px -16px 16px; /* décalé vers le bas et la droite */
  border-radius: 28px;
  background: var(--orange);
}

@media (min-width: 961px) {
  .about__visual::before {
    inset: 24px -24px -24px 24px;
  }
}

.about__panel {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  aspect-ratio: 4 / 5;
  padding: clamp(28px, 5vw, 44px);
  border-radius: 28px;
  background: radial-gradient(ellipse at 20% 0%, #12305A 0%, var(--bleu-profond) 55%, var(--bleu-nuit) 100%);
  color: var(--blanc);
}

/* Grille de points + halo cyan, comme sur l'accueil */
.about__panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 26px 26px;
}

.about__panel::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  right: -90px;
  bottom: -60px;
  border-radius: 50%;
  background: var(--cyan);
  opacity: 0.3;
  filter: blur(70px);
}

.about__panel > * {
  position: relative;
  z-index: 1;
}

.about__quote-mark {
  font-family: var(--police-titre);
  font-size: 7rem;
  font-weight: 800;
  line-height: 0.8;
  color: var(--orange);
}

.about__slogan {
  font-family: var(--police-titre);
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.about__signature {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.about__signature img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
}

.about__signature strong {
  display: block;
  font-family: var(--police-titre);
  letter-spacing: 0.02em;
}

.about__signature span {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
}

/* Texte */
.about__content h2 {
  margin-bottom: 1.25rem;
}

.about__content p:not(.eyebrow) {
  color: var(--texte-doux);
  margin-bottom: 1rem;
}

/* Valeurs : 1 colonne sur téléphone, 2 ensuite */
.values {
  display: grid;
  gap: 1.5rem;
  margin-top: 2.25rem;
}

@media (min-width: 560px) {
  .values {
    grid-template-columns: 1fr 1fr;
  }
}

.value {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.value__icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: var(--blanc);
  color: var(--orange-fonce);
  box-shadow: var(--ombre);
}

.value__icon svg {
  width: 22px;
  height: 22px;
}

.value h3 {
  margin-bottom: 0.2rem;
  font-size: 1.05rem;
}

.about__content .value p {
  margin: 0;
  font-size: 0.93rem;
}

/* Chiffres clés (désactivés dans le HTML pour l'instant) */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: clamp(56px, 8vw, 88px);
  padding: 2rem;
  border-radius: 20px;
  background: var(--blanc);
  box-shadow: var(--ombre);
  text-align: center;
}

@media (min-width: 768px) {
  .stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat strong {
  display: block;
  font-family: var(--police-titre);
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--orange);
}

.stat span {
  font-size: 0.92rem;
  color: var(--texte-doux);
}

/* Méthode en 4 étapes */
.process {
  margin-top: clamp(64px, 9vw, 100px);
}

.process__title {
  margin-bottom: 2.5rem;
  text-align: center;
  font-size: clamp(1.4rem, 3vw, 1.8rem);
}

.process__steps {
  position: relative;
  display: grid;
  gap: 1.5rem;
  list-style: none;
}

@media (min-width: 640px) {
  .process__steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .process__steps {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Ligne pointillée orange qui relie les étapes */
  .process__steps::before {
    content: "";
    position: absolute;
    top: calc(1.75rem + 26px);
    left: 10%;
    right: 10%;
    height: 2px;
    background-image: linear-gradient(90deg, var(--orange) 50%, transparent 50%);
    background-size: 12px 2px;
  }
}

.step {
  position: relative;
  padding: 1.75rem;
  border: 1px solid var(--bordure);
  border-radius: 20px;
  background: var(--blanc);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step:hover {
  transform: translateY(-4px);
  box-shadow: var(--ombre);
}

.step__num {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 1.25rem;
  border-radius: 50%;
  background: var(--bleu-profond);
  color: var(--blanc);
  font-family: var(--police-titre);
  font-size: 1.1rem;
  font-weight: 700;
  box-shadow: 0 0 0 6px rgba(247, 135, 31, 0.15);
}

/* La dernière étape (la livraison) en orange */
.step:last-child .step__num {
  background: var(--orange);
}

.step h4 {
  margin-bottom: 0.4rem;
  font-size: 1.1rem;
}

.step p {
  font-size: 0.95rem;
  color: var(--texte-doux);
}


/* ---------------------------------------------------------
   13. CONTACT
   --------------------------------------------------------- */
.contact {
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse at 80% 0%, #12305A 0%, var(--bleu-profond) 50%, var(--bleu-nuit) 100%);
  color: var(--blanc);
}

/* Grille de points + halo orange */
.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
}

.contact::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  left: -160px;
  bottom: -160px;
  border-radius: 50%;
  background: var(--orange);
  opacity: 0.22;
  filter: blur(100px);
}

.contact__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 3rem;
  align-items: start;
}

@media (min-width: 961px) {
  .contact__grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.contact__info h2 {
  color: var(--blanc);
  margin-bottom: 1rem;
}

.contact__info .lead {
  color: rgba(255, 255, 255, 0.75);
}

.contact__list {
  display: grid;
  gap: 0.85rem;
  margin-top: 2rem;
  list-style: none;
}

/* Une ligne de coordonnées (icône + texte) */
.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  transition: background 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

a.contact-item:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateX(4px);
}

.contact-item__icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(27, 182, 232, 0.15);
  color: var(--cyan);
}

.contact-item__icon svg {
  width: 22px;
  height: 22px;
}

/* La ligne WhatsApp ressort en vert */
.contact-item--whatsapp .contact-item__icon {
  background: #25D366;
  color: var(--blanc);
}

.contact-item small {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.contact-item strong {
  display: block;
  font-weight: 600;
  overflow-wrap: anywhere; /* l'email ne déborde pas sur petit écran */
}

/* Formulaire (carte blanche) */
.contact-form {
  padding: clamp(24px, 4vw, 40px);
  border-radius: 24px;
  background: var(--blanc);
  color: var(--texte);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.3);
}

.contact-form h3 {
  margin-bottom: 0.4rem;
}

.contact-form > p {
  font-size: 0.95rem;
  color: var(--texte-doux);
}

.field {
  margin-top: 1.15rem;
}

.field label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--bleu-profond);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--bordure);
  border-radius: 12px;
  background: var(--fond-clair);
  color: var(--texte);
  font: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

/* Champ sélectionné : contour orange */
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--orange);
  background: var(--blanc);
  box-shadow: 0 0 0 4px rgba(247, 135, 31, 0.15);
}

.contact-form__submit {
  width: 100%;
  margin-top: 1.5rem;
}

.contact-form__note {
  margin-top: 0.75rem;
  font-size: 0.82rem;
  color: var(--texte-doux);
  text-align: center;
}


/* ---------------------------------------------------------
   14. PIED DE PAGE
   --------------------------------------------------------- */
.footer {
  padding-top: clamp(56px, 8vw, 80px);
  background: var(--bleu-nuit);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

/* Téléphone : 2 colonnes, le logo et le contact prennent toute la largeur */
.footer__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem 1.5rem;
  padding-bottom: 3rem;
}

.footer__brand,
.footer__grid > div:last-child {
  grid-column: 1 / -1;
}

@media (min-width: 640px) {
  .footer__brand,
  .footer__grid > div:last-child {
    grid-column: auto;
  }
}

@media (min-width: 1024px) {
  .footer__grid {
    grid-template-columns: 1.6fr 1fr 1.1fr 1.3fr;
  }
}

/* Le logo réutilise le style de l'en-tête, en blanc */
.footer .header__brand {
  color: var(--blanc);
  margin-bottom: 1rem;
}

.footer__brand p {
  max-width: 320px;
}

.footer h4 {
  margin-bottom: 1rem;
  font-size: 1rem;
  color: var(--blanc);
}

.footer__links {
  display: grid;
  gap: 0.55rem;
  list-style: none;
}

.footer__links li {
  overflow-wrap: anywhere;
}

.footer__links a {
  transition: color 0.2s ease;
}

.footer__links a:hover {
  color: var(--orange);
}

/* Icônes des réseaux sociaux */
.socials {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.25rem;
}

.social {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--blanc);
  transition: background 0.2s ease, transform 0.2s ease;
}

.social:hover {
  background: var(--orange);
  transform: translateY(-3px);
}

.social svg {
  width: 20px;
  height: 20px;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}


/* ---------------------------------------------------------
   15. BOUTON WHATSAPP FLOTTANT
   --------------------------------------------------------- */
.whatsapp-float {
  position: fixed;
  z-index: 90; /* sous l'en-tête et le menu mobile */
  right: 20px;
  bottom: 20px;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  color: var(--blanc);
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.45);
  animation: surgir 0.5s 1s cubic-bezier(0.2, 0.7, 0.2, 1.3) backwards; /* apparaît après 1 seconde */
  transition: transform 0.2s ease;
}

.whatsapp-float:hover {
  transform: scale(1.08);
}

.whatsapp-float svg {
  width: 30px;
  height: 30px;
}

/* Onde verte qui pulse autour du bouton */
.whatsapp-float::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 50%;
  background: #25D366;
  animation: pulser 2.4s ease-out infinite;
}

@keyframes pulser {
  0%   { transform: scale(1);   opacity: 0.55; }
  100% { transform: scale(1.7); opacity: 0; }
}

@keyframes surgir {
  from {
    opacity: 0;
    transform: scale(0.4);
  }
}

/* Bulle « Discuter avec nous » au survol (ordinateur) */
.whatsapp-float__label {
  position: absolute;
  right: 72px;
  padding: 0.5rem 0.9rem;
  border-radius: var(--arrondi-btn);
  background: var(--blanc);
  color: var(--bleu-profond);
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: var(--ombre);
  opacity: 0;
  transform: translateX(8px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.whatsapp-float:hover .whatsapp-float__label,
.whatsapp-float:focus-visible .whatsapp-float__label {
  opacity: 1;
  transform: none;
}

@media (max-width: 600px) {
  .whatsapp-float {
    right: 16px;
    bottom: 16px;
    width: 56px;
    height: 56px;
  }
}


/* ---------------------------------------------------------
   16. FOCUS CLAVIER
   Contour orange visible quand on navigue avec la touche Tab.
   --------------------------------------------------------- */
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}


/* ---------------------------------------------------------
   17. APPARITION AU DÉFILEMENT
   Les éléments avec la classe "reveal" apparaissent en
   glissant vers le haut quand ils entrent dans l'écran.
   (".js" est ajouté par le JavaScript : sans JavaScript,
   tout reste visible normalement.)
   --------------------------------------------------------- */
.js .reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--delai, 0s);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}


/* ---------------------------------------------------------
   ACCESSIBILITÉ : si la personne a demandé à son téléphone
   ou ordinateur de réduire les animations, on les coupe.
   --------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
  .marquee__track,
  .blob,
  .ring,
  .hero__visual img,
  .whatsapp-float,
  .whatsapp-float::before {
    animation: none;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

