/* ---- Variables ---- */
:root {
  --bg-light: #f8f6f3;
  --bg-card-olive: #556B2F;
  --bullet-green: #9ACD32;
  --text-dark: #1a1a1a;
  --text-muted: #444;
  --line-accent: #b8860b;
  --serif: 'Libre Baskerville', Georgia, serif;
  --sans: 'Source Sans 3', sans-serif;
  --manifeste-bg: rgba(0, 0, 0, 0.06);
  --hero-olive: #6b7c4a;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: auto;
  scroll-padding-top: 60px;
  -webkit-text-size-adjust: 100%;
  overflow-y: scroll;
  -webkit-overflow-scrolling: touch; /* calcul de hauteur scrollable correct dès l’affichage */
}

body {
  font-family: var(--sans);
  color: var(--text-dark);
  background: var(--bg-light);
  line-height: 1.6;
  overflow-y: visible;
  max-width: 100vw;
  min-height: 100%;
  overscroll-behavior-x: none;
}

.main-content {
  overflow-x: hidden;
  max-width: 100%;
  overflow-y: visible;
}

/* Zones tactiles et tap sur mobile */
a, button {
  -webkit-tap-highlight-color: rgba(112, 141, 91, 0.2);
  tap-highlight-color: rgba(112, 141, 91, 0.2);
}

/* ========== NAVBAR ========== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  padding-top: max(0.75rem, env(safe-area-inset-top));
  background: rgba(248, 246, 243, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.navbar-brand {
  font-family: 'Playfair Display', var(--serif);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-dark);
  text-decoration: none;
  white-space: nowrap;
}

.navbar-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.2s;
}

.navbar-toggle:hover,
.navbar-toggle:focus {
  background: rgba(0, 0, 0, 0.06);
  outline: none;
}

.navbar-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 1px;
  transition: transform 0.3s, opacity 0.3s;
}

.navbar-toggle[aria-expanded="true"] .navbar-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.navbar-toggle[aria-expanded="true"] .navbar-toggle-bar:nth-child(2) {
  opacity: 0;
}

.navbar-toggle[aria-expanded="true"] .navbar-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.navbar-menu {
  display: flex;
  align-items: center;
  gap: 0.5rem 1.5rem;
}

.navbar-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.5rem 0.25rem;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
}

.navbar-link:hover {
  color: var(--text-dark);
  background: rgba(0, 0, 0, 0.04);
}

@media (max-width: 768px) {
  .navbar-toggle {
    display: flex;
  }

  .navbar-menu {
    position: fixed;
    top: calc(52px + env(safe-area-inset-top));
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    background: rgba(248, 246, 243, 0.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    gap: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: max-height 0.3s ease, opacity 0.2s, visibility 0.2s;
  }

  .navbar-menu.is-open {
    max-height: 320px;
    opacity: 1;
    visibility: visible;
  }

  .navbar-link {
    padding: 0.85rem 1rem;
    font-size: 1rem;
    border-radius: 6px;
    min-height: 44px;
    display: flex;
    align-items: center;
  }
}

/* ========== LOADING PAGE ========== */
.loading-page {
  position: fixed;
  inset: 0;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loading-page.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loading-content {
  text-align: center;
}

.loading-name {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 700;
  color: rgb(112, 141, 91);
  margin-bottom: 0.25rem;
  animation: loading-fade-in 0.8s ease-out both;
}

.loading-title {
  font-family: var(--sans);
  font-size: clamp(0.85rem, 2.5vw, 1.1rem);
  font-weight: 400;
  letter-spacing: 0.2em;
  color: var(--text-dark);
  text-transform: uppercase;
  animation: loading-fade-in 0.8s ease-out 0.2s both;
}

@keyframes loading-fade-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.loading-progress {
  width: 200px;
  height: 3px;
  background: rgba(0, 0, 0, 0.1);
  margin: 1.5rem auto 0;
  border-radius: 2px;
  overflow: hidden;
}

.loading-progress-bar {
  height: 100%;
  width: 0;
  background: var(--line-accent);
  border-radius: 2px;
  animation: loading-progress 2.2s ease-out forwards;
}

@keyframes loading-progress {
  to { width: 100%; }
}

/* ========== MAIN CONTENT ========== */
.main-content.hidden {
  opacity: 0;
}

.main-content {
  opacity: 1;
  transition: opacity 0.6s ease;
}

.main-content .hero-inner {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease 0.2s, transform 0.6s ease 0.2s;
}

.main-content:not(.hidden) .hero-inner {
  opacity: 1;
  transform: translateY(0);
}

.main-content .hero-photo-block {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease 0.35s, transform 0.5s ease 0.35s;
}

.main-content:not(.hidden) .hero-photo-block {
  opacity: 1;
  transform: translateY(0);
}

.main-content .hero-role {
  opacity: 0;
  transition: opacity 0.5s ease 0.6s;
}

.main-content:not(.hidden) .hero-role {
  opacity: 1;
}

.main-content .hero-cta {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease 0.75s, transform 0.4s ease 0.75s;
}

.main-content:not(.hidden) .hero-cta {
  opacity: 1;
  transform: translateY(0);
}

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 3rem 1.5rem 2rem;
  padding-top: max(2.5rem, env(safe-area-inset-top));
  background-color: rgb(249, 246, 240);
  overflow-x: hidden;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(221, 221, 221, 0.6) 1px, transparent 1px),
    linear-gradient(90deg, rgba(221, 221, 221, 0.6) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
}

