/* =====================================================================
   MATTÉO CANADA — PORTFOLIO
   Système de design « éditorial clair »
   Off-white papier · encre quasi-noire · un seul accent bleu encre
   Display serif (Fraunces) + sans nette (Spline Sans)
   Beaucoup d'air, filets fins, pas de néon.
===================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300..700;1,9..144,400..600&family=Spline+Sans:wght@300;400;500;600&display=swap');

:root {
  /* Palette */
  --paper:      #f7f5f0;   /* fond principal, blanc cassé chaud */
  --paper-2:    #ffffff;   /* cartes / surfaces */
  --ink:        #16140f;   /* texte principal */
  --ink-soft:   #514c42;   /* texte secondaire */
  --ink-faint:  #8a8478;   /* texte tertiaire / légendes */
  --line:       #e3ded3;   /* filets, bordures */
  --line-strong:#cfc9bb;
  --accent:     #2f4a6b;   /* bleu encre, accent unique */
  --accent-soft:#eef1f5;   /* fond accent très clair */

  /* Typo */
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans:  'Spline Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Mesures */
  --maxw: 1180px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 4px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  font-weight: 400;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Grain papier très subtil */
body::before {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none; z-index: 9999; opacity: .025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* =========================================================
   LANGUES
========================================================= */
.lang-fr { display: inline; }
.lang-en { display: none; }
body[lang="en"] .lang-fr { display: none; }
body[lang="en"] .lang-en { display: inline; }

/* =========================================================
   NAVBAR
========================================================= */
.navbar {
  position: sticky; top: 0; z-index: 1000;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: blur(14px) saturate(120%);
  border-bottom: 1px solid var(--line);
}
.nav-container {
  max-width: var(--maxw); margin: 0 auto;
  padding: 18px var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
}
.nav-brand {
  font-family: var(--serif);
  font-weight: 600; font-size: 1.35rem; letter-spacing: .5px;
  color: var(--ink);
}
.nav-brand::after { content: '.'; color: var(--accent); }
.nav-links {
  list-style: none; display: flex; align-items: center;
  gap: clamp(14px, 2.4vw, 34px);
}
.nav-links a {
  font-size: .9rem; font-weight: 400; color: var(--ink-soft);
  position: relative; transition: color .25s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: -5px;
  width: 0; height: 1px; background: var(--accent);
  transition: width .3s var(--ease);
}
.nav-links a:hover::after { width: 100%; }

.lang-toggle {
  font-family: var(--sans); font-size: .78rem; font-weight: 500;
  letter-spacing: .5px; cursor: pointer;
  background: transparent; color: var(--ink-soft);
  border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 5px 13px; transition: all .25s var(--ease);
}
.lang-toggle:hover { border-color: var(--ink); color: var(--ink); }

.linkedin-btn {
  font-size: .85rem; font-weight: 500; color: var(--paper-2) !important;
  background: var(--ink); padding: 8px 16px; border-radius: 999px;
  transition: background .25s var(--ease);
}
.linkedin-btn:hover { background: var(--accent); }
.linkedin-btn::after { display: none; }

/* =========================================================
   FOOTER
========================================================= */
footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding: 40px var(--gutter);
  text-align: center;
  color: var(--ink-faint); font-size: .82rem;
  background: var(--paper);
}

/* =========================================================
   ÉLÉMENTS PARTAGÉS
========================================================= */
.eyebrow, .hero-badge, .projects-badge, .contact-badge {
  display: inline-block;
  font-family: var(--sans); font-size: .72rem; font-weight: 500;
  letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--accent);
}
.hero-badge span, .projects-badge span, .contact-badge span { letter-spacing: 2.5px; }

.section-title, .page-title {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.05;
}

/* =========================================================
   HERO (index)
========================================================= */
.hero-wrapper { position: relative; overflow: hidden; }
/* on neutralise les orbes néon de l'ancienne version */
.hero-background, .gradient-orb, .image-glow { display: none !important; }

.hero-main {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(60px, 12vh, 130px) var(--gutter) clamp(60px, 10vh, 110px);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}
.hero-content-section { order: 1; }
.hero-image-section { order: 2; }

.hero-badge { margin-bottom: 26px; }

.hero-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(3rem, 8vw, 6.5rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
}
.hero-title .title-line { display: block; }
.hero-title .gradient-text,
.gradient-text {
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
  -webkit-text-fill-color: var(--accent);
  background: none;
}

