/* ============================================================
   CABINET D'EXPERTISE COMPTABLE — style.css
   Thème : Ardoise & Terracotta — Moderne & Épuré
   Typographie : Playfair Display + DM Sans
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,700;1,400;1,500&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&display=swap');

/* ══════════════════════════════════════════
   VARIABLES
══════════════════════════════════════════ */
:root {
  /* ── Ardoise ── */
  --slate-deep:    #1C2330;
  --slate-mid:     #28354A;
  --slate-soft:    #38506A;
  --slate-muted:   #4A6280;
  --slate-border:  rgba(255,255,255,0.10);
  --slate-border2: rgba(255,255,255,0.06);

  /* ── Terracotta & Cuivre ── */
  --terra:         #C25540;
  --terra-light:   #D4745C;
  --terra-pale:    #E89A80;
  --terra-dark:    #9A3825;
  --terra-glow:    rgba(194, 85, 64, 0.18);
  --copper:        #B87248;
  --copper-light:  #D09060;

  /* ── Crème (fonds clairs) ── */
  --cream:         #F7F2EB;
  --cream-warm:    #EFE8DC;
  --cream-deep:    #E3D8C8;
  --cream-border:  #D8CCBA;

  /* ── Texte sur fond sombre ── */
  --on-dark:       #EDE8E0;
  --on-dark-muted: #9A9488;

  /* ── Texte sur fond clair ── */
  --charcoal:      #24303E;
  --stone:         #5A5248;
  --stone-light:   #8A8278;

  /* ── Typographie ── */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  /* ── Layout ── */
  --container:      1300px;
  --gutter:         44px;
  --section-pad:    112px;
  --section-pad-sm: 64px;

  /* ── UI ── */
  --radius-sm:     5px;
  --radius-md:     12px;
  --radius-lg:     24px;
  --shadow-sm:     0 2px 12px rgba(0,0,0,0.12);
  --shadow-md:     0 6px 28px rgba(0,0,0,0.18);
  --shadow-lg:     0 16px 56px rgba(0,0,0,0.26);
  --shadow-terra:  0 8px 32px rgba(194, 85, 64, 0.30);
  --transition:    0.30s cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

/* ══════════════════════════════════════════
   TYPOGRAPHIE UTILITAIRE
══════════════════════════════════════════ */
.section-tag {
  font-size: 0.66rem; font-weight: 600; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--terra); display: block; margin-bottom: 14px;
}
.section-tag.light { color: var(--terra-light); }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.2vw, 3.8rem);
  font-weight: 400; line-height: 1.1; color: var(--charcoal);
}
.section-title.light { color: var(--on-dark); }
.section-title em { font-style: italic; font-weight: 500; color: var(--terra); }
.section-title.light em { color: var(--terra-light); }

.section-subtitle {
  font-size: 1rem; font-weight: 300; color: var(--stone);
  max-width: 520px; margin-top: 18px; line-height: 1.82;
}
.section-subtitle.light { color: var(--on-dark-muted); }

/* ══════════════════════════════════════════
   BOUTONS
══════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 34px; border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 0.84rem;
  font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  transition: var(--transition); position: relative;
}

.btn-primary { background: var(--terra); color: white; }
.btn-primary:hover { background: var(--terra-dark); transform: translateY(-2px); box-shadow: var(--shadow-terra); }

.btn-outline { border: 1.5px solid var(--on-dark); color: var(--on-dark); }
.btn-outline:hover { background: rgba(255,255,255,0.08); border-color: var(--terra-light); color: var(--terra-light); transform: translateY(-2px); }

/* ══════════════════════════════════════════
   NAVIGATION
══════════════════════════════════════════ */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 22px 0;
  transition: padding var(--transition), background var(--transition), box-shadow var(--transition);
}

#navbar.scrolled {
  background: rgba(28, 35, 48, 0.97);
  backdrop-filter: blur(18px);
  padding: 14px 0;
  box-shadow: 0 1px 0 var(--slate-border), 0 4px 28px rgba(0,0,0,0.35);
}

.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }

.nav-logo {
  font-family: var(--font-display); font-size: 1.4rem; font-weight: 400;
  letter-spacing: 0.06em; color: var(--on-dark); flex-shrink: 0;
}
.nav-logo span { color: var(--terra-light); font-style: italic; }

.nav-links { display: flex; align-items: center; gap: 34px; }

