/* ============================================================
   Yohan Fournier — Design system commun (portfolio multi-profils)
   Basé sur les portfolios "Direction SI" et "Audit Cybersécurité"
   ============================================================ */


/* ── RESET ── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }

/* ── TOKENS ── */
:root {
  --navy:    #1c2b3a;
  --navy2:   #243648;
  --teal:    #7eb8c4;
  --teal2:   #5aa0b0;
  --gold:    #c4a96b;
  --cream:   #faf9f6;
  --stone:   #f0ece3;
  --muted:   #6b5e45;
  --text:    #1a1a1a;
  --textlt:  #4a4a4a;
  --border:  #ddd4c4;
  --r: 6px;
}

/* ── BASE ── */
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

a { color: var(--teal2); text-decoration: none; }
a:hover { color: var(--gold); }

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

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(28,43,58,0.97);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 60px;
  border-bottom: 1px solid rgba(126,184,196,0.2);
}
.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  color: #fff;
  letter-spacing: 0.5px;
}
.nav-logo span { color: var(--teal); }
.nav-links { display: flex; gap: 22px; align-items: center; }
.nav-links a {
  font-size: 12.5px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  transition: color 0.2s;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--teal); }

/* Hamburger button (hidden on desktop) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 110;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--teal);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Bouton "Accueil" compact (icône maison) */
.nav-home {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(126,184,196,0.4);
  color: var(--teal) !important;
  flex-shrink: 0;
}
.nav-home:hover { background: rgba(126,184,196,0.15); }
.nav-home svg { display: block; }

/* Menu déroulant "Changer de profil" — regroupe les liens vers les autres profils */
.nav-switch { position: relative; }
.nav-switch-btn {
  background: transparent;
  border: 1px solid rgba(126,184,196,0.35);
  border-radius: 20px;
  padding: 5px 14px;
  font-family: 'DM Sans', sans-serif;
  font-size: 12.5px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.nav-switch-btn:hover { color: var(--teal); border-color: var(--teal); }
.nav-switch-btn .chev { font-size: 9px; transition: transform 0.2s; }
.nav-switch.open .nav-switch-btn .chev { transform: rotate(180deg); }
.nav-switch-menu {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 220px;
  background: var(--navy2);
  border: 1px solid rgba(126,184,196,0.25);
  border-radius: 8px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.35);
  padding: 8px;
  z-index: 120;
}
.nav-switch.open .nav-switch-menu { display: block; }
.nav-switch-menu a {
  display: block;
  padding: 9px 12px;
  font-size: 12.5px;
  letter-spacing: 0.3px;
  text-transform: none;
  color: rgba(255,255,255,0.85) !important;
  border-radius: 5px;
  white-space: normal;
}
.nav-switch-menu a:hover { background: rgba(126,184,196,0.14); color: var(--teal) !important; }
.nav-switch-menu .switch-label {
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  padding: 6px 12px 4px;
}

/* En mobile, le menu déroulant se comporte comme une simple liste dans le panneau nav */
@media (max-width: 900px) {
  .nav-switch-btn { display: none; }
  .nav-switch-menu {
    display: block;
    position: static;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
  }
  .nav-switch-menu a { padding: 8px 0; }
}

