/* =====================================================================
   ATMOX — Single page · Feuille de style unique
   Charte : bleu marine #002C49 · crème #f4efe6 · accent doré #c9a961
   ===================================================================== */


/* =========================================================
   1. VARIABLES & RESET
   ========================================================= */

:root {
  --navy: #002C49;
  --navy-deep: #001a2d;
  --navy-soft: #18446b;
  --paper: #f4efe6;
  --paper-warm: #ebe3d2;
  --cream: #faf6ee;
  --ink: #002C49;
  --ink-soft: #2d4763;
  --muted: #7a8598;
  --accent: #c9a961;
  --accent-deep: #a88843;
  --line: rgba(0, 44, 73, 0.18);
  --line-soft: rgba(0, 44, 73, 0.08);
  --shadow-sm: 0 4px 12px rgba(0, 44, 73, 0.06);
  --shadow-md: 0 12px 32px rgba(0, 44, 73, 0.10);
  --shadow-lg: 0 24px 48px rgba(0, 44, 73, 0.14);
  --header-h: 92px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

/* Sections cibles d'ancre : offset du header */
section[id] { scroll-margin-top: var(--header-h); }


/* =========================================================
   2. UTILITAIRES & TYPOGRAPHIE
   ========================================================= */

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
  z-index: 1;
}

.mono {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Libre Caslon Text', Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--navy);
  line-height: 1.1;
}

h1 { font-size: clamp(2.25rem, 5.5vw, 5rem); line-height: 1.04; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.85rem, 3.8vw, 3.2rem); }
h3 { font-size: 1.5rem; font-weight: 500; }
h4 { font-size: 1.2rem; font-weight: 500; }

h1 em, h2 em, h3 em {
  font-style: normal;
  position: relative;
  font-weight: 400;
  z-index: 0;
}
h1 em::after, h2 em::after, h3 em::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.05em;
  height: 0.3em;
  background: var(--accent);
  opacity: 0.35;
  z-index: -1;
}

p {
  color: var(--ink-soft);
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
  word-break: normal;
  overflow-wrap: break-word;
}

/* Exceptions : certains paragraphes ne doivent pas être justifiés */
.hero-meta,
.footer-brand p,
.stat-label,
.contact-item span,
.contact-item p,
.page-intro,
.form-feedback,
.ref-placeholder-label,
.clients-header p,
.clients-header span {
  text-align: left;
  hyphens: manual;
}

/* Sur les écrans mobiles, on revient en alignement à gauche pour éviter les trous de texte */
@media (max-width: 720px) {
  p {
    text-align: left;
    hyphens: manual;
  }
}

.section-label {
  color: var(--accent);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 14px;
}


/* =========================================================
   3. BACKGROUND GRID
   ========================================================= */

.grid-bg {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(0, 44, 73, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 44, 73, 0.035) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
  z-index: 0;
}


/* =========================================================
   4. HEADER
   ========================================================= */

header {
  position: sticky;
  top: 0;
  background: rgba(244, 239, 230, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 40px;
  max-width: 1400px;
  margin: 0 auto;
}

.logo-img {
  height: 56px;
  width: auto;
  display: block;
  transition: transform 0.3s ease;
}
.logo-img:hover { transform: scale(1.03); }

nav ul {
  display: flex;
  gap: 36px;
  list-style: none;
}
nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
  padding: 4px 0;
}
nav a:hover, nav a.active { color: var(--accent); }
nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s;
}
nav a:hover::after, nav a.active::after { width: 100%; }

.btn-contact {
  background: var(--navy);
  color: var(--cream);
  padding: 12px 22px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: background 0.2s;
  white-space: nowrap;
}
.btn-contact:hover { background: var(--navy-deep); }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  width: 44px;
  height: 44px;
  cursor: pointer;
  position: relative;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--navy);
  margin: 4px auto;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }


/* =========================================================
   5. BUTTONS
   ========================================================= */

.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 28px;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: all 0.3s;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
}
.btn-primary {
  background: var(--navy);
  color: var(--cream);
}
.btn-primary:hover {
  background: var(--accent);
  color: var(--navy-deep);
  gap: 20px;
}
.btn-primary::after {
  content: '→';
  font-family: 'Libre Caslon Text', Georgia, serif;
  font-size: 1.15rem;
}
.btn-secondary {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}
.btn-secondary:hover {
  background: var(--navy);
  color: var(--cream);
}