.nav-links a {
  font-size: 0.74rem; font-weight: 500; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--on-dark-muted);
  transition: color var(--transition); position: relative;
}

.nav-links a::after {
  content: ''; position: absolute; bottom: -6px; left: 0;
  width: 0; height: 1.5px; background: var(--terra);
  transition: width var(--transition);
}

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

/* Bouton espace client */
.nav-client {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 20px;
  border: 1px solid var(--slate-muted);
  color: var(--on-dark-muted) !important;
  border-radius: var(--radius-sm);
  font-size: 0.72rem !important; font-weight: 600 !important;
  letter-spacing: 0.12em; transition: all var(--transition) !important;
}
.nav-client::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%;
  background: var(--terra); flex-shrink: 0;
}
.nav-client:hover {
  background: rgba(194, 85, 64, 0.12) !important;
  border-color: var(--terra) !important;
  color: var(--on-dark) !important;
}
.nav-client::after { display: none !important; }

.nav-separator { width: 1px; height: 16px; background: var(--slate-border); flex-shrink: 0; }

.nav-cta {
  padding: 9px 22px !important;
  background: var(--terra) !important; color: white !important;
  border-radius: var(--radius-sm) !important;
  font-size: 0.72rem !important; font-weight: 600 !important;
  letter-spacing: 0.12em;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition) !important;
}
.nav-cta:hover { background: var(--terra-dark) !important; transform: translateY(-1px); box-shadow: var(--shadow-terra); }
.nav-cta::after { display: none !important; }

/* Burger */
.burger { display: none; flex-direction: column; gap: 5px; padding: 4px; z-index: 1001; }
.burger span { display: block; width: 25px; height: 1.5px; background: var(--on-dark); transition: var(--transition); transform-origin: center; }
.burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu {
  display: none; position: fixed; inset: 0; background: var(--slate-deep);
  z-index: 999; flex-direction: column; align-items: center; justify-content: center; gap: 40px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { font-family: var(--font-display); font-size: 2.2rem; font-weight: 400; color: var(--on-dark); transition: color var(--transition); }
.mobile-menu a:hover { color: var(--terra-light); }

/* ══════════════════════════════════════════
   HERO — ardoise profond
══════════════════════════════════════════ */
#hero {
  min-height: 100vh;
  background: var(--slate-deep);
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center; padding-top: 90px; overflow: hidden; position: relative;
}

/* Gradient diagonal décoratif */
.hero-bg-shape {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 80% at 75% 50%, rgba(194, 85, 64, 0.06) 0%, transparent 70%),
    linear-gradient(145deg, var(--slate-deep) 40%, var(--slate-mid) 100%);
  z-index: 0;
}

/* Grille de points */
.hero-bg-dots {
  position: absolute; top: 20%; left: 2%;
  width: 260px; height: 260px;
  background-image: radial-gradient(var(--slate-soft) 1.5px, transparent 1.5px);
  background-size: 22px 22px; opacity: 0.6; z-index: 0;
}

/* Ligne verticale terracotta */
.hero-accent-line {
  position: absolute; left: 0; top: 35%;
  width: 3px; height: 160px;
  background: linear-gradient(to bottom, transparent, var(--terra) 50%, transparent);
  z-index: 1;
}

.hero-content { position: relative; z-index: 1; padding: var(--section-pad) 0; }

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 5.5vw, 5.2rem);
  font-weight: 400; line-height: 1.06; color: var(--on-dark); margin-bottom: 28px;
}

.hero-title em { font-style: italic; font-weight: 500; color: var(--terra-light); display: block; }

.hero-desc {
  font-size: 1rem; font-weight: 300; color: var(--on-dark-muted);
  max-width: 460px; margin-bottom: 52px; line-height: 1.88;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Stats hero */
.hero-stats {
  display: flex; gap: 0; margin-top: 72px;
  border-top: 1px solid var(--slate-border); padding-top: 36px;
}

.stat-item {
  padding-right: 40px; margin-right: 40px;
  border-right: 1px solid var(--slate-border);
}
.stat-item:last-child { border-right: none; }

.stat-value {
  font-family: var(--font-display); font-size: 2.8rem;
  font-weight: 400; color: var(--on-dark); line-height: 1;
}

.stat-label {
  font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--on-dark-muted); margin-top: 8px; font-weight: 400;
}

/* Cartes décoratives */
.hero-visual {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  padding: var(--section-pad) 0 var(--section-pad) 40px;
}