/* ── HERO ── */
.hero {
  min-height: 100vh;
  background: var(--navy);
  display: grid;
  grid-template-columns: 1fr 420px;
  align-items: center;
  padding: 80px 80px 60px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(126,184,196,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -80px; left: 200px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196,169,107,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero-text { position: relative; z-index: 1; }
.hero-eyebrow {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero-eyebrow::before { content:''; display:block; width:32px; height:1px; background:var(--teal); }
.hero-name {
  font-family: 'Playfair Display', serif;
  font-size: 72px;
  font-weight: 900;
  color: #111;
  line-height: 1;
  letter-spacing: -2px;
}
.hero-name span { color: var(--teal); }
.hero-role {
  font-size: 18px;
  color: rgba(0,0,0,0.72);
  margin-top: 16px;
  font-weight: 300;
  line-height: 1.5;
  max-width: 480px;
}
.hero-role strong { color: #111; font-weight: 500; }
.hero-cta {
  margin-top: 40px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.btn {
  display: inline-block;
  padding: 12px 28px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
  border-radius: var(--r);
  transition: all 0.2s;
  cursor: pointer;
}
.btn-primary {
  background: var(--teal);
  color: var(--navy);
  border: 2px solid var(--teal);
}
.btn-primary:hover { background: var(--teal2); border-color: var(--teal2); color: #fff; }
.btn-outline {
  background: transparent;
  color: var(--teal);
  border: 2px solid rgba(126,184,196,0.4);
}
.btn-outline:hover { border-color: var(--teal); background: rgba(126,184,196,0.08); }

/* Stats hero */
.hero-stats {
  position: relative; z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.stat-card {
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(126,184,196,0.3);
  border-radius: var(--r);
  padding: 20px 24px;
  transition: border-color 0.2s;
}
.stat-card:hover { border-color: rgba(126,184,196,0.6); }
.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 40px;
  font-weight: 700;
  color: var(--teal2);
  line-height: 1;
}
.stat-label { font-size: 13px; color: #333; margin-top: 4px; font-weight: 400; }

/* ── SECTIONS COMMUNES ── */
section { padding: 88px 80px; overflow-x: hidden; }
section:nth-child(even) { background: #e8e0d4; }

.section-eyebrow {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 40px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.15;
  margin-bottom: 48px;
}
.section-title span { color: var(--teal2); }

/* ── VALEUR AJOUTÉE ── */
.valeur-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.valeur-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 28px 24px;
  border-top: 3px solid var(--teal);
  transition: box-shadow 0.2s, transform 0.2s;
}
.valeur-card:hover { box-shadow: 0 8px 32px rgba(28,43,58,0.1); transform: translateY(-2px); }
.valeur-icon {
  font-size: 28px;
  margin-bottom: 14px;
}
.valeur-card h3 {
  font-size: 16px;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 10px;
}
.valeur-card p {
  font-size: 14px;
  color: var(--textlt);
  line-height: 1.6;
}

/* ── EXPÉRIENCES ── */
.timeline { position: relative; padding-left: 28px; }
.timeline::before {
  content:'';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--teal), var(--gold));
}
.tl-item {
  position: relative;
  margin-bottom: 48px;
  padding-left: 24px;
}
.tl-item::before {
  content:'';
  position: absolute;
  left: -34px; top: 6px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--teal);
  border: 2px solid var(--cream);
  box-shadow: 0 0 0 3px rgba(126,184,196,0.3);
}
.tl-date {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1px;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.tl-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.tl-role {
  font-size: 20px;
  font-weight: 500;
  color: var(--navy);
  line-height: 1.2;
}
.tl-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #e6f1fb;
  color: #185fa5;
  font-size: 11px;
  padding: 4px 12px;
  border-radius: 20px;
  white-space: nowrap;
  font-weight: 500;
}
.tl-org {
  font-size: 14px;
  color: var(--muted);
  font-style: italic;
  margin: 6px 0 14px;
}
.tl-bullets { list-style: none; }
.tl-bullets li {
  font-size: 14.5px;
  color: var(--textlt);
  padding: 4px 0 4px 16px;
  position: relative;
  line-height: 1.55;
}
.tl-bullets li::before { content:'▸'; position:absolute; left:0; color:var(--teal); font-size:11px; top:7px; }
.tl-bullets li strong { color: var(--navy); font-weight: 500; }

/* ── OPEN SOURCE / GITHUB ── */
.oss-card {
  background: var(--navy);
  border: 1px solid rgba(126,184,196,0.25);
  border-radius: var(--r);
  padding: 32px 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.oss-card:hover {
  border-color: rgba(126,184,196,0.55);
  box-shadow: 0 8px 40px rgba(0,0,0,0.25);
}
.oss-card::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(126,184,196,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.oss-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.oss-title-group { display: flex; align-items: center; gap: 14px; }
.oss-icon {
  width: 44px; height: 44px;
  background: rgba(126,184,196,0.12);
  border: 1px solid rgba(126,184,196,0.3);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.oss-title {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.3px;
}
.oss-subtitle { font-size: 13px; color: var(--teal); margin-top: 2px; }
.oss-badges { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.oss-badge {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 4px 12px;
  border-radius: 20px;
  text-transform: uppercase;
}
.oss-badge-agpl {
  background: rgba(196,169,107,0.15);
  color: var(--gold);
  border: 1px solid rgba(196,169,107,0.4);
}
.oss-badge-opensource {
  background: rgba(126,184,196,0.12);
  color: var(--teal);
  border: 1px solid rgba(126,184,196,0.3);
}
.oss-desc {
  font-size: 15px;
  color: rgba(255,255,255,0.78);
  line-height: 1.7;
}
.oss-desc strong { color: #fff; font-weight: 500; }
.oss-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.oss-meta-item {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(126,184,196,0.15);
  border-radius: 6px;
  padding: 12px 16px;
}
.oss-meta-label { font-size: 10px; letter-spacing: 1px; text-transform: uppercase; color: rgba(255,255,255,0.4); margin-bottom: 4px; }
.oss-meta-value { font-size: 13px; color: rgba(255,255,255,0.85); font-weight: 500; }
.oss-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 4px;
}
.oss-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.oss-tag {
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 4px;
  background: rgba(126,184,196,0.08);
  color: var(--teal);
  border: 1px solid rgba(126,184,196,0.2);
}
.oss-links { display: flex; gap: 10px; }
.oss-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 500;
  padding: 9px 20px;
  border-radius: var(--r);
  transition: all 0.2s;
  text-decoration: none;
}
.oss-link-primary {
  background: var(--teal);
  color: var(--navy);
}
.oss-link-primary:hover { background: var(--teal2); color: #fff; }
.oss-link-ghost {
  background: transparent;
  color: var(--teal);
  border: 1px solid rgba(126,184,196,0.35);
}
.oss-link-ghost:hover { background: rgba(126,184,196,0.08); border-color: var(--teal); }

/* ── RÉALISATIONS ── */
.real-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.real-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow 0.2s;
}
.real-card:hover { box-shadow: 0 6px 24px rgba(28,43,58,0.09); }
.real-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.real-title { font-size: 18px; font-weight: 500; color: var(--navy); }
.real-year {
  font-size: 11px;
  color: var(--muted);
  background: var(--stone);
  padding: 3px 10px;
  border-radius: 20px;
  white-space: nowrap;
}
.real-desc { font-size: 14px; color: var(--textlt); line-height: 1.6; }
.real-impact {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.impact-pill {
  display: inline-block;
  background: rgba(126,184,196,0.12);
  color: var(--teal2);
  font-size: 12px;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid rgba(126,184,196,0.3);
}

/* ── COMPÉTENCES ── */
.skills-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.skill-group h3 {
  font-size: 16px;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.skill-item { margin-bottom: 16px; }
.skill-top { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 6px; }
.skill-name { font-weight: 500; color: var(--navy); }
.skill-pct { color: var(--muted); }
.skill-bg { height: 4px; background: var(--border); border-radius: 4px; }
.skill-bar { height: 4px; background: linear-gradient(90deg, var(--teal), var(--gold)); border-radius: 4px; }

.tags-wrap { display: flex; flex-wrap: wrap; gap: 10px; }
.sk-tag {
  display: inline-block;
  background: var(--navy);
  color: var(--teal);
  font-size: 12px;
  padding: 6px 14px;
  border-radius: 4px;
}

/* ── RÉFÉRENTIELS ── */
.ref-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.ref-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.ref-name { font-size: 14.5px; font-weight: 500; color: var(--navy); }
.ref-status {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 3px 10px;
  border-radius: 20px;
  white-space: nowrap;
  text-transform: uppercase;
}
.ref-ok { background: rgba(126,184,196,0.15); color: var(--teal2); border: 1px solid rgba(126,184,196,0.35); }
.ref-acq { background: rgba(196,169,107,0.15); color: var(--gold); border: 1px solid rgba(196,169,107,0.4); }

/* ── RECOMMANDATION ── */
.reco-wrap {
  background: var(--navy);
  border-radius: 12px;
  padding: 48px 56px;
  position: relative;
  overflow: hidden;
}
.reco-wrap::before {
  content: '"';
  font-family: 'Playfair Display', serif;
  font-size: 200px;
  color: rgba(126,184,196,0.07);
  position: absolute;
  top: -30px; left: 32px;
  line-height: 1;
  pointer-events: none;
}
.reco-text {
  font-size: 18px;
  color: rgba(255,255,255,0.92);
  line-height: 1.7;
  font-style: italic;
  font-weight: 300;
  position: relative;
  z-index: 1;
  max-width: 700px;
}
.reco-author {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
}
.reco-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  flex-shrink: 0;
}
.reco-name { font-size: 16px; font-weight: 500; color: #fff; }
.reco-role { font-size: 13px; color: rgba(255,255,255,0.72); margin-top: 2px; }
.reco-org {
  margin-left: auto;
  background: rgba(126,184,196,0.1);
  border: 1px solid rgba(126,184,196,0.2);
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 12px;
  color: var(--teal);
  text-align: center;
}

/* ── FORMATIONS ── */
.form-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.form-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 20px;
}
.form-year {
  font-size: 11px;
  font-weight: 500;
  color: var(--teal2);
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.form-title { font-size: 15px; font-weight: 500; color: var(--navy); line-height: 1.3; }
.form-sub { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* ── CONTACT ── */
.contact-wrap {
  background: var(--stone);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.contact-title {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 20px;
}
.contact-title span { color: var(--teal2); }
.contact-text { font-size: 15px; color: var(--textlt); line-height: 1.7; font-weight: 300; }
.contact-items { display: flex; flex-direction: column; gap: 20px; }
.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 16px 20px;
}
.contact-icon { font-size: 22px; }
.contact-label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.contact-value { font-size: 15px; color: var(--navy); margin-top: 2px; }
.contact-value a { color: var(--teal2); }

/* ── FOOTER ── */
footer {
  background: #111d26;
  text-align: center;
  padding: 24px;
  font-size: 12px;
  color: rgba(255,255,255,0.45);
}
.visit-counter { margin-top: 10px; opacity: 0.85; }
.visit-counter img { display: inline-block; vertical-align: middle; }

/* ── RESPONSIVE ── */
/* Nav compacte dès 1180px : les pages profil ont plus de liens que le hub,
   on bascule sur le menu hamburger plus tôt pour ne jamais déborder. */
@media (max-width: 1260px) {
  nav { padding: 0 20px; }

  .nav-toggle { display: flex; }

  .nav-links {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: rgba(28,43,58,0.99);
    backdrop-filter: blur(8px);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    border-bottom: 1px solid rgba(126,184,196,0.2);
  }
  .nav-links.open { max-height: 640px; overflow-y: auto; }
  .nav-links a {
    width: 100%;
    padding: 14px 24px;
    border-bottom: 1px solid rgba(126,184,196,0.08);
  }
  .nav-home { margin: 10px 24px; }
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding: 100px 24px 60px; }
  .hero-stats { flex-direction: row; flex-wrap: wrap; }
  .stat-card { flex: 1 1 calc(50% - 10px); }
  .hero-name { font-size: 44px; letter-spacing: -1px; }
  .hero-role { font-size: 16px; }
  section { padding: 56px 24px; }
  .section-title { font-size: 28px; margin-bottom: 32px; }

  .valeur-grid, .real-grid, .form-grid, .ref-grid { grid-template-columns: 1fr; }
  .skills-wrap { grid-template-columns: 1fr; gap: 32px; }

  .reco-wrap { padding: 28px 22px; }
  .reco-text { font-size: 16px; }
  .reco-org { margin-left: 0; }

  .contact-wrap { grid-template-columns: 1fr; gap: 32px; }
  .contact-title { font-size: 28px; }

  /* Stack any inline two-column grids used inside cards (audits, engagement, écosystème) */
  section div[style*="grid-template-columns: 1fr 1fr"],
  section div[style*="grid-template-columns: repeat(2, 1fr)"],
  section div[style*="grid-template-columns: repeat(3, 1fr)"] {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 480px) {
  .hero-name { font-size: 36px; }
  .stat-card { flex: 1 1 100%; }
  .oss-card { padding: 24px 20px; }
  .oss-header { flex-direction: column; align-items: flex-start; }
  .real-card-top { flex-direction: column; align-items: flex-start; gap: 6px; }
  .tl-header { flex-direction: column; align-items: flex-start; gap: 8px; }
  .ref-card { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* ── HUB / SÉLECTEUR DE PROFIL (page d'accueil) ── */
.hub-hero {
  min-height: 100vh;
  background: var(--navy);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
}
.hub-eyebrow {
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 18px;
}
.hub-name {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: 64px;
  line-height: 1.05;
  color: #fff;
  margin-bottom: 20px;
}
.hub-name span { color: var(--teal); font-style: italic; font-weight: 600; }
.hub-tagline {
  max-width: 640px;
  color: rgba(255,255,255,0.75);
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 48px;
}
.hub-stats { display: flex; gap: 48px; flex-wrap: wrap; justify-content: center; margin-bottom: 8px; }
.hub-stat-num { font-family: 'Playfair Display', serif; font-size: 32px; font-weight: 700; color: var(--gold); }
.hub-stat-label { font-size: 12px; color: rgba(255,255,255,0.6); max-width: 160px; margin-top: 4px; }

.hub-picker { background: var(--cream); padding: 90px 48px 110px; }
.hub-picker-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.hub-picker-eyebrow { font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--teal2); margin-bottom: 12px; }
.hub-picker-title { font-family: 'Playfair Display', serif; font-size: 34px; color: var(--navy); }

.profile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1180px;
  margin: 0 auto;
}
.profile-grid-2 {
  grid-template-columns: repeat(2, 1fr);
  max-width: 840px;
}
.profile-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 40px 32px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-decoration: none;
  color: var(--text);
  transition: box-shadow 0.25s, transform 0.25s, border-color 0.25s;
}
.profile-card:hover {
  box-shadow: 0 16px 40px rgba(28,43,58,0.12);
  transform: translateY(-4px);
  border-color: var(--teal);
}
.profile-icon { font-size: 30px; }
.profile-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 21px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
}
.profile-card-sub { font-size: 12.5px; letter-spacing: 0.5px; text-transform: uppercase; color: var(--teal2); font-weight: 600; }
.profile-card-desc { font-size: 14.5px; color: var(--textlt); line-height: 1.6; flex-grow: 1; }
.profile-card-cta { font-size: 13px; font-weight: 600; color: var(--gold); display: flex; align-items: center; gap: 6px; }
.profile-card:hover .profile-card-cta { color: var(--teal2); }

.hub-common {
  padding: 80px 48px;
  max-width: 900px;
  margin: 0 auto;
}
.hub-common-title { font-family: 'Playfair Display', serif; font-size: 28px; color: var(--navy); margin-bottom: 24px; text-align: center; }
.hub-common-text { font-size: 15.5px; color: var(--textlt); line-height: 1.8; text-align: center; }

/* Sous-nav "retour accueil" utilisée dans les pages profil */
.subnav-back {
  font-size: 12.5px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--teal) !important;
  border: 1px solid rgba(126,184,196,0.4);
  border-radius: 20px;
  padding: 5px 14px !important;
}
.subnav-back:hover { background: rgba(126,184,196,0.12); }

@media (max-width: 900px) {
  .profile-grid { grid-template-columns: 1fr; }
  .hub-name { font-size: 42px; }
  .hub-stats { gap: 28px; }
}