/* Bloc photo + nom : la photo en dessous, le nom en overlay sur le bas */
.hero-photo-block {
  position: relative;
  width: min(480px, 88vw);
  margin: 0 auto;
}

/* Wrapper avec fondu en bas pour masquer la coupure de la photo */
.hero-photo-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 0.5rem;
  -webkit-mask-image: linear-gradient(to bottom, black 75%, rgba(0,0,0,0.4) 92%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 75%, rgba(0,0,0,0.4) 92%, transparent 100%);
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}

.hero-photo {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  vertical-align: bottom;
  transition: transform 0.6s ease;
}

.hero-photo-block:hover .hero-photo {
  transform: scale(1.02);
}

/* Légère surcouche en dégradé (couleur du fond) pour adoucir la transition */
.hero-photo-wrap::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 18%;
  background: linear-gradient(to bottom, transparent 0%, rgb(249, 246, 240) 40%, rgb(249, 246, 240) 100%);
  pointer-events: none;
}

/* Nom "Coralie Palmerini" — Coralie en noir, Palmerini en olive */
.hero-name {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18%;
  margin: 0;
  padding: 0 0.75rem;
  font-family: 'Playfair Display', var(--serif);
  font-size: clamp(2.5rem, 7.5vw, 4.75rem);
  font-weight: 700;
  color: rgb(112, 141, 91);
  letter-spacing: 0.02em;
  line-height: 0.98;
  text-align: center;
  text-transform: none;
  z-index: 1;
}

.hero-name-first {
  color: rgb(112, 141, 91);
}

.hero-role {
  font-family: var(--sans);
  font-size: clamp(0.8rem, 1.8vw, 1rem);
  font-weight: 600;
  color: rgb(112, 141, 91);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0;
  padding: 0.4rem 0 0 0;
  min-height: 1.5em;
}

.hero-role .typewriter-cursor {
  animation: blink 0.8s step-end infinite;
  margin-left: 2px;
}

@keyframes blink {
  50% { opacity: 0; }
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 1rem;
  padding-top: 0.25rem;
}