.hero-card-cluster { position: relative; width: 460px; height: 500px; }

.hero-card {
  position: absolute; border-radius: var(--radius-md); padding: 32px;
  transition: transform var(--transition), box-shadow var(--transition);
}
.hero-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }

.hero-card-main {
  width: 290px; top: 50%; left: 50%; transform: translate(-50%, -50%);
  background: var(--cream); border: 1px solid var(--cream-border); z-index: 3;
}
.hero-card-accent {
  width: 210px; background: var(--terra); color: white; top: 3%; right: 0; z-index: 2;
}
.hero-card-sage {
  width: 230px; background: var(--slate-mid); bottom: 5%; left: 0;
  border: 1px solid var(--slate-border); z-index: 2;
}

.card-icon  { font-size: 1.7rem; margin-bottom: 12px; }
.card-label { font-size: 0.66rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.55; margin-bottom: 8px; }
.card-value { font-family: var(--font-display); font-size: 1.4rem; font-weight: 400; line-height: 1.2; }
.card-sub   { font-size: 0.78rem; opacity: 0.6; margin-top: 8px; font-weight: 300; }
.hero-card-sage .card-label { color: var(--on-dark-muted); }
.hero-card-sage .card-value { color: var(--on-dark); }
.hero-card-sage .card-sub   { color: var(--on-dark-muted); }

/* ══════════════════════════════════════════
   BANDEAU ESPACE CLIENT
══════════════════════════════════════════ */
.client-access-banner {
  background: var(--slate-mid);
  border-bottom: 2px solid var(--terra);
  padding: 26px 0;
}
.client-banner-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.client-banner-text { font-size: 0.9rem; font-weight: 300; color: var(--on-dark-muted); }
.client-banner-text strong { font-weight: 600; color: var(--on-dark); }

.btn-client-access {
  display: inline-flex; align-items: center; gap: 10px; padding: 11px 28px;
  background: transparent; border: 1.5px solid var(--terra);
  color: var(--terra-light);
  border-radius: var(--radius-sm); font-family: var(--font-body);
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  text-decoration: none; transition: var(--transition); flex-shrink: 0;
}
.btn-client-access:hover { background: var(--terra); color: white; transform: translateY(-2px); box-shadow: var(--shadow-terra); }

@media (max-width: 640px) { .client-banner-inner { flex-direction: column; text-align: center; } }

/* ══════════════════════════════════════════
   SERVICES — fond crème
══════════════════════════════════════════ */
#services {
  padding: var(--section-pad) 0; background: var(--cream); position: relative;
}

#services::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--terra-dark) 0%, var(--terra) 40%, var(--copper) 70%, transparent 100%);
}

.services-header { text-align: center; margin-bottom: 72px; }
.services-header .section-subtitle { margin-inline: auto; }

.services-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--cream-border); border-radius: var(--radius-md); overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.service-card {
  background: var(--cream); padding: 44px 34px; position: relative;
  overflow: hidden; transition: background var(--transition); cursor: pointer;
  border-right: 1px solid var(--cream-border);
}
.service-card:last-child { border-right: none; }

.service-card::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 0; background: var(--terra); transition: height var(--transition);
}
.service-card:hover { background: var(--cream-warm); }
.service-card:hover::after { height: 2px; }

.service-bg-icon {
  position: absolute; bottom: -16px; right: -8px; font-size: 7rem;
  opacity: 0.04; pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
}
.service-card:hover .service-bg-icon { opacity: 0.07; transform: scale(1.08) rotate(-5deg); }

.service-icon   { font-size: 1.9rem; margin-bottom: 20px; display: block; }
.service-title  { font-family: var(--font-display); font-size: 1.36rem; font-weight: 400; margin-bottom: 14px; color: var(--charcoal); }
.service-resume { font-size: 0.87rem; font-weight: 300; color: var(--stone); line-height: 1.78; margin-bottom: 24px; }

.service-details { display: none; flex-direction: column; gap: 9px; margin-bottom: 20px; }
.service-card.expanded .service-details { display: flex; }

.service-detail-item {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.83rem; font-weight: 300; color: var(--stone);
}
.service-detail-item::before {
  content: ''; width: 4px; height: 4px; border-radius: 50%;
  background: var(--terra); flex-shrink: 0;
}

