/* ========================================================================
   CIBEL'ACCESS — Charte graphique commune
   v1.0 · Mai 2026
   ======================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700&family=Inter:wght@400;500;600&display=swap');

:root {
  /* Palette officielle */
  --vert-cibel: #2F5D3E;
  --vert-cibel-dark: #244A31;
  --vert-cibel-light: #3D7350;
  --vert-sauge: #7A9476;
  --vert-sauge-dark: #5F7D5B;
  --vert-sauge-light: #94AD90;
  --creme-cocon: #EDE6D6;
  --creme-cocon-light: #F4EFE2;
  --ocre-soleil: #D4A574;
  --ocre-soleil-light: #E2BC93;
  --charbon: #1F1F1F;
  --charbon-soft: #2F2F2F;
  --blanc: #FFFFFF;
  --blanc-creme: #FBFAF6;

  /* Typographie */
  --font-display: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Espacements (échelle 8px) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Rayons */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --radius-full: 999px;

  /* Ombres */
  --shadow-sm: 0 1px 3px rgba(31, 31, 31, 0.06), 0 1px 2px rgba(31, 31, 31, 0.04);
  --shadow-md: 0 4px 16px rgba(31, 31, 31, 0.08), 0 2px 4px rgba(31, 31, 31, 0.04);
  --shadow-lg: 0 12px 32px rgba(31, 31, 31, 0.10), 0 4px 8px rgba(31, 31, 31, 0.04);
  --shadow-green: 0 12px 32px rgba(47, 93, 62, 0.18);
}

/* ========================================================================
   RESET ET BASE
   ======================================================================== */

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--charbon);
  background-color: var(--blanc-creme);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ========================================================================
   TYPOGRAPHIE
   ======================================================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--charbon);
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 700; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 2.5vw, 2rem); }
h4 { font-size: 1.25rem; }

p { line-height: 1.7; }

.text-muted { color: rgba(31, 31, 31, 0.65); }
.text-small { font-size: 0.875rem; }
.text-tiny { font-size: 0.75rem; letter-spacing: 0.05em; }
.text-uppercase { text-transform: uppercase; letter-spacing: 0.1em; font-weight: 500; }

/* ========================================================================
   LOGO CIBEL'ACCESS — Règle chromatique impérative
   ======================================================================== */

.cibel-logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-display);
  text-decoration: none;
}

.cibel-logo svg { flex-shrink: 0; }

.cibel-text {
  font-size: 1.5rem;
  letter-spacing: -0.025em;
  white-space: nowrap;
}

/* Sur fond vert : Ci BLANC + Bel' OCRE + Access BLANC */
.cibel-text .ci, .cibel-text .access {
  font-weight: 600;
  color: var(--blanc);
}
.cibel-text .bel {
  font-weight: 300;
  color: var(--ocre-soleil);
}

/* Sur fond clair : tout en vert profond avec Bel' allégé */
.cibel-text--light .ci, .cibel-text--light .access {
  color: var(--vert-cibel);
}
.cibel-text--light .bel {
  color: var(--vert-cibel);
  opacity: 0.55;
}

/* ========================================================================
   NAVIGATION
   ======================================================================== */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--blanc-creme);
  border-bottom: 1px solid rgba(31, 31, 31, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background-color: rgba(251, 250, 246, 0.92);
}

.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--space-5) var(--space-8);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  list-style: none;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--charbon);
  position: relative;
  padding: var(--space-2) 0;
  transition: color 0.2s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--ocre-soleil);
  transition: width 0.3s ease;
}

.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a:hover { color: var(--vert-cibel); }

.nav-cta {
  background: var(--vert-cibel);
  color: var(--blanc);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-full);
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.nav-cta:hover {
  background: var(--vert-cibel-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-green);
}

/* ========================================================================
   BARRE SOCIALE STICKY (droite, verticale)
   ======================================================================== */