.hero-role {
  font-size: 1.15rem; font-weight: 500; color: var(--ink);
  margin-bottom: 10px;
}
.hero-tagline {
  font-size: 1rem; color: var(--ink-soft);
  max-width: 44ch; margin-bottom: 38px;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 56px; }
.cta-button {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: .92rem; font-weight: 500;
  padding: 13px 24px; border-radius: 999px;
  transition: all .28s var(--ease);
}
.cta-button.primary {
  background: var(--ink); color: var(--paper-2);
  border: 1px solid var(--ink);
}
.cta-button.primary:hover { background: var(--accent); border-color: var(--accent); }
.cta-button.primary svg { transition: transform .28s var(--ease); }
.cta-button.primary:hover svg { transform: translateX(4px); }
.cta-button.secondary {
  background: transparent; color: var(--ink);
  border: 1px solid var(--line-strong);
}
.cta-button.secondary:hover { border-color: var(--ink); }

.hero-stats {
  display: flex; gap: clamp(28px, 5vw, 56px);
  padding-top: 34px; border-top: 1px solid var(--line);
}
.stat-number {
  font-family: var(--serif); font-weight: 400;
  font-size: 2.4rem; line-height: 1; color: var(--ink);
}
.stat-label { font-size: .78rem; color: var(--ink-faint); margin-top: 6px; }

.image-wrapper {
  position: relative;
  max-width: 380px;
  margin-inline: auto;
}
.profile-image {
  width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: top center;
  border-radius: var(--radius);
  image-rendering: auto;
  background: #ffffff;
  border: 1px solid var(--line);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
  position: relative; z-index: 1;
}
.image-wrapper::after {
  content: ''; position: absolute; inset: 0;
  border: 1px solid var(--line); border-radius: var(--radius);
  pointer-events: none;
  transform: translate(14px, 14px); z-index: 0;
  background: var(--accent-soft);
}
.image-wrapper:hover .profile-image {
  transform: translate(-3px, -3px);
  box-shadow: 0 18px 40px -22px color-mix(in srgb, var(--ink) 45%, transparent);
}

/* =========================================================
   PAGE : titres génériques (projects / contact)
========================================================= */
.projects-page, .contact-page, .main-content {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(60px, 9vh, 100px) var(--gutter);
  width: 100%;
}
.projects-header, .contact-header { margin-bottom: clamp(48px, 8vw, 84px); }
.page-title { font-size: clamp(2.6rem, 6.5vw, 5rem); margin: 18px 0 22px; }
.page-subtitle {
  font-size: 1.08rem; color: var(--ink-soft);
  max-width: 56ch;
}

/* =========================================================
   ABOUT
========================================================= */
.main-content .section-title { font-size: clamp(2rem, 5vw, 3.2rem); }
.main-content > .section-title:first-child { margin-bottom: 40px; }
.main-content h2.section-title {
  font-size: 1.7rem; margin: 72px 0 28px;
  padding-bottom: 14px; border-bottom: 1px solid var(--line);
}
.about-container { max-width: 760px; }
.bio-section p { font-size: 1.05rem; color: var(--ink-soft); margin-bottom: 18px; }
.bio-section p strong { color: var(--ink); font-weight: 600; }

.skills-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px; background: var(--line);
  border: 1px solid var(--line);
}
.skill-item {
  background: var(--paper-2); padding: 26px 24px;
  transition: background .3s var(--ease);
}
.skill-item:hover { background: var(--accent-soft); }
.skill-item strong {
  display: block; font-family: var(--serif); font-weight: 500;
  font-size: 1.15rem; margin-bottom: 10px; color: var(--ink);
}
.skill-item span { font-size: .92rem; color: var(--ink-soft); }

.certifications-list { list-style: none; }
.certifications-list li {
  padding: 18px 0 18px 28px; position: relative;
  border-bottom: 1px solid var(--line); color: var(--ink-soft);
}
.certifications-list li::before {
  content: '—'; position: absolute; left: 0; color: var(--accent);
}
.certifications-list li strong { color: var(--ink); }