/* Boutons pill — style épuré, accent olive au survol */
.hero-btn {
  display: inline-block;
  padding: 0.9rem 1.9rem;
  background: transparent;
  border: 1.5px solid rgba(51, 51, 51, 0.4);
  border-radius: 2rem;
  color: rgb(51, 51, 51);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: border-color 0.3s ease, color 0.3s ease, background 0.3s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.hero-btn:hover {
  border-color: rgb(112, 141, 91);
  color: rgb(112, 141, 91);
  background: rgba(112, 141, 91, 0.08);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(112, 141, 91, 0.15);
}

/* ========== SECTION TITLES (MANIFESTE STYLE) ========== */
.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 2rem;
  overflow-x: hidden;
}

.manifeste-title {
  position: relative;
  width: 100%;
  font-family: var(--serif);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--text-dark);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 3rem;
  z-index: 1;
  overflow: visible;
}

.manifeste-title::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 25%;
  min-width: 100px;
  background: linear-gradient(to right, transparent, var(--bg-light));
  pointer-events: none;
  z-index: 1;
}

.manifeste-bg {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: clamp(3rem, 12vw, 8rem);
  font-weight: 400;
  color: var(--manifeste-bg);
  white-space: nowrap;
  pointer-events: none;
  z-index: 0;
}

/* Petit soulignement sous le titre (style Formations) */
.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  background: var(--text-dark);
  margin-top: 0.35rem;
  transition: width 0.4s ease;
}

.section.visible .section-title::after {
  width: 80px;
}

/* ========== À PROPOS (ENCADRÉ) ========== */
.section-about {
  padding-top: 2rem;
}

.about-frame {
  position: relative;
  background: rgba(255,255,255,0.8);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 4px;
  padding: 2rem 2.5rem;
  overflow: hidden;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  will-change: transform;
}

.section-about.visible .about-frame {
  animation: about-reveal 0.6s ease both;
}

@keyframes about-reveal {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.about-frame:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.06);
}

.about-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,0,0,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.03) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
}

.about-content {
  position: relative;
  z-index: 1;
  font-size: 1rem;
  color: var(--text-dark);
}

.about-content p {
  margin-bottom: 1rem;
}

.about-content p:last-child {
  margin-bottom: 0;
}

.about-content strong {
  font-weight: 600;
}

.about-content,
.projet-desc,
.footer-contact,
.exp-card {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* ========== PROJETS ========== */
.projets-intro {
  font-size: 1.05rem;
  color: var(--text-dark);
  margin-bottom: 2rem;
  max-width: 720px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  will-change: transform;
}

.section-projets.visible .projets-intro {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.1s;
}

.projets-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 100%;
}

.projet-card {
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 4px;
  overflow: hidden;
  background: var(--bg-light);
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.4s ease, box-shadow 0.3s ease;
  will-change: transform;
}

.section-projets.visible .projet-card {
  opacity: 1;
  transform: translateY(0);
}

.section-projets.visible .projet-card:nth-child(1) { transition-delay: 0.15s; }
.section-projets.visible .projet-card:nth-child(2) { transition-delay: 0.25s; }
.section-projets.visible .projet-card:nth-child(3) { transition-delay: 0.35s; }
.section-projets.visible .projet-card:nth-child(4) { transition-delay: 0.45s; }
.section-projets.visible .projet-card:nth-child(5) { transition-delay: 0.55s; }
.section-projets.visible .projet-card:nth-child(6) { transition-delay: 0.65s; }
.section-projets.visible .projet-card:nth-child(7) { transition-delay: 0.75s; }
.section-projets.visible .projet-card:nth-child(8) { transition-delay: 0.85s; }
.section-projets.visible .projet-card:nth-child(9) { transition-delay: 0.95s; }
.section-projets.visible .projet-card:nth-child(10) { transition-delay: 1.05s; }
.section-projets.visible .projet-card:nth-child(11) { transition-delay: 1.15s; }

.projet-card:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
  transform: translateY(-4px);
}

.projet-card-image {
  aspect-ratio: 4 / 3;
  width: 100%;
  min-height: 180px;
  overflow: hidden;
  background: #e8e6e3;
}

