/* ==========================================================
   noerossner.fr — feuille de style
   Valeurs reprises du projet Framer (couleurs, polices, tailles).
   Ordinateur ≥ 1200 px · Tablette 810–1199 px · Mobile < 810 px
   ========================================================== */

@font-face { font-family: "PP Object Sans"; src: url("../fonts/pp-object-sans-regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "PP Object Sans"; src: url("../fonts/pp-object-sans-bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "PP Object Sans"; src: url("../fonts/pp-object-sans-heavy.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "PP Formula Condensed"; src: url("../fonts/pp-formula-condensed-regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  /* Couleurs (styles de couleur Framer) */
  --noir: #0d0d0d;
  --blanc: #ffffff;
  --rouge: #d3204c;
  --gris-revele: #9ca3af;   /* texte d’intro avant révélation */

  /* Polices */
  --police-titre: "PP Formula Condensed", "Arial Narrow", Arial, sans-serif;
  --police-texte: "PP Object Sans", Arial, Helvetica, sans-serif;

  /* Tailles — ordinateur */
  --h1: 70px;        --h1-lh: 38px;     /* gros titres */
  --h2: 64px;        --h2-lh: 65px;     /* titres des tuiles */
  --h3: 25px;                           /* titres du CV */
  --h6: 32px;                           /* mail / téléphone */
  --texte: 16px;                        /* texte courant */
  --bouton: 15px;                       /* boutons rouges */
  --cv-titre: 16px;

  --ressort: cubic-bezier(.22, 1, .36, 1);
}

@media (min-width: 810px) and (max-width: 1199.98px) {
  :root { --h1: 60px; --h2: 37px; --h2-lh: 38px; --h3: 20px; --h6: 26px; --texte: 12px; --bouton: 14px; --cv-titre: 12px; }
}
@media (max-width: 809.98px) {
  :root { --h1: 40px; --h1-lh: 18px; --h2: 32px; --h2-lh: 33px; --h3: 16px; --h6: 24px; --texte: 12px; --bouton: 12px; --cv-titre: 12px; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--noir);
  color: var(--blanc);
  font-family: var(--police-texte);
  font-size: var(--texte);
  line-height: 1.3;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, figure, ul { margin: 0; padding: 0; }
ul { list-style: none; }
:focus-visible { outline: 2px solid var(--blanc); outline-offset: 3px; }
[id] { scroll-margin-top: 20px; }

.h1 {
  font-family: var(--police-titre);
  font-weight: 400;
  font-size: var(--h1);
  line-height: var(--h1-lh);
  white-space: nowrap;
}

/* ---------- Structure ---------- */
.page { display: flex; flex-direction: column; align-items: center; padding-bottom: 50px; overflow-x: clip; }
.conteneur {
  width: 100%;
  max-width: 1800px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--gap-conteneur, 70px);
  padding-inline: var(--marge, 30px);
}
.contenu { width: 95%; display: flex; flex-direction: column; align-items: flex-start; gap: 30px; }

@media (max-width: 809.98px) {
  .page { padding-bottom: 24px; }
  .conteneur { --marge: 10px; --gap-conteneur: 40px; }
  .contenu { gap: 24px; }
}

/* ---------- Menu (pilule blanche) ---------- */
.navbar { width: 100%; display: flex; justify-content: center; padding-top: 40px; position: relative; z-index: 5; }
@media (max-width: 809.98px) { .navbar { padding-top: 10px; } }

.nav {
  display: flex;
  align-items: center;
  height: 45px;
  padding: 0 8px 0 10px;
  border-radius: 29px;
  background: var(--blanc);
  color: #000;
  box-shadow: 0 .3px 1.5px -1.33px rgba(0,0,0,.38), 0 1.14px 5.7px -2.67px rgba(0,0,0,.33), 0 5px 25px -4px rgba(0,0,0,.1);
  cursor: pointer;
  transition: padding .45s var(--ressort);
}
.nav-logo, .nav-points { flex: none; width: 30px; height: 30px; display: grid; place-items: center; transition: opacity .3s, filter .3s; }
.nav-logo img { width: 26px; height: 28px; object-fit: contain; }
.nav-points svg { width: 30px; height: 30px; }
.nav-liens {
  display: flex;
  gap: 30px;
  max-width: 0;
  margin: 0 15px;
  overflow: hidden;
  opacity: 0;
  filter: blur(5px);
  white-space: nowrap;
  transition: max-width .45s var(--ressort), margin .45s var(--ressort), opacity .3s, filter .3s;
}
.nav-liens a { font-size: 16px; line-height: 1.3; transition: opacity .3s; }
.nav-liens a:hover { opacity: .5; }
.nav.est-ouvert { padding: 0; cursor: default; }
.nav.est-ouvert .nav-liens { max-width: 520px; margin: 0; opacity: 1; filter: none; }
.nav.est-ouvert .nav-logo, .nav.est-ouvert .nav-points { opacity: 0; filter: blur(10px); }
@media (max-width: 809.98px) { .nav-liens { gap: 18px; } .nav-liens a { font-size: 14px; } }

/* ---------- Boutons rouges ---------- */
.bouton {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border-radius: 10px;
  background: var(--fond-bouton, var(--rouge));
  color: var(--noir);
  font-weight: 700;
  font-size: var(--bouton);
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background-color .4s var(--ressort), transform .4s var(--ressort);
}
.bouton svg { width: 15px; height: 15px; flex: none; }
.bouton:hover { background: var(--survol-bouton, var(--blanc)); }
.bouton--saut:hover { transform: translate(4px, -4px) scale(1.1); }
.bouton--haut svg { transform: rotate(-45deg); }
.bouton--blanc { --fond-bouton: var(--blanc); --survol-bouton: rgba(255,255,255,.66); }

/* ---------- Ligne titre + bouton ---------- */
.ligne-titre { display: flex; align-items: flex-end; gap: 20px; }
@media (max-width: 809.98px) { .ligne-titre { flex-direction: column; align-items: flex-start; gap: 14px; } }

/* ---------- Accueil ---------- */
.accueil { --marge: 90px; --gap-conteneur: 54px; }
@media (min-width: 810px) and (max-width: 1199.98px) { .accueil { --marge: 24px; } }
@media (max-width: 809.98px) { .accueil { --marge: 20px; --gap-conteneur: 54px; } }

.hero { width: 100%; display: flex; justify-content: center; }
.hero-visuel {
  width: 50%;
  height: 75.875vh;
  background: url("../images/accueil-logo-photo.png") center / contain no-repeat;
}
@media (max-width: 809.98px) {
  .hero { height: 74.17vh; align-items: center; }
  .hero-visuel { width: 100%; height: 34vh; }
}

.intro { width: 46.63%; height: 100vh; display: flex; align-items: center; justify-content: center; }
.intro p { font-size: 29px; line-height: 1.4; letter-spacing: -.02em; text-align: center; }
@media (min-width: 810px) and (max-width: 1199.98px) { .intro { width: 71.4%; } }
@media (max-width: 809.98px) { .intro { width: 87.4%; height: 50vh; } .intro p { font-size: 20px; } }

.sections { width: 100%; display: flex; flex-direction: column; gap: 70px; }
.showreel { display: flex; flex-direction: column; gap: 30px; }
.separateur { height: 1px; }
.video-showreel { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; background: #000; }

.projets { display: flex; flex-direction: column; gap: 48px; }
.rangee { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; align-items: end; }
@media (max-width: 809.98px) {
  .sections { gap: 35px; }
  .projets, .rangee { gap: 24px; }
  .rangee { grid-template-columns: 1fr; }
}

/* Tuiles projets : au survol, l’image se floute et le texte apparaît */
.tuile { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: 10px; overflow: hidden; isolation: isolate; }
.tuile img { width: 100%; height: 100%; object-fit: cover; transition: filter .45s var(--ressort), transform .45s var(--ressort); }
.tuile::after { content: ""; position: absolute; inset: 0; background: var(--voile, rgba(0,0,0,.29)); opacity: 0; transition: opacity .45s var(--ressort); }
.tuile--claire { --voile: rgba(255,255,255,.35); --texte-tuile: #000; }
.tuile-infos {
  position: absolute; inset: 0; z-index: 1;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 52px;
  padding: 30px;
  color: var(--texte-tuile, var(--blanc));
}
.tuile-texte { max-width: 600px; display: flex; flex-direction: column; gap: 10px; opacity: 0; transition: opacity .45s var(--ressort); }
.tuile-texte h3 { font-weight: 700; font-size: var(--h2); line-height: var(--h2-lh); white-space: pre-line; }
.tuile-texte p { max-width: 380px; font-size: 16px; }
.pilule {
  flex: none;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 20px 30px;
  border-radius: 130px;
  background: var(--blanc); color: #000;
  font-size: 16px; white-space: nowrap;
  opacity: 0; transform: translateY(-40px);
  transition: opacity .45s var(--ressort), transform .45s var(--ressort);
}
.pilule svg { width: 15px; height: 15px; transition: transform .45s var(--ressort); }
.tuile--claire .pilule { background: #000; color: var(--blanc); }
.tuile--claire .pilule svg path { fill: var(--blanc); }
.pilule:hover svg { transform: translateX(6px) rotate(45deg); }
@media (hover: hover) {
  .tuile:hover img { filter: blur(17px); transform: scale(1.1); }
  .tuile:hover::after, .tuile:hover .tuile-texte, .tuile:hover .pilule { opacity: 1; }
  .tuile:hover .pilule { transform: none; }
}

/* ---------- Pages projet ---------- */
.projet .ligne-titre { padding-top: var(--titre-haut, 90px); }
.retour { display: flex; align-items: center; height: 22px; flex: none; }
.retour img { height: 22px; width: auto; }
.titre-retour { display: flex; align-items: flex-end; gap: 20px; }
@media (max-width: 809.98px) {
  .projet .ligne-titre { padding-top: 40px; }
  .titre-retour { gap: 14px; }
}

.media { width: 100%; }
.media img, .media video { width: 100%; height: auto; border-radius: 10px; }

.bloc-texte { width: 100%; display: flex; flex-direction: column; align-items: center; padding-block: var(--bloc-texte, 220px); }
.bloc-texte p { max-width: 600px; text-align: center; }
.bloc-texte p + p { margin-top: 1.3em; }
@media (max-width: 809.98px) { .bloc-texte { --bloc-texte: 100px; } }

/* Galeries sur 2 colonnes (sur mobile : 1 colonne, images alternées comme sur Framer) */
.galerie { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; align-items: start; }
.galerie .col { display: grid; gap: 30px; }
.galerie img, .galerie video { width: 100%; height: auto; border-radius: 10px; }
.galerie--fixe img, .galerie--fixe video { height: var(--hauteur-fixe); object-fit: cover; }
.galerie--videos video { aspect-ratio: 16 / 9; object-fit: cover; background: #000; }

@media (max-width: 809.98px) {
  .galerie { grid-template-columns: 1fr; }
  .galerie .col { display: contents; }
  .galerie .col:first-child > :nth-child(1) { order: 1; }
  .galerie .col:last-child  > :nth-child(1) { order: 2; }
  .galerie .col:first-child > :nth-child(2) { order: 3; }
  .galerie .col:last-child  > :nth-child(2) { order: 4; }
  .galerie .col:first-child > :nth-child(3) { order: 5; }
  .galerie .col:last-child  > :nth-child(3) { order: 6; }
  .galerie--fixe img, .galerie--fixe video { height: auto; aspect-ratio: var(--ratio-mobile, auto); }
}

.embed { width: 100%; height: 951px; border: 0; border-radius: 10px; background: #fff; }
@media (max-width: 809.98px) { .embed { height: 75vh; } }

/* ---------- Bloc « ME CONTACTER » ---------- */
.contact {
  width: var(--largeur-contact, 95%);
  display: flex; flex-direction: column;
  padding: 34px;
  border-radius: 10px;
  background: var(--rouge);
}
.contact .h1 { padding-top: 30px; }
.contact-lignes { align-self: flex-end; padding-top: 80px; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.contact-lignes p { font-size: var(--h6); line-height: 1.2; }
.accueil .contact { --largeur-contact: 100%; }
@media (max-width: 809.98px) {
  .contact { padding: 20px; }
  .contact .h1 { padding-top: 15px; font-size: 60px; line-height: 38px; }
}

/* ---------- CV ---------- */
.cv .navbar { position: absolute; top: 0; left: 0; }
.cv-contenu { width: 85%; display: flex; flex-direction: column; gap: 70px; padding-top: 170px; }
.cv-contenu .ligne-titre { padding-top: 70px; flex-direction: row; align-items: flex-end; }
.telecharger {
  display: grid; place-items: center;
  padding: 10px; border-radius: 10px;
  background: var(--rouge); color: #000;
  transition: transform .4s var(--ressort), color .4s;
}
.telecharger svg { width: 16px; height: 16px; }
.telecharger:hover { transform: scale(1.1); color: #fff; }

.cv-colonnes { width: 90.18%; display: flex; gap: 40px; padding-bottom: 100px; }
.cv-col { display: flex; flex-direction: column; gap: 60px; }
.cv-col:first-child { flex: 1; }
.cv-col:last-child { width: 421px; flex: none; }
.cv-section { display: flex; flex-direction: column; gap: 30px; }
.cv-section h3 { font-weight: 800; font-size: var(--h3); line-height: 1.2; }
.cv-liste { display: flex; flex-direction: column; gap: 30px; }
.cv-item { display: flex; align-items: flex-start; gap: 20px; }
.cv-item::before {
  content: ""; flex: none; width: 13px; height: 14px; margin-top: 3px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='14'%3E%3Cpath d='M0 3.646 13 0l-2.153 12.51L2.153 14Z' fill='%23d3204c'/%3E%3C/svg%3E") no-repeat;
}
.cv-item strong { display: block; font-weight: 700; font-size: var(--cv-titre); line-height: 1.3; }
.cv-item span { display: block; white-space: pre-line; }
.cv-mosaique { display: flex; flex-wrap: wrap; gap: 20px 40px; }
.cv-mosaique .cv-item { min-width: var(--min, 0); }
.cv-competences { display: flex; gap: 40px; }
.cv-competences .cv-liste { gap: 25px; }
.cv-logos { display: flex; flex-direction: column; gap: 10px; }
.cv-logos div { display: flex; align-items: center; gap: 30px; }
.cv-logos img { height: auto; }

@media (max-width: 1199.98px) { .cv-col:last-child { width: auto; flex: 1; } }
@media (max-width: 809.98px) {
  .cv-contenu { width: 90%; padding-top: 70px; gap: 40px; }
  .cv-contenu .ligne-titre { padding-top: 30px; }
  .cv-colonnes { width: 100%; flex-direction: column; gap: 60px; padding-bottom: 40px; }
  .cv-logos div { flex-wrap: wrap; }
}

/* ---------- Animations d’apparition (désactivées si l’utilisateur réduit les animations) ---------- */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .js .page { animation: entree-page .35s cubic-bezier(.12,.23,.5,1) .45s both; }
  @keyframes entree-page { from { opacity: 0; transform: translateY(50px); } }

  .js [data-anim] { opacity: 0; transition: opacity 1s var(--ressort), transform 1s var(--ressort), background-color .4s var(--ressort); transition-delay: var(--delai, 0s); }
  .js [data-anim="monte"] { transform: translateY(60px); }
  .js [data-anim="gauche"] { transform: translateX(-30px); transition-duration: 1.2s, 1.2s, .4s; transition-timing-function: cubic-bezier(.44,0,0,1); }
  .js [data-anim].est-visible { opacity: 1; transform: none; }
  .js [data-anim].est-visible.bouton--saut:hover { transform: translate(4px, -4px) scale(1.1); }

  .js [data-mots] .mot { display: inline-block; opacity: 0; transform: translateY(10px); transition: opacity 1.2s var(--ressort), transform 1.2s var(--ressort); }
  .js [data-mots].est-visible .mot { opacity: 1; transform: none; }
}

.intro .lettre { display: inline-block; white-space: pre; }
.intro .mot-groupe { display: inline-block; white-space: nowrap; }
