/* ═══════════════════════════════════════════════
   ALTITUDE RÉNOVATION — Feuille de style globale
   Thème clair / Accent bleu ciel montagne
════════════════════════════════════════════════ */

@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Outfit:wght@300;400;500;600&display=swap");

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

/* ─── VARIABLES ─── */
:root {
  /* Couleurs */
  --bleu:       #2e7fbe;
  --bleu-clair: #5aaee0;
  --bleu-pale:  #e8f4fc;
  --bleu-mid:   #b8ddf5;
  --blanc:      #ffffff;
  --creme:      #f7f9fc;
  --gris-clair: #eef2f7;
  --gris-texte: #6b7b8d;
  --gris-bord:  #dce6ef;
  --noir:       #1a2535;
  --noir-doux:  #2d3f54;

  /* Typographie */
  --ff-titre: "Playfair Display", Georgia, serif;
  --ff-corps: "Outfit", system-ui, sans-serif;

  /* Espacements & décor */
  --gap:         clamp(1.5rem, 4vw, 3rem);
  --rayon:       10px;
  --ombre-carte: 0 2px 16px rgba(46, 127, 190, 0.1);
  --ombre-btn:   0 4px 14px rgba(46, 127, 190, 0.25);
}

/* ─── BASE ─── */
html {
  scroll-behavior: smooth;
  font-size: 16px;
}
body {
  font-family: var(--ff-corps);
  background: var(--blanc);
  color: var(--noir-doux);
  line-height: 1.7;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
ul {
  list-style: none;
}

/* ─── TYPOGRAPHIE ─── */
h1,
h2,
h3,
h4 {
  font-family: var(--ff-titre);
  line-height: 1.2;
  color: var(--noir);
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
h4 {
  font-size: 1rem;
  font-family: var(--ff-corps);
  font-weight: 600;
}
p {
  color: var(--gris-texte);
  max-width: 65ch;
}

/* ─── MISE EN PAGE ─── */
.wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--gap);
}
.section {
  padding: clamp(3.5rem, 7vw, 6rem) var(--gap);
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

/* ─── COMPOSANTS ─── */

/* Étiquette de section */
.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--bleu);
  margin-bottom: 0.6rem;
}

/* Boutons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--ff-corps);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}
.btn-primary {
  background: var(--bleu);
  color: var(--blanc);
  box-shadow: var(--ombre-btn);
}
.btn-primary:hover {
  background: var(--bleu-clair);
  transform: translateY(-1px);
}
.btn-outline {
  background: var(--blanc);
  color: var(--bleu);
  border: 1.5px solid var(--bleu);
}
.btn-outline:hover {
  background: var(--bleu-pale);
}
.btn-blanc {
  background: var(--blanc);
  color: var(--bleu);
  font-weight: 700;
}
.btn-blanc:hover {
  background: var(--bleu-pale);
}

/* Cartes */
.card {
  background: var(--blanc);
  border: 1px solid var(--gris-bord);
  border-radius: var(--rayon);
  overflow: hidden;
  box-shadow: var(--ombre-carte);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(46, 127, 190, 0.15);
}
.card-body {
  padding: 1.5rem;
}
.card-tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bleu);
  margin-bottom: 0.5rem;
}
.card h3 { margin-bottom: 0.5rem; }
.card p  { font-size: 0.9rem; }

/* ─── NAVIGATION ─── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gris-bord);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--gap);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.nav-logo img {
  height: 44px;
  width: auto;
}
.nav-logo-text {
  font-family: var(--ff-titre);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--noir);
  line-height: 1.1;
}
.nav-logo-text span {
  color: var(--bleu);
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-menu a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--noir-doux);
  padding: 0.45rem 0.85rem;
  border-radius: 6px;
  transition:
    background 0.18s,
    color 0.18s;
}
.nav-menu a:not(.nav-cta):hover,
.nav-menu a:not(.nav-cta).active {
  background: var(--bleu-pale);
  color: var(--bleu);
}
.nav-menu .nav-cta {
  background: var(--bleu);
  color: var(--blanc);
  padding: 0.5rem 1.2rem;
  font-weight: 600;
  box-shadow: var(--ombre-btn);
}
.nav-menu .nav-cta:hover {
  background: var(--bleu-clair);
  color: var(--blanc);
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--noir);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ─── BARRE MOBILE STICKY ─── */
.mobile-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--blanc);
  border-top: 1px solid var(--gris-bord);
  padding: 0.6rem 1rem;
  gap: 0.75rem;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
}
.mobile-bar a {
  flex: 1;
  text-align: center;
  padding: 0.7rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
}
.mobile-bar .mb-tel   { background: var(--bleu); color: var(--blanc); }
.mobile-bar .mb-devis { border: 1.5px solid var(--bleu); color: var(--bleu); }

