/* ==========================================================================
   Polices auto-hébergées (aucune requête vers Google Fonts)
   Outfit (titres) & Plus Jakarta Sans (texte) — licence SIL OFL
   ========================================================================== */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('../fonts/outfit-latin-ext-wght-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('../fonts/outfit-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url('../fonts/plus-jakarta-sans-latin-ext-wght-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url('../fonts/plus-jakarta-sans-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

/* ==========================================================================
   Variables globales & Thème Dark Studio High-Contrast
   ========================================================================== */
:root {
  --bg-body: #0b0d11;
  --bg-surface: #13161c;
  --bg-card: #1a1e26;
  --text-main: #f8fafc;
  --text-muted: #cbd5e1;
  --text-dim: #94a3b8;
  --accent-gold: #d0a85c;
  --accent-gold-hover: #e5be73;
  --border-color: rgba(255, 255, 255, 0.12);
  --font-heading: 'Outfit', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-body: 'Plus Jakarta Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --radius-lg: 16px;
  --radius-pill: 50rem;
  --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  color-scheme: dark; /* barres de défilement et champs natifs en mode sombre */
}

body {
  background-color: var(--bg-body);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.65;
  overflow-wrap: break-word; /* évite tout débordement horizontal (e-mail, mots longs) */
  /* Pas d'overflow-x ici : cela fait de <body> un conteneur de scroll
     et casse le ScrollSpy / les liens du menu de Bootstrap. */
}

h1, h2, h3, h4, h5, .navbar-brand {
  font-family: var(--font-heading);
  letter-spacing: -0.01em;
}

/* Surcharge globale des textes Bootstrap */
p, .text-muted, .text-secondary {
  color: var(--text-muted) !important;
}

.text-light-subtle {
  color: var(--text-muted) !important;
}

.text-gold { color: var(--accent-gold) !important; }
.bg-dark-surface { background-color: var(--bg-surface); }
.bg-dark-card { background-color: var(--bg-card); }
.section-pad { padding: 6rem 0; }
.max-w-600 { max-width: 600px; }
.tracking-wider { letter-spacing: 0.12em; }

:focus-visible {
  outline: 2px solid var(--accent-gold);
  outline-offset: 4px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 9999;
  background: var(--accent-gold);
  color: #000;
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 8px 0;
  font-weight: 700;
}
.skip-link:focus { left: 0; }

/* ==========================================================================
   Navigation
   ========================================================================== */
.navbar {
  background: rgba(11, 13, 17, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 0;
  transition: var(--transition-smooth);
}

.navbar-brand {
  color: #fff !important;
  font-weight: 800;
  font-size: 1.25rem;
}
.navbar-brand .brand-logo {
  background: var(--accent-gold);
  color: #0b0d11;
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  font-size: 0.95rem;
  margin-right: 0.5rem;
  font-weight: 800;
}
.navbar-brand .dot { color: var(--accent-gold); }

.navbar-toggler {
  border-color: var(--border-color);
  filter: invert(1);
}

.nav-link {
  color: var(--text-muted) !important;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 1rem !important;
  transition: var(--transition-smooth);
}
.nav-link:hover, .nav-link.active {
  color: var(--accent-gold) !important;
}

.btn-nav-cta {
  border: 1px solid var(--accent-gold) !important;
  color: var(--accent-gold) !important;
  border-radius: var(--radius-pill);
  padding: 0.4rem 1.2rem !important;
}
.btn-nav-cta:hover {
  background: var(--accent-gold) !important;
  color: #0b0d11 !important;
}

/* Navigateurs sans backdrop-filter : fond opaque pour garder le menu lisible */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .navbar { background: rgba(11, 13, 17, 0.98); }
}

@media (max-width: 991.98px) {
  .navbar-collapse {
    padding: 1rem 0 0.5rem;
    /* Menu ouvert sur un petit écran en paysage : il défile au lieu d'être coupé */
    max-height: calc(100vh - 76px);
    max-height: calc(100dvh - 76px);
    overflow-y: auto;
  }
  .btn-nav-cta {
    display: inline-block;
    margin-top: 0.5rem;
  }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  min-height: 90vh;
  min-height: 90svh;
  padding-bottom: 5rem; /* laisse la place aux contrôles du slider */
  padding-top: 110px;
  position: relative;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 0;
}
/* Slider : les images sont superposées, seule « is-active » est visible (fondu enchaîné) */
.hero-slide {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero-slide.is-active { opacity: 0.5; }
/* Dégradés pour garder le texte lisible, quelle que soit l'image */
.hero-media::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background:
    linear-gradient(90deg, rgba(11, 13, 17, 0.95) 0%, rgba(11, 13, 17, 0.7) 45%, rgba(11, 13, 17, 0.25) 100%),
    linear-gradient(180deg, rgba(11, 13, 17, 0.4) 0%, rgba(11, 13, 17, 0) 40%, var(--bg-body) 100%);
}

/* Contrôles du slider (points + pause) */
.hero-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1.25rem;
  z-index: 2;
}
.hero-controls[hidden] { display: none; }
.hero-dot,
.hero-pause {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: #ffffff;
  border-radius: 50%;
}
.hero-dot::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: transparent;
  transition: var(--transition-smooth);
}
.hero-dot:hover::before { background: rgba(255, 255, 255, 0.5); }
.hero-dot.is-active::before {
  background: var(--accent-gold);
  border-color: var(--accent-gold);
  transform: scale(1.2);
}
.hero-pause { margin-left: 0.4rem; font-size: 1.1rem; }
.hero-pause:hover { color: var(--accent-gold); }