/* =========================================================
   PROJETS — grille éditoriale
========================================================= */
.projects-grid-modern {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(20px, 3vw, 36px) clamp(20px, 2.5vw, 32px);
}
.project-card-image {
  grid-column: span 6;
  background: transparent;
  cursor: pointer;
  display: flex; flex-direction: column;
}
/* rythme magazine : 1ère carte large, alternance */
.project-card-image:nth-child(1) { grid-column: span 7; }
.project-card-image:nth-child(2) { grid-column: span 5; }
.project-card-image:nth-child(3) { grid-column: span 5; }
.project-card-image:nth-child(4) { grid-column: span 7; }
.project-card-image:nth-child(5) { grid-column: span 6; }
.project-card-image:nth-child(6) { grid-column: span 6; }
.project-card-image:nth-child(7) { grid-column: span 12; }

/* carte pleine largeur (stage) : image à gauche, texte à droite */
.project-card-image:nth-child(7) {
  flex-direction: row; gap: clamp(24px, 4vw, 56px); align-items: stretch;
}
.project-card-image:nth-child(7) .project-image { flex: 0 0 46%; aspect-ratio: 16/9; }
.project-card-image:nth-child(7) .project-content { padding: 8px 0; justify-content: center; }
.project-card-image:nth-child(7) .project-title-modern { font-size: 1.9rem; }
@media (max-width: 860px) {
  .project-card-image:nth-child(7) { flex-direction: column; gap: 0; }
  .project-card-image:nth-child(7) .project-image { flex: none; aspect-ratio: 16/10; }
}

.project-image {
  position: relative; overflow: hidden; border-radius: var(--radius);
  aspect-ratio: 16/10; background: var(--line);
}
.project-image img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(60%);
  transition: transform .7s var(--ease), filter .5s var(--ease);
}
.project-card-image:hover .project-image img { transform: scale(1.04); filter: grayscale(0%); }
.project-overlay {
  position: absolute; top: 14px; left: 14px;
}
.project-category {
  font-size: .68rem; font-weight: 500; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--ink);
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: blur(6px);
  padding: 6px 12px; border-radius: 999px;
}

.project-content { padding: 20px 2px 0; flex: 1; display: flex; flex-direction: column; }
.project-title-modern {
  font-family: var(--serif); font-weight: 500;
  font-size: 1.5rem; line-height: 1.15; letter-spacing: -0.01em;
  margin-bottom: 10px; color: var(--ink);
}
.project-description {
  font-size: .98rem; color: var(--ink-soft); margin-bottom: 16px; flex: 1;
}
.project-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.tag {
  font-size: .74rem; color: var(--ink-soft);
  padding: 4px 11px; border: 1px solid var(--line-strong);
  border-radius: 999px;
}
.project-btn {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--sans); font-size: .86rem; font-weight: 500;
  color: var(--ink); background: transparent;
  border: none; padding: 0; cursor: pointer;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 3px; transition: gap .25s var(--ease), color .25s var(--ease);
}
.project-btn:hover { gap: 13px; color: var(--accent); border-color: var(--accent); }
.project-btn svg { transition: transform .25s var(--ease); }
.project-btn:hover svg { transform: translateX(3px); }

/* =========================================================
   MODALS — redessinés, clairs et propres
========================================================= */
.modal {
  position: fixed; inset: 0; z-index: 2000;
  display: none; align-items: flex-start; justify-content: center;
  padding: clamp(20px, 6vh, 80px) var(--gutter);
  overflow-y: auto;
}
.modal.active { display: flex; }
.modal-overlay {
  position: fixed; inset: 0;
  background: color-mix(in srgb, var(--ink) 38%, transparent);
  backdrop-filter: blur(6px);
  animation: fadeIn .35s var(--ease);
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal-container {
  position: relative; z-index: 1;
  width: 100%; max-width: 780px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 40px 120px -40px color-mix(in srgb, var(--ink) 40%, transparent);
  animation: modalUp .5s var(--ease);
}
@keyframes modalUp {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}
.modal-close {
  position: absolute; top: 18px; right: 18px; z-index: 3;
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  background: color-mix(in srgb, var(--paper) 85%, transparent);
  color: var(--ink); border: 1px solid var(--line);
  transition: all .25s var(--ease);
}
.modal-close:hover { background: var(--ink); color: var(--paper-2); border-color: var(--ink); transform: rotate(90deg); }

.modal-image {
  overflow: hidden; border-radius: 6px 6px 0 0;
  aspect-ratio: 16/8; background: var(--line);
}
.modal-image img { width: 100%; height: 100%; object-fit: cover; }

.modal-content { display: flex; flex-direction: column; }
.modal-header { padding: 38px clamp(28px, 5vw, 52px) 0; }
.modal-category {
  font-size: .7rem; font-weight: 500; letter-spacing: 2px;
  text-transform: uppercase; color: var(--accent);
}
.modal-title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.7rem, 4vw, 2.4rem); line-height: 1.1;
  letter-spacing: -0.02em; margin: 12px 0 16px; color: var(--ink);
}
.modal-subtitle { font-size: 1.05rem; color: var(--ink-soft); }