.projet-card-image img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.projet-card:hover .projet-card-image img {
  transform: scale(1.05);
}

.projet-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.projet-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.projet-title {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.projet-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 1.25rem;
  flex: 1;
}

.projet-btn {
  display: inline-block;
  align-self: flex-start;
  padding: 0.5rem 1rem;
  background: #fff;
  border: 1px solid var(--text-dark);
  color: var(--text-dark);
  font-size: 0.85rem;
  font-weight: 500;
  font-family: inherit;
  text-decoration: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, transform 0.2s ease;
}

.projet-btn:hover {
  background: var(--text-dark);
  color: #fff;
  transform: translateX(4px);
}

/* ========== MODALE PROJET ========== */
.projet-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  overflow-y: auto;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0.3s ease, opacity 0.3s ease;
}

.projet-modal:not([hidden]) {
  visibility: visible;
  opacity: 1;
}

.projet-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  cursor: pointer;
}

.projet-modal-content {
  position: relative;
  width: 100%;
  max-width: 700px;
  max-height: calc(100vh - 3rem);
  overflow-y: auto;
  background: rgb(249, 246, 240);
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  margin: auto;
}

.projet-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--text-dark);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.projet-modal-close:hover {
  background: #fff;
  transform: scale(1.05);
}

.projet-modal-image-wrap {
  width: 100%;
  max-height: 55vh;
  overflow: hidden;
  background: #eee;
  border-radius: 8px 8px 0 0;
}

.projet-modal-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  max-height: 55vh;
}

.projet-modal-body {
  padding: 1.5rem 1.75rem 2rem;
}

.projet-modal-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgb(112, 141, 91);
  margin-bottom: 0.35rem;
}

.projet-modal-title {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0 0 1rem 0;
  line-height: 1.25;
}

.projet-modal-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* Modale responsive — mobile et tablette */
@media (max-width: 600px) {
  .projet-modal {
    padding: 0.75rem;
    align-items: flex-start;
  }
  .projet-modal-content {
    max-height: calc(100vh - 1.5rem);
    border-radius: 6px;
  }
  .projet-modal-body {
    padding: 1.25rem 1.25rem 1.75rem;
  }
  .projet-modal-title {
    font-size: 1.15rem;
  }
  .projet-modal-desc {
    font-size: 0.9rem;
  }
  .projet-modal-close {
    top: 0.5rem;
    right: 0.5rem;
    width: 2.25rem;
    height: 2.25rem;
    font-size: 1.35rem;
  }
}

@media (max-width: 400px) {
  .projet-modal {
    padding: 0.5rem;
  }
  .projet-modal-content {
    max-height: 100vh;
    border-radius: 0;
  }
}

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

/* ========== FORMATIONS (TABLE / BANDES) ========== */
.formations-table {
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 4px;
  overflow: hidden;
  max-width: 100%;
}

.formations-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.5fr;
  gap: 1.5rem;
  padding: 1rem 1.5rem;
  background: #f0eeeb;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  align-items: center;
  transition: background 0.3s ease;
}

.formations-row:nth-child(odd) {
  background: #e8e6e3;
}

.formations-row:hover {
  background: #e4e2de !important;
}

.formations-row:nth-child(odd):hover {
  background: #ddd9d4 !important;
}

.formations-row:last-child {
  border-bottom: none;
}

.col-diplome { font-weight: 500; color: var(--text-dark); }
.col-lieu { color: var(--text-muted); }
.col-dates { color: var(--text-muted); text-align: right; }

/* Bannière compétences défilante */
.competences-banner {
  margin-top: 2.5rem;
  overflow: hidden;
  padding: 0.75rem 0;
}

.competences-track {
  overflow: hidden;
  width: 100%;
}

.competences-track-inner {
  display: flex;
  align-items: center;
  gap: 1rem 1.5rem;
  width: max-content;
  animation: competences-scroll 40s linear infinite;
  will-change: transform;
}