.hero-glow {
  position: absolute;
  top: -10%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(208, 168, 92, 0.15) 0%, rgba(11, 13, 17, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

.availability-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  color: var(--text-main);
  font-weight: 500;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-title {
  --rx: 0.035;
  --ry: 0.025;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --animcolor1: #0b0d11;
  --animcolor2: #0b0d11;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
  text-shadow:
    calc(var(--rx) * 1em) calc(var(--ry) * 1em) 0 var(--animcolor1),
    calc(var(--rx) * -1em) calc(var(--ry) * -1em) 0 var(--animcolor2);
  transition: text-shadow 0.25s ease-out;
  animation: registration 1.3s var(--ease) both;
}
.hero-title span { display: block; }
@keyframes registration {
  from {
    text-shadow:
      0.2em 0.12em 0 var(--animcolor1),
      -0.2em -0.12em 0 var(--animcolor2);
  }
}

.hero-subtitle {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 2.4vw, 1.7rem);
  font-weight: 600;
  color: var(--accent-gold) !important;
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--text-muted) !important;
  max-width: 650px;
}

.hero-stats .stat-item {
  display: flex;
  flex-direction: column;
}
.stat-number {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--accent-gold);
}
.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Boutons
   ========================================================================== */
.btn-gold {
  background-color: var(--accent-gold);
  color: #0b0d11;
  font-weight: 700;
  border-radius: var(--radius-pill);
  padding: 0.8rem 2rem;
  border: none;
  transition: var(--transition-smooth);
}
.btn-gold:hover {
  background-color: var(--accent-gold-hover);
  color: #0b0d11;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(208, 168, 92, 0.25);
}

.btn-outline-light-custom {
  border: 1px solid var(--border-color);
  color: #ffffff;
  border-radius: var(--radius-pill);
  padding: 0.8rem 2rem;
  transition: var(--transition-smooth);
}
.btn-outline-light-custom:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.btn-outline-gold {
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
  border-radius: var(--radius-pill);
  padding: 0.75rem 1.8rem;
  transition: var(--transition-smooth);
}
.btn-outline-gold:hover {
  background: var(--accent-gold);
  color: #0b0d11;
}

/* ==========================================================================
   Cartes d'Expertises
   ========================================================================== */
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  transition: var(--transition-smooth);
}
.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(208, 168, 92, 0.5);
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.4);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(208, 168, 92, 0.12);
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.card-desc {
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* ==========================================================================
   Filtres & Portfolio Grid
   ========================================================================== */
.btn-filter {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  padding: 0.6rem 1.2rem;
  min-height: 44px;
  font-size: 0.88rem;
  transition: var(--transition-smooth);
}
.btn-filter:hover, .btn-filter.active {
  background: var(--accent-gold);
  color: #0b0d11;
  border-color: var(--accent-gold);
  font-weight: 700;
}

.project-actions .btn {
  padding: 0.75rem 1.8rem;
  border-radius: var(--radius-pill);
}

.portfolio-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition-smooth);
}
.portfolio-card a {
  display: block;
  color: inherit;
  text-decoration: none;
}

.portfolio-thumb {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #000;
}
/* Navigateurs sans aspect-ratio (Safari < 15) : ratio 4:3 par bourrage */
@supports not (aspect-ratio: 1) {
  .portfolio-thumb { height: 0; padding-top: 75%; }
  .portfolio-thumb img { position: absolute; top: 0; left: 0; }
}
.portfolio-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