.service-toggle {
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--terra); display: flex; align-items: center; gap: 6px;
  transition: gap var(--transition); cursor: pointer;
  background: none; border: none; padding: 0; font-family: var(--font-body);
}
.service-toggle:hover { gap: 10px; }
.toggle-icon { font-size: 1rem; transition: transform var(--transition); }
.service-card.expanded .toggle-icon { transform: rotate(45deg); }

/* ══════════════════════════════════════════
   ÉQUIPE — ardoise moyen
══════════════════════════════════════════ */
#equipe {
  padding: var(--section-pad) 0; background: var(--slate-mid);
  overflow: hidden; position: relative;
}

/* Effet lumineux coin droit */
#equipe::after {
  content: ''; position: absolute; top: -20%; right: -10%;
  width: 50%; height: 140%;
  background: radial-gradient(ellipse at center, rgba(194, 85, 64, 0.05) 0%, transparent 65%);
  pointer-events: none;
}

.equipe-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; position: relative; z-index: 1; }

.equipe-legend { margin-top: 44px; display: flex; flex-direction: column; gap: 8px; }

.legend-item {
  display: flex; align-items: center; gap: 14px; padding: 12px 16px;
  background: rgba(28, 35, 48, 0.6); border: 1px solid var(--slate-border);
  border-radius: var(--radius-sm);
  transition: transform var(--transition), border-color var(--transition); cursor: default;
}
.legend-item:hover { transform: translateX(5px); border-color: var(--terra); }

.legend-dot   { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.legend-name  { font-weight: 500; font-size: 0.88rem; color: var(--on-dark); flex: 1; }
.legend-titre { font-size: 0.73rem; color: var(--on-dark-muted); letter-spacing: 0.04em; }

/* Cercle rotatif */
.team-circle-wrapper { display: flex; align-items: center; justify-content: center; position: relative; height: 500px; }
.team-orbit { position: relative; width: 420px; height: 420px; }

.orbit-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1px dashed rgba(194, 85, 64, 0.22);
  animation: orbitSpin 30s linear infinite;
}
.orbit-ring-2 {
  inset: 40px; border-color: rgba(184, 114, 72, 0.15);
  animation-duration: 20s; animation-direction: reverse;
}
@keyframes orbitSpin { to { transform: rotate(360deg); } }

.orbit-center { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 10; }

.orbit-center-avatar {
  width: 88px; height: 88px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 1.25rem; font-weight: 400; color: var(--charcoal);
  border: 2px solid var(--terra);
  box-shadow: 0 0 0 6px rgba(194, 85, 64, 0.1), var(--shadow-md);
  cursor: pointer; transition: transform var(--transition), box-shadow var(--transition); position: relative;
}
.orbit-center-avatar:hover { transform: scale(1.08); box-shadow: 0 0 0 8px rgba(194, 85, 64, 0.15), var(--shadow-lg); }

.orbit-center-label {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, calc(-50% + 60px));
  white-space: nowrap; text-align: center; pointer-events: none;
}
.orbit-center-label .name { font-weight: 600; font-size: 0.74rem; color: var(--on-dark); display: block; }
.orbit-center-label .role { font-size: 0.67rem; color: var(--terra-light); letter-spacing: 0.1em; text-transform: uppercase; }

.orbit-satellites { position: absolute; inset: 0; border-radius: 50%; animation: orbitSpin 30s linear infinite; }
.orbit-satellites:hover { animation-play-state: paused; }

.satellite { position: absolute; top: 50%; left: 50%; transform-origin: 0 0; }

.satellite-avatar {
  width: 60px; height: 60px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 0.92rem; font-weight: 400; color: var(--charcoal);
  border: 2px solid rgba(255,255,255,0.12); box-shadow: var(--shadow-md); cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  transform: translate(-50%, -50%) rotate(calc(var(--angle) * -1)); position: relative;
}
.satellite-avatar:hover { transform: translate(-50%, -50%) rotate(calc(var(--angle) * -1)) scale(1.18); box-shadow: var(--shadow-lg); z-index: 5; }

.member-tooltip {
  position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translateX(-50%);
  background: var(--slate-deep); color: var(--on-dark);
  padding: 8px 13px; border-radius: var(--radius-sm);
  font-size: 0.72rem; white-space: nowrap; pointer-events: none;
  opacity: 0; transition: opacity 0.2s; z-index: 20; text-align: center;
  border: 1px solid var(--slate-border);
  box-shadow: var(--shadow-md);
}
.member-tooltip::after {
  content: ''; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  border: 5px solid transparent; border-top-color: var(--slate-deep);
}
.satellite-avatar:hover .member-tooltip,
.orbit-center-avatar:hover .member-tooltip { opacity: 1; }
.member-tooltip .t-name { font-weight: 600; display: block; }
.member-tooltip .t-role { opacity: 0.55; font-size: 0.65rem; }