/* Pause pendant le scroll pour ne pas bloquer (géré en JS) */
body.is-scrolling .competences-track-inner {
  animation-play-state: paused;
}

.competence-tag {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  padding: 0.5rem 1rem;
  background: rgba(112, 141, 91, 0.12);
  color: rgb(112, 141, 91);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border-radius: 2rem;
  white-space: nowrap;
}

@keyframes competences-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (max-width: 768px) {
  .competences-banner {
    margin-top: 1.75rem;
    padding: 0.5rem 0;
  }
  .competence-tag {
    font-size: 0.8rem;
    padding: 0.4rem 0.85rem;
  }
  .competences-track-inner {
    animation-duration: 35s;
  }
}

@media (max-width: 700px) {
  .formations-row {
    grid-template-columns: 1fr;
    gap: 0.35rem;
    padding: 1rem 1.25rem;
  }
  .col-dates { text-align: left; }
  .col-diplome::before { content: "Formation : "; font-weight: 700; color: var(--text-dark); }
  .col-lieu::before { content: "Lieu : "; font-weight: 600; color: var(--text-muted); }
  .col-dates::before { content: "Dates : "; font-weight: 600; color: var(--text-muted); }
}

/* ========== EXPÉRIENCES (CARTES VERT OLIVE) ========== */
.experiences-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.exp-card {
  background: var(--bg-card-olive);
  color: #fff;
  padding: 1.75rem;
  border-radius: 8px;
  list-style: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.exp-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(85, 107, 47, 0.35);
}

.exp-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.exp-card-header .exp-dates {
  flex-shrink: 0;
  margin-bottom: 0;
  font-weight: 700;
}

.exp-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.exp-role, .exp-dates {
  font-size: 0.9rem;
  opacity: 0.95;
  margin-bottom: 0.5rem;
}

.exp-location {
  font-size: 0.85rem;
  font-style: italic;
  opacity: 0.95;
  margin: 0;
}

.exp-card .exp-desc {
  font-size: 0.95rem;
  line-height: 1.55;
  margin-top: 0.75rem;
  opacity: 0.95;
}

.exp-card ul {
  list-style: none;
  margin-top: 0.75rem;
}

.exp-card li {
  position: relative;
  padding-left: 1rem;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
  line-height: 1.5;
}

.exp-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 6px;
  height: 6px;
  background: var(--bullet-green);
  border-radius: 1px;
}

.exp-stages li::before {
  background: var(--bullet-green);
}

/* Expériences : 2 colonnes sur tablette, 1 sur mobile */
@media (max-width: 900px) {
  .experiences-cards {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 601px) and (max-width: 900px) {
  .experiences-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}

/* ========== FOOTER (QUADRILLAGE) ========== */
.footer {
  position: relative;
  padding: 4rem 2rem;
  padding-bottom: max(2rem, env(safe-area-inset-bottom));
  margin-top: 2rem;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.5s ease;
  overflow-x: hidden;
  will-change: transform;
}

.footer.visible {
  opacity: 1;
  transform: translateY(0);
}

.footer-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,0,0,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.04) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