.social-sticky {
  position: fixed;
  right: var(--space-4);
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-3);
  background: var(--blanc);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(31, 31, 31, 0.04);
}

.social-sticky a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--creme-cocon);
  color: var(--vert-cibel);
  transition: all 0.25s ease;
}

.social-sticky a:hover {
  background: var(--vert-cibel);
  color: var(--blanc);
  transform: scale(1.1) rotate(-5deg);
}

.social-sticky svg { width: 18px; height: 18px; }

/* ========================================================================
   BOUTONS
   ======================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-8);
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: -0.01em;
  transition: all 0.25s ease;
  cursor: pointer;
}

.btn-primary {
  background: var(--vert-cibel);
  color: var(--blanc);
}

.btn-primary:hover {
  background: var(--vert-cibel-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-green);
}

.btn-secondary {
  background: var(--ocre-soleil);
  color: var(--charbon);
}

.btn-secondary:hover {
  background: var(--ocre-soleil-light);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--vert-cibel);
  border: 1.5px solid var(--vert-cibel);
}

.btn-ghost:hover {
  background: var(--vert-cibel);
  color: var(--blanc);
}

/* ========================================================================
   BADGES D'ACCESSIBILITÉ
   ======================================================================== */

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 500;
  font-family: var(--font-body);
  background: var(--creme-cocon);
  color: var(--vert-cibel);
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.badge svg { width: 14px; height: 14px; }

.badge--accessible {
  background: rgba(47, 93, 62, 0.08);
  color: var(--vert-cibel);
  border-color: rgba(47, 93, 62, 0.15);
}

.badge--soleil {
  background: rgba(212, 165, 116, 0.18);
  color: #8B5E2D;
  border-color: rgba(212, 165, 116, 0.3);
}

.badge--dark {
  background: var(--vert-cibel);
  color: var(--blanc);
}

/* ========================================================================
   FOOTER
   ======================================================================== */

.footer {
  background: var(--vert-cibel);
  color: var(--creme-cocon);
  padding: var(--space-20) var(--space-8) var(--space-8);
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: -150px;
  right: -150px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--vert-cibel-light) 0%, transparent 70%);
  opacity: 0.4;
  pointer-events: none;
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--space-12);
  margin-bottom: var(--space-16);
}

.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ocre-soleil);
  margin-bottom: var(--space-5);
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: var(--space-3); }

.footer-col a {
  color: var(--creme-cocon);
  opacity: 0.85;
  font-size: 0.95rem;
  transition: opacity 0.2s, color 0.2s;
}

.footer-col a:hover {
  opacity: 1;
  color: var(--ocre-soleil);
}

.footer-baseline {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 300;
  font-style: italic;
  margin-top: var(--space-4);
  opacity: 0.85;
  line-height: 1.5;
}

.footer-socials {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.footer-socials a {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(237, 230, 214, 0.1);
  color: var(--creme-cocon);
  transition: all 0.2s ease;
}

.footer-socials a:hover {
  background: var(--ocre-soleil);
  color: var(--charbon);
}

.footer-bottom {
  border-top: 1px solid rgba(237, 230, 214, 0.15);
  padding-top: var(--space-6);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  opacity: 0.7;
}

/* ========================================================================
   UTILITAIRES
   ======================================================================== */

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-8);
}

.section { padding: var(--space-24) 0; }
.section-sm { padding: var(--space-16) 0; }

.section-label {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--vert-cibel);
  margin-bottom: var(--space-4);
}

.section-label::before {
  content: '— ';
  color: var(--ocre-soleil);
  font-weight: 700;
}

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.anim-fade-up { animation: fadeUp 0.8s ease-out backwards; }
.anim-scale-in { animation: scaleIn 0.6s ease-out backwards; }

/* Responsive */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .social-sticky { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: var(--space-3); }
  .container { padding: 0 var(--space-5); }
  .section { padding: var(--space-16) 0; }
}