/* Effets de survol réservés aux appareils avec souris : sur tactile, le survol
   « collant » obligeait parfois à toucher deux fois la carte (iOS Safari) */
@media (hover: hover) {
  .portfolio-card:hover .portfolio-thumb img {
    transform: scale(1.06);
  }
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(11, 13, 17, 0.75);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition-smooth);
}
@media (hover: hover) {
  .portfolio-card:hover .portfolio-overlay { opacity: 1; }
}
.portfolio-card:focus-within .portfolio-overlay { opacity: 1; }
@media (hover: none) {
  .portfolio-overlay { display: none; }
}
.portfolio-card:focus-within {
  border-color: rgba(208, 168, 92, 0.6);
}
/* Le contour par défaut serait rogné par overflow: hidden */
.portfolio-card a:focus-visible {
  outline-offset: -4px;
}

.btn-preview {
  color: #ffffff;
  border: 1px solid #ffffff;
  border-radius: var(--radius-pill);
  padding: 0.55rem 1.3rem;
  font-size: 0.88rem;
  font-weight: 600;
}

.portfolio-info {
  padding: 1.25rem;
}
.badge-tag {
  font-size: 0.78rem;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 600;
}
.portfolio-title {
  color: #ffffff;
  margin: 0;
  transition: var(--transition-smooth);
}
.portfolio-card:hover .portfolio-title,
.portfolio-card:focus-within .portfolio-title {
  color: var(--accent-gold);
}

/* ==========================================================================
   Section Outils & Compétences
   ========================================================================== */
.tool-group { margin-bottom: 3rem; }
.tool-group:last-child { margin-bottom: 0; }