/* ─── PAGE HERO (pages internes) ─── */
.page-hero {
  background: linear-gradient(120deg, var(--noir) 0%, var(--noir-doux) 100%);
  padding: 6rem var(--gap) 4rem;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    transparent 60%,
    rgba(46, 127, 190, 0.15) 100%
  );
  pointer-events: none;
}
.page-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.page-hero h1 {
  color: var(--blanc);
  margin-bottom: 0.75rem;
}
.page-hero p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.05rem;
  max-width: 55ch;
}
.page-hero .eyebrow   { color: var(--bleu-clair); }
.page-hero-inner .btn { margin-top: 1.5rem; }

/* ─── BANDE CTA ─── */
.cta-strip {
  background: linear-gradient(120deg, var(--bleu) 0%, #1a6aaa 100%);
  color: var(--blanc);
  text-align: center;
  padding: 4rem var(--gap);
}
.cta-strip h2 {
  color: var(--blanc);
  margin-bottom: 0.5rem;
}
.cta-strip p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 50ch;
  margin: 0 auto 2rem;
}

/* ─── SECTIONS PARTAGÉES ─── */
.avantages-section { background: var(--creme); }

/* ─── FOOTER ─── */
.site-footer {
  background: var(--noir);
  color: rgba(255, 255, 255, 0.7);
  padding: 4rem var(--gap) 2rem;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.2fr;
  gap: 3rem;
}
.footer-brand p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.55);
  max-width: 30ch;
  margin-top: 0.75rem;
}
.footer-logo-text {
  font-family: var(--ff-titre);
  font-size: 1.3rem;
  color: var(--blanc);
}
.footer-logo-text span {
  color: var(--bleu-clair);
}
.footer-col h4 {
  font-family: var(--ff-corps);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 1rem;
}
.footer-col a {
  display: block;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 0.5rem;
  transition: color 0.18s;
}
.footer-col a:hover {
  color: var(--blanc);
}
.footer-contact-item {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}
.footer-contact-item .ico {
  font-size: 1rem;
  margin-top: 0.1rem;
}
.footer-contact-item a,
.footer-contact-item span {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
  transition: color 0.18s;
}
.footer-contact-item a:hover {
  color: var(--blanc);
}
.footer-bottom {
  max-width: 1200px;
  margin: 2.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.3);
}

/* ─── ANIMATIONS ─── */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.5s,
    transform 0.5s;
}
.reveal.revealed {
  opacity: 1;
  transform: none;
}

/* ─── AJUSTEMENTS ─── */
.services-detail #services-titre { margin-bottom: 2.5rem; }
#equipe-titre                    { margin-bottom: 0.5rem; }
.equipe-intro                    { margin-bottom: 0; }
.avantages-section .grid-2       { align-items: center; gap: 4rem; }
.avantages-text                  { margin-top: 1rem; max-width: 100%; }
.corde-desc                      { font-size: 1.05rem; max-width: 100%; }
.corde-tagline                   { margin-top: 0.75rem; font-weight: 600; color: var(--bleu); max-width: 100%; }
.avantages-intro .btn            { margin-top: 1.5rem; }
.av-section-label {
  margin-bottom: 1.5rem;
  font-family: var(--ff-corps);
  font-size: 1rem;
  font-weight: 600;
  color: var(--gris-texte);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.section-cta          { text-align: center; margin-top: 2.5rem; }
.section-intro-center { text-align: center; max-width: 600px; margin: 0 auto; }

/* ─── RESPONSIVE ─── */
@media (max-width: 960px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .hamburger {
    display: flex;
  }
  .nav-menu {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--blanc);
    border-bottom: 1px solid var(--gris-bord);
    padding: 1rem var(--gap);
    gap: 0.25rem;
  }
  .nav-menu.open {
    display: flex;
  }
  .nav-menu a {
    padding: 0.7rem 1rem;
  }
  .mobile-bar {
    display: flex;
  }
  body {
    padding-bottom: 68px;
  }
}

@media (max-width: 480px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }
}
