/* Antoine GEORGE — feuille de style commune à toutes les pages */

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

:root {
  --dark:    #EDE8DF;
  --darker:  #E3DDD4;
  --accent:  #1F3D72;
  --accent2: #162D56;
  --text:    #122032;
  --muted:   #556070;
  --card:    #F5F1E8;
  --border:  #D0C9BC;
  --btn-text: #FFFFFF;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--dark);
  color: var(--text);
  line-height: 1.6;
}

/* ── NAVIGATION ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  height: 70px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo img {
  height: 72px;
  width: auto;
  display: block;
  mix-blend-mode: multiply;
}

.logo {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent);
  text-decoration: none;
}
.logo span { color: var(--muted); font-weight: 400; }

/* ── MENU BURGER ── */
.nav-menu-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
/* ── BOUTON ACCUEIL (à gauche du menu) ── */
.nav-home {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  padding: 0.45rem 1rem 0.45rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.nav-home:hover {
  border-color: var(--accent);
  background: rgba(31,61,114,0.06);
  color: var(--accent);
}
.nav-home svg { flex-shrink: 0; }
@media (max-width: 700px) {
  .nav-home { padding: 0.45rem 0.7rem; }
  .nav-home .nav-home-label { display: none; }
}
.nav-menu-btn {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  background: none;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  padding: 0.45rem 1rem 0.45rem 0.85rem;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  transition: border-color 0.2s, background 0.2s;
}
.nav-menu-btn:hover,
body.nav-open .nav-menu-btn {
  border-color: var(--accent);
  background: rgba(31,61,114,0.06);
  color: var(--accent);
}
.nav-menu-btn svg {
  flex-shrink: 0;
}
.nav-menu-btn .icon-bars { display: block; }
.nav-menu-btn .icon-close { display: none; }
body.nav-open .nav-menu-btn .icon-bars { display: none; }
body.nav-open .nav-menu-btn .icon-close { display: block; }
.nav-links { display: none; }

/* ── NAV PANEL (remplace la galerie hero) ── */
.gallery-wrap {
  transition: opacity 0.35s, transform 0.35s;
}
body.nav-open .gallery-wrap {
  opacity: 0;
  transform: translateX(18px);
  pointer-events: none;
}
.nav-panel {
  position: fixed;
  top: 70px;
  right: 2.5rem;
  z-index: 95;
  width: 380px;
  height: 460px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.13);
  display: flex;
  flex-direction: column;
  padding: 1rem 0 1rem;
  opacity: 0;
  transform: translateX(18px);
  pointer-events: none;
  transition: opacity 0.35s, transform 0.35s;
  z-index: 10;
}
body.nav-open .nav-panel {
  position: fixed;
  top: 70px;
  right: 2.5rem;
  width: 380px;
  height: 460px;
  z-index: 95;
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}
.nav-panel ul {
  list-style: none;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 0.5rem;
  gap: 0.1rem;
}
.nav-panel li a {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.58rem 1.5rem;
  color: var(--text);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}
.nav-panel li a::before {
  content: '';
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--accent);
  flex-shrink: 0;
  opacity: 0.4;
  transition: opacity 0.15s, width 0.15s;
}
.nav-panel li a:hover {
  background: rgba(31,61,114,0.06);
  color: var(--accent);
}
.nav-panel li a:hover::before {
  opacity: 1;
  width: 28px;
}
.nav-panel li.sep {
  border-top: 1px solid var(--border);
  margin: 0.5rem 1.5rem;
}
.nav-panel li a.nav-cta-panel {
  margin: 0.2rem 1rem 0;
  justify-content: center;
  background: var(--text);
  color: #fff;
  border-radius: 6px;
  font-size: 0.82rem;
}
.nav-panel li a.nav-cta-panel::before { display: none; }
.nav-panel li a.nav-cta-panel:hover { background: var(--accent); color: #fff; }
.nav-cta {
  background: var(--text);
  color: #fff !important;
  padding: 0.5rem 1.4rem;
  border-radius: 4px;
  font-weight: 700 !important;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--accent) !important; color: #fff !important; }

/* ── HERO ── */
#hero {
  min-height: unset;
  display: grid;
  grid-template-columns: clamp(300px, 26vw, 340px) minmax(0, 1fr) clamp(300px, 31vw, 420px);
  align-items: start;
  padding: 70px 2rem 0;
  overflow: hidden;
  position: relative;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 50%, rgba(31,61,114,0.05) 0%, transparent 70%),
    radial-gradient(ellipse 50% 80% at 10% 80%, rgba(31,61,114,0.03) 0%, transparent 60%);
}

.hero-text {
  position: relative;
  z-index: 2;
  padding: 4rem 4rem 4rem 5rem;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2rem;
}
.hero-label::before {
  content: '';
  display: block;
  width: 34px;
  height: 2px;
  background: var(--accent);
  flex-shrink: 0;
}