/* =========================================================
   6. SECTION HEADER
   ========================================================= */

.section-header {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  margin-bottom: 60px;
  align-items: end;
}
.section-header .section-label { margin-bottom: 0; }


/* =========================================================
   7. HERO
   ========================================================= */

.hero {
  padding: 90px 0 110px;
  position: relative;
}
.hero-label {
  margin-bottom: 32px;
  color: var(--accent);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 14px;
}
.hero-label::before {
  content: '';
  width: 42px;
  height: 1px;
  background: var(--accent);
}
h1.hero-title {
  max-width: 1100px;
  margin-bottom: 48px;
}
.hero-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: end;
  margin-top: 80px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
.hero-description {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 480px;
}
.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 20px;
}
.hero-meta {
  font-size: 0.78rem;
  color: var(--muted);
  text-align: right;
}


/* =========================================================
   8. STATS
   ========================================================= */

.stats {
  background: var(--navy);
  color: var(--cream);
  padding: 70px 0;
  position: relative;
}
.stats::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to right, rgba(250, 246, 238, 0.03) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
.stat {
  padding: 0 40px;
  border-right: 1px solid rgba(250, 246, 238, 0.15);
}
.stat:first-child { padding-left: 0; }
.stat:last-child { border-right: none; padding-right: 0; }
.stat-number {
  font-family: 'Libre Caslon Text', Georgia, serif;
  font-size: 3.3rem;
  font-weight: 400;
  line-height: 1;
  color: var(--cream);
  margin-bottom: 14px;
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.stat-number sup {
  font-size: 1.2rem;
  color: var(--accent);
  font-weight: 500;
}
.stat-label {
  color: rgba(250, 246, 238, 0.65);
  font-size: 0.88rem;
  line-height: 1.5;
}


/* =========================================================
   9. SERVICES (sous forme d'accordéon)
   ========================================================= */

.services-section { padding: 120px 0; }

.services-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
  margin-top: 40px;
}
.service-item {
  border-bottom: 1px solid var(--line);
}
.service-header {
  display: grid;
  grid-template-columns: 80px 1fr 60px;
  gap: 40px;
  padding: 32px 0;
  align-items: center;
  cursor: pointer;
  transition: padding 0.3s, background 0.3s;
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}
.service-header:hover {
  background: var(--paper-warm);
  padding-left: 24px;
  padding-right: 24px;
}
.service-header:hover .service-toggle,
.service-item.open .service-toggle {
  color: var(--accent);
}
.service-item.open .service-header {
  background: var(--paper-warm);
  padding-left: 24px;
  padding-right: 24px;
}
.service-number { color: var(--muted); }
.service-title {
  font-family: 'Libre Caslon Text', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--navy);
  line-height: 1.2;
}
.service-toggle {
  font-family: 'Libre Caslon Text', Georgia, serif;
  font-size: 1.8rem;
  color: var(--muted);
  text-align: right;
  transition: all 0.3s;
}
.service-item.open .service-toggle {
  transform: rotate(45deg);
}

.service-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.service-item.open .service-body {
  max-height: 1500px;
}
.service-content {
  padding: 16px 24px 40px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 60px;
  background: var(--paper-warm);
}
.service-content-main p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--ink-soft);
  margin-bottom: 16px;
}
.service-content-main p:last-child { margin-bottom: 0; }
.service-content-main strong { color: var(--navy); font-weight: 500; }
.service-content-sidebar {
  background: var(--cream);
  padding: 24px;
  border: 1px solid var(--line);
}
.service-content-sidebar h4 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  font-weight: 500;
}
.service-content-sidebar ul {
  list-style: none;
  padding: 0;
}
.service-content-sidebar li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.88rem;
  color: var(--ink-soft);
  display: flex;
  gap: 10px;
  align-items: baseline;
}
.service-content-sidebar li:last-child { border-bottom: none; }
.service-content-sidebar li::before {
  content: '→';
  color: var(--accent);
  font-family: 'Libre Caslon Text', Georgia, serif;
  font-weight: 500;
  flex-shrink: 0;
}


/* =========================================================
   10. VISION (Le mot du fondateur)
   ========================================================= */

