/* =========================
   VARIABLES / CHARTE
========================= */

:root {
  --c-primary: #5A9C97;
  --c-primary-700: #4a8a85;
  --c-accent: #7DB6B1;

  --c-bg: #ffffff;
  --c-bg-soft: #f9f4ec;
  --c-bg-alt: #f3eadf;

  --c-text: #2F3E3D;
  --c-text-soft: #4a5b59;

  --c-white: #ffffff;
  --c-border-light: rgba(255, 255, 255, 0.14);

  --ff-title: 'Cormorant Garamond', serif;
  --ff-body: 'Inter', sans-serif;

  --container: 1100px;

  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 18px;
  --radius-pill: 999px;

  --shadow-sm: 0 6px 18px rgba(47, 62, 61, 0.08);
  --shadow-md: 0 12px 28px rgba(47, 62, 61, 0.12);
  --shadow-lg: 0 16px 32px rgba(47, 62, 61, 0.14);

  --sp-1: 8px;
  --sp-2: 12px;
  --sp-3: 16px;
  --sp-4: 24px;
  --sp-5: 40px;
  --sp-6: 70px;

  --header-height: 82px;
}

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

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--ff-body);
  color: var(--c-text);
  background: var(--c-bg);
}

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

a {
  color: inherit;
}

.container {
  max-width: var(--container);
  width: calc(100% - 40px);
  margin: 0 auto;
}

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

h1,
h2,
h3,
h4 {
  margin: 0 0 var(--sp-3) 0;
  font-family: var(--ff-title);
  color: var(--c-text);
  letter-spacing: 0.4px;
}

h1 {
  font-size: clamp(2.6rem, 5vw, 4.6rem);
  line-height: 1.05;
}

h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.15;
}

h3 {
  font-size: 1.6rem;
  line-height: 1.2;
}

p {
  margin: 0 0 var(--sp-3) 0;
  line-height: 1.8;
  color: var(--c-text-soft);
}

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

.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: var(--radius-pill);
  text-decoration: none !important;
  font-weight: 600;
  font-size: 0.96rem;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--c-primary);
  color: var(--c-white);
}

.btn-primary:hover {
  background: var(--c-primary-700);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.14);
  color: var(--c-white);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.22);
}

.btn-light {
  background: var(--c-white);
  color: var(--c-primary);
}

.btn-light:hover {
  background: #f5f5f5;
}

/* =========================
   HEADER PREMIUM
========================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(75, 67, 63, 0.98);
  backdrop-filter: blur(6px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  position: relative;
}

.logo {
  font-family: var(--ff-title);
  font-size: 2.1rem;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--c-white);
  text-decoration: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
}

.logo:hover,
.logo:focus,
.logo:active {
  text-decoration: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.main-nav a {
  color: var(--c-white);
  text-decoration: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
  font-size: 0.96rem;
  font-weight: 500;
  letter-spacing: 0.4px;
  transition: opacity 0.2s ease;
}

.main-nav a:hover,
.main-nav a:focus,
.main-nav a:active,
.main-nav a.active {
  text-decoration: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
  opacity: 0.82;
}

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  margin: 5px 0;
  background: var(--c-white);
  border-radius: 2px;
}

/* =========================
   HERO PRINCIPAL
========================= */

.hero-premium {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center center;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(35, 48, 47, 0.72), rgba(35, 48, 47, 0.30)),
    linear-gradient(to top, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.08));
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  padding: 90px 0;
  color: var(--c-white);
}

.hero-kicker {
  margin: 0 0 14px 0;
  font-size: 0.95rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--c-bg-alt);
}

.hero-content h1 {
  color: var(--c-white);
  margin-bottom: 22px;
}

.hero-text {
  max-width: 620px;
  margin: 0 0 32px 0;
  font-size: 1.08rem;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.92);
}

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

/* =========================
   HERO SECONDAIRE
========================= */

.hero-secondary {
  position: relative;
  min-height: 340px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.hero-secondary-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(35, 48, 47, 0.65),
    rgba(35, 48, 47, 0.35)
  );
}