.hero-text h1:not(.hero-heading) {
  font-size: clamp(1.4rem, 2vw, 2rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 0.4rem;
  letter-spacing: -0.02em;
}

.gold { color: var(--accent) !important; }

.titre-insecable { white-space: nowrap; }
.titre-ligne { display: block; white-space: nowrap; }

.hero-heading {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  font-weight: 700;
  color: var(--text);
  margin: 0.5rem 0 0.5rem;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--muted);
  margin: 1.2rem 0 2.5rem;
  max-width: 480px;
  line-height: 1.7;
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
.stat-item strong {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}
.stat-item span {
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero-btns { display: flex; gap: 1rem; }

.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: var(--btn-text);
  padding: 0.85rem 2rem;
  border-radius: 4px;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.9rem;
  transition: background 0.2s, transform 0.15s;
}
.btn-primary:hover { background: var(--accent2); transform: translateY(-2px); }

.btn-outline {
  display: inline-block;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.85rem 2rem;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9rem;
  transition: border-color 0.2s, color 0.2s;
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

@keyframes btn-breathe {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(31,61,114,0); }
  50%       { transform: scale(1.03); box-shadow: 0 0 0 4px rgba(31,61,114,0.07); }
}
.btn-pulse {
  animation: btn-breathe 3.5s ease-in-out infinite;
}
.btn-pulse:hover { animation-play-state: paused; }

/* ── HERO PHOTO ── */
.hero-photo {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  height: 100%;
  padding: 1.5rem 1rem 3rem 1rem;
}

.photo-name-under {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  letter-spacing: 0.02em;
}

.photo-frame {
  position: relative;
  width: 240px;
  height: 310px;
}

.photo-frame::before {
  content: '';
  position: absolute;
  top: -16px; right: -16px;
  width: 100%; height: 100%;
  border: 2px solid var(--accent);
  border-radius: 8px;
  z-index: 0;
}

.photo-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  overflow: hidden;
}

.photo-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  filter: grayscale(15%) contrast(1.05);
  transition: transform 0.5s ease, filter 0.5s ease;
}
.photo-inner:hover img {
  transform: scale(1.03);
  filter: grayscale(0%) contrast(1.05);
}

.photo-badge {
  position: absolute;
  bottom: 1.2rem;
  left: 1.2rem;
  right: 1.2rem;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.8rem 1rem;
  z-index: 2;
}
.photo-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}
.photo-title {
  font-size: 0.75rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.2rem;
}

/* ── HERO GALLERY ── */
.hero-gallery {
  position: relative;
  z-index: 2;
  display: grid;
  align-items: start;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  padding: 1.5rem 1rem 1rem 1rem;
  height: 100%;
}

.gallery-wrap {
  grid-area: 1 / 1;
  position: relative;
  width: min(380px, 100%);
  height: 460px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,0.13);
  border: 1px solid var(--border);
}

.gallery-track {
  display: flex;
  height: 100%;
  transition: transform 0.5s cubic-bezier(0.4, 0.2, 0.2, 1);
}

.gallery-slide {
  min-width: 100%;
  width: 100%;
  height: 100%;
  background: var(--darker);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.18);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  opacity: 0;
  transition: opacity 0.25s, background 0.2s;
  backdrop-filter: blur(4px);
}
.gallery-wrap:hover .gallery-arrow { opacity: 1; }
.gallery-arrow:hover { background: rgba(255,255,255,0.45); }
.gallery-arrow.prev { left: 10px; }
.gallery-arrow.next { right: 10px; }
.gallery-arrow svg { width: 16px; height: 16px; stroke: rgba(0,0,0,0.55); stroke-width: 2.5; fill: none; stroke-linecap: round; stroke-linejoin: round; }

.gallery-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 3;
}
.gallery-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  transition: background 0.2s, transform 0.2s;
  cursor: pointer;
  border: none;
}
.gallery-dot.active { background: var(--accent); transform: scale(1.35); }

/* ── INTRO « Mon expérience » : texte + galerie ── */
.exp-intro-grid {
  display: grid;
  grid-template-columns: minmax(0,1fr) 380px;
  gap: 3.5rem;
  align-items: start;
}
.exp-gallery {
  display: grid;
  justify-content: center;
  position: sticky;
  top: 100px;
}
.exp-gallery .gallery-caption {
  margin: .85rem 0 0;
  font-size: .78rem;
  color: var(--muted);
  line-height: 1.5;
  text-align: center;
  min-height: 2.4em;
}
@media (max-width: 900px) {
  .exp-intro-grid { grid-template-columns: 1fr; gap: 2.2rem; }
  .exp-gallery { position: static; }
}

/* Lien encadré « Pourquoi payer un contrôle » : survol géré en CSS */
.lien-encadre:hover { background: var(--accent) !important; color: var(--darker) !important; }

/* ── SECTIONS COMMON ── */
section { padding: 6rem 5rem; }
section:nth-child(even) { background: var(--darker); }

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.8rem;
}

.section-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.section-desc {
  color: var(--muted);
  max-width: 600px;
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 3rem;
}

/* ── SERVICES ── */
/* ── INTRO « Mes services » : texte + galerie d'ouvrages ── */
.srv-intro-grid {
  display: grid;
  grid-template-columns: minmax(0,1fr) 380px;
  gap: 3.5rem;
  align-items: start;
  margin-bottom: 2.5rem;
}
.srv-gallery { display: grid; justify-content: center; }
.srv-gallery .gallery-caption {
  margin: .85rem 0 0;
  font-size: .78rem;
  color: var(--muted);
  line-height: 1.5;
  text-align: center;
  min-height: 2.4em;
}
@media (max-width: 1000px) {
  .srv-intro-grid { grid-template-columns: 1fr; gap: 2.2rem; }
}

#services .grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 1000px) {
  #services .grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  #services .grid { grid-template-columns: 1fr; }
}

.service-card {
  cursor: default;
  border-radius: 8px;
}

.card-inner {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  background: var(--card);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 1.8rem;
  gap: 0.75rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.service-card:hover .card-inner {
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(31,61,114,0.08);
}

/* Masquer le recto (on ne garde que le verso visible) */
.card-front { display: none; }

.card-back {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: none;
  border: none;
  padding: 0;
  text-align: left;
}
.card-back p { font-size: 0.85rem; color: var(--muted); line-height: 1.6; }
.card-back h3 { color: var(--text); }

.service-icon {
  width: 44px; height: 44px;
  background: rgba(31,61,114,0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  border: 1px solid rgba(31,61,114,0.2);
  flex-shrink: 0;
}
.service-icon svg { width: 22px; height: 22px; }

.card-front h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}

.card-back h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.2rem;
}