/* ══════════════════════════════════════════
   CONTACT — crème chaud
══════════════════════════════════════════ */
#contact { padding: var(--section-pad) 0; background: var(--cream-warm); position: relative; }

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

.info-blocks { margin-top: 48px; display: flex; flex-direction: column; gap: 22px; }

.info-block { display: flex; gap: 18px; }

.info-icon {
  width: 46px; height: 46px; border-radius: var(--radius-sm);
  background: var(--cream); border: 1px solid var(--cream-border);
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0;
}

.info-label { font-size: 0.66rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--stone-light); margin-bottom: 5px; }
.info-value { font-size: 0.93rem; color: var(--charcoal); font-weight: 500; }
.info-value a { color: var(--terra-dark); transition: color var(--transition); }
.info-value a:hover { color: var(--terra); }

.horaires-grid { display: grid; gap: 5px; margin-top: 8px; }

.horaire-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 9px 14px; border-radius: var(--radius-sm); font-size: 0.85rem;
}
.horaire-row:nth-child(odd) { background: var(--cream); }
.horaire-jours  { font-weight: 500; color: var(--charcoal); }
.horaire-heures { color: var(--stone); font-size: 0.8rem; font-weight: 300; }

#map {
  height: 220px; border-radius: var(--radius-md); overflow: hidden;
  margin-top: 28px; box-shadow: var(--shadow-sm); border: 1px solid var(--cream-border);
}

.form-title { font-family: var(--font-display); font-size: 2.1rem; font-weight: 400; color: var(--charcoal); margin-bottom: 34px; line-height: 1.2; }

.contact-form { display: flex; flex-direction: column; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 7px; }

.form-group label { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: var(--stone); }

.form-group input,
.form-group select,
.form-group textarea {
  padding: 13px 17px; border: 1.5px solid var(--cream-border);
  border-radius: var(--radius-sm); font-family: var(--font-body); font-size: 0.91rem;
  color: var(--charcoal); background: var(--cream);
  transition: border-color var(--transition), box-shadow var(--transition); outline: none; resize: vertical;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--stone-light); font-weight: 300; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--terra); box-shadow: 0 0 0 3px var(--terra-glow); background: white;
}
.form-group textarea { min-height: 128px; }

.form-rgpd {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 0.81rem; font-weight: 300; color: var(--stone); line-height: 1.6;
}
.form-rgpd input[type="checkbox"] { margin-top: 3px; flex-shrink: 0; width: 15px; height: 15px; accent-color: var(--terra); }

.form-submit { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }

.recaptcha-notice { font-size: 0.7rem; color: var(--stone-light); max-width: 280px; line-height: 1.65; font-weight: 300; }

.form-feedback { padding: 13px 17px; border-radius: var(--radius-sm); font-size: 0.87rem; display: none; }
.form-feedback.success { background: rgba(194, 85, 64, 0.08); color: var(--terra-dark); border: 1px solid rgba(194, 85, 64, 0.2); display: block; }
.form-feedback.error   { background: rgba(180, 50, 50, 0.08); color: #8A2A20; border: 1px solid rgba(180, 50, 50, 0.2); display: block; }

/* ══════════════════════════════════════════
   FOOTER — ardoise profond
══════════════════════════════════════════ */
#footer {
  background: var(--slate-deep); color: var(--on-dark-muted);
  padding: 64px 0 36px;
  border-top: 2px solid var(--terra-dark);
}

.footer-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 60px;
  margin-bottom: 48px; padding-bottom: 48px;
  border-bottom: 1px solid var(--slate-border);
}

.footer-logo { font-family: var(--font-display); font-size: 1.55rem; font-weight: 400; color: var(--on-dark); margin-bottom: 14px; }
.footer-logo span { color: var(--terra-light); font-style: italic; }
.footer-desc { font-size: 0.87rem; font-weight: 300; line-height: 1.88; max-width: 340px; }

.footer-socials { display: flex; gap: 10px; margin-top: 26px; }

