/* =========================================
   APACTA — Feuille de style principale
   Palette : Bleu océan · Vert canne · Anthracite
   ========================================= */

/* --- VARIABLES --- */
:root {
  --blue:       #1a4a6b;
  --blue-light: #2d6a9f;
  --blue-pale:  #e8f0f8;
  --green:      #3a7a5a;
  --green-light:#4e9e74;
  --green-pale: #e6f4ec;
  --anthracite: #2b2f36;
  --gray:       #5a606b;
  --gray-light: #9099a6;
  --gray-pale:  #f4f5f7;
  --white:      #ffffff;
  --cream:      #fafaf8;

  --font-title: 'Montserrat', sans-serif;
  --font-body:  'Source Serif 4', Georgia, serif;

  --radius:     8px;
  --radius-lg:  16px;
  --shadow:     0 4px 24px rgba(26,74,107,0.10);
  --shadow-lg:  0 12px 48px rgba(26,74,107,0.16);

  --max-w: 1140px;
  --nav-h: 70px;
}

/* --- RESET --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--anthracite);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4 {
  font-family: var(--font-title);
  font-weight: 600;
  line-height: 1.2;
}
p { color: var(--gray); }

/* --- UTILITIES --- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
}

.section-label {
  display: inline-block;
  font-family: var(--font-title);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  color: var(--anthracite);
  margin-bottom: 24px;
}

.section-title em {
  font-family: 'Source Serif 4', Georgia, serif;
  font-style: italic;
  font-weight: 300;
  color: var(--blue);
}

.section-desc {
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-title);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 12px 24px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn--primary {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}
.btn--primary:hover {
  background: var(--blue-light);
  border-color: var(--blue-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.btn--ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
}

.btn--nav {
  background: var(--green);
  color: var(--white);
  padding: 10px 20px;
  font-size: 0.82rem;
}
.btn--nav:hover {
  background: var(--green-light);
}

.btn--large {
  padding: 16px 36px;
  font-size: 1rem;
}

/* =========================================
   NAVIGATION
   ========================================= */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 100;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.nav.scrolled {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 20px rgba(0,0,0,0.08);
}

.nav__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0;
  transition: opacity 0.2s;
}
.nav__logo:hover { opacity: 0.85; }

/* Logo image dans la navigation */
.nav__logo-img {
  height: 42px;
  width: auto;
  display: block;
  object-fit: contain;
  transition: opacity 0.3s ease;
}


.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__links a {
  font-family: var(--font-title);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav:not(.scrolled) .nav__links a:not(.btn) { color: rgba(255,255,255,0.9); }
.nav:not(.scrolled) .nav__links a:not(.btn):hover { color: white; }
.nav.scrolled .nav__links a:not(.btn) { color: var(--gray); }
.nav.scrolled .nav__links a:not(.btn):hover { color: var(--blue); }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s;
}
.nav.scrolled .nav__burger span { background: var(--anthracite); }

/* =========================================
   HERO
   ========================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background:
    linear-gradient(160deg, rgba(26,74,107,0.63) 0%, rgba(42,90,60,0.51) 100%),
    url('images/salazie.jpg') center/cover no-repeat;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 60%, rgba(58,122,90,0.2) 0%, transparent 60%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  padding: calc(var(--nav-h) + 48px) 24px 96px;
}

.hero__eyebrow {
  font-family: var(--font-title);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 20px;
}

.hero__title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  color: var(--white);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  max-width: 720px;
}

.hero__title em {
  font-family: 'Source Serif 4', serif;
  font-style: italic;
  font-weight: 300;
  color: rgba(255,255,255,0.88);
}

.hero__subtitle {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.82);
  max-width: 560px;
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero__scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
}

.hero__scroll-hint span {
  font-family: var(--font-title);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
  animation: scrollDown 1.8s ease-in-out infinite;
}

@keyframes scrollDown {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* =========================================
   À PROPOS
   ========================================= */
.apropos { background: var(--cream); }

.apropos__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.apropos__text p {
  margin-bottom: 16px;
  font-size: 1.05rem;
  color: var(--gray);
}

.apropos__values {
  display: flex;
  gap: 32px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.value {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-title);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--blue);
}

.value__icon {
  font-size: 0.5rem;
  color: var(--green);
}

.img-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  box-shadow: var(--shadow-lg);
}

.img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.img-frame:hover img { transform: scale(1.03); }

.img-frame__tag {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(4px);
  padding: 6px 14px;
  border-radius: 20px;
  font-family: var(--font-title);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--blue);
  letter-spacing: 0.05em;
}

/* =========================================
   SERVICES
   ========================================= */
.services {
  background: var(--white);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--gray-pale);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  border: 1px solid transparent;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--green));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.service-card:hover {
  background: var(--white);
  border-color: var(--blue-pale);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card__icon {
  width: 44px;
  height: 44px;
  color: var(--blue);
  margin-bottom: 20px;
}

.service-card h3 {
  font-family: var(--font-title);
  font-size: 1rem;
  font-weight: 600;
  color: var(--anthracite);
  margin-bottom: 12px;
  line-height: 1.3;
}

.service-card p {
  font-size: 0.92rem;
  line-height: 1.65;
}

/* Carte service pleine largeur — thème Transitions */
.service-card--featured {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: row;
  gap: 32px;
  align-items: flex-start;
  background: linear-gradient(135deg, var(--blue-pale) 0%, var(--green-pale) 100%);
  border: 1px solid rgba(26,74,107,0.10);
}

.service-card--featured .service-card__body {
  flex: 1;
}

.service-card--featured h3 {
  font-size: 1.05rem;
}

.service-card--featured .service-card__icon {
  flex-shrink: 0;
  margin-top: 2px;
}

@media (max-width: 600px) {
  .service-card--featured {
    flex-direction: column;
    gap: 16px;
  }
}

/* =========================================
   CHIFFRES CLÉS
   ========================================= */
.stats-strip {
  background: var(--blue);
  padding: 56px 0;
}

.stats-strip__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
}

