/* ==========================================================================
   STYLE.CSS — Feuille de style unique du portfolio
   Couvre : base, header, hero, about, projects, pages projet, footer
   Architecture BEM · Variables CSS · Mobile-first
   Auteure : Célia Rodrigues
   ========================================================================== */

/* ==========================================================================
   1. VARIABLES CSS — Système de design centralisé (SSOT)
   ========================================================================== */
:root {
  --color-bg: #ffffff;
  --color-text: #000000;
  --color-primary: #ff8c00;
  --color-secondary: #5b6cc0;
  --color-focus: #0056b3;

  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 2rem;

  --font-family:
    "Bricolage Grotesque", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
  --font-family-title:
    "Polymath", "Bricolage Grotesque", -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-size-base: 1.125rem;
  --line-height: 1.5;

  /* Layout */
  --container-max-wide: 1200px;
  --container-max-narrow: 860px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 999px;

  /* Ombres */
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.08), 0 1px 4px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 8px 40px rgba(0, 0, 0, 0.13);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-med: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   2. RESET DE BASE
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: var(--line-height);
  min-height: 100vh;
  overflow-x: hidden;
}

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

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

/* ==========================================================================
   3. ACCESSIBILITÉ
   ========================================================================== */

/* Lien de saut (RGAA 12.7) */
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  left: 0;
  top: 0;
  width: auto;
  height: auto;
  background: var(--color-text);
  color: var(--color-bg);
  padding: var(--spacing-sm) var(--spacing-md);
  z-index: 1000;
  text-decoration: underline;
  border-radius: 0 0 var(--radius-sm) 0;
}

/* Focus visible clavier (RGAA 10.7) */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* Contenu réservé aux lecteurs d'écran */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   4. HEADER / NAVIGATION — commun à toutes les pages
   ========================================================================== */
.site-header {
  background-color: var(--color-bg);
  border-bottom: 1px solid #e0e0e0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header__container {
  max-width: var(--container-max-wide);
  margin: 0 auto;
  padding: var(--spacing-md) var(--spacing-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header__logo {
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--color-text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  transition: opacity var(--transition-fast);
  /* z-index pour rester au-dessus du menu mobile ouvert */
  position: relative;
  z-index: 2;
}
.header__logo:hover {
  opacity: 0.7;
}

.logo__star {
  width: 24px;
  height: 24px;
  object-fit: contain;
  display: block;
}

.header__nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: var(--spacing-lg);
}

.header__nav-link {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: color var(--transition-fast);
}

.header__nav-link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--color-secondary);
  transition: width var(--transition-med);
}

.header__nav-link:hover,
.header__nav-link:focus {
  color: var(--color-secondary);
}
.header__nav-link:hover::after {
  width: 100%;
}

/* ── Burger button (masqué sur desktop, visible sur mobile) ── */
/*
 * RGAA 11.1 : le bouton a un aria-label explicite.
 * RGAA 12.6 : aria-expanded communique l'état ouvert/fermé.
 * RGAA 10.7 : le focus-visible est géré via la règle globale.
 */
.header__burger {
  display: none; /* masqué sur desktop */
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px; /* taille cible WCAG 2.5.5 : 44×44px minimum */
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  position: relative;
  z-index: 2;
}

.header__burger-line {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--color-text);
  border-radius: 2px;
  transition:
    transform var(--transition-med),
    opacity var(--transition-fast);
  transform-origin: center;
}

/* Animation du burger → croix quand le menu est ouvert */
.header__burger[aria-expanded="true"] .header__burger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.header__burger[aria-expanded="true"] .header__burger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.header__burger[aria-expanded="true"] .header__burger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Menu mobile (panneau déroulant) ── */
@media (max-width: 640px) {
  .header__burger {
    display: flex; /* visible uniquement sur mobile */
  }

  .header__nav {
    /* Panneau caché par défaut — hors du flux visuel et inaccessible */
    position: absolute;
    top: 100%; /* colle sous le header sticky */
    left: 0;
    right: 0;
    background-color: var(--color-bg);
    border-bottom: 1px solid #e0e0e0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);

    /* Animation d'entrée par glissement vertical */
    max-height: 0;
    overflow: hidden;
    transition:
      max-height var(--transition-med),
      opacity var(--transition-fast);
    opacity: 0;
    visibility: hidden; /* retire du flux clavier quand fermé — RGAA 4.1 */
  }

  /* État ouvert — déclenché par JS via .header__nav--open */
  .header__nav--open {
    max-height: 300px; /* valeur haute pour laisser le contenu s'afficher */
    opacity: 1;
    visibility: visible;
  }

  .header__nav-list {
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0 1rem;
  }

  .header__nav-list li {
    border-bottom: 1px solid #f0f0ec;
  }
  .header__nav-list li:last-child {
    border-bottom: none;
  }

  .header__nav-link {
    display: block;
    padding: 0.85rem var(--spacing-lg);
    font-size: 1.1rem;
  }

  /* Pas de soulignement animé sur mobile : l'effet n'est pas pertinent */
  .header__nav-link::after {
    display: none;
  }
}

/* ==========================================================================
   5. HERO — page d'accueil
   ========================================================================== */
.hero {
  position: relative;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  padding: var(--spacing-lg) 0;
}

.hero__container {
  position: relative;
  max-width: var(--container-max-wide);
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
  text-align: center;
  z-index: 10;
}

.hero__title {
  font-size: clamp(5rem, 15vw, 10rem);
  font-weight: 400;
  font-family: var(--font-family-title);
  margin: 0 0 1rem 0;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

.hero__subtitle {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-family: var(--font-family-title);
  font-weight: 400;
  margin: 0 0 2rem 0;
  color: var(--color-text);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.hero__subtitle-name {
  color: var(--color-secondary);
  font-weight: 600;
}

.hero__subtitle-year {
  color: var(--color-primary);
  font-weight: 600;
}

.hero__cta {
  display: inline-block;
  background-color: var(--color-primary);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  font-weight: 600;
  transition:
    background-color var(--transition-fast),
    transform var(--transition-fast);
}
.hero__cta:hover {
  background-color: #e67e00;
  transform: scale(1.05);
}

/* Étoiles décoratives du hero */
.hero__star {
  position: absolute;
  width: 80px;
  height: 80px;
  object-fit: contain;
  pointer-events: none;
  transform-origin: center center;
}

.hero__star--1 {
  top: -60px;
  left: -60px;
  width: 220px;
  height: 220px;
  transform: rotate(-8deg);
  z-index: 2;
}
.hero__star--2 {
  top: 30px;
  left: 18%;
  width: 70px;
  height: 70px;
  transform: rotate(-6deg);
  z-index: 11;
}
.hero__star--3 {
  top: 60px;
  left: 50%;
  transform: translateX(-50%) rotate(4deg);
  width: 80px;
  height: 80px;
  z-index: 11;
}
.hero__star--4 {
  top: 110px;
  right: 12%;
  width: 70px;
  height: 70px;
  transform: rotate(8deg);
  z-index: 11;
}
.hero__star--5 {
  top: -80px;
  right: -80px;
  width: 260px;
  height: 260px;
  transform: rotate(6deg);
  z-index: 2;
}
.hero__star--6 {
  bottom: -90px;
  left: -90px;
  width: 300px;
  height: 300px;
  transform: rotate(-12deg);
  z-index: 2;
}
.hero__star--7 {
  bottom: 80px;
  left: 34%;
  width: 95px;
  height: 95px;
  transform: rotate(3deg);
  z-index: 11;
}
.hero__star--8 {
  bottom: 100px;
  right: 24%;
  width: 110px;
  height: 110px;
  transform: rotate(-4deg);
  z-index: 11;
}
.hero__star--9 {
  top: 220px;
  left: 48%;
  transform: translateX(-50%) rotate(10deg);
  width: 44px;
  height: 44px;
  z-index: 12;
}
.hero__star--10 {
  top: 220px;
  left: 54%;
  transform: translateX(-50%) rotate(-6deg);
  width: 44px;
  height: 44px;
  z-index: 12;
}

/* ==========================================================================
   6. SECTION : ME CONNAÎTRE — page d'accueil
   ========================================================================== */
.about {
  padding: 6rem 0 4rem;
}

.about__container {
  max-width: var(--container-max-narrow);
  margin: 0 auto;
  padding: 0 2rem;
}

.about__grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 2.5rem;
}

/* Colonne photo */
.about__photo-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

.about__photo-wrapper {
  position: relative;
  width: 180px;
}

.about__photo {
  width: 180px;
  height: 220px;
  object-fit: cover;
  object-position: top center;
  border-radius: var(--radius-md);
  transform: rotate(-2deg);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  display: block;
}

/* Étoiles sur la photo */
.about__photo-star {
  position: absolute;
  pointer-events: none;
  object-fit: contain;
  z-index: 2;
}

.about__photo-star--tl {
  width: 80px;
  height: 80px;
  top: -30px;
  left: -35px;
}

.about__photo-star--br {
  width: 42px;
  height: 42px;
  bottom: -18px;
  right: -20px;
  transform: rotate(-20deg);
}

/* Étoile du nom — agrandie */
.about__caption-star {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

.about__caption {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.2rem;
  font-weight: 500;
  margin-top: 0.1rem;
}

/* Bloc-note */
.about__notepad-wrapper {
  position: relative;
  width: 100%;
}

.about__notepad-bg {
  width: 100%;
  height: auto;
  display: block;
}

.about__notepad-content {
  position: absolute;
  top: 18%;
  left: 10%;
  right: 7%;
  bottom: 10%;
  display: flex;
  flex-direction: column;
  gap: 0.09rem;
  overflow: hidden;
}

.about__notepad-content p {
  font-size: clamp(0.85rem, 2.5vw, 1.15rem);
  font-weight: 500;
  line-height: 2;
  margin: 0;
  color: #353535;
}

/* ── Tablette (≤ 768px) ── */
@media (max-width: 768px) {
  .about__notepad-content p {
    font-size: clamp(0.6rem, 2vw, 0.85rem);
  }
}

/* ── Mobile (≤ 640px) ── */
@media (max-width: 640px) {
  .about__notepad-content {
    gap: 0.25rem;
  }
  .about__notepad-content p {
    font-size: clamp(0.55rem, 2.5vw, 0.8rem);
    line-height: 1.5;
  }
}
/* Bouton CV */
.about__cta-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
}

.about__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.6rem;
  border: 2px solid var(--color-secondary);
  border-radius: var(--radius-full);
  color: var(--color-secondary);
  font-weight: 600;
  font-size: 1rem;
  background: transparent;
  transition:
    background var(--transition-fast),
    color var(--transition-fast),
    transform var(--transition-fast);
}
.about__cta:hover {
  background: var(--color-secondary);
  color: white;
  transform: scale(1.03);
}

/* ==========================================================================
   7. SECTION : MES PROJETS — page d'accueil
   ========================================================================== */
.projects {
  padding: 4rem 0 6rem;
}

.projects__container {
  max-width: var(--container-max-narrow);
  margin: 0 auto;
  padding: 0 2rem;
}

.projects__title {
  font-family: var(--font-family-title);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin: 0 0 0.75rem 0;
}

.projects__intro {
  font-size: 0.95rem;
  color: #555;
  margin: 0 0 2.5rem 0;
  max-width: 560px;
  line-height: 1.6;
}

.projects__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Carte projet */
.project-card {
  display: block;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 140px;
  text-decoration: none;
  color: inherit;
  transition:
    transform var(--transition-med),
    box-shadow var(--transition-med);
  box-shadow: var(--shadow-card);
}
.project-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: var(--shadow-hover);
}

.project-card__title {
  position: absolute;
  bottom: 1.25rem;
  left: 1.5rem;
  font-family: var(--font-family-title);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 700;
  margin: 0;
  z-index: 2;
  line-height: 1.1;
}

.project-card__thumb {
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  height: 100px;
  width: auto;
  object-fit: contain;
  z-index: 2;
  pointer-events: none;
}

/* ── Carte 1 : Fonds Horizon NNA ── */
.project-card--nna {
  background: linear-gradient(90deg, #1e3a6e 55%, #b03030 100%);
  overflow: hidden;
}
.project-card--nna .project-card__title {
  color: #ffffff;
  z-index: 3;
}

/* Cercle violet — haut gauche */
.project-card--nna::before {
  content: "";
  position: absolute;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: rgba(130, 100, 190, 0.5);
  top: -30px;
  left: 5px;
  z-index: 1;
}

/* Cercle bleu clair — bas gauche */
.project-card--nna::after {
  content: "";
  position: absolute;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(100, 160, 230, 0.4);
  bottom: -20px;
  left: 55px;
  z-index: 1;
}

/* Rectangle glassmorphisme — NNA */
.project-card__glass {
  position: absolute;
  top: 6%;
  left: 2%;
  width: 96%;
  height: 88%;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  z-index: 2;
}

/* ── Carte 2 : 35 ans CIBC NNA ── */
.project-card--cibc {
  background-color: #f2ece0;
  overflow: hidden;
}
.project-card--cibc .project-card__title {
  color: #2a2a2a;
  z-index: 3;
}

/* Base commune des cercles décoratifs */
.project-card__circle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  background: transparent;
}

/* Cercle rose plein — angle bas gauche, dépasse */
.project-card__circle--pink {
  width: 120px;
  height: 120px;
  background: #e8a8b2;
  bottom: -50px;
  left: -30px;
  z-index: 1;
}

/* Anneau vert (bordure 10px) autour d'un fond vert très pâle — bas gauche */
.project-card__circle--green-lg {
  width: 180px;
  height: 180px;
  border: 10px solid #b8d4b0;
  background: #deeeda;
  bottom: -80px;
  left: 8%;
  z-index: 2;
}

/* Petit cercle vert plein — haut, presque centré, visible à moitié */
.project-card--cibc::before {
  content: "";
  position: absolute;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #b8d4b0;
  top: -40px;
  left: 44%;
  z-index: 1;
}

/* Petit cercle marron — haut gauche */
.project-card__circle--brown-sm {
  width: 18px;
  height: 18px;
  background: #8b6048;
  top: 16px;
  left: 8%;
  z-index: 3;
}

/* Petit cercle marron — bas centre */
.project-card__circle--brown-xs {
  width: 14px;
  height: 14px;
  background: #8b6048;
  bottom: 16px;
  left: 40%;
  z-index: 3;
}

/* Cercles concentriques droite — anneau rose extérieur */
/* Anneau rose concentrique — droite, dépasse légèrement */
.project-card--cibc::after {
  content: "";
  position: absolute;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 30px solid #e8a0ac;
  background: #f5d0d4;
  top: 50%;
  right: -30px;
  transform: translateY(-50%);
  z-index: 1;
}

/* Logo CIBC — centré sur l'anneau rose droite */
.project-card--cibc .project-card__thumb {
  z-index: 4;
  height: 52px;
  right: 10px;
}
/* ── Carte 3 : Gelato festival ── */
.project-card--gelato {
  background-color: #e8427a;
  overflow: hidden;
}
.project-card--gelato .project-card__title {
  color: #ffffff;
  z-index: 3;
}

/* Motif cornets — répété en fond */
.project-card__pattern {
  position: absolute;
  inset: 0;
  width: 70%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
  opacity: 0.45;
  z-index: 1;
  pointer-events: none;
}

/* SZA — ancrée en bas à droite */
.project-card__artist {
  position: absolute;
  right: 0.5rem;
  bottom: 0;
  height: 145px;
  width: auto;
  object-fit: contain;
  object-position: bottom;
  z-index: 2;
  pointer-events: none;
}
/* ==========================================================================
   8. PAGES PROJET — layout et blocs de contenu
   ========================================================================== */
.project-page {
  padding-bottom: 8rem;
}

.project-page__container {
  max-width: var(--container-max-narrow);
  margin: 0 auto;
  padding: 0 2rem;
}

/* En-tête projet */
.project-header {
  padding-top: 5rem;
  padding-bottom: 3rem;
  position: relative;
}

.project-header__tags {
  list-style: none;
  margin: 0 0 1.5rem 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.project-header__tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border: 1px solid #d0d0d0;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 500;
  color: #3a3a3a;
  background: transparent;
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
}
.project-header__tag--active {
  border-color: var(--color-text);
  font-weight: 600;
}
.project-header__tag:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.project-header__title {
  font-family: var(--font-family-title);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem 0;
}

.project-header__subtitle {
  font-size: 0.9rem;
  color: #6b6b6b;
  margin: 0;
  max-width: 560px;
}
.project-header__tag--pink {
  border-color: #b43ea8;
  color: #b43ea8;
}

.project-header__tag--blue {
  border-color: #4272a5;
  color: #4272a5;
}

.project-header__tag--purple {
  border-color: #ad35ce;
  color: #ad35ce;
}

.project-header__tag--mint {
  border-color: #307f2c;
  color: #307f2c;
}
/*Espace vidéo Fonds de dotation*/
article.project-page__container {
  margin-top: 4rem;
}
/* Blocs contenu */
.content-block {
  display: grid;
  gap: 3rem;
  align-items: start;
  margin: 5rem 0;
}

.content-block--img-left {
  grid-template-columns: 5fr 6fr;
}
.content-block--text-left {
  grid-template-columns: 2fr 3fr;
}
.content-block--img-right {
  grid-template-columns: 1fr 1fr;
}

.content-block__img-wrapper {
  position: relative;
  border-radius: var(--radius-md);
  overflow: visible;
}

.content-block__img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--transition-med);
}
.content-block__img:hover {
  box-shadow: var(--shadow-hover);
}

.content-block__text p {
  margin: 0 0 1rem 0;
  line-height: 1.75;
  font-size: var(--font-size-base);
}
.content-block__text p:last-child {
  margin-bottom: 0;
}

.content-full {
  margin: 0 0 3rem 0;
}
.content-full p {
  line-height: 1.75;
  margin: 0 0 1rem 0;
}
.content-full p:last-child {
  margin-bottom: 0;
}

/* Galerie 4 images */
.gallery {
  margin: 2rem 0;
}

.gallery__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.gallery__item {
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: #e8e8e4;
  box-shadow: var(--shadow-card);
  transition:
    transform var(--transition-med),
    box-shadow var(--transition-med);
}
.gallery__item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.gallery__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Galerie LinkedIn ── */
.linkedin-gallery {
  margin: 4rem 0;
}

.linkedin-gallery__title {
  font-family: var(--font-family-title);
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 2rem 0;
}

.linkedin-gallery__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.linkedin-gallery__item {
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition:
    box-shadow var(--transition-med),
    transform var(--transition-med);
}

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

.linkedin-gallery__item iframe {
  width: 100%;
  height: 560px;
  border: none;
  display: block;
}

.linkedin-gallery__fallback {
  margin-top: 1.25rem;
  text-align: right;
  font-size: 0.875rem;
}

.linkedin-gallery__fallback a {
  color: var(--color-secondary);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition-fast);
}
.linkedin-gallery__fallback a:hover {
  color: var(--color-text);
}

/* Responsive LinkedIn */
@media (max-width: 768px) {
  .linkedin-gallery__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .linkedin-gallery__grid {
    grid-template-columns: 1fr;
    max-width: 504px;
    margin: 0 auto;
  }
  .linkedin-gallery__item iframe {
    height: 480px;
  }
  .brevo-stack__img:nth-child(3),
  .brevo-stack__img:nth-child(4),
  .brevo-stack__img:nth-child(5) {
    transform: none;
  }
}

/* ==========================================================================
   9. SECTION : LOGICIELS UTILISÉS
   ========================================================================== */
.project-tools {
  padding: 4rem 0 3rem;
  border-top: 1px solid #e8e8e4;
  margin-top: 2rem;
}

.project-tools__title {
  font-family: var(--font-family-title);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 3rem 0;
}

.project-tools__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2rem;
}
.project-tools__grid--4 {
  grid-template-columns: repeat(4, 1fr);
}
.project-tools__grid--3 {
  grid-template-columns: repeat(3, 1fr);
  max-width: 560px;
}
.project-tools__grid--2 {
  grid-template-columns: repeat(2, 1fr);
  max-width: 380px;
}

.tool-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
}

.tool-card__icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  object-fit: contain;
  transition:
    transform var(--transition-med),
    box-shadow var(--transition-med);
}
.tool-card:hover .tool-card__icon {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.tool-card__name {
  font-size: 0.875rem;
  font-weight: 600;
  margin: 0;
}
.tool-card__desc {
  font-size: 0.75rem;
  color: #6b6b6b;
  line-height: 1.4;
  margin: 0;
}

/* ==========================================================================
   10. NAVIGATION ENTRE PROJETS
   ========================================================================== */
.project-nav {
  display: flex;
  justify-content: flex-end;
  padding: 2rem 0;
  border-top: 1px solid #e8e8e4;
  margin-top: 3rem;
}

.project-nav__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.4rem;
  background: var(--color-secondary);
  color: #ffffff;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  transition:
    background var(--transition-fast),
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
  box-shadow: 0 2px 12px rgba(91, 108, 192, 0.3);
}
.project-nav__btn:hover {
  background: #4a5ab0;
  transform: translateX(3px);
  box-shadow: 0 4px 20px rgba(91, 108, 192, 0.45);
  color: #ffffff;
}

.project-nav__btn-icon {
  display: inline-block;
  transition: transform var(--transition-fast);
}
.project-nav__btn:hover .project-nav__btn-icon {
  transform: translateX(3px);
}

/* ==========================================================================
   11. ÉTOILES DÉCORATIVES — images positionnées en absolu
       Remplace les src dans le HTML par tes fichiers image.
   ========================================================================== */
.deco-star {
  position: absolute;
  pointer-events: none;
  user-select: none;
  object-fit: contain;
}

/* En-tête projet */
.project-header__star--1 {
  top: 10px;
  right: 120px;
  width: 36px;
  transform: rotate(15deg);
  z-index: 1;
}
.project-header__star--2 {
  top: 44px;
  right: 76px;
  width: 22px;
  transform: rotate(-5deg);
  z-index: 1;
}

/* Hero image (Fonds de dotation) */
.project-hero__star {
  bottom: -60px;
  right: -86px;
  width: 200px;
  transform: rotate(-10deg);
  z-index: 2;
}

/* ── Tablette (≤ 768px) ── */
@media (max-width: 768px) {
  .project-hero__star {
    width: 140px;
    bottom: -40px;
    right: -50px;
  }
}

/* ── Mobile (≤ 480px) ── */
@media (max-width: 480px) {
  .project-hero__star {
    width: 90px;
    bottom: -25px;
    right: -20px;
  }
}
/* Bloc intro (CIBC) */
.block-intro__star {
  bottom: -18px;
  right: -18px;
  width: 90px;
  transform: rotate(-12deg);
  z-index: 2;
}

/* Bloc inversé (CIBC) */
.block-reversed__star--tl {
  top: -42px;
  left: -42px;
  width: 90px;
  transform: rotate(20deg);
  z-index: 2;
}
.block-reversed__star--br {
  bottom: -24px;
  right: -24px;
  width: 60px;
  transform: rotate(-20deg);
  z-index: 2;
}

/* Affiche Gelato */
.poster__star--tr {
  top: -14px;
  right: -20px;
  width: 52px;
  transform: rotate(15deg);
  z-index: 2;
}
.poster__star--bl {
  bottom: -22px;
  left: -26px;
  width: 70px;
  transform: rotate(-20deg);
  z-index: 2;
}

/* Photo about */
.about__photo-star {
  position: absolute;
  object-fit: contain;
  pointer-events: none;
}

/* ==========================================================================
   12. FOOTER — commun à toutes les pages
   ========================================================================== */
.site-footer {
  background-color: var(--color-bg);
  border-top: 1px solid #e8e8e4;
  padding: 3rem 0 2rem;
  position: relative;
  overflow: hidden;
}

.footer__inner {
  max-width: var(--container-max-narrow);
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--color-text);
  transition: opacity var(--transition-fast);
}
.footer__brand:hover {
  opacity: 0.7;
}

.footer__brand-star {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.footer__nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  text-align: center;
}

.footer__nav-link {
  font-size: 0.875rem;
  color: #6b6b6b;
  transition: color var(--transition-fast);
}
.footer__nav-link:hover {
  color: var(--color-text);
}

.footer__social {
  display: flex;
  justify-content: flex-end;
}

.footer__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid #e0e0e0;
  color: #6b6b6b;
  transition:
    color var(--transition-fast),
    border-color var(--transition-fast),
    background var(--transition-fast);
}
.footer__social-link:hover {
  color: var(--color-text);
  border-color: var(--color-text);
  background: #f0f0ec;
}

.footer__bottom {
  font-size: 0.75rem;
  color: #6b6b6b;
  border-top: 1px solid #e8e8e4;
  padding-top: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.footer__legal-link {
  font-size: 0.75rem;
  color: #6b6b6b;
  transition: color var(--transition-fast);
}
.footer__legal-link:hover {
  color: var(--color-text);
}

/* Étoiles décoratives footer */
.footer-star {
  position: absolute;
  pointer-events: none;
  user-select: none;
  object-fit: contain;
}

/* Rangée du haut */
.footer-star--1 {
  top: 22px;
  left: 2%;
  width: 34px;
  transform: rotate(-15deg);
}
.footer-star--2 {
  top: 14px;
  left: 14%;
  width: 18px;
  transform: rotate(10deg);
}
.footer-star--3 {
  top: 28px;
  left: 43%;
  width: 44px;
  transform: rotate(5deg);
}
.footer-star--4 {
  top: 16px;
  left: 60%;
  width: 36px;
  transform: rotate(-10deg);
}
.footer-star--5 {
  top: 68px;
  left: 72%;
  width: 28px;
  transform: rotate(15deg);
}
.footer-star--6 {
  top: 40px;
  right: 5%;
  width: 26px;
  transform: rotate(20deg);
}

/* Milieu */
.footer-star--7 {
  top: 50%;
  left: 31%;
  width: 40px;
  transform: translateY(-50%) rotate(-8deg);
}

/* Rangée du bas */
.footer-star--8 {
  bottom: 14px;
  left: 6%;
  width: 26px;
  transform: rotate(12deg);
}
.footer-star--9 {
  bottom: 10px;
  left: 49%;
  width: 22px;
  transform: rotate(-5deg);
}
.footer-star--10 {
  bottom: 12px;
  left: 68%;
  width: 32px;
  transform: rotate(8deg);
}
.footer-star--11 {
  bottom: 50px;
  right: -1%;
  width: 60px;
  transform: rotate(-15deg);
}
.footer-star--12 {
  bottom: 30px;
  left: 24%;
  width: 20px;
  transform: rotate(18deg);
}
.footer-star--13 {
  bottom: 8px;
  right: 8%;
  width: 16px;
  transform: rotate(-20deg);
}

/* ── Tablette (≤ 768px) ── */
@media (max-width: 768px) {
  .footer-star--1 {
    top: 16px;
    left: 1%;
    width: 26px;
  }
  .footer-star--2 {
    top: 10px;
    left: 12%;
    width: 14px;
  }
  .footer-star--3 {
    top: 20px;
    left: 40%;
    width: 34px;
  }
  .footer-star--4 {
    top: 12px;
    left: 58%;
    width: 28px;
  }
  .footer-star--5 {
    top: 52px;
    left: 70%;
    width: 22px;
  }
  .footer-star--6 {
    top: 30px;
    right: 4%;
    width: 20px;
  }
  .footer-star--7 {
    left: 28%;
    width: 32px;
  }
  .footer-star--8 {
    bottom: 10px;
    left: 4%;
    width: 20px;
  }
  .footer-star--9 {
    bottom: 8px;
    left: 46%;
    width: 18px;
  }
  .footer-star--10 {
    bottom: 10px;
    left: 65%;
    width: 26px;
  }
  .footer-star--11 {
    bottom: 36px;
    right: 0%;
    width: 46px;
  }
  .footer-star--12 {
    bottom: 22px;
    left: 20%;
    width: 16px;
  }
  .footer-star--13 {
    bottom: 6px;
    right: 7%;
    width: 13px;
  }
}

/* ── Mobile (≤ 480px) ── */
@media (max-width: 480px) {
  /* On cache les étoiles les plus petites pour éviter la surcharge */
  .footer-star--2,
  .footer-star--6,
  .footer-star--13 {
    display: none;
  }

  .footer-star--1 {
    top: 12px;
    left: 2%;
    width: 22px;
  }
  .footer-star--3 {
    top: 16px;
    left: 38%;
    width: 28px;
  }
  .footer-star--4 {
    top: 10px;
    left: 60%;
    width: 22px;
  }
  .footer-star--5 {
    top: 44px;
    left: 72%;
    width: 18px;
  }
  .footer-star--7 {
    left: 22%;
    width: 26px;
  }
  .footer-star--8 {
    bottom: 8px;
    left: 3%;
    width: 18px;
  }
  .footer-star--9 {
    bottom: 6px;
    left: 44%;
    width: 16px;
  }
  .footer-star--10 {
    bottom: 8px;
    left: 64%;
    width: 22px;
  }
  .footer-star--11 {
    bottom: 28px;
    right: 1%;
    width: 36px;
  }
  .footer-star--12 {
    bottom: 16px;
    left: 18%;
    width: 14px;
  }
}

/* ==========================================================================
   13. ANIMATIONS AU SCROLL — reveal
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal--delay-1 {
  transition-delay: 0.1s;
}
.reveal--delay-2 {
  transition-delay: 0.2s;
}
.reveal--delay-3 {
  transition-delay: 0.3s;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ==========================================================================
   14. RESPONSIVE
   ========================================================================== */

/*
 * NOTE ARCHITECTURALE (important pour la suite du projet) :
 * Ces media queries utilisent max-width (approche desktop-first).
 * Pour un prochain refactoring, la cible est une approche mobile-first
 * avec min-width. Pour l'instant on conserve la cohérence de l'existant.
 *
 * Breakpoints utilisés :
 *   ≤ 768px  — Tablette / petite tablette
 *   ≤ 640px  — Mobile (seuil principal)
 *   ≤ 480px  — Petit mobile
 */

/* ── Tablette large (≤ 768px) ── */
@media (max-width: 768px) {
  /* Hero : réduction de la hauteur minimale sur tablette */
  .hero {
    min-height: 580px;
  }

  .hero__star--1 {
    top: -40px;
    left: -30px;
    width: 160px;
    height: 160px;
  }
  .hero__star--5 {
    top: -30px;
    right: -30px;
    width: 160px;
    height: 160px;
  }
  .hero__star--6 {
    bottom: -40px;
    left: -30px;
    width: 180px;
    height: 180px;
  }
  .hero__star--3 {
    top: 80px;
    width: 60px;
    height: 60px;
  }
  .hero__star--7,
  .hero__star--8 {
    bottom: 60px;
    width: 60px;
    height: 60px;
  }

  /* About : colonne photo plus étroite */
  .about__grid {
    grid-template-columns: 180px 1fr;
    gap: 2rem;
  }
}

/* ── Mobile (≤ 640px) — seuil principal ── */
@media (max-width: 640px) {
  /* Hero */
  /*
     * CORRECTION : on réduit (et non augmente) la hauteur sur mobile.
     * Le hero n'a pas besoin de 820px sur un écran de 375px.
     */
  .hero {
    min-height: auto;
    padding: 3rem 0 4rem;
  }

  .hero__star--1 {
    width: 120px;
    height: 120px;
    top: -20px;
    left: -20px;
  }
  .hero__star--5 {
    width: 120px;
    height: 120px;
    top: -20px;
    right: -20px;
  }
  .hero__star--6 {
    width: 140px;
    height: 140px;
    bottom: -30px;
    left: -30px;
  }
  /* Étoiles petites : on les réduit pour ne pas charger visuellement */
  .hero__star--2,
  .hero__star--4 {
    width: 48px;
    height: 48px;
  }
  .hero__star--3 {
    width: 50px;
    height: 50px;
  }
  .hero__star--7,
  .hero__star--8 {
    width: 52px;
    height: 52px;
    bottom: 40px;
  }
  .hero__star--9,
  .hero__star--10 {
    width: 30px;
    height: 30px;
  }

  /* About */
  /*
     * CORRECTION : passage à 1 colonne.
     * La colonne fixe 220px cassait le layout entre 480px et 640px.
     */
  .about__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .about__photo-wrapper,
  .about__photo-col {
    margin: 0 auto;
    align-items: center;
  }

  /* Projets accueil */
  .project-card {
    height: 120px;
  }
  .project-card__title {
    font-size: 1.2rem;
    left: 1rem;
    bottom: 1rem;
  }
  .project-card__thumb,
  .project-card__artist {
    height: 80px;
    right: 0.75rem;
  }

  /* Pages projet — passage en colonne unique */
  .content-block--img-left,
  .content-block--text-left,
  .content-block--img-right {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /*
     * Sur mobile, quand l'image est à droite (.content-block--img-right),
     * on la remonte visuellement en tête de bloc pour respecter la lecture F.
     */
  .content-block--img-right .content-block__img-wrapper {
    order: -1;
  }

  .content-block {
    margin: 3rem 0;
  }

  /* Galerie : 2 colonnes sur mobile (4 sur desktop) */
  .gallery__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Logiciels */
  .project-tools__grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .project-tools__grid--3 {
    max-width: 100%;
    grid-template-columns: repeat(2, 1fr);
  }
  .project-tools__grid--2 {
    max-width: 100%;
  }

  /* Footer */
  .footer__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer__social {
    justify-content: center;
  }
  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ── Petit mobile (≤ 480px) ── */
@media (max-width: 480px) {
  /* Header */
  .header__container {
    padding: var(--spacing-md) var(--spacing-md);
  }

  /* Hero : titre légèrement plus compact */
  .hero__title {
    font-size: clamp(3.5rem, 18vw, 5rem);
  }

  /* Pages projet */
  .project-header {
    padding-top: 3rem;
  }
  .project-page__container {
    padding: 0 1.25rem;
  }

  /* Logiciels : 1 colonne sur très petit écran si 3 ou 4 items */
  .project-tools__grid--4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  .project-tools__grid--3 {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  /* Galerie : 1 colonne sur très petit mobile */
  .gallery__grid {
    grid-template-columns: 1fr;
    max-width: 280px;
    margin: 0 auto;
  }

  /* Footer étoiles : réduction de densité */
  .footer-star--2,
  .footer-star--6,
  .footer-star--13 {
    display: none;
  }

  .footer-star--1 {
    top: 12px;
    left: 2%;
    width: 22px;
  }
  .footer-star--3 {
    top: 16px;
    left: 38%;
    width: 28px;
  }
  .footer-star--4 {
    top: 10px;
    left: 60%;
    width: 22px;
  }
  .footer-star--5 {
    top: 44px;
    left: 72%;
    width: 18px;
  }
  .footer-star--7 {
    left: 22%;
    width: 26px;
  }
  .footer-star--8 {
    bottom: 8px;
    left: 3%;
    width: 18px;
  }
  .footer-star--9 {
    bottom: 6px;
    left: 44%;
    width: 16px;
  }
  .footer-star--10 {
    bottom: 8px;
    left: 64%;
    width: 22px;
  }
  .footer-star--11 {
    bottom: 28px;
    right: 1%;
    width: 36px;
  }
  .footer-star--12 {
    bottom: 16px;
    left: 18%;
    width: 14px;
  }
}
/* ==========================================================================
   GALERIE LINKEDIN — projet-anniversaire-cibc.html
   ========================================================================== */

.linkedin-gallery {
  margin: 3rem 0;
  --linkedin-card-height: clamp(440px, 38vw, 620px);
}

.linkedin-gallery__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1.25rem;
  grid-auto-flow: dense;
}

.linkedin-gallery__item {
  width: 100%;
  height: var(--linkedin-card-height);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition:
    box-shadow var(--transition-med),
    transform var(--transition-med);
  grid-column: span 4;
}

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

.linkedin-gallery__item--feature {
  grid-column: span 8;
}

.linkedin-gallery__item--tall {
}

.linkedin-gallery__item--wide {
  grid-column: span 8;
}

.linkedin-gallery__item iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* ── Tablette (≤ 992px) : bento simplifié sur 2 colonnes ── */
@media (max-width: 992px) {
  .linkedin-gallery {
    --linkedin-card-height: clamp(420px, 55vw, 620px);
  }

  .linkedin-gallery__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .linkedin-gallery__item {
    grid-column: span 1;
  }

  .linkedin-gallery__item--feature,
  .linkedin-gallery__item--wide {
    grid-column: span 2;
  }
}

/* ── Mobile (≤ 640px) : 1 colonne fluide ── */
@media (max-width: 640px) {
  .linkedin-gallery {
    --linkedin-card-height: clamp(460px, 98vw, 620px);
  }

  .linkedin-gallery__grid {
    grid-template-columns: 1fr;
    max-width: 504px; /* largeur max native de l'embed LinkedIn */
    margin: 0 auto;
  }

  .linkedin-gallery__item,
  .linkedin-gallery__item--feature,
  .linkedin-gallery__item--tall,
  .linkedin-gallery__item--wide {
    grid-column: span 1;
  }
}