.vision {
  padding: 120px 0;
  background: var(--paper-warm);
  position: relative;
  overflow: hidden;
}
.vision::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 45%;
  height: 100%;
  background: radial-gradient(circle at 70% 30%, rgba(201, 169, 97, 0.08), transparent 60%);
  pointer-events: none;
}
.vision-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  align-items: start;
  position: relative;
  z-index: 1;
}
.vision-visual {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: calc(var(--header-h) + 40px);
}
.vision-portrait {
  aspect-ratio: 3/4;
  background: var(--navy);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.vision-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  position: relative;
  z-index: 2;
}
.vision-portrait::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(250, 246, 238, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(250, 246, 238, 0.05) 1px, transparent 1px);
  background-size: 32px 32px;
  z-index: 1;
}
.vision-portrait:has(img)::before {
  display: none;
}
.vision-initials {
  position: relative;
  font-family: 'Libre Caslon Text', Georgia, serif;
  font-size: 7rem;
  font-weight: 400;
  color: var(--accent);
  line-height: 1;
  z-index: 1;
  letter-spacing: 0.02em;
}
.vision-signature {
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.vision-name {
  font-family: 'Libre Caslon Text', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 4px;
}
.vision-role {
  color: var(--accent);
  font-weight: 500;
}
.vision-content .section-label {
  margin-bottom: 32px;
}
.vision-content h2 {
  margin-bottom: 48px;
  max-width: 760px;
}
.vision-quote {
  border-left: 3px solid var(--accent);
  padding-left: 32px;
  margin-bottom: 40px;
}
.vision-quote p {
  font-family: 'Libre Caslon Text', Georgia, serif;
  font-size: clamp(1.1rem, 1.7vw, 1.35rem);
  line-height: 1.55;
  color: var(--navy);
  font-weight: 400;
  margin-bottom: 20px;
}
.vision-quote p:last-child { margin-bottom: 0; }
.vision-quote em {
  font-style: normal;
  font-weight: 500;
  color: var(--accent-deep);
}
.vision-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
.vision-pillar h4 {
  font-family: 'Libre Caslon Text', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 10px;
}
.vision-pillar p {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--ink-soft);
}
.vision-pillar-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 16px;
  font-weight: 500;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(0, 44, 73, 0.15);
  display: inline-block;
  min-width: 40px;
}


/* =========================================================
   11. RÉFÉRENCES
   ========================================================= */

.references-section { padding: 120px 0; }

.refs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 40px;
}
.ref-card {
  background: var(--cream);
  border: 1px solid var(--line);
  transition: all 0.4s;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.ref-card:hover {
  border-color: var(--navy);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.ref-card:hover .ref-visual img { transform: scale(1.06); }
.ref-visual {
  height: 240px;
  background: var(--navy);
  position: relative;
  overflow: hidden;
}
.ref-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease-out;
  display: block;
}
.ref-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 44, 73, 0.35) 0%, transparent 45%);
  pointer-events: none;
  z-index: 1;
}
.ref-visual-placeholder {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ref-visual-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(250, 246, 238, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(250, 246, 238, 0.05) 1px, transparent 1px);
  background-size: 32px 32px;
}
.ref-placeholder-label {
  position: relative;
  color: rgba(250, 246, 238, 0.55);
  font-weight: 500;
  z-index: 2;
  padding: 0 24px;
  text-align: center;
}
.ref-status {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 6px 12px;
  background: rgba(0, 44, 73, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(250, 246, 238, 0.2);
  color: var(--cream);
  z-index: 2;
  font-weight: 500;
}
.ref-status.livree {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--navy-deep);
}
.ref-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 12px;
}
.ref-tag-cat { color: var(--accent); font-weight: 500; }
.ref-body h3 {
  font-family: 'Libre Caslon Text', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--navy);
  line-height: 1.2;
}
.ref-location {
  color: var(--ink-soft);
  font-size: 0.88rem;
  font-weight: 500;
}
.ref-meta-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
  font-size: 0.8rem;
  color: var(--muted);
}
.ref-meta-list li { display: flex; gap: 8px; }
.ref-meta-list li strong {
  color: var(--ink-soft);
  font-weight: 500;
  min-width: 60px;
}


/* =========================================================
   12. CLIENTS
   ========================================================= */

.clients-section {
  padding: 90px 0;
  background: var(--cream);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.clients-header {
  text-align: center;
  margin-bottom: 50px;
}
.clients-header .mono {
  color: var(--accent);
  margin-bottom: 16px;
  display: block;
  font-weight: 500;
}
.clients-header h3 {
  font-family: 'Libre Caslon Text', Georgia, serif;
  font-size: 1.8rem;
  font-weight: 500;
  color: var(--navy);
}
.clients-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  align-items: center;
}
.client-name {
  text-align: center;
  font-family: 'Libre Caslon Text', Georgia, serif;
  font-weight: 500;
  color: var(--navy);
  font-size: 1.05rem;
  padding: 20px 12px;
  border: 1px solid var(--line);
  transition: all 0.3s;
  letter-spacing: 0.02em;
}
.client-name:hover {
  border-color: var(--navy);
  background: var(--navy);
  color: var(--cream);
}