.card-hint {
  font-size: 0.7rem;
  color: rgba(31,61,114,0.5);
  margin-top: 0.4rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ── OUVRAGES ── */
/* La mise en ligne des puces n'était définie que sous #ouvrages, or le seul
   bloc .tags de la page est dans #services : les puces restaient donc en
   flux inline et se chevauchaient dès qu'une ligne débordait. */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.tag {
  display: inline-block;
  white-space: nowrap;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.5rem 1.1rem;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: border-color 0.2s, color 0.2s;
}
.tag:hover { border-color: var(--accent); color: var(--accent); }

/* ── CONFERENCES ── */
#conferences {
  background: var(--darker);
}

.conf-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.conf-list { list-style: none; }
.conf-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--border);
}
.conf-list li:last-child { border-bottom: none; }

.conf-icon {
  width: 40px; height: 40px;
  background: rgba(31,61,114,0.08);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.2rem;
}

.conf-list h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.2rem; }
.conf-list p { font-size: 0.8rem; color: var(--muted); }

.expertise-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem;
}

.expertise-box h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--accent);
}

.expertise-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
}
.expertise-item:last-child { border-bottom: none; }
.expertise-item span:last-child { color: var(--accent); font-weight: 700; }

/* ── ACTUALITÉS ── */
/* ── MON EXPÉRIENCE ── */
#actualites .exp-body { margin-bottom: 1.8rem; }
#actualites .exp-body p,
#actualites .exp-body-single { font-size: .93rem; color: var(--muted); line-height: 1.75; margin-bottom: .9rem; }

#actualites .exp-section { margin-top: 2.8rem; }
#actualites .exp-h3 {
  font-size: 1.15rem; font-weight: 700; color: var(--accent2);
  margin-bottom: .9rem; padding-bottom: .4rem;
  border-bottom: 2px solid var(--accent); display: inline-block;
}
#actualites .exp-intro { font-size: .93rem; color: var(--muted); line-height: 1.75; margin-bottom: .6rem; }

#actualites .exp-list {
  list-style: none; padding: 0;
  display: grid; grid-template-columns: 1fr; gap: .35rem;
  margin-bottom: 1rem;
}
#actualites .exp-list-2col { grid-template-columns: 1fr 1fr; }
#actualites .exp-list li {
  font-size: .88rem; color: var(--muted); line-height: 1.6;
  padding-left: 1.1rem; position: relative;
}
#actualites .exp-list li::before {
  content: '—'; position: absolute; left: 0;
  color: var(--accent); font-weight: 700;
}

#actualites .exp-credentials {
  margin-top: 2.5rem;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 10px; padding: 1.6rem 1.8rem;
  display: flex; flex-direction: column; gap: 1.2rem;
}
#actualites .exp-cred-item { display: flex; gap: 1rem; align-items: flex-start; }
#actualites .exp-cred-icon { font-size: 1.3rem; flex-shrink: 0; margin-top: .1rem; }
#actualites .exp-cred-title { font-size: .93rem; font-weight: 700; color: var(--accent2); margin-bottom: .4rem; }
#actualites .exp-cred-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: .2rem;
}
#actualites .exp-cred-list li { font-size: .83rem; color: var(--muted); padding-left: .9rem; position: relative; }
#actualites .exp-cred-list li::before { content: '·'; position: absolute; left: 0; color: var(--accent); }

#actualites .exp-engagements {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem; margin-top: 1rem;
}
#actualites .exp-engagement-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 8px; padding: 1.3rem 1.4rem;
  border-top: 3px solid var(--accent);
}
#actualites .exp-eng-title {
  font-size: .85rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--accent); margin-bottom: .5rem;
}
#actualites .exp-engagement-card p { font-size: .84rem; color: var(--muted); line-height: 1.6; }

#actualites .exp-cta-box {
  margin-top: 3rem;
  background: var(--accent2); border-radius: 10px;
  padding: 2rem 2.2rem; color: #fff;
}
#actualites .exp-cta-title {
  font-size: 1.05rem; font-weight: 700; margin-bottom: .7rem; color: #fff;
}
#actualites .exp-cta-box p { font-size: .9rem; color: rgba(255,255,255,.8); margin-bottom: 1.2rem; }
#actualites .exp-cta-btn {
  display: inline-block; background: #fff; color: var(--accent2);
  font-size: .85rem; font-weight: 700; padding: .6rem 1.4rem;
  border-radius: 6px; text-decoration: none; transition: opacity .2s;
}
#actualites .exp-cta-btn:hover { opacity: .88; }

/* ── CONTACT ── */
#contact { background: var(--darker); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-info { display: flex; flex-direction: column; gap: 1.5rem; }

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.contact-item-icon {
  width: 44px; height: 44px;
  background: rgba(31,61,114,0.08);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.contact-item h4 { font-size: 0.8rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.2rem; }
.contact-item p { font-size: 0.95rem; color: var(--text); font-weight: 500; }

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

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

.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label { font-size: 0.8rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }

.form-group input,
.form-group textarea,
.form-group select {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.75rem 1rem;
  color: var(--text);
  font-size: 0.9rem;
  font-family: inherit;
  transition: border-color 0.2s;
  outline: none;
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--accent); }
.form-group textarea { min-height: 130px; }
.form-group select option { background: var(--card); }