.modal-body { padding: 12px clamp(28px, 5vw, 52px) 44px; }
.modal-section { margin-top: 38px; }
.modal-section h3 {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--sans); font-weight: 600;
  font-size: .8rem; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--ink); margin-bottom: 16px;
  padding-bottom: 12px; border-bottom: 1px solid var(--line);
}
.modal-section h3 svg { color: var(--accent); width: 17px; height: 17px; }
.modal-section p { font-size: 1rem; color: var(--ink-soft); margin-bottom: 12px; }
.modal-section p strong { color: var(--ink); font-weight: 600; }

.modal-list { list-style: none; }
.modal-list li {
  position: relative; padding-left: 22px; margin-bottom: 11px;
  color: var(--ink-soft); font-size: .98rem;
}
.modal-list li strong { color: var(--ink); }
.modal-list li::before {
  content: ''; position: absolute; left: 2px; top: 11px;
  width: 6px; height: 1px; background: var(--accent);
}

.skills-grid-modal {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.skill-badge { background: var(--paper-2); padding: 18px 18px; }
.skill-badge strong {
  display: block; font-weight: 600; font-size: .92rem;
  color: var(--ink); margin-bottom: 5px;
}
.skill-badge span { font-size: .85rem; color: var(--ink-soft); line-height: 1.5; }

.modal-tags {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 38px; padding-top: 28px; border-top: 1px solid var(--line);
}

/* Bouton documentation PDF dans un modal */
.modal-doc {
  margin-top: 30px; padding: 22px 24px;
  background: var(--accent-soft); border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; flex-wrap: wrap;
}
.modal-doc .doc-label { display: flex; align-items: center; gap: 12px; }
.modal-doc .doc-label svg { color: var(--accent); flex-shrink: 0; }
.modal-doc .doc-label strong { display: block; color: var(--ink); font-weight: 600; font-size: .95rem; }
.modal-doc .doc-label span { font-size: .82rem; color: var(--ink-soft); }
.pdf-link {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  font-family: var(--sans); font-size: .9rem; font-weight: 500;
  color: var(--paper-2); background: var(--ink);
  padding: 11px 20px; border-radius: 999px;
  transition: background .25s var(--ease);
}
.pdf-link:hover { background: var(--accent); }
.pdf-link svg { width: 16px; height: 16px; }

/* Galerie d'images dans un modal (stage) */
.modal-gallery {
  display: grid; gap: 10px; margin-top: 8px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.modal-gallery figure {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: var(--paper);
}
.modal-gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.modal-gallery figcaption {
  font-size: .76rem; color: var(--ink-faint); padding: 8px 10px;
  border-top: 1px solid var(--line);
}
.img-placeholder {
  width: 100%; aspect-ratio: 4/3;
  display: grid; place-items: center; text-align: center;
  background: repeating-linear-gradient(45deg, var(--paper) 0 12px, var(--paper-2) 12px 24px);
  color: var(--ink-faint); font-size: .8rem; padding: 12px;
}

/* Encart « à compléter » */
.modal-note {
  margin-top: 30px; padding: 16px 20px;
  border: 1px dashed var(--line-strong); border-radius: var(--radius);
  color: var(--ink-soft); font-size: .9rem;
  background: color-mix(in srgb, var(--accent-soft) 50%, transparent);
}

body.modal-open { overflow: hidden; }

/* =========================================================
   CONTACT
========================================================= */
.contact-container-grid {
  display: grid; grid-template-columns: 1.3fr 0.9fr;
  gap: clamp(36px, 6vw, 72px); align-items: start;
}
.contact-info-card, .social-links-card, .response-card {
  background: var(--paper-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px;
}
.contact-sidebar { display: flex; flex-direction: column; gap: 20px; }
.info-items { display: flex; flex-direction: column; gap: 18px; margin-top: 14px; }
.info-item { display: flex; gap: 14px; align-items: flex-start; }
.info-icon { color: var(--accent); flex-shrink: 0; }
.info-label { font-size: .72rem; letter-spacing: 1px; text-transform: uppercase; color: var(--ink-faint); }
.info-value { color: var(--ink); font-weight: 500; }

.social-buttons { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.social-btn {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 18px; border-radius: var(--radius);
  border: 1px solid var(--line-strong); color: var(--ink);
  font-weight: 500; font-size: .92rem; transition: all .25s var(--ease);
}
.social-btn:hover { border-color: var(--ink); background: var(--accent-soft); }

.status-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: #3f9d57; display: inline-block; margin-right: 8px;
  box-shadow: 0 0 0 4px color-mix(in srgb, #3f9d57 20%, transparent);
}

.modern-form { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 7px; }
.form-field label { font-size: .82rem; font-weight: 500; color: var(--ink); }
.required { color: var(--accent); }
.form-field input, .form-field textarea {
  font-family: var(--sans); font-size: .96rem; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line-strong);
  border-radius: var(--radius); padding: 13px 15px;
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.form-field input:focus, .form-field textarea:focus {
  outline: none; border-color: var(--accent); background: var(--paper-2);
}
.form-field textarea { resize: vertical; min-height: 130px; }
.char-count { font-size: .76rem; color: var(--ink-faint); text-align: right; }

.submit-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--sans); font-size: .95rem; font-weight: 500;
  color: var(--paper-2); background: var(--ink);
  border: none; border-radius: 999px; padding: 15px 28px;
  cursor: pointer; transition: background .25s var(--ease);
}
.submit-btn:hover { background: var(--accent); }

/* =========================================================
   PAGE MERCI / SUCCESS
========================================================= */
.success-page {
  flex: 1; display: grid; place-items: center;
  padding: clamp(40px, 10vh, 120px) var(--gutter); position: relative;
}
.animated-bg, .floating-shape { display: none !important; }
.success-container {
  max-width: 540px; text-align: center;
  background: var(--paper-2); border: 1px solid var(--line);
  border-radius: 8px; padding: clamp(36px, 6vw, 60px);
}
.success-icon { margin: 0 auto 26px; width: 78px; height: 78px; }
.checkmark { width: 78px; height: 78px; }
.checkmark-circle { stroke: var(--accent); }
.checkmark-check { stroke: var(--accent); }
.success-title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.8rem, 5vw, 2.6rem); color: var(--ink); margin-bottom: 14px;
}
.success-message { color: var(--ink-soft); font-size: 1.05rem; margin-bottom: 32px; }
.success-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn-primary {
  background: var(--ink); color: var(--paper-2);
  padding: 13px 24px; border-radius: 999px; font-weight: 500; font-size: .92rem;
  transition: background .25s var(--ease);
}
.btn-primary:hover { background: var(--accent); }
.btn-secondary {
  border: 1px solid var(--line-strong); color: var(--ink);
  padding: 13px 24px; border-radius: 999px; font-weight: 500; font-size: .92rem;
  transition: border-color .25s var(--ease);
}
.btn-secondary:hover { border-color: var(--ink); }
.contact-info-grid, .info-card { color: var(--ink-soft); }