.stat-item__number {
  font-family: var(--font-title);
  font-size: 3rem;
  font-weight: 700;
  color: var(--white);
  display: block;
  line-height: 1;
}

.stat-item__plus {
  font-size: 1.75rem;
}

.stat-item__label {
  font-family: var(--font-title);
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
  margin-top: 10px;
  display: block;
  line-height: 1.45;
}

/* =========================================
   TRANSFORMATION DES ORGANISATIONS
   ========================================= */
.transformation {
  background: var(--cream);
}

.transformation__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.transformation__text p {
  margin-bottom: 16px;
  font-size: 1.05rem;
  color: var(--gray);
}

.transformation__list {
  margin-top: 24px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.transformation__list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--gray);
  line-height: 1.5;
}

.transformation__list li::before {
  content: '→';
  color: var(--green);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.transformation__visual {
  /* réutilise .img-frame */
}

.img-frame--landscape {
  aspect-ratio: 4/3;
}

/* =========================================
   RÉFÉRENCES
   ========================================= */
.references {
  background: var(--blue);
  padding: 80px 0;
}

.references .section-label { color: rgba(255,255,255,0.5); }
.references .section-title { color: var(--white); }
.references .section-desc { color: rgba(255,255,255,0.7); }

.references__sectors {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.ref-sector {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: background 0.2s;
}

.ref-sector:hover {
  background: rgba(255,255,255,0.12);
}

.ref-sector__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.ref-sector__header svg {
  width: 22px;
  height: 22px;
  color: rgba(255,255,255,0.55);
  flex-shrink: 0;
}

.ref-sector__header h3 {
  font-family: var(--font-title);
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  line-height: 1.3;
}

.ref-sector__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ref-tag {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 20px;
  padding: 4px 12px;
  font-family: var(--font-title);
  font-size: 0.77rem;
  color: rgba(255,255,255,0.72);
  transition: all 0.2s;
}

.ref-tag:hover {
  background: rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.92);
}

.references__note {
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
  font-style: italic;
}

/* =========================================
   CONTACT
   ========================================= */
.contact { background: var(--cream); }

.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.contact__text p {
  font-size: 1.05rem;
  margin-bottom: 36px;
}

.contact__links {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-title);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--blue);
  transition: color 0.2s, gap 0.2s;
}

.contact-link:hover {
  color: var(--green);
  gap: 16px;
}

.contact-link__icon {
  width: 40px;
  height: 40px;
  background: var(--blue-pale);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s;
}

.contact-link:hover .contact-link__icon {
  background: var(--green-pale);
}

.contact-link__icon svg {
  width: 18px;
  height: 18px;
  color: var(--blue);
}

.contact-link:hover .contact-link__icon svg {
  color: var(--green);
}

.contact__cta {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid rgba(26,74,107,0.08);
}

.contact__cta-note {
  margin-top: 16px;
  font-size: 0.82rem;
  color: var(--gray-light);
  font-style: italic;
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
  background: var(--anthracite);
  padding: 40px 0;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.footer__logo { display: flex; align-items: center; }

/* Logo image dans le footer */
.footer__logo-img {
  height: 36px;
  width: auto;
  display: block;
  object-fit: contain;
  opacity: 0.85;
}

.footer__tagline {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
  font-family: var(--font-title);
  letter-spacing: 0.06em;
}

.footer__legal {
  font-family: var(--font-title);
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.footer__legal a {
  color: rgba(255,255,255,0.45);
  transition: color 0.2s;
}
.footer__legal a:hover { color: rgba(255,255,255,0.75); }
.footer__sep { color: rgba(255,255,255,0.2); }

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 1024px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .stats-strip__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }

  /* Nav mobile */
  .nav__burger { display: flex; }

  .nav__links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    gap: 20px;
    box-shadow: var(--shadow-lg);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
  }

  .nav__links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav__links a:not(.btn) { color: var(--anthracite) !important; font-size: 1rem; }

  /* Hero */
  .hero__title { font-size: 2.2rem; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { text-align: center; justify-content: center; }

  /* Grids */
  .apropos__grid { grid-template-columns: 1fr; gap: 40px; }
  .apropos__visual { order: -1; }
  .img-frame { aspect-ratio: 16/9; }

  .services__grid { grid-template-columns: 1fr; }

  .stats-strip__grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }

  .transformation__inner { grid-template-columns: 1fr; gap: 40px; }
  .transformation__visual { order: -1; }

  .references__sectors { grid-template-columns: 1fr; }

  .contact__inner { grid-template-columns: 1fr; gap: 40px; }
  .contact__cta { padding: 36px 24px; }
}

@media (max-width: 480px) {
  .stats-strip__grid { grid-template-columns: 1fr; }
  .apropos__values { flex-direction: column; gap: 12px; }
  .hero__scroll-hint { display: none; }
}

/* =========================================
   ACCESSIBILITÉ
   ========================================= */
:focus-visible {
  outline: 3px solid var(--blue-light);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