.form-submit {
  background: var(--accent);
  color: var(--btn-text);
  border: none;
  padding: 0.9rem 2rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  align-self: flex-start;
}
.form-submit:hover { background: var(--accent2); transform: translateY(-2px); }
.form-submit:disabled { opacity: 0.65; cursor: wait; transform: none; }

/* Champ anti-spam : masqué aux visiteurs, visible pour les robots */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Message de retour après envoi */
.form-status { margin: 0.9rem 0 0; font-size: 0.88rem; line-height: 1.5; min-height: 1em; }
.form-status.ok  { color: #2ea043; }
.form-status.err { color: #c0392b; }
.form-status a   { color: inherit; text-decoration: underline; }

/* Coordonnées cliquables */
.contact-link { color: inherit; text-decoration: none; border-bottom: 1px solid rgba(127,127,127,0.4); }
.contact-link:hover { color: var(--accent); border-bottom-color: currentColor; }

/* ── FOOTER ── */
footer {
  background: var(--darker);
  border-top: 1px solid var(--border);
  padding: 2rem 5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-logo { color: var(--text); font-weight: 700; font-size: 1rem; }
.footer-copy { color: var(--muted); font-size: 0.8rem; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 1.5rem; }
.footer-links a { color: var(--muted); font-size: 0.8rem; text-decoration: none; }
.footer-links a:hover { color: var(--accent); }

/* ── DIVIDER ── */
.gold-line {
  width: 60px; height: 3px;
  background: var(--accent);
  margin-bottom: 1.5rem;
  border-radius: 2px;
}

/* ── SPA NAVIGATION ── */
.content-section { display: none; }
.content-section.active { display: block; }

/* Zone de contenu fixe qui s'ouvre sous la nav */
#spa-overlay {
  display: none;
  position: fixed;
  top: 70px; left: 0; right: 0; bottom: 0;
  overflow-y: auto;
  z-index: 50;
  background: var(--dark);
}
body.section-open #spa-overlay { display: block; }
body.section-open { overflow: hidden; }
.nav-panel li.nav-active > a {
  color: var(--accent);
  background: rgba(31,61,114,0.08);
}
.nav-panel li.nav-active > a::before { opacity: 1; width: 28px; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  #hero { grid-template-columns: 1fr; text-align: center; }
  .hero-text { padding: 3rem 2rem; }
  .hero-stats { justify-content: center; }
  .hero-btns { justify-content: center; }
  .hero-photo { display: none; }
  .hero-gallery { display: none; }
  #hero { grid-template-columns: 1fr; }
  section { padding: 4rem 2rem; }
  .conf-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  nav { padding: 0 1.5rem; }
  .nav-links { display: none; }
  footer { flex-direction: column; text-align: center; padding: 2rem; }
  .form-row { grid-template-columns: 1fr; }
}

/* ── VCARD BLOCK ── */
.vcard-block {
  margin-top: 1.8rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.vcard-top {
  background: var(--text);
  padding: 1.2rem 1.4rem;
  position: relative;
  overflow: hidden;
}
.vcard-top::before {
  content: '';
  position: absolute;
  top: -25px; right: -25px;
  width: 90px; height: 90px;
  border-radius: 50%;
  background: rgba(31,61,114,0.15);
}
.vcard-top::after {
  content: '';
  position: absolute;
  bottom: -30px; left: -20px;
  width: 80px; height: 80px;
  border-radius: 50%;
  background: rgba(31,61,114,0.08);
}

.vcard-badge {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  border: 1px solid rgba(31,61,114,0.4);
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  display: inline-block;
  margin-bottom: 0.6rem;
  position: relative;
  z-index: 1;
}

.vcard-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
  position: relative;
  z-index: 1;
}

.vcard-title {
  font-size: 0.72rem;
  color: #9fb6dc;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.2rem;
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.vcard-org {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.45);
  margin-top: 0.15rem;
  position: relative;
  z-index: 1;
}

.vcard-bottom {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.2rem 1.4rem;
  background: var(--card);
}

.vcard-qr {
  width: 156px; height: 156px;
  flex-shrink: 0;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  padding: 4px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.vcard-qr-img { width: 100%; height: 100%; display: block; }

.vcard-actions { flex: 1; }

.vcard-hint {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.btn-vcard {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.6rem 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s, transform 0.15s;
  width: 100%;
}
.btn-vcard:hover { background: var(--accent2); transform: translateY(-1px); }
.btn-vcard svg { width: 14px; height: 14px; flex-shrink: 0; }

/* ── QC MENUISERIES ── */
#qc-menuiseries { background: var(--darker); }
#simulateur     { background: var(--dark); }
#cadre-mission  { background: var(--darker); }

.qc-figure { max-width: 560px; margin: 2rem auto 0; }
.qc-dimtext { font-family: 'IBM Plex Mono', monospace; font-size: 13px; fill: var(--muted); }
@keyframes qcpulse { 0%{opacity:.26;r:13} 70%{opacity:0;r:20} 100%{opacity:0;r:20} }
/* La pulsation n'anime que le repère actif, et de façon discrète.
   Auparavant les 7 repères pulsaient en permanence. */
.qc-pulse { transform-origin: center; opacity: 0; }
.qc-hot.active .qc-pulse { animation: qcpulse 3.4s ease-out infinite; }
.qc-hot { cursor: pointer; background: none; border: 0; padding: 0; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.qc-hot .qc-ring, .qc-hot .qc-htext { transition: fill 0.35s ease, stroke 0.35s ease; }
/* Pas de cadre orange du navigateur après une tape ; on garde en revanche
   un repère visible pour la navigation au clavier. */
.qc-hot:focus { outline: none; }
.qc-hot:focus-visible .qc-ring { stroke-width: 2.8; stroke-dasharray: 3 2; }
.qc-hot .qc-ring { fill: rgba(31,61,114,.1); stroke: var(--accent); stroke-width: 1.4; }
/* Seul le repère actif est foncé. Le survol n'est appliqué qu'aux appareils
   qui savent survoler : sur mobile, l'état :hover restait collé au repère
   touché, qui gardait donc sa couleur foncée pendant tout le défilement. */
.qc-hot.active .qc-ring  { fill: var(--accent); }
.qc-hot.active .qc-htext { fill: var(--darker); }
@media (hover: hover) and (pointer: fine) {
  .qc-hot:hover .qc-ring  { fill: var(--accent); }
  .qc-hot:hover .qc-htext { fill: var(--darker); }
}
.qc-readout { margin-top: 1.2rem; border: 1px solid var(--border); border-left: 2px solid var(--accent); background: var(--card); padding: 1rem 1.2rem; min-height: 88px; border-radius: 4px; }
.qc-readout .qc-code { font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: .14em; color: var(--accent); text-transform: uppercase; }
.qc-readout h4 { font-size: 1.05rem; color: var(--text); margin: .4rem 0 .3rem; }
.qc-readout p  { color: var(--muted); font-size: .85rem; margin: 0; line-height: 1.6; }

.qc-seq { display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid var(--border); margin-bottom: 3rem; }
.qc-seq-item { border-bottom: 1px solid var(--border); border-right: 1px solid var(--border); padding: 1.8rem 1.5rem 2rem; }
.qc-seq-item:last-child { border-right: 0; }
.qc-tag { font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.qc-seq-item h3 { font-size: 1.15rem; margin: .8rem 0 .6rem; font-weight: 700; }
.qc-seq-item p  { font-size: .88rem; color: var(--muted); margin-bottom: .9rem; line-height: 1.6; }
.qc-seq-item ul { margin: 0; padding-left: 1.1rem; font-size: .84rem; color: var(--muted); }
.qc-seq-item li { margin-bottom: 5px; }
.qc-who { font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: .06em; color: var(--muted); margin-top: 1rem; display: block; }

.qc-why { background: var(--card); border: 1px solid var(--border); border-radius: 8px; padding: 2.5rem; margin-top: 1.5rem; }
.qc-why-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: start; margin-top: 2rem; }
.qc-arg { border-left: 2px solid var(--border); padding: 2px 0 2px 1.2rem; margin-bottom: 1.6rem; }
.qc-arg h3 { font-size: .95rem; margin-bottom: .4rem; font-weight: 700; }
.qc-arg p  { font-size: .85rem; color: var(--muted); margin: 0; line-height: 1.6; }
.qc-compare { background: var(--darker); border: 1px solid var(--border); padding: 1.5rem; border-radius: 6px; }
.qc-compare h4 { font-size: .9rem; margin-bottom: 1.2rem; font-weight: 700; }
.qc-bar-row { margin-top: 1.2rem; }
.qc-bar-label { display: flex; justify-content: space-between; align-items: baseline; font-size: .78rem; gap: 12px; }
.qc-bar-label b { font-family: 'IBM Plex Mono', monospace; font-size: .84rem; font-weight: 600; white-space: nowrap; color: var(--accent); }
.qc-bar { height: 8px; background: var(--border); margin-top: 6px; position: relative; overflow: hidden; border-radius: 2px; }
.qc-bar i { position: absolute; left: 0; top: 0; bottom: 0; display: block; }
.qc-bar i.fill-a { background: var(--accent); width: 14%; }
.qc-bar i.fill-b { background: #7a8fa0; width: 100%; }
.qc-compare .qc-note { font-family: 'IBM Plex Mono', monospace; font-size: 10px; color: var(--muted); line-height: 1.5; margin-top: 1rem; }

.qc-sim-intro { max-width: 60ch; color: var(--muted); font-size: .95rem; line-height: 1.7; margin-bottom: 2rem; }
.qc-tabs { display: flex; border-bottom: 1px solid var(--border); margin-bottom: 0; }
.qc-tab { background: none; border: 0; border-bottom: 2px solid transparent; cursor: pointer; padding: 12px 20px; font-size: 1rem; font-weight: 600; color: var(--muted); transition: color .2s; }
.qc-tab:hover { color: var(--text); }
.qc-tab[aria-selected="true"] { color: var(--accent); border-bottom-color: var(--accent); }
.qc-sim-grid { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(0,1fr); gap: 2.5rem; margin-top: 2rem; align-items: start; }
.qc-fieldset { border: 0; margin: 0 0 2rem; padding: 0; width: 100%; }
.qc-fieldset legend { font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); padding: 0; margin-bottom: 1rem; display: block; width: 100%; }
.qc-stepper { display: flex; align-items: center; border: 1px solid var(--border); width: fit-content; border-radius: 4px; overflow: hidden; }
.qc-stepper button { width: 40px; height: 40px; background: var(--card); border: 0; cursor: pointer; color: var(--muted); font-size: 1.2rem; }
.qc-stepper button:hover { background: var(--border); color: var(--text); }
.qc-stepper input { width: 64px; height: 40px; text-align: center; background: var(--darker); border: 0; border-left: 1px solid var(--border); border-right: 1px solid var(--border); color: var(--text); font-family: 'IBM Plex Mono', monospace; font-size: 1rem; outline: none; }
.qc-field-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-bottom: .5rem; }
.qc-field-row label { font-size: .9rem; color: var(--muted); }
.qc-hint { font-size: .78rem; color: var(--muted); margin: .4rem 0 0; }
.qc-opt { display: flex; gap: 13px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--border); margin-bottom: 8px; cursor: pointer; border-radius: 4px; background: var(--card); transition: border-color .15s, background .15s; }
.qc-opt:hover { border-color: var(--accent); }
.qc-opt.checked { border-color: var(--accent); background: rgba(31,61,114,.05); }
.qc-opt.disabled { opacity: .42; cursor: not-allowed; }
.qc-opt input { margin: 3px 0 0; accent-color: var(--accent); width: 17px; height: 17px; flex: none; }
.qc-opt .txt { flex: 1; min-width: 0; }
.qc-opt .t { display: flex; justify-content: space-between; gap: 14px; align-items: baseline; }
.qc-opt .t b { font-size: .9rem; font-weight: 600; color: var(--text); }
.qc-opt .t span { font-family: 'IBM Plex Mono', monospace; font-size: .75rem; color: var(--accent); white-space: nowrap; }
.qc-opt small { display: block; color: var(--muted); font-size: .75rem; margin-top: 4px; line-height: 1.45; }
.qc-km { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.qc-km input[type=number] { width: 90px; height: 38px; background: var(--card); border: 1px solid var(--border); color: var(--text); font-family: 'IBM Plex Mono', monospace; padding: 0 10px; border-radius: 4px; outline: none; }
.qc-devis { position: sticky; top: 78px; background: var(--card); border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
.qc-devis-head { background: var(--darker); color: var(--text); padding: 14px 18px; display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid var(--border); }
.qc-devis-head b { font-size: .9rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--accent); }
.qc-devis-head span { font-family: 'IBM Plex Mono', monospace; font-size: 10px; color: var(--muted); }
.qc-devis-body { padding: 1.2rem; }
.qc-lines { list-style: none; margin: 0; padding: 0; font-size: .84rem; }
.qc-lines li { display: flex; justify-content: space-between; gap: 14px; padding: 7px 0; border-bottom: 1px dotted var(--border); align-items: baseline; }
.qc-lines li .d { flex: 1; min-width: 0; }
.qc-lines li .d em { display: block; font-style: normal; font-family: 'IBM Plex Mono', monospace; font-size: 10px; color: var(--muted); margin-top: 2px; }
.qc-lines li .v { font-family: 'IBM Plex Mono', monospace; font-size: .84rem; white-space: nowrap; font-weight: 500; }
.qc-lines li.discount .v { color: var(--accent); }
.qc-lines li.empty { color: var(--muted); border-bottom: 0; padding: 14px 0; font-style: italic; font-size: .82rem; }
.qc-totals { margin-top: 1rem; border-top: 2px solid var(--border); padding-top: 1rem; }
.qc-trow { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 6px; }
.qc-trow span { font-size: .82rem; color: var(--muted); }
.qc-trow b { font-family: 'IBM Plex Mono', monospace; font-weight: 500; font-size: .875rem; }
.qc-trow.big span { font-size: .9rem; font-weight: 700; text-transform: uppercase; color: var(--text); }
.qc-trow.big b { font-family: 'IBM Plex Mono', monospace; font-size: 1.8rem; font-weight: 600; color: var(--accent); }
.qc-mentions { font-family: 'IBM Plex Mono', monospace; font-size: 10px; color: var(--muted); line-height: 1.55; margin-top: 1rem; }
.qc-actions { display: flex; gap: 8px; margin-top: 1rem; flex-wrap: wrap; }
.qc-copied { font-family: 'IBM Plex Mono', monospace; font-size: 10px; color: var(--accent); margin-top: 8px; display: none; }
.qc-copied.show { display: block; }
.qc-cadre-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 0 2.5rem; margin-top: 2.5rem; }
.qc-cadre-grid div { border-top: 1px solid var(--border); padding: 1.2rem 0; }
.qc-cadre-grid h3 { font-size: .95rem; margin-bottom: .5rem; font-weight: 700; }
.qc-cadre-grid p  { font-size: .85rem; color: var(--muted); margin: 0; line-height: 1.6; }

@media (max-width: 900px) {
  .qc-seq { grid-template-columns: 1fr; }
  .qc-seq-item { border-right: 0; }
  .qc-why-grid { grid-template-columns: 1fr; }
  .qc-sim-grid { grid-template-columns: 1fr; }
  .qc-devis { position: static; }
  .qc-cadre-grid { grid-template-columns: 1fr; }
}

/* ── BANDEAU FLOTTANT ── */
#bandeau {
  position: sticky;
  top: 82px;
  z-index: 89;
  width: calc(100% - 5rem);
  max-width: 1080px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: stretch;
  background: linear-gradient(150deg, #1a2d40 0%, #122032 70%);
  border: 1px solid rgba(255,255,255,.1);
  border-top-color: rgba(255,255,255,.18);
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(200,168,75,.18),
    0 2px 6px  rgba(0,0,0,.45),
    0 10px 30px rgba(0,0,0,.55),
    0 30px 70px rgba(0,0,0,.4),
    0 60px 100px rgba(0,0,0,.25);
  transform: perspective(1400px) rotateX(1deg);
  transform-origin: top center;
  transition: opacity .35s, transform .2s;
}
#bandeau:hover {
  transform: perspective(1400px) rotateX(0deg) translateY(-2px);
  box-shadow:
    0 0 0 1px rgba(200,168,75,.25),
    0 4px 10px  rgba(0,0,0,.4),
    0 14px 40px rgba(0,0,0,.55),
    0 36px 80px rgba(0,0,0,.4),
    0 70px 110px rgba(0,0,0,.25);
}
#bandeau.hidden { display: none; }
.bnd-accent-bar {
  width: 4px;
  flex-shrink: 0;
  background: linear-gradient(to bottom, var(--accent), var(--accent2));
  border-radius: 14px 0 0 14px;
}
.bnd-body {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 2rem;
  padding: 0.2rem 1.5rem;
}
.bnd-content { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
.bnd-surtitre {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #8ab0e0;
  margin-bottom: .35rem;
  opacity: 1;
  transition: opacity .25s;
}
.bnd-titre {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #f0ece6;
  line-height: 1.3;
  margin-bottom: .5rem;
  opacity: 1;
  transition: opacity .25s;
}
.bnd-texte {
  font-size: .78rem;
  color: rgba(220,215,208,0.75);
  line-height: 1.65;
  opacity: 1;
  transition: opacity .25s;
}
.bnd-content.fading .bnd-surtitre,
.bnd-content.fading .bnd-titre,
.bnd-content.fading .bnd-texte { opacity: 0; }
.bnd-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .9rem;
  flex-shrink: 0;
}
.bnd-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  align-self: flex-end;
  padding: 0.45rem 1.1rem;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 5px;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.bnd-cta-btn:hover {
  background: rgba(255,255,255,0.20);
  border-color: rgba(255,255,255,0.5);
}
.bnd-cta-btn::after {
  content: '→';
  font-size: 0.9em;
  opacity: 0.7;
}
.bnd-cta-btn:empty { display: none; }

.bnd-close {
  background: none;
  border: none;
  color: rgba(200,210,220,0.5);
  cursor: pointer;
  padding: 4px;
  display: flex;
  line-height: 0;
  border-radius: 3px;
  align-self: flex-end;
}
.bnd-close:hover { color: #fff; }
.bnd-dots { display: flex; gap: 6px; align-items: center; }
.bnd-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  border: none;
  background: var(--border);
  cursor: pointer;
  padding: 0;
  transition: background .25s;
}
.bnd-dot.active { background: var(--accent); }
.bnd-cle {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(200,210,220,0.5);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 3px;
  padding: 2px 6px;
}
@media (max-width: 700px) {
  .bnd-body { grid-template-columns: 1fr; gap: 1rem; padding: 1.2rem 1.2rem; }
  .bnd-side { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* ══ PAGES LÉGALES ══ */
.legal { max-width: 760px; }
.legal h3 {
  font-size: 1.15rem; font-weight: 700; color: var(--accent2);
  margin: 2.4rem 0 .7rem; line-height: 1.35;
}
.legal h3:first-of-type { margin-top: 1.6rem; }
.legal p { color: var(--muted); font-size: .93rem; line-height: 1.75; margin-bottom: .9rem; }
.legal strong { color: var(--text); font-weight: 600; }
.legal a { color: var(--accent); }
.legal ul { margin: 0 0 1rem 1.1rem; color: var(--muted); font-size: .93rem; line-height: 1.75; }
.legal li { margin-bottom: .35rem; }
.legal dl {
  margin: 0 0 1.4rem; display: grid; grid-template-columns: 210px 1fr;
  gap: .45rem 1.2rem; font-size: .93rem;
}
.legal dt { color: var(--muted); }
.legal dd { margin: 0; color: var(--text); font-weight: 600; }
.a-completer {
  background: #FBEFD6; color: #7A5410; border: 1px dashed #C79A3C;
  padding: .12rem .5rem; border-radius: 3px; font-weight: 600;
  font-family: 'IBM Plex Mono', monospace; font-size: .82rem;
}
.encart-completer {
  border-left: 3px solid #C79A3C; background: #FBEFD6;
  padding: 1rem 1.2rem; margin: 1.4rem 0; border-radius: 0 4px 4px 0;
}
.encart-completer p { color: #6B4A0F; margin-bottom: .5rem; }
.encart-completer p:last-child { margin-bottom: 0; }
@media (max-width: 700px) {
  .legal dl { grid-template-columns: 1fr; gap: .1rem .6rem; }
  .legal dt { margin-top: .6rem; }
}

/* ══ CORRECTIF ORDINATEUR ══
   Dans « Partage du savoir », le bloc des volets est remonté de 6 cm pour
   s'aligner sur la liste des conférences. Le titre et le chapô, eux,
   occupaient toute la largeur de la section : sur un écran large ils
   passaient sous les volets, qui les recouvraient. On les borne à la
   colonne de gauche. */
/* Écrans intermédiaires (tablette paysage, petit portable) : trois colonnes ne tiennent
   pas. Le portrait et le texte restent côte à côte, la galerie passe dessous. */
@media (min-width: 901px) and (max-width: 1360px) {
  #hero { grid-template-columns: 300px minmax(0, 1fr); }
  .hero-text { padding: 3.5rem 2rem 2rem 2.5rem; }
  .hero-gallery { grid-column: 1 / -1; padding: 0 1rem 3rem; }
  .hero-gallery .gallery-wrap { width: min(680px, 100%); height: 400px; }
}
@media (min-width: 901px) {
  #conferences > .section-title,
  #conferences > .section-desc { max-width: calc(50% - 1.5rem); }
}

/* ══ TYPOGRAPHIE MOBILE ══
   Plusieurs titres étaient réglés en « vw » (proportionnels à la largeur de
   l'écran) : sur téléphone ils tombaient à 16 px, soit la taille du texte
   courant. On leur redonne une échelle lisible. */
@media (max-width: 900px) {
  /* Le titre d'accueil est coupé en deux par un <br>. On borne la taille à
     la largeur de l'écran pour que chaque moitié tienne sur une seule ligne,
     y compris sur les téléphones étroits. */
  /* 6.5vw : taille maximale permettant à « menuiseries extérieures » de tenir sur une seule ligne */
  .hero-heading   { font-size: min(2.2rem, 6.5vw) !important; line-height: 1.2; }
  /* Écrans très étroits : marge de sécurité supplémentaire */
  @media (max-width: 340px) { .hero-heading { font-size: 6vw !important; } }
  .hero-subtitle  { font-size: 1.04rem; line-height: 1.65; }

  .section-title  { font-size: 2.4rem !important; line-height: 1.16; }
  .section-label  { font-size: 0.82rem; }
  .section-desc   { font-size: 1.02rem; line-height: 1.7; }

  /* Ici les « titres » sont des phrases complètes : on les monte moins haut
     pour qu'elles ne prennent pas dix lignes. */
  #quarante-points .section-title { font-size: 1.62rem !important; line-height: 1.28; }

  #quarante-points h3,
  #services h3,
  #actualites h3            { font-size: 1.28rem !important; line-height: 1.35; }
  #conferences .expertise-box h3 { font-size: 1.2rem !important; line-height: 1.4; }
  #modal-25pts h2           { font-size: 1.45rem !important; line-height: 1.3; }
  .qc-readout h4            { font-size: 1.28rem; }
  .qc-tag                   { font-size: 11px; }

  /* Carte de visite : QR au-dessus, bouton sur toute la largeur */
  .vcard-bottom  { flex-direction: column; align-items: center; gap: 1.1rem; }
  .vcard-actions { width: 100%; text-align: center; }
  .vcard-hint    { font-size: 0.86rem; }
  .btn-vcard     { width: 100%; }
}

/* ══ CORRECTIF MOBILE ══
   La galerie hero était masquée sous 900px, or le menu de navigation
   (.nav-panel) est un enfant de .hero-gallery : le masquer rendait aussi
   le menu inutilisable. On réaffiche les deux en version empilée. */
@media (max-width: 900px) {
  #hero { grid-template-columns: minmax(0, 1fr); padding: 70px 0 0; }
  .hero-photo span[style*="nowrap"] { white-space: normal !important; }

  .hero-photo {
    display: flex;
    height: auto;
    padding: 2rem 1.5rem 0;
  }
  .photo-frame { width: 220px; height: 285px; }

  .hero-gallery {
    display: grid;
    height: auto;
    padding: 1.75rem 1.5rem 2.5rem;
  }
  .gallery-wrap {
    width: 100%;
    max-width: 420px;
    height: 68vw;
    max-height: 340px;
    margin: 0 auto;
  }
  .gallery-arrow { width: 34px; height: 34px; }

  /* Le panneau de menu passe en plein écran, sous la barre de navigation */
  .nav-panel { width: auto; height: auto; }

  /* Sommaire : libellés longs alignés à gauche, tiret calé sur la 1re ligne */
  .nav-panel ul {
    justify-content: flex-start;
    padding: 0.25rem 0.25rem;
    gap: 0.15rem;
  }
  .nav-panel li a {
    align-items: flex-start;
    text-align: left;
    gap: 0.7rem;
    padding: 0.62rem 1rem;
    font-size: 0.76rem;
    letter-spacing: 0.03em;
    line-height: 1.35;
    text-wrap: balance;
  }
  .nav-panel li a::before {
    width: 14px;
    margin-top: 0.5em;
  }
  .nav-panel li a.nav-cta-panel {
    justify-content: center;
    text-align: center;
    padding: 0.8rem 1rem;
    font-size: 0.8rem;
  }
  .nav-panel li.sep { margin: 0.4rem 1rem; }
  body.nav-open .nav-panel {
    top: 74px;
    left: 1rem;
    right: 1rem;
    width: auto;
    height: auto;
    max-height: calc(100vh - 96px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  /* La galerie ne doit pas rester visible derrière le menu ouvert */
  body.nav-open .gallery-wrap { opacity: 0; }

  /* ── Section « 25 points de contrôle » ──
     Marges de 5rem et grille 2 colonnes écrites en style inline :
     il faut !important pour les neutraliser sur mobile. */
  #quarante-points {
    padding: 2rem 1.25rem 3rem !important;
  }
  #quarante-points > div,
  #quarante-points div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  #quarante-points div[style*="padding-left:5rem"] {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .qc-figure {
    max-width: 100%;
    margin-top: 1rem;
  }
  .qc-figure > svg {
    width: 100%;
    height: auto;
    display: block;
  }
  /* Les trois boutons passent sous le schéma : pleine largeur, empilés */
  .qc-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem !important;
    margin-top: 0.5rem;
  }
  .qc-actions .btn-outline,
  .qc-actions .btn-primary { text-align: center; }

  /* Le déroulé en 3 colonnes passe en liste verticale */
  .qc-seq { grid-template-columns: 1fr !important; }
  .qc-seq-item { border-right: 0 !important; padding: 1.4rem 0 1.6rem; }

  /* ── Section « Partage du savoir » ──
     Le bloc des volets dépliants était calé avec margin-top:-6cm et
     margin-left:2.5cm (réglage à l'œil pour le grand écran). Une fois les
     colonnes empilées, il remontait par-dessus la liste des conférences. */
  #conferences .conf-grid > div[style*="margin-top:-6cm"] {
    margin-top: 2.5rem !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100%;
  }
  /* Titre puis bouton l'un sous l'autre : côte à côte, le titre est illisible */
  #conferences .expertise-box > div[style*="justify-content:space-between"] {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 0.9rem !important;
  }
  #conferences .expertise-box > div > h3 { flex: none !important; }
}