/* =========================================================
   ANIMATIONS D'ENTRÉE (douces)
========================================================= */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
.project-card-image, .skill-item, .bio-section, .hero-content-section, .hero-image-section {
  animation: rise .7s var(--ease) both;
}
.project-card-image:nth-child(2) { animation-delay: .06s; }
.project-card-image:nth-child(3) { animation-delay: .12s; }
.project-card-image:nth-child(4) { animation-delay: .18s; }
.project-card-image:nth-child(5) { animation-delay: .24s; }
.project-card-image:nth-child(6) { animation-delay: .30s; }
.hero-image-section { animation-delay: .1s; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-content-section { order: 2; }
  .hero-image-section { order: 1; max-width: 340px; }
  .contact-container-grid { grid-template-columns: 1fr; }
  .project-card-image,
  .project-card-image:nth-child(n) { grid-column: span 12 !important; }
}

@media (max-width: 720px) {
  .nav-container { position: relative; }
  .form-row { grid-template-columns: 1fr; }
  .hero-stats { flex-wrap: wrap; gap: 24px; }
}

@media (max-width: 520px) {
  .nav-brand { font-size: 1.2rem; }
  .modal { padding: 0; align-items: stretch; }
  .modal-container { max-width: 100%; min-height: 100%; border-radius: 0; }
  .modal-image { border-radius: 0; }
}