.social-link {
  width: 36px; height: 36px; border-radius: var(--radius-sm);
  border: 1px solid var(--slate-border);
  display: flex; align-items: center; justify-content: center; font-size: 0.85rem;
  transition: background var(--transition), border-color var(--transition); color: var(--on-dark);
}
.social-link:hover { background: var(--terra); border-color: var(--terra); color: white; }

.footer-col-title { font-family: var(--font-display); font-size: 0.95rem; font-weight: 400; color: var(--on-dark); margin-bottom: 18px; letter-spacing: 0.04em; }

.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 0.84rem; font-weight: 300; color: var(--on-dark-muted); transition: color var(--transition), padding-left var(--transition); }
.footer-links a:hover { color: var(--terra-light); padding-left: 5px; }

.footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

.footer-copy { font-size: 0.76rem; font-weight: 300; color: rgba(154, 148, 136, 0.45); }

.footer-legal { display: flex; gap: 22px; }
.footer-legal a { font-size: 0.76rem; font-weight: 300; color: rgba(154, 148, 136, 0.45); transition: color var(--transition); }
.footer-legal a:hover { color: var(--terra-light); }

/* ══════════════════════════════════════════
   ANIMATIONS
══════════════════════════════════════════ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.62s ease, transform 0.62s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.10s; }
.reveal-delay-2 { transition-delay: 0.20s; }
.reveal-delay-3 { transition-delay: 0.30s; }
.reveal-delay-4 { transition-delay: 0.40s; }

/* ══════════════════════════════════════════
   RESPONSIVE TABLETTE ≤1024px
══════════════════════════════════════════ */
@media (max-width: 1024px) {
  :root { --section-pad: 72px; --gutter: 28px; }
  #hero { grid-template-columns: 1fr; min-height: auto; padding-top: 100px; }
  .hero-visual { display: none; }
  .hero-content { padding: 64px 0; }
  .hero-stats { flex-wrap: wrap; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .equipe-inner { grid-template-columns: 1fr; gap: 48px; }
  .team-orbit { width: 360px; height: 360px; }
  .team-circle-wrapper { height: 440px; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-top > *:first-child { grid-column: 1 / -1; }
}

/* ══════════════════════════════════════════
   RESPONSIVE MOBILE ≤640px
══════════════════════════════════════════ */
@media (max-width: 640px) {
  :root { --section-pad: var(--section-pad-sm); --gutter: 20px; }
  .nav-links { display: none; }
  .burger    { display: flex; }
  .hero-title { font-size: 2.8rem; }
  .stat-item  { padding-right: 22px; margin-right: 22px; }
  .services-grid { grid-template-columns: 1fr; }
  .form-row  { grid-template-columns: 1fr; }
  .team-orbit { width: 300px; height: 300px; }
  .team-circle-wrapper { height: 380px; }
  .satellite-avatar    { width: 50px; height: 50px; font-size: 0.8rem; }
  .orbit-center-avatar { width: 70px; height: 70px; font-size: 1rem; }
  .footer-top    { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .hero-actions  { flex-direction: column; align-items: flex-start; }
}

/* ══════════════════════════════════════════
   SCROLLBAR & SÉLECTION
══════════════════════════════════════════ */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--slate-deep); }
::-webkit-scrollbar-thumb { background: var(--slate-soft); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--terra-dark); }
::selection { background: rgba(194, 85, 64, 0.22); color: var(--charcoal); }


/* ══════════════════════════════════════════
   EXTENSIONS WWW — Bouton connexion & actualités
══════════════════════════════════════════ */

/* Bouton "Espace Client" dans la nav */
.nav-connect {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: transparent;
  border: 1.5px solid var(--terra);
  color: var(--terra);
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
}
.nav-connect:hover {
  background: var(--terra);
  color: white;
  transform: translateY(-1px);
  box-shadow: var(--shadow-terra);
}
.nav-connect .connect-icon { font-size: 0.9rem; }

/* Version scrolled (fond sombre de la nav) */
#navbar.scrolled .nav-connect {
  border-color: var(--terra-light);
  color: var(--terra-light);
}
#navbar.scrolled .nav-connect:hover {
  background: var(--terra);
  border-color: var(--terra);
  color: white;
}

/* Lien actualités dans le footer */
.footer-actu-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--terra-light);
  font-size: 0.84rem;
  transition: color var(--transition);
}
.footer-actu-link:hover { color: var(--terra-pale); }