.hero-secondary-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
  padding: 60px 0;
  color: var(--c-white);
}

.hero-secondary-kicker {
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 0 0 10px 0;
  color: var(--c-bg-alt);
}

.hero-secondary-content h1 {
  color: var(--c-white);
  margin-bottom: 15px;
  font-size: clamp(2rem, 4vw, 3rem);
}

.hero-secondary-text {
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

/* =========================
   SECTIONS
========================= */

.section {
  padding: var(--sp-6) 0;
}

.section--alt {
  background: var(--c-bg-alt);
}

.section--soft {
  background: var(--c-bg-soft);
}

.section-header {
  max-width: 760px;
  margin: 0 auto var(--sp-5);
  text-align: center;
}

.section-header p {
  margin-bottom: 0;
}

/* =========================
   CARTES GÉNÉRIQUES
========================= */

.card {
  background: var(--c-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.card__img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.card__body {
  padding: var(--sp-4);
  text-align: center;
}

/* =========================
   GRILLES
========================= */

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

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

/* =========================
   BLOG GRID / BLOG CARD
========================= */

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

.blog-card {
  background: var(--c-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.blog-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.blog-content {
  padding: 20px;
}

.blog-content h2 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.blog-link {
  text-decoration: none;
  font-weight: 500;
  color: var(--c-primary);
  transition: color 0.2s ease;
}

.blog-link:hover {
  color: var(--c-primary-700);
}

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

.site-footer {
  background: rgba(75, 67, 63, 0.98);
  color: rgba(255, 255, 255, 0.92);
  padding: 60px 0 24px;
}

.footer-premium {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 50px;
  align-items: start;
}

.footer-brand {
  max-width: 320px;
}

.footer-logo {
  width: 110px;
  height: auto;
  margin-bottom: 16px;
}

.footer-tagline {
  margin: 0 0 12px 0;
  font-family: var(--ff-title);
  font-size: 1.8rem;
  color: var(--c-white);
}

.footer-text {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.78);
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.footer-column h3 {
  margin: 0 0 14px 0;
  font-size: 1.35rem;
  color: var(--c-white);
}

.footer-column p {
  margin: 0 0 10px 0;
  font-size: 0.97rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.82);
}

.footer-column a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.footer-column a:hover {
  opacity: 0.8;
}

.footer-socials {
  display: flex;
  gap: 14px;
  align-items: center;
}

.footer-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  transition: transform 0.2s ease, background 0.2s ease;
}

.footer-socials a:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.14);
}

.footer-bottom {
  padding-top: 22px;
  border-top: 1px solid var(--c-border-light);
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.68);
}

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

.text-center {
  text-align: center;
}

.rounded {
  border-radius: var(--radius);
}

.shadow {
  box-shadow: var(--shadow-sm);
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 980px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .footer-brand {
    max-width: none;
    text-align: center;
  }

  .footer-logo {
    margin: 0 auto 16px;
  }

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

  .blog-grid,
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .container {
    width: calc(100% - 24px);
  }

  .menu-toggle {
    display: block;
    position: relative;
    z-index: 1002;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    right: 0;
    width: min(280px, calc(100vw - 24px));
    padding: 20px;
    border-radius: 16px;
    background: var(--c-primary);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.16);
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    z-index: 1001;
  }

  .main-nav.open {
    display: flex;
  }

  .hero-premium {
    min-height: 68vh;
    background-position: center;
  }

  .hero-content {
    padding: 70px 0;
  }

  .hero-text {
    font-size: 1rem;
  }

  .hero-secondary {
    min-height: 260px;
  }

  .hero-secondary-content {
    padding: 40px 0;
  }

  .hero-secondary-text {
    font-size: 0.95rem;
  }

  .grid-2,
  .grid-3,
  .blog-grid,
  .footer-columns {
    grid-template-columns: 1fr;
  }

  .footer-columns {
    text-align: center;
  }

  .footer-socials {
    justify-content: center;
  }

  .section {
    padding: 45px 0;
  }
}