/* ============================================================
   PORTFOLIO SOULEYMANE CHERIF — style.css
   ============================================================ */

/* ── Reset & base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --font-serif:  'Libre Baskerville', Georgia, serif;
  --font-body:   'Almarai', 'Libre Baskerville', sans-serif;

  /* Palette extraite du site Squarespace */
  --dark-bg:     #1c2d5a;        /* fond section about (darkAccent) */
  --dark-bg-2:   #243368;        /* légère variation */
  --white:       #ffffff;
  --text-dark:   #1a1a2e;
  --text-muted:  #555;
  --footer-bg:   #f5f5f5;

  --header-h:    72px;
  --gutter:      4vw;
  --max-w:       1500px;
  --radius-pill: 999px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: #fff;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a   { text-decoration: none; color: inherit; }
hr  { border: none; border-top: 1px solid currentColor; }

/* ── Typography scale ─────────────────────────────────────── */
h1 { font-family: var(--font-serif); font-size: clamp(2.8rem, 6vw, 5.5rem); font-weight: 700; line-height: 1.1; }
h2 { font-family: var(--font-serif); font-size: clamp(1.8rem, 3.5vw, 3rem);  font-weight: 400; line-height: 1.2; }
h3 { font-family: var(--font-serif); font-size: clamp(1.4rem, 2.5vw, 2.1rem); font-weight: 400; }
h4 { font-family: var(--font-serif); font-size: 1rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
p  { font-size: clamp(.9rem, 1.1vw, 1.05rem); line-height: 1.75; }

/* ── HEADER ───────────────────────────────────────────────── */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  /* Gradient qui s'estompe vers le bas — exactement comme Squarespace */
  background: linear-gradient(to bottom, rgba(28, 45, 90, 0.43) 0%, transparent 100%);
  transition: background .3s ease;
}

#header.scrolled {
  background: rgba(28, 45, 90, 0.92);
  backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 var(--gutter);
  gap: 1.5rem;
}

/* Logo */
.header-logo a {
  font-family: var(--font-serif);
  font-size: clamp(.8rem, 1.2vw, 1rem);
  color: var(--white);
  white-space: nowrap;
  letter-spacing: .01em;
}

/* Nav desktop */
.header-nav {
  display: flex;
  align-items: center;
  gap: clamp(.8rem, 1.5vw, 1.4rem);
  margin-left: auto;
}
.header-nav a {
  font-family: var(--font-body);
  font-size: clamp(.75rem, .9vw, .9rem);
  color: var(--white);
  opacity: .92;
  transition: opacity .2s;
  white-space: nowrap;
}
.header-nav a:hover { opacity: 1; }

/* Actions (LinkedIn, langue, CV) */
.header-actions {
  display: flex;
  align-items: center;
  gap: .9rem;
  flex-shrink: 0;
}

/* LinkedIn icône */
.header-linkedin {
  color: var(--white);
  display: flex;
  align-items: center;
  opacity: .9;
  transition: opacity .2s;
}
.header-linkedin:hover { opacity: 1; }

/* Sélecteur de langue */
.lang-picker { position: relative; }

.lang-btn {
  display: flex;
  align-items: center;
  gap: .35rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--white);
  font-family: var(--font-body);
  font-size: .82rem;
  padding: .3rem .5rem;
  border-radius: 4px;
  transition: background .2s;
}
.lang-btn:hover { background: rgba(255,255,255,.12); }

.lang-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
  min-width: 130px;
  overflow: hidden;
  z-index: 200;
}
.lang-dropdown.open { display: block; }

.lang-dropdown a {
  display: block;
  padding: .65rem 1rem;
  font-size: .85rem;
  color: var(--text-dark);
  transition: background .15s;
}
.lang-dropdown a:hover { background: #f0f0f0; }

/* Bouton CV */
.btn-cv {
  font-family: var(--font-body);
  font-size: .82rem;
  color: var(--white);
  border: 1.5px solid var(--white);
  border-radius: var(--radius-pill);
  padding: .45rem 1.2rem;
  transition: background .2s, color .2s;
  white-space: nowrap;
}
.btn-cv:hover { background: var(--white); color: var(--text-dark); }

/* Burger mobile */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.burger span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--white);
  transition: transform .3s, opacity .3s;
}

/* Mobile nav overlay */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(28, 45, 90, .97);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 2rem;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--white);
  text-align: center;
}
.mobile-nav .mobile-nav-bottom {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  margin-top: 1rem;
}
.mobile-nav-close {
  position: absolute;
  top: 1.5rem;
  right: var(--gutter);
  background: none;
  border: none;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}

/* ── HERO SECTION ─────────────────────────────────────────── */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 50%;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--white);
  padding: 0 var(--gutter);
  max-width: 900px;
  width: 100%;
}

.hero-content h1 {
  margin-bottom: 1.4rem;
}

.hero-welcome {
  font-size: clamp(.9rem, 1.2vw, 1.05rem);
  line-height: 2;
  opacity: .9;
  margin-bottom: 1.6rem;
}

.hero-divider {
  border-color: rgba(255,255,255,.4);
  max-width: 280px;
  margin: 0 auto 2rem;
}

/* Bouton primaire (Mes Projets) */
.btn-primary {
  display: inline-block;
  font-family: var(--font-body);
  font-size: .95rem;
  background: var(--white);
  color: var(--text-dark);
  border-radius: var(--radius-pill);
  padding: .9rem 3.5rem;
  font-weight: 700;
  letter-spacing: .04em;
  transition: background .2s, color .2s, transform .2s;
}
.btn-primary:hover {
  background: rgba(255,255,255,.88);
  transform: translateY(-1px);
}

/* Séparateur jagged entre hero et about */
.section-divider-jagged {
  display: block;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  margin-bottom: -2px;
}
.section-divider-jagged svg {
  display: block;
  width: 100%;
  height: 6vw;
  min-height: 36px;
}

/* ── ABOUT SECTION ────────────────────────────────────────── */
.about-section {
  background: var(--dark-bg);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

/* Bokeh simulé en CSS */
.about-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle 180px at 10% 30%, rgba(100,140,220,.18) 0%, transparent 60%),
    radial-gradient(circle 120px at 75% 15%, rgba(120,160,240,.15) 0%, transparent 55%),
    radial-gradient(circle 200px at 50% 70%, rgba(80,110,200,.12) 0%, transparent 60%),
    radial-gradient(circle 90px at 88% 60%, rgba(110,150,230,.14) 0%, transparent 50%),
    radial-gradient(circle 150px at 25% 80%, rgba(90,130,210,.12) 0%, transparent 55%);
  pointer-events: none;
}

/* Bokeh dots animés */
.bokeh-dots {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.bokeh-dot {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  animation: float-bokeh var(--dur, 8s) ease-in-out infinite var(--delay, 0s);
}
@keyframes float-bokeh {
  0%, 100% { transform: translateY(0) scale(1); opacity: .06; }
  50%       { transform: translateY(-30px) scale(1.1); opacity: .12; }
}

/* Image banner full-width */
.about-banner {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  object-position: center 60%;
  display: block;
  position: relative;
  z-index: 1;
}

/* Grille de contenu */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem 5vw;
  padding: 4vw var(--gutter) 5vw;
  max-width: var(--max-w);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.about-left,
.about-right {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.about-left h2 {
  margin-bottom: 3rem;
}

/* Item de timeline */
.timeline-item {
  margin-bottom: 2.5rem;
}
.timeline-item h3 {
  margin-bottom: .5rem;
}
.timeline-item hr {
  border-color: rgba(255,255,255,.3);
  margin-bottom: 1.2rem;
}
.timeline-item p {
  opacity: .88;
}

.about-right h2 {
  margin-bottom: .5rem;
}
.about-right > hr {
  border-color: rgba(255,255,255,.3);
  margin-bottom: 2rem;
}
.about-right > p {
  opacity: .88;
  margin-bottom: 2.5rem;
}

/* ── FOOTER ───────────────────────────────────────────────── */
#footer {
  background: var(--footer-bg);
  color: var(--text-dark);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  padding: 3.5rem var(--gutter);
  max-width: var(--max-w);
  margin: 0 auto;
}

.footer-left h3 {
  font-family: var(--font-serif);
  font-size: 1rem;
  margin-bottom: 1rem;
}
.footer-left p {
  font-size: .9rem;
  line-height: 2;
  color: var(--text-muted);
}

.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .6rem;
}
.footer-right h4 {
  font-size: .78rem;
  margin-bottom: .3rem;
}

.footer-linkedin svg {
  color: var(--text-dark);
  transition: color .2s;
}
.footer-linkedin:hover svg { color: #0a66c2; }

.footer-logo-img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  margin-top: .5rem;
}

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .header-nav { display: none; }
  .burger { display: flex; }
  .header-actions .lang-picker { display: none; }
  .header-actions .btn-cv { display: none; }
}

@media (max-width: 767px) {
  :root { --gutter: 6vw; }

  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 6vw var(--gutter);
  }

  .about-banner { max-height: 200px; }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-right {
    align-items: flex-start;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
  }
}

/* ── PAGE HEADER (pages internes) ────────────────────────── */
/* Sur les pages internes, le header est opaque car pas d'image hero */
.page-internal #header {
  background: rgba(28, 45, 90, 0.95);
  position: sticky;
  top: 0;
}

/* ── PAGE TITLE SECTION (section blanche titre) ───────────── */
.page-title-section {
  background: #fff;
  padding: 4vw var(--gutter) 0;
  position: relative;
  z-index: 1;
}
.page-title-section h2 {
  color: var(--text-dark);
  font-size: clamp(2rem, 4vw, 3.5rem);
  padding-top: 2rem;
}

/* Séparateur scalloped : arc convexe blanc → gris */
.scalloped-bottom {
  display: block;
  overflow: hidden;
  line-height: 0;
  margin-top: 2vw;
}
.scalloped-bottom svg {
  display: block;
  width: 100%;
  height: 8vw;
  min-height: 50px;
}

/* ── SECTION CERTIFICATIONS (fond gris clair) ─────────────── */
.certs-section {
  background: #eceae5;
  padding: 5vw var(--gutter) 8vw;
  position: relative;
}

/* Grille de certifications */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem 4vw;
  max-width: var(--max-w);
  margin: 0 auto;
  align-items: start;
}

/* Carte certification */
.cert-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .8rem;
  text-align: center;
}
.cert-card img {
  width: clamp(160px, 20vw, 240px);
  height: auto;
  border-radius: 8px;
  transition: transform .3s;
}
.cert-card:hover img { transform: translateY(-4px); }

.cert-title {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  font-weight: 700;
  color: var(--text-dark);
  border-bottom: 1.5px solid var(--text-dark);
  padding-bottom: 2px;
  display: inline-block;
}

.cert-date {
  font-size: .85rem;
  color: var(--text-muted);
  margin-top: .2rem;
}

.cert-desc {
  font-size: clamp(.82rem, .95vw, .95rem);
  color: var(--text-dark);
  line-height: 1.7;
  text-align: left;
  max-width: 340px;
  margin-top: .3rem;
}

.cert-coming {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 2rem;
}
.cert-coming h3 {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.5vw, 2.2rem);
  font-weight: 700;
  color: var(--text-dark);
  border-bottom: 2px solid var(--text-dark);
  padding-bottom: 3px;
}

/* Séparateur scalloped gris → noir (inversé x) */
.scalloped-bottom-dark {
  display: block;
  overflow: hidden;
  line-height: 0;
  margin-top: -1px;
}
.scalloped-bottom-dark svg {
  display: block;
  width: 100%;
  height: 8vw;
  min-height: 50px;
}

/* Bouton "Accéder" sur les certs */
.btn-cert {
  display: inline-block;
  font-family: var(--font-body);
  font-size: .85rem;
  background: var(--dark-bg);
  color: var(--white);
  border-radius: var(--radius-pill);
  padding: .65rem 2rem;
  font-weight: 700;
  letter-spacing: .03em;
  transition: background .2s, transform .2s;
  margin-top: .5rem;
}
.btn-cert:hover {
  background: var(--dark-bg-2);
  transform: translateY(-1px);
}

/* ── SECTION QUOTE (fond image montagne) ──────────────────── */
.quote-section {
  position: relative;
  padding: 6vw var(--gutter);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 45vh;
  overflow: hidden;
  text-align: center;
}
.quote-section .hero-bg img {
  object-position: center 40%;
}
.quote-section .hero-overlay {
  background: rgba(0,0,0,.15);
}
.quote-section .quote-content {
  position: relative;
  z-index: 1;
  color: var(--white);
  max-width: 900px;
}
.quote-section blockquote {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 2.5vw, 2.2rem);
  font-weight: 400;
  line-height: 1.4;
  margin-bottom: 2.5rem;
}

/* ── Responsive certifications ────────────────────────────── */
@media (max-width: 900px) {
  .certs-grid {
    grid-template-columns: 1fr 1fr;
  }
  .cert-coming { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .certs-grid {
    grid-template-columns: 1fr;
  }
  .cert-card { align-items: flex-start; text-align: left; }
  .cert-coming { justify-content: flex-start; }
}

/* ── PORTFOLIO GRID (thème dark-bold) ────────────────────── */
.portfolio-section {
  background: #111117;
  min-height: 100vh;
  padding-top: var(--header-h);
  padding-bottom: 4vw;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2vw var(--gutter) 0;
}

/* Carte portfolio */
.portfolio-item {
  display: block;
  color: var(--white);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  padding-bottom: 1px;
}

.portfolio-item-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/2;
  background: #0a0a0f;
}

.portfolio-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity .35s ease;
}

.portfolio-item:hover .portfolio-item-img img {
  opacity: .65;
}

.portfolio-item-text {
  padding: 1.2rem 0 1.8rem;
}

.portfolio-item-text h3 {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 1.6vw, 1.5rem);
  font-weight: 400;
  line-height: 1.3;
  color: var(--white);
}

/* Section bouton CTA portfolio (Tableau de Synthèse, etc.) */
.portfolio-cta-section {
  background: #111117;
  padding: 2vw var(--gutter) 4vw;
  display: flex;
  justify-content: center;
}

.btn-portfolio-cta {
  display: inline-block;
  font-family: var(--font-body);
  font-size: .95rem;
  background: var(--white);
  color: var(--text-dark);
  border-radius: var(--radius-pill);
  padding: .9rem 3rem;
  font-weight: 700;
  letter-spacing: .04em;
  transition: background .2s, transform .2s;
}
.btn-portfolio-cta:hover {
  background: rgba(255,255,255,.88);
  transform: translateY(-1px);
}

/* Header opaque sur pages dark (pas de hero transparent) */
.page-dark #header {
  background: rgba(17, 17, 23, 0.97);
  position: sticky;
  top: 0;
}

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

@media (max-width: 500px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
}

/* Variante claire pour la grille portfolio (E6 thème défaut) */
.portfolio-section.portfolio-light {
  background: #eceae5;
}
.portfolio-section.portfolio-light .portfolio-item-text h3 {
  color: var(--text-dark);
}
.portfolio-section.portfolio-light .portfolio-item-img {
  background: #f0eeea;
}
.portfolio-section.portfolio-light .portfolio-item:hover .portfolio-item-img img {
  opacity: .75;
}

/* Header sombre sur pages light */
.page-light #header {
  background: rgba(28, 45, 90, 0.95);
  position: sticky;
  top: 0;
}

/* ═══════════════════════════════════════════════════════
   PAGE PROJETS — 3 sections
═══════════════════════════════════════════════════════ */

/* ── Section 1 : Course header ──────────────────────── */
.projets-course-section {
  background: #f0eeea;
  padding: 5vw var(--gutter);
}

.projets-course-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3vw;
}

.projets-course-header h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 7vw, 6rem);
  font-weight: 400;
  color: var(--dark-bg);
  margin-bottom: 1rem;
}

.projets-course-header .projets-subtitle {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-dark);
  margin-bottom: 2rem;
}

.progress-bar-wrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--white);
  border-radius: 999px;
  padding: .7rem 1.2rem;
  border: 1px solid #d8d5d0;
}

.progress-bar-track {
  flex: 1;
  height: 4px;
  background: #e0ddd8;
  border-radius: 999px;
}

.progress-bar-fill {
  height: 100%;
  background: var(--dark-bg);
  border-radius: 999px;
}

.progress-bar-pct {
  font-size: .8rem;
  color: #888;
  white-space: nowrap;
}

.progress-bar-label {
  font-size: .8rem;
  color: #888;
  white-space: nowrap;
}

/* ── Chapitre et cards ──────────────────────────────── */
.projets-chapter {
  max-width: 1000px;
  margin: 0 auto;
}

.projets-chapter-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: .6rem;
}

.projets-chapter-header h3 {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 2.5vw, 2rem);
  font-weight: 400;
  color: var(--dark-bg);
}

.projets-chapter-meta {
  font-size: .85rem;
  color: var(--dark-bg);
  font-family: var(--font-body);
}

.projets-chapter-divider {
  border: none;
  border-top: 1px solid #c8c5bf;
  margin-bottom: 1.8rem;
}

.projets-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.projet-card {
  background: var(--white);
  border: 1px solid #d8d5d0;
  border-radius: 7px;
  overflow: hidden;
  text-decoration: none;
  color: var(--text-dark);
  transition: box-shadow .2s;
}

.projet-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,.1);
}

.projet-card-img {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #e0ddd8;
}

.projet-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

.projet-card-body {
  padding: 1rem 1.1rem 1.1rem;
}

.projet-card-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: .5rem;
  margin-bottom: .6rem;
}

.projet-card-title {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.35;
  color: var(--text-dark);
}

.projet-card-check {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 2px dashed #aaa;
  opacity: .5;
}

.projet-card-excerpt {
  font-size: .82rem;
  line-height: 1.55;
  color: #555;
  font-family: var(--font-body);
}

/* ── Section 2 : Image plein largeur ────────────────── */
.projets-image-section {
  position: relative;
  height: 38vw;
  min-height: 260px;
  max-height: 520px;
  overflow: hidden;
}

.projets-image-section img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(30%) brightness(.9);
}

/* ── Section 3 : FAQ accordion ──────────────────────── */
.projets-faq-section {
  background: #4a5f7a;
  padding: 5vw var(--gutter);
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4vw;
  align-items: start;
}

.faq-left h1 {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 400;
  color: var(--white);
  line-height: 1;
  margin-bottom: .8rem;
}

.faq-left h4 {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 1.8vw, 1.4rem);
  font-weight: 400;
  color: rgba(255,255,255,.85);
}

.faq-accordion {
  border-top: 1px solid rgba(255,255,255,.3);
}

.faq-item {
  border-bottom: 1px solid rgba(255,255,255,.3);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  color: var(--white);
  font-family: var(--font-serif);
  font-size: clamp(.95rem, 1.5vw, 1.15rem);
  font-weight: 400;
}

.faq-icon {
  flex-shrink: 0;
  width: 24px; height: 24px;
  position: relative;
}

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: var(--white);
  transition: transform .3s, opacity .3s;
}

.faq-icon::before { width: 14px; height: 2px; }
.faq-icon::after  { width: 2px; height: 14px; }

.faq-item.open .faq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}

.faq-answer {
  display: none;
  padding: 0 0 1.2rem;
  max-width: 300px;
}

.faq-item.open .faq-answer {
  display: block;
}

.faq-answer p {
  font-family: var(--font-body);
  font-size: .88rem;
  line-height: 1.65;
  color: rgba(255,255,255,.85);
}

/* Responsive */
@media (max-width: 768px) {
  .projets-cards-grid { grid-template-columns: 1fr; }
  .projets-faq-section {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .projets-image-section { height: 55vw; }
}

/* ═══════════════════════════════════════════════════════
   PAGE CONTACT
═══════════════════════════════════════════════════════ */

.contact-main-section {
  background: #111117;
  padding: 5vw var(--gutter);
}

.contact-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5vw;
  align-items: start;
}

/* ── Texte gauche ────────────────────────────────────── */
.contact-left h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  font-weight: 400;
  color: var(--white);
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.contact-intro {
  font-family: var(--font-body);
  font-size: .9rem;
  line-height: 1.65;
  color: rgba(255,255,255,.75);
  margin-bottom: 1rem;
}

.contact-coords {
  font-family: var(--font-body);
  font-size: .9rem;
  line-height: 1.8;
  color: rgba(255,255,255,.85);
  margin-bottom: 2rem;
}

.contact-coords a {
  color: rgba(255,255,255,.85);
}

/* ── Formulaire Contact ──────────────────────────────── */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.contact-form .form-label {
  display: block;
  font-family: var(--font-body);
  font-size: .78rem;
  color: rgba(255,255,255,.7);
  margin-bottom: .3rem;
}

.contact-form .form-label .req {
  color: rgba(255,255,255,.45);
  margin-left: .25rem;
  font-size: .72rem;
}

.contact-form .form-group-label {
  font-family: var(--font-body);
  font-size: .85rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: .5rem;
  display: block;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
  width: 100%;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  padding: .75rem 1.1rem;
  font-family: var(--font-body);
  font-size: .9rem;
  color: var(--white);
  outline: none;
  box-sizing: border-box;
  transition: border-color .2s, background .2s;
}

.contact-form textarea {
  border-radius: 12px;
  min-height: 110px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(255,255,255,.45);
  background: rgba(255,255,255,.13);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255,255,255,.25);
}

.contact-name-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .8rem;
}

.btn-contact-submit {
  display: inline-block;
  font-family: var(--font-body);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  background: var(--white);
  color: var(--text-dark);
  border: none;
  border-radius: 999px;
  padding: .85rem 2.5rem;
  cursor: pointer;
  margin-top: .5rem;
  transition: background .2s, transform .2s;
}

.btn-contact-submit:hover {
  background: rgba(255,255,255,.9);
  transform: translateY(-1px);
}

/* ── Image ronde droite ──────────────────────────────── */
.contact-right {
  position: sticky;
  top: calc(var(--header-h) + 2vw);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.contact-circle-img {
  width: 100%;
  max-width: 480px;
  aspect-ratio: 1/1;
  border-radius: 50%;
  overflow: hidden;
}

.contact-circle-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Section carte ───────────────────────────────────── */
.contact-map-section {
  background: #111117;
  padding: 3vw var(--gutter) 6vw;
}

.contact-map-wrapper {
  max-width: var(--max-w);
  margin: 0 auto;
}

.contact-map-title {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 2.5vw, 2rem);
  font-weight: 400;
  color: var(--white);
  margin-bottom: 1.5rem;
}

.contact-map-iframe {
  width: 100%;
  height: 290px;
  border: none;
  border-radius: 4px;
  display: block;
}

/* Responsive */
@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .contact-right {
    position: relative;
    top: auto;
  }
  .contact-circle-img {
    max-width: 280px;
    margin: 0 auto;
  }
  .contact-name-row {
    grid-template-columns: 1fr;
  }
}
═══════════════════════════════════════════════════════ */

/* ── Section 1 : Qui suis-je (dark-bold) ────────────── */
.about-hero-section {
  background: #111117;
  padding: 5vw var(--gutter);
}

.about-hero-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4vw;
  align-items: start;
}

.about-hero-text h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  font-weight: 400;
  color: var(--white);
  margin-bottom: 1.5rem;
}

.about-hero-text p,
.about-hero-text li {
  font-family: var(--font-body);
  font-size: clamp(.85rem, 1.1vw, 1rem);
  line-height: 1.7;
  color: rgba(255,255,255,.85);
}

.about-hero-text strong {
  color: var(--white);
}

.about-hero-text em {
  font-style: italic;
}

.about-sub-section {
  margin-bottom: 1.4rem;
}

.about-sub-section > p.about-label {
  margin-left: 1.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: .4rem;
}

.about-sub-section > p.about-body {
  margin-left: 3rem;
}

.about-hero-text ul {
  margin-left: 1.5rem;
  list-style: disc;
  padding-left: 1rem;
  margin-bottom: .5rem;
}

.about-hero-img {
  position: sticky;
  top: calc(var(--header-h) + 2vw);
  border-radius: 7px;
  overflow: hidden;
  aspect-ratio: 3/2;
}

.about-hero-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 7px;
}

/* ── Section 2 : Transition (contours animés → bleu) ── */
.about-wave-section {
  height: 6vw;
  background: linear-gradient(to bottom, #111117 0%, #4a5f7a 100%);
}

/* ── Section 3 : Me contacter (bright = bleu ardoise) ── */
.about-contact-section {
  background: #4a5f7a;
  padding: 5vw var(--gutter);
}

.about-contact-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: 4vw;
  align-items: start;
}

.about-contact-left h2 {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 5rem);
  font-weight: 400;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.about-contact-left p {
  font-family: var(--font-body);
  font-size: .9rem;
  line-height: 1.65;
  color: rgba(255,255,255,.85);
  margin-bottom: .8rem;
}

/* Formulaire */
.about-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: .35rem;
}

.form-field label {
  font-family: var(--font-body);
  font-size: .8rem;
  color: var(--white);
}

.form-field .req {
  font-size: .72rem;
  color: rgba(255,255,255,.55);
  margin-left: .3rem;
}

.form-field input,
.form-field textarea {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  padding: .75rem 1.1rem;
  font-family: var(--font-body);
  font-size: .9rem;
  color: var(--white);
  outline: none;
  transition: border-color .2s, background .2s;
}

.form-field textarea {
  border-radius: 12px;
  min-height: 120px;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: rgba(255,255,255,.5);
  background: rgba(255,255,255,.18);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: rgba(255,255,255,.35);
}

.form-checkbox {
  display: flex;
  align-items: center;
  gap: .6rem;
}

.form-checkbox input[type="checkbox"] {
  width: 16px; height: 16px;
  border-radius: 3px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.3);
  cursor: pointer;
  flex-shrink: 0;
}

.form-checkbox label {
  font-size: .85rem;
  color: rgba(255,255,255,.8);
  font-family: var(--font-body);
  cursor: pointer;
}

.form-submit-wrapper {
  padding-top: .5rem;
}

.btn-about-submit {
  display: inline-block;
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 700;
  background: var(--white);
  color: var(--text-dark);
  border: none;
  border-radius: 999px;
  padding: .85rem 2.5rem;
  cursor: pointer;
  transition: background .2s, transform .2s;
}

.btn-about-submit:hover {
  background: rgba(255,255,255,.9);
  transform: translateY(-1px);
}

/* Responsive */
@media (max-width: 900px) {
  .about-hero-grid,
  .about-contact-grid {
    grid-template-columns: 1fr;
  }
  .about-hero-img {
    position: relative;
    top: auto;
    aspect-ratio: 16/9;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════════════════════
   PAGE CONTACT
═══════════════════════════════════════════════════════ */

.contact-main-section {
  background: #111117;
  padding: 5vw var(--gutter) 3vw;
}

.contact-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4vw;
  align-items: start;
}

/* Colonne gauche : titre + formulaire */
.contact-form-side h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  font-weight: 400;
  color: var(--white);
  margin-bottom: 1.5rem;
}

.contact-intro {
  font-family: var(--font-body);
  font-size: .9rem;
  line-height: 1.65;
  color: rgba(255,255,255,.75);
  margin-bottom: 2rem;
}

.contact-intro a {
  color: rgba(255,255,255,.75);
}

/* Formulaire Contact (plus complet : Entreprise + Téléphone) */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.contact-form-field {
  display: flex;
  flex-direction: column;
  gap: .3rem;
}

.contact-form-field label {
  font-family: var(--font-body);
  font-size: .82rem;
  color: rgba(255,255,255,.85);
}

.contact-form-field .req {
  font-size: .72rem;
  color: rgba(255,255,255,.45);
  margin-left: .25rem;
}

.contact-form-field input,
.contact-form-field textarea {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 999px;
  padding: .72rem 1.1rem;
  font-family: var(--font-body);
  font-size: .9rem;
  color: var(--white);
  outline: none;
  transition: border-color .2s, background .2s;
  width: 100%;
  box-sizing: border-box;
}

.contact-form-field textarea {
  border-radius: 10px;
  min-height: 110px;
  resize: vertical;
}

.contact-form-field input:focus,
.contact-form-field textarea:focus {
  border-color: rgba(255,255,255,.4);
  background: rgba(255,255,255,.13);
}

.contact-form-submit {
  margin-top: .5rem;
}

.btn-contact-submit {
  display: inline-block;
  font-family: var(--font-body);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  background: var(--white);
  color: var(--text-dark);
  border: none;
  border-radius: 999px;
  padding: .85rem 2.5rem;
  cursor: pointer;
  transition: background .2s, transform .2s;
}

.btn-contact-submit:hover {
  background: rgba(255,255,255,.88);
  transform: translateY(-1px);
}

/* Colonne droite : image circulaire */
.contact-img-side {
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-img-circle {
  width: 100%;
  max-width: 520px;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
}

.contact-img-circle img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

/* Section Localisation (bas de page) */
.contact-location-section {
  background: #111117;
  padding: 2vw var(--gutter) 5vw;
}

.contact-location-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.contact-location-inner h3 {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 2.5vw, 2rem);
  font-weight: 400;
  color: var(--white);
  margin-bottom: 1.5rem;
  text-align: center;
}

.contact-map-wrapper {
  max-width: 840px;
  margin: 0 auto;
  border-radius: 7px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.1);
}

.contact-map-wrapper iframe {
  width: 100%;
  height: 300px;
  border: none;
  display: block;
}

/* Responsive */
@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .contact-img-side {
    order: -1;
  }
  .contact-img-circle {
    max-width: 280px;
  }
}

/* ── Utilitaires ─────────────────────────────────────────── */
.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;
}

/* Respect de la préférence "motion réduit" */
@media (prefers-reduced-motion: reduce) {
  .bokeh-dot { animation: none; }
}