.bullet-list {
  list-style: none;
  margin: 0;
  padding: 0 0 0 1.5rem;
}
.bullet-list li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
}
.bullet-list li:last-child { margin-bottom: 0; }
.bullet-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-gold);
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(105px, 1fr));
  gap: 1rem;
}
.tool-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.1rem 0.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: var(--transition-smooth);
}
.tool-card:hover {
  transform: translateY(-4px);
  border-color: rgba(208, 168, 92, 0.4);
  color: #ffffff;
}
.tool-card i { font-size: 1.8rem; }
.text-photoshop { color: #31A8FF; }
.text-illustrator { color: #FF9A00; }
.text-indesign { color: #FF3366; }
.text-aftereffects { color: #9999FF; }

/* ==========================================================================
   Accordion & Timeline Parcours
   ========================================================================== */
.custom-accordion .accordion-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px !important;
  margin-bottom: 0.75rem;
  overflow: hidden;
}
.custom-accordion .accordion-button {
  background: var(--bg-card);
  color: #ffffff;
  padding: 1.25rem;
  box-shadow: none;
}
.custom-accordion .accordion-button:not(.collapsed) {
  background: rgba(208, 168, 92, 0.1);
  color: #ffffff;
}
.custom-accordion .accordion-button::after {
  filter: invert(1);
}
/* Bootstrap retire ici le halo de focus : on restitue un contour visible,
   à l'intérieur du bouton (sinon rogné par overflow: hidden) */
.custom-accordion .accordion-button:focus-visible {
  outline: 2px solid var(--accent-gold);
  outline-offset: -4px;
}
.custom-accordion .accordion-body {
  color: var(--text-muted) !important;
  font-size: 0.95rem;
  border-top: 1px solid var(--border-color);
  background: rgba(0, 0, 0, 0.2);
}

.acc-date { display: block; font-size: 0.8rem; color: var(--accent-gold); margin-bottom: 0.25rem; font-weight: 600; }
.acc-title { font-weight: 700; font-size: 1.05rem; display: block; color: #ffffff; }
.acc-company { font-size: 0.88rem; color: var(--text-muted); }
.badge-contract {
  font-size: 0.72rem;
  border: 1px solid var(--border-color);
  padding: 0.1rem 0.5rem;
  border-radius: var(--radius-pill);
  margin-left: 0.4rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
}

.timeline-wrapper {
  border-left: 2px solid var(--border-color);
  padding-left: 1.5rem;
}
.timeline-card {
  position: relative;
  margin-bottom: 2rem;
}
.timeline-card::before {
  content: "";
  position: absolute;
  left: -1.95rem;
  top: 0.3rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-gold);
}
.timeline-year { font-size: 0.82rem; color: var(--accent-gold); display: block; font-weight: 600; }
.exp-meta { font-size: 0.82rem; color: var(--text-dim); }
.extra-small { font-size: 0.8rem; }

@media(min-width: 992px) {
  .sticky-col { position: sticky; top: 100px; }
}

/* ==========================================================================
   Footer, Contact & Formulaire
   ========================================================================== */
.footer-section {
  background: #060709;
  border-top: 1px solid var(--border-color);
}

.footer-lead {
  color: var(--text-muted) !important;
  font-size: 1.05rem;
}

.social-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff !important;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 1.2rem;
  transition: var(--transition-smooth);
}
.social-btn:hover {
  background: var(--accent-gold);
  border-color: var(--accent-gold);
  color: #0b0d11 !important;
  transform: translateY(-3px);
}

.badge-info-pill {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  color: var(--text-main);
}

.custom-input {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid var(--border-color) !important;
  color: #ffffff !important;
  border-radius: 10px;
  padding: 0.8rem 1rem;
}
.custom-input:focus {
  background: rgba(255, 255, 255, 0.09) !important;
  color: #ffffff !important;
  border-color: var(--accent-gold) !important;
  box-shadow: none !important;
}
.custom-input::placeholder { color: var(--text-dim) !important; }

#form-status.ok { color: #34d399; font-size: 0.95rem; font-weight: 500; }
#form-status.err { color: #fb7185; font-size: 0.95rem; font-weight: 500; }

@media (max-width: 767.98px) {
  .section-pad { padding: 4rem 0; }
  .hero-title { font-size: 2.3rem; }
}

/* Apparition douce des cartes projets (uniquement les cartes nouvellement affichées) */
.project-item.is-new {
  animation: card-in 0.45s ease both;
}
@keyframes card-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ==========================================================================
   Overlay projet
   ========================================================================== */
.project-modal {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  color: var(--text-main);
}
.project-modal .modal-header,
.project-modal .modal-footer {
  border-color: var(--border-color);
  padding: 1rem 1.5rem;
}
.project-modal .modal-title { color: #fff; }
.project-modal .modal-body {
  padding: 0;
  background: var(--bg-body);
}
.project-desc {
  max-width: 720px;
  margin: 0 auto;
  padding: 1.75rem 1.5rem 1rem;
}
.project-image {
  display: block;
  width: 100%;
  height: auto;
}
.project-modal .modal-body { overscroll-behavior: contain; }
.project-modal .btn-close { padding: 0.75rem; }
.modal-backdrop.show { opacity: 0.8; }
@media (max-width: 991.98px) {
  .project-modal { border-radius: 0; }
}

/* ==========================================================================
   Pied de page : bloc mobilité, mention du formulaire, liens légaux
   ========================================================================== */
.mobility-block { padding-top: 1.5rem; border-top: 1px solid var(--border-color); }
.form-note { font-size: 0.82rem; color: var(--text-dim) !important; margin: 0; }
.form-note a, .legal-links a, .legal-content a { color: var(--accent-gold); text-underline-offset: 3px; }
.form-note a:hover, .legal-links a:hover, .legal-content a:hover { color: var(--accent-gold-hover); }
.legal-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.25rem 1.5rem; margin-top: 0.5rem; }
.legal-links a { padding: 0.35rem 0; font-size: 0.88rem; }

/* ==========================================================================
   Pages secondaires (mentions légales, confidentialité, 404)
   ========================================================================== */
.legal-main { padding: 8rem 0 5rem; min-height: 70vh; }
.legal-content { max-width: 780px; margin: 0 auto; }
.legal-content h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 800; color: #fff; margin-bottom: 0.5rem; }
.legal-content h2 { font-size: 1.35rem; font-weight: 700; color: #fff; margin: 2.75rem 0 0.9rem; }
.legal-content h3 { font-size: 1.05rem; font-weight: 600; color: #fff; margin: 1.5rem 0 0.5rem; }
.legal-content p, .legal-content li { color: var(--text-muted) !important; }
.legal-content ul { padding-left: 1.25rem; }
.legal-content li { margin-bottom: 0.4rem; }
.legal-meta { font-size: 0.88rem; color: var(--text-dim) !important; margin-bottom: 2rem; }
.legal-table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 0.93rem; }
.legal-table th, .legal-table td { border: 1px solid var(--border-color); padding: 0.65rem 0.8rem; text-align: left; vertical-align: top; color: var(--text-muted); }
.legal-table th { color: #fff; background: rgba(255, 255, 255, 0.04); font-weight: 600; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
/* Champ à compléter avant la mise en ligne (surligné pour ne pas passer inaperçu) */
.todo { background: #fde68a; color: #111 !important; padding: 0.05em 0.35em; border-radius: 4px; font-weight: 600; }
.error-code { font-family: var(--font-heading); font-size: clamp(5rem, 18vw, 9rem); font-weight: 800; line-height: 1; color: var(--accent-gold); margin: 0; }

/* ==========================================================================
   Impression / export PDF (un recruteur peut imprimer la page)
   ========================================================================== */
@media print {
  @page { margin: 1.5cm; }
  html, body { background: #fff !important; color: #000 !important; }
  *, *::before, *::after { box-shadow: none !important; text-shadow: none !important; }
  p, li, h1, h2, h3, h4, h5, span, div, a, .text-gold, .text-white, .text-light-subtle,
  .acc-title, .acc-date, .acc-company, .stat-number, .stat-label, .timeline-year { color: #000 !important; }
  .navbar, .skip-link, .hero-media, .hero-glow, .hero-controls, .project-filters,
  .project-actions, #contact-form, .social-links, .hero .btn, .availability-badge,
  .modal, #exp-toggle, .portfolio-overlay { display: none !important; }
  .hero { min-height: 0; padding: 0 0 1rem; }
  .section-pad { padding: 1.5rem 0; }
  .bg-dark-surface, .bg-dark-card, .footer-section, .feature-card, .portfolio-card,
  .accordion-item, .tool-card, .tools-grid-wrapper { background: #fff !important; border-color: #bbb !important; }
  .feature-card, .portfolio-card, .accordion-item, .timeline-card { break-inside: avoid; }
  .accordion-collapse { display: block !important; height: auto !important; visibility: visible !important; }
  .accordion-button::after { display: none; }
  .exp-extra.d-none { display: block !important; }
  .accordion-body { background: #fff !important; }
  a[href^="http"]:not(.social-btn)::after { content: " (" attr(href) ")"; font-size: 0.75em; word-break: break-all; }
}

/* ==========================================================================
   Bandeau de consentement aux cookies
   « Tout refuser » et « Tout accepter » ont volontairement le même style
   ========================================================================== */
.consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1100;
  background: var(--bg-surface);
  border-top: 1px solid rgba(208, 168, 92, 0.5);
  box-shadow: 0 -12px 32px rgba(0, 0, 0, 0.5);
  padding: 1rem 0;
  max-height: 90vh;
  overflow-y: auto;
}
.consent-banner[hidden] { display: none; }
.consent-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.consent-text { flex: 1 1 420px; min-width: 0; }
.consent-title { font-family: var(--font-heading); font-size: 1.05rem; font-weight: 700; color: #fff; margin: 0 0 0.25rem; }
.consent-text p { margin: 0; font-size: 0.9rem; }
.consent-text a { color: var(--accent-gold); text-underline-offset: 3px; }
.consent-text a:hover { color: var(--accent-gold-hover); }
.consent-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; flex: 0 0 auto; }
.btn-consent {
  border: 1px solid var(--accent-gold);
  color: #fff;
  background: transparent;
  border-radius: var(--radius-pill);
  padding: 0.65rem 1.6rem;
  min-height: 44px;
  font-weight: 600;
  transition: var(--transition-smooth);
}
.btn-consent:hover, .btn-consent:focus-visible { background: var(--accent-gold); color: #0b0d11; }
@media (max-width: 575.98px) {
  .consent-actions { width: 100%; }
  .consent-actions .btn-consent { flex: 1 1 0; padding-left: 0.75rem; padding-right: 0.75rem; }
}
@media print { .consent-banner { display: none !important; } }

/* Bouton « Gérer mes cookies » du pied de page, présenté comme un lien */
.legal-links button {
  background: none;
  border: 0;
  padding: 0.35rem 0;
  font-size: 0.88rem;
  color: var(--accent-gold);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.legal-links button:hover { color: var(--accent-gold-hover); }

/* ==========================================================================
   Anti-débordement horizontal (iPhone : la page ne doit jamais glisser sur le côté)
   « clip » coupe ce qui dépasse sans créer de zone de défilement : le menu actif
   (ScrollSpy) et les blocs « sticky » continuent de fonctionner.
   ========================================================================== */
html { overflow-x: clip; overscroll-behavior-x: none; }
main, .footer-section { overflow-x: clip; }
img, svg, video { max-width: 100%; }