/* Hero — badge sécurité espace client */
.hero-connect-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  padding: 12px 20px;
  background: rgba(194, 85, 64, 0.08);
  border: 1px solid rgba(194, 85, 64, 0.20);
  border-radius: var(--radius-md);
  font-size: 0.78rem;
  color: var(--on-dark-muted);
}
.hero-connect-badge strong { color: var(--terra-light); }
.hero-connect-badge .lock-icon { font-size: 1rem; }

/* Bouton connexion hero (plus grand que nav) */
.btn-connect {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 34px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: var(--transition);
  background: var(--terra);
  color: white;
  text-decoration: none;
}
.btn-connect:hover {
  background: var(--terra-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-terra);
}

/* Section CTA Espace Client */
#espace-cta {
  background: var(--slate-deep);
  padding: var(--section-pad-sm) 0;
}
.espace-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.espace-cta-text .section-tag { color: var(--terra-light); }
.espace-cta-text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 400;
  color: var(--on-dark);
  line-height: 1.2;
  margin-top: 10px;
}
.espace-cta-text h2 em {
  font-style: italic;
  color: var(--terra-light);
}
.espace-cta-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 18px;
}
.espace-cta-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.84rem;
  color: var(--on-dark-muted);
}
.espace-cta-feature::before {
  content: '✓';
  color: var(--terra-light);
  font-weight: 700;
}
.espace-cta-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.espace-cta-secure {
  font-size: 0.72rem;
  color: var(--on-dark-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

@media (max-width: 768px) {
  .espace-cta-inner {
    flex-direction: column;
    text-align: center;
  }
  .espace-cta-feature { justify-content: center; }
}

/* ══════════════════════════════════════════
   WIDGET MÉTÉO — thème sombre
══════════════════════════════════════════ */
.weather-card {
  margin-top: 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--slate-border);
  background: linear-gradient(135deg, var(--slate-mid) 0%, var(--slate-deep) 100%);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  position: relative;
}
.weather-card::before {
  content: '';
  position: absolute;
  top: -30px; right: -30px;
  width: 110px; height: 110px;
  border-radius: 50%;
  background: var(--terra-glow);
  pointer-events: none;
}
.weather-now {
  display: flex;
  align-items: center;
  gap: 14px;
}
.weather-icon-big {
  font-size: 2.4rem;
  line-height: 1;
  flex-shrink: 0;
}
.weather-temp-block {}
.weather-temp {
  font-size: 1.9rem;
  font-weight: 600;
  color: var(--on-dark);
  line-height: 1;
  font-family: var(--font-body);
}
.weather-desc {
  font-size: 0.75rem;
  color: var(--on-dark-muted);
  margin-top: 3px;
  text-transform: capitalize;
}
.weather-meta {
  display: flex;
  gap: 14px;
  font-size: 0.7rem;
  color: var(--on-dark-muted);
  border-top: 1px solid var(--slate-border);
  padding-top: 11px;
}
.weather-meta-item { display: flex; align-items: center; gap: 5px; }
.weather-meta-icon { font-size: 0.8rem; }
.weather-forecast {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.forecast-day {
  background: var(--slate-border2);
  border: 1px solid var(--slate-border);
  border-radius: var(--radius-sm);
  padding: 9px 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
}
.forecast-label {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
}
.forecast-icon { font-size: 1.15rem; line-height: 1; }
.forecast-temps {
  font-size: 0.72rem;
  color: var(--on-dark);
}
.forecast-temps .hi { font-weight: 600; }
.forecast-temps .lo { color: var(--on-dark-muted); }
.weather-location {
  font-size: 0.65rem;
  color: var(--on-dark-muted);
  display: flex;
  align-items: center;
  gap: 4px;
  border-top: 1px solid var(--slate-border);
  padding-top: 10px;
}
.weather-loading, .weather-error {
  text-align: center;
  color: var(--on-dark-muted);
  font-size: 0.8rem;
  padding: 12px 0;
}
.weather-sun {
  display: flex;
  gap: 16px;
  font-size: 0.7rem;
  color: var(--on-dark-muted);
}
.weather-sun-item { display: flex; align-items: center; gap: 5px; }
@media (max-width: 640px) {
  .weather-card { padding: 14px 16px; }
  .weather-temp { font-size: 1.6rem; }
  .weather-forecast { grid-template-columns: repeat(3,1fr); gap: 6px; }
}