.footer-inner {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.footer-quote {
  font-style: italic;
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.footer-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.footer-btn {
  display: inline-block;
  padding: 0.9rem 1.9rem;
  background: transparent;
  border: 1.5px solid rgba(51, 51, 51, 0.4);
  border-radius: 2rem;
  color: rgb(51, 51, 51);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  text-transform: uppercase;
  transition: border-color 0.3s ease, color 0.3s ease, background 0.3s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.footer-btn:hover {
  border-color: rgb(112, 141, 91);
  color: rgb(112, 141, 91);
  background: rgba(112, 141, 91, 0.08);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(112, 141, 91, 0.15);
}

.footer-contact p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.footer-contact a {
  color: var(--text-dark);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-contact a:hover {
  text-decoration: underline;
  color: var(--hero-olive);
}

/* ========== ANIMATIONS D'APPARITION (will-change = GPU, pas de blocage scroll) ========== */
.section {
  opacity: 0;
  transform: translateY(20px);
  will-change: transform;
}

.section.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.5s ease;
}

.formations-row,
.exp-card {
  opacity: 0;
  transform: translateY(12px);
  will-change: transform;
}

.formations-table.visible .formations-row,
.experiences-cards.visible .exp-card {
  opacity: 1;
  transform: translateY(0);
}

.formations-row {
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.formations-row:nth-child(1) { transition-delay: 0.05s; }
.formations-row:nth-child(2) { transition-delay: 0.1s; }
.formations-row:nth-child(3) { transition-delay: 0.15s; }
.formations-row:nth-child(4) { transition-delay: 0.2s; }

.exp-card {
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.exp-card:nth-child(1) { transition-delay: 0.05s; }
.exp-card:nth-child(2) { transition-delay: 0.15s; }
.exp-card:nth-child(3) { transition-delay: 0.25s; }

/* ========== RESPONSIVE GLOBAL ========== */

/* Tablette (portrait et petit écran) */
@media (max-width: 768px) {
  .section {
    padding: 3.5rem 1.25rem;
  }

  .hero {
    padding: 2.5rem 1.25rem 1.5rem;
    padding-top: max(2.5rem, calc(2rem + env(safe-area-inset-top)));
    min-height: 100vh;
  }

  .hero-photo-block {
    width: min(420px, 90vw);
  }

  .about-frame {
    padding: 1.5rem 1.25rem;
  }

  .projets-intro {
    font-size: 0.95rem;
  }
}

/* Téléphone */
@media (max-width: 480px) {
  .hero {
    padding: 2rem 1rem 1.25rem;
    padding-top: max(2rem, calc(1.5rem + env(safe-area-inset-top)));
    min-height: 100vh;
  }

  .hero-name {
    font-size: clamp(2.4rem, 11vw, 3.5rem);
  }

  .hero-role {
    font-size: clamp(0.85rem, 4vw, 1rem);
  }

  .hero-cta {
    flex-direction: column;
    width: 100%;
    max-width: 280px;
    gap: 0.75rem;
  }

  .hero-btn {
    width: 100%;
    text-align: center;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .section {
    padding: 3rem 1rem;
  }

  .manifeste-title {
    font-size: clamp(1.4rem, 5vw, 1.75rem);
    margin-bottom: 2rem;
  }

  .about-frame {
    padding: 1.25rem 1rem;
  }

  .about-content {
    font-size: 0.95rem;
  }

  .about-content p {
    margin-bottom: 1rem;
  }

  .projet-card-body {
    padding: 1.25rem;
  }

  .projet-title {
    font-size: 1.05rem;
  }

  .projet-desc {
    font-size: 0.9rem;
  }

  .projet-btn {
    min-height: 44px;
    padding: 0.65rem 1rem;
    display: inline-flex;
    align-items: center;
  }

  .footer {
    padding: 3rem 1rem;
    padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
  }

  .footer-cta {
    flex-direction: column;
    align-items: center;
    margin-bottom: 1.5rem;
  }

  .footer-btn {
    min-height: 44px;
    padding: 0.75rem 1.25rem;
    min-width: 200px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .footer-contact p {
    font-size: 0.9rem;
  }
}

/* Très petit écran */
@media (max-width: 360px) {
  .navbar-brand {
    font-size: 0.95rem;
  }

  .hero-name {
    font-size: clamp(2rem, 12vw, 2.8rem);
  }

  .section {
    padding: 2.5rem 0.75rem;
  }
}

/* Éviter débordement horizontal */
img {
  max-width: 100%;
  height: auto;
}

/* Zone de touch suffisante sur mobile */
@media (pointer: coarse) {
  .hero-btn,
  .projet-btn,
  .footer-btn,
  .navbar-link {
    min-height: 44px;
    min-width: 44px;
  }

  .projet-btn,
  .footer-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}