/* =========================================================
   13. CONTACT
   ========================================================= */

.contact-section {
  padding: 120px 0;
  background: var(--navy);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}
.contact-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(250, 246, 238, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(250, 246, 238, 0.025) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  position: relative;
  z-index: 1;
}
.contact-intro h2 {
  color: var(--cream);
  margin-bottom: 24px;
}
.contact-intro .section-label {
  color: var(--accent);
  margin-bottom: 24px;
}
.contact-intro p {
  color: rgba(250, 246, 238, 0.8);
  font-size: 1.02rem;
  line-height: 1.75;
  margin-bottom: 40px;
  max-width: 500px;
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding-top: 32px;
  border-top: 1px solid rgba(250, 246, 238, 0.2);
}
.contact-item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 20px;
  align-items: baseline;
}
.contact-item strong {
  color: var(--accent);
  font-weight: 500;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.contact-item span, .contact-item a {
  color: var(--cream);
  font-size: 0.95rem;
  line-height: 1.5;
}
.contact-item a {
  text-decoration: none;
  border-bottom: 1px solid rgba(250, 246, 238, 0.3);
  transition: color 0.2s, border-color 0.2s;
}
.contact-item a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.contact-form {
  background: var(--cream);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
  z-index: 1;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.form-group label {
  display: block;
  font-size: 0.7rem;
  color: var(--muted);
  margin-bottom: 8px;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
}
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 12px 0;
  border: none;
  border-bottom: 1px solid var(--line);
  background: transparent;
  font-family: inherit;
  font-size: 1rem;
  color: var(--navy);
  transition: border-color 0.2s;
}
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-bottom-color: var(--accent);
}
.contact-form textarea {
  resize: vertical;
  min-height: 100px;
}
.contact-form button[type="submit"] {
  margin-top: 8px;
  align-self: flex-start;
  background: var(--navy);
  color: var(--cream);
  border: none;
  padding: 16px 32px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  letter-spacing: 0.01em;
}
.contact-form button[type="submit"]:hover {
  background: var(--accent);
  color: var(--navy-deep);
}
.form-feedback {
  padding: 14px 18px;
  font-size: 0.9rem;
  line-height: 1.5;
  display: none;
}
.form-feedback.success {
  background: rgba(201, 169, 97, 0.2);
  border-left: 3px solid var(--accent);
  color: var(--navy);
  display: block;
}
.form-feedback.error {
  background: rgba(180, 50, 50, 0.1);
  border-left: 3px solid #b43232;
  color: #8b1f1f;
  display: block;
}


/* =========================================================
   14. FOOTER
   ========================================================= */

footer {
  background: var(--navy-deep);
  color: var(--cream);
  padding: 70px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand img {
  height: 56px;
  width: auto;
  filter: brightness(0) invert(1);
  margin-bottom: 22px;
  opacity: 0.95;
}
.footer-brand p {
  color: rgba(250, 246, 238, 0.6);
  max-width: 340px;
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 20px;
}
.footer-socials {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.footer-social-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px 10px 10px;
  background: rgba(250, 246, 238, 0.04);
  border: 1px solid rgba(250, 246, 238, 0.12);
  border-radius: 100px;
  text-decoration: none;
  color: var(--cream);
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}
.footer-social-link::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -100%;
  width: 60%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transform: skewX(-20deg);
  transition: left 0.7s ease;
  pointer-events: none;
}
.footer-social-link:hover::before {
  left: 150%;
}

/* Pastille icône : cercle coloré */
.social-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

/* Instagram : dégradé officiel */
.footer-social-instagram .social-icon {
  background: linear-gradient(45deg,
    #f09433 0%,
    #e6683c 25%,
    #dc2743 50%,
    #cc2366 75%,
    #bc1888 100%);
}
.footer-social-instagram:hover {
  border-color: #dc2743;
  background: rgba(220, 39, 67, 0.08);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(220, 39, 67, 0.25);
}
.footer-social-instagram:hover .social-icon {
  transform: scale(1.1) rotate(-6deg);
}

/* LinkedIn : bleu officiel */
.footer-social-linkedin .social-icon {
  background: #0A66C2;
}
.footer-social-linkedin:hover {
  border-color: #0A66C2;
  background: rgba(10, 102, 194, 0.12);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(10, 102, 194, 0.25);
}
.footer-social-linkedin:hover .social-icon {
  transform: scale(1.1);
}

/* Label (plateforme + handle) */
.social-label {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.social-platform {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--cream);
}
.social-handle {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: rgba(250, 246, 238, 0.55);
  letter-spacing: 0.02em;
  transition: color 0.3s;
}
.footer-social-link:hover .social-handle {
  color: var(--accent);
}
.contact-socials {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.contact-socials a {
  color: var(--cream) !important;
  border-bottom: 1px solid rgba(250, 246, 238, 0.3);
  transition: color 0.2s, border-color 0.2s;
}
.contact-socials a:hover {
  color: var(--accent) !important;
  border-color: var(--accent);
}
.contact-sep {
  color: rgba(250, 246, 238, 0.4);
}
.footer-col h5 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  font-weight: 500;
}
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col a,
.footer-col li {
  color: rgba(250, 246, 238, 0.7);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--accent); }

/* ─── Partenariats / Affiliations (CoachCopro etc.) ─── */
.footer-partners {
  padding: 36px 0;
  margin-bottom: 16px;
  border-top: 1px solid rgba(250, 246, 238, 0.15);
  border-bottom: 1px solid rgba(250, 246, 238, 0.15);
}
.footer-partners h5 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  font-weight: 500;
}
.partner-block {
  display: flex;
  gap: 24px;
}
.partner-link {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  padding: 20px 24px;
  background: rgba(250, 246, 238, 0.04);
  border: 1px solid rgba(250, 246, 238, 0.12);
  text-decoration: none;
  transition: background 0.3s, border-color 0.3s, transform 0.3s;
  max-width: 860px;
}
.partner-link:hover {
  background: rgba(250, 246, 238, 0.08);
  border-color: rgba(141, 198, 63, 0.5);
  transform: translateY(-1px);
}
.partner-logo-box {
  flex-shrink: 0;
  align-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  padding: 12px;
  border-radius: 6px;
}
.partner-logo-box img {
  display: block;
  width: 110px;
  height: 110px;
  object-fit: contain;
}
.partner-text { flex: 1; }
.partner-text strong {
  display: block;
  color: var(--cream);
  font-family: 'Libre Caslon Text', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 400;
  margin-bottom: 8px;
}
.partner-text p {
  color: rgba(250, 246, 238, 0.7);
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 10px;
}
.partner-text p strong {
  display: inline;
  font-family: inherit;
  font-size: inherit;
  color: var(--cream);
  font-weight: 500;
  margin-bottom: 0;
}
.partner-meta {
  display: inline-block;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 500;
  transition: gap 0.3s;
}
.partner-link:hover .partner-meta {
  color: #a3d455;
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(250, 246, 238, 0.15);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  color: rgba(250, 246, 238, 0.5);
  font-size: 0.82rem;
}
.footer-bottom a {
  color: inherit;
  text-decoration: none;
}
.footer-bottom a:hover { color: var(--accent); }


/* =========================================================
   15. PAGES LÉGALES (séparées)
   ========================================================= */

.legal { padding: 60px 0 100px; }
.legal-content { max-width: 820px; }
.legal-content h2 {
  font-size: 1.5rem;
  color: var(--navy);
  margin: 40px 0 16px;
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 {
  font-size: 1.1rem;
  color: var(--navy);
  margin: 24px 0 10px;
  font-weight: 500;
}
.legal-content p,
.legal-content li {
  color: var(--ink-soft);
  line-height: 1.75;
  margin-bottom: 14px;
  font-size: 0.98rem;
}
.legal-content ul {
  padding-left: 20px;
  margin-bottom: 18px;
}
.legal-content li { margin-bottom: 6px; }
.legal-content a {
  color: var(--navy);
  border-bottom: 1px solid var(--accent);
  text-decoration: none;
}
.legal-content a:hover { color: var(--accent); }
.legal-content strong {
  color: var(--navy);
  font-weight: 500;
}
.legal-block {
  background: var(--cream);
  border-left: 3px solid var(--accent);
  padding: 22px 26px;
  margin: 28px 0;
}
.legal-block p:last-child { margin-bottom: 0; }
.page-hero {
  padding: 60px 0 80px;
  border-bottom: 1px solid var(--line);
}
.page-hero .mono {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--accent);
  font-weight: 500;
}
.page-hero h1 {
  max-width: 1000px;
  margin-bottom: 32px;
}
.page-hero .page-intro {
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 720px;
}


/* =========================================================
   16. ANIMATIONS
   ========================================================= */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-label,
h1.hero-title,
.hero-bottom {
  animation: fadeUp 0.7s ease-out backwards;
}
h1.hero-title { animation-delay: 0.08s; }
.hero-bottom { animation-delay: 0.2s; }


/* =========================================================
   17. RESPONSIVE — TABLETTE
   ========================================================= */

@media (max-width: 1100px) {
  .container { padding: 0 32px; }
  .header-inner { padding: 16px 32px; }
  .section-header { grid-template-columns: 1fr; gap: 24px; align-items: start; }
  .refs-grid { grid-template-columns: repeat(2, 1fr); }
  .clients-grid { grid-template-columns: repeat(3, 1fr); }
  .vision-grid { grid-template-columns: 1fr; gap: 48px; }
  .vision-visual { position: static; flex-direction: row; align-items: center; max-width: 100%; }
  .vision-portrait { aspect-ratio: 1; width: 160px; flex-shrink: 0; }
  .vision-initials { font-size: 5rem; }
  .vision-signature { border: none; padding: 0; }
  .vision-pillars { grid-template-columns: 1fr; gap: 24px; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 0; }
  .stat { padding: 24px 20px; border-bottom: 1px solid rgba(250, 246, 238, 0.15); }
  .stat:nth-child(even) { border-right: none; }
  .stat:nth-child(n+3) { border-bottom: none; }
  .service-content { grid-template-columns: 1fr; gap: 24px; }
}


/* =========================================================
   18. RESPONSIVE — MOBILE
   ========================================================= */

@media (max-width: 720px) {
  :root { --header-h: 72px; }
  .container { padding: 0 20px; }
  .header-inner { padding: 12px 20px; }
  .logo-img { height: 44px; }

  .nav-toggle { display: block; }
  nav ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 24px 20px;
    gap: 20px;
    box-shadow: var(--shadow-md);
  }
  nav ul.active { display: flex; }
  nav a { font-size: 1rem; padding: 8px 0; }
  .btn-contact { display: none; }

  .hero { padding: 50px 0 60px; }
  .hero-bottom { grid-template-columns: 1fr; gap: 32px; margin-top: 50px; }
  .hero-cta { align-items: flex-start; }
  .hero-meta { text-align: left; }

  .services-section,
  .vision,
  .references-section,
  .contact-section { padding: 70px 0; }
  .clients-section { padding: 60px 0; }

  .stats { padding: 50px 0; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat { padding: 20px 0; border-right: none !important; border-bottom: 1px solid rgba(250, 246, 238, 0.15) !important; }
  .stat:last-child { border-bottom: none !important; }
  .stat-number { font-size: 2.6rem; }

  .service-header { grid-template-columns: 40px 1fr 30px; gap: 16px; padding: 20px 0; }
  .service-header:hover, .service-item.open .service-header { padding-left: 12px; padding-right: 12px; }
  .service-title { font-size: 1.15rem; }
  .service-content { padding: 12px 12px 28px; }

  .vision-visual { flex-direction: column; align-items: flex-start; }
  .vision-portrait { width: 140px; }
  .vision-initials { font-size: 4rem; }
  .vision-quote { padding-left: 20px; border-left-width: 2px; }

  .refs-grid { grid-template-columns: 1fr; gap: 24px; }

  .clients-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .client-name { font-size: 0.92rem; padding: 16px 8px; }

  .contact-form { padding: 28px 20px; }
  .form-row { grid-template-columns: 1fr; gap: 22px; }
  .contact-item { grid-template-columns: 1fr; gap: 4px; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 10px; }
  .partner-link {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
    padding: 20px;
  }
  .partner-logo-box { align-self: flex-start; }
  .footer-partners { padding: 28px 0; }
}

@media (max-width: 400px) {
  .container { padding: 0 16px; }
  .header-inner { padding: 10px 16px; }
  .logo-img { height: 40px; }
  h1 { font-size: 1.9rem !important; }
  .btn-primary, .btn-secondary { padding: 14px 22px; font-size: 0.88rem; }
}
