/* ═══════════════════════════════════════════
   CLUS'EAU – Feuille de style principale
   Design system · Header · Footer · Base
═══════════════════════════════════════════ */

/* ── VARIABLES ── */
:root {
  /* Blues (logo) */
  --blue-deep:    #1a3a5c;
  --blue-mid:     #1f5c8b;
  --blue-fresh:   #2980b9;
  --blue-light:   #7ab8d9;
  --blue-pale:    #daeef9;
  /* Greens (logo) */
  --green-deep:   #1a4a2e;
  --green-mid:    #2e7d4f;
  --green-fresh:  #3aaa5c;
  --green-light:  #6fcc8a;
  --green-pale:   #d6f5e0;
  /* Neutrals */
  --cream:        #f5f8fc;
  --text-dark:    #0f1e2e;
  --text-mid:     #2c3e50;
  --text-soft:    #5a7a8a;
  --border:       rgba(31,92,139,0.15);
}

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

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--text-dark);
  font-size: 16px;
  line-height: 1.7;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  color: var(--blue-deep);
  line-height: 1.25;
}

a { color: inherit; }

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

/* ── HEADER ── */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245,248,252,0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  height: 68px;
}

.logo-wrap {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-wrap img {
  height: 52px;
  width: auto;
  max-width: 200px;
  display: block;
  object-fit: contain;
}

nav {
  display: flex;
  gap: 8px;
  align-items: center;
}

nav a {
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--text-mid);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 20px;
  transition: background 0.18s, color 0.18s;
  white-space: nowrap;
}

nav a:hover {
  background: var(--blue-pale);
  color: var(--blue-deep);
}

nav .btn-nav {
  background: var(--blue-mid);
  color: #fff;
  font-weight: 500;
  padding: 8px 18px;
}

nav .btn-nav:hover {
  background: var(--blue-deep);
  color: #fff;
}

/* Burger menu (mobile) */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--blue-deep);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── FOOTER ── */
footer {
  background: #0f2033;
  padding: 3.5rem 5rem 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-brand img {
  background: rgba(255,255,255,0.92);
  border-radius: 8px;
  padding: 6px 10px;
}

.footer-tagline {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
}

.footer-contact-quick {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.25rem;
}

.footer-phone {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--green-light) !important;
  text-decoration: none;
}
.footer-phone:hover { color: #fff !important; }

.footer-mail,
.footer-location {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer-col-title {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-light);
  font-weight: 500;
  margin-bottom: 0.5rem;
  display: block;
}

.footer-links a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color 0.18s;
  line-height: 1.5;
}

.footer-links a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-bottom p {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
}

.footer-bottom a {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  transition: color 0.18s;
}

.footer-bottom a:hover { color: var(--green-light); }

/* ── UTILITAIRES COMMUNS ── */
.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 5rem 5rem;
}

.section-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-fresh);
  font-weight: 500;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-eyebrow::before {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--blue-fresh);
  border-radius: 2px;
}

.section-title {
  font-size: 2rem;
  color: var(--blue-deep);
  margin-bottom: 2.5rem;
}

.btn-primary {
  display: inline-block;
  background: var(--blue-mid);
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 13px 28px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s, transform 0.1s;
}

.btn-primary:hover {
  background: var(--blue-deep);
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--blue-mid);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 12px 24px;
  border-radius: 6px;
  border: 1.5px solid var(--blue-mid);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.btn-secondary:hover { background: var(--blue-pale); }

/* ── COOKIE BANNER ── */
#cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--blue-deep);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 9999;
  max-width: 560px;
  width: calc(100% - 3rem);
  flex-wrap: wrap;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
}

#cookie-banner p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.65);
  flex: 1;
  min-width: 200px;
}

#cookie-banner .cookie-btns { display: flex; gap: 8px; }

#accept-cookies, #decline-cookies {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 7px 16px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: background 0.18s;
}

#accept-cookies { background: var(--green-fresh); color: #fff; }
#accept-cookies:hover { background: var(--green-mid); }
#decline-cookies { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.6); }
#decline-cookies:hover { background: rgba(255,255,255,0.14); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  header { padding: 0 1.25rem; }

  .burger { display: flex; }

  nav {
    display: none;
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: rgba(245,248,252,0.98);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.25rem 1.5rem;
    gap: 4px;
    z-index: 99;
  }

  nav.open { display: flex; }

  nav a {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.95rem;
  }

  nav .btn-nav {
    text-align: center;
    margin-top: 6px;
  }

  footer { padding: 3rem 1.5rem 0; }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom { flex-direction: column; text-align: center; }
  .container { padding: 3rem 1.5rem; }
}

@media (min-width: 901px) and (max-width: 1100px) {
  header { padding: 0 1.5rem; }
  footer { padding: 3rem 2.5rem 0; }
  .container { padding: 4rem 2.5rem; }
}
/* ══════════════════════════════════════
   PAGES ARTICLES — styles communs
   À ajouter à la fin de styles.css
══════════════════════════════════════ */

.article-page-hero {
  background: var(--blue-deep);
  padding: 4rem 5rem 3rem;
  position: relative;
  overflow: hidden;
}
.article-page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 80% at 90% 50%, rgba(41,128,185,0.35) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 10% 80%, rgba(58,170,92,0.2) 0%, transparent 60%);
}
.article-page-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 860px;
  margin: 0 auto;
}
.article-page-hero .back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  margin-bottom: 1.5rem;
  transition: color 0.18s;
}
.article-page-hero .back-link:hover { color: rgba(255,255,255,0.9); }
.article-page-hero .article-tag-hero {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-light);
  margin-bottom: 0.75rem;
}
.article-page-hero h1 {
  font-size: clamp(1.7rem, 3.5vw, 2.6rem);
  color: #fff;
  margin-bottom: 1rem;
  line-height: 1.25;
}
.article-page-hero .article-intro {
  font-size: 1rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.8;
  max-width: 640px;
}

/* Corps de l'article */
.article-body-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 4rem 5rem;
}

.article-highlight {
  background: var(--blue-pale);
  border-left: 4px solid var(--blue-fresh);
  border-radius: 0 10px 10px 0;
  padding: 1rem 1.4rem;
  margin-bottom: 2rem;
  font-size: 0.92rem;
  color: var(--text-mid);
  line-height: 1.75;
}

.article-body-wrap h2 {
  font-size: 1.3rem;
  color: var(--blue-deep);
  margin: 2.5rem 0 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--blue-pale);
}
.article-body-wrap h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--blue-mid);
  margin: 1.5rem 0 0.5rem;
}
.article-body-wrap p {
  font-size: 0.93rem;
  color: var(--text-soft);
  line-height: 1.85;
  margin-bottom: 0.75rem;
}
.article-body-wrap ul {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.article-body-wrap ul li {
  font-size: 0.9rem;
  color: var(--text-soft);
  padding-left: 1.4rem;
  position: relative;
  line-height: 1.65;
}
.article-body-wrap ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--green-fresh);
  font-size: 0.85rem;
}
.article-tip {
  background: var(--green-pale);
  border-left: 3px solid var(--green-fresh);
  border-radius: 0 8px 8px 0;
  padding: 0.9rem 1.2rem;
  font-size: 0.88rem;
  color: var(--green-deep);
  line-height: 1.65;
  margin: 1.5rem 0;
}
.article-dl-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue-pale);
  color: var(--blue-deep);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none;
  border: 1px solid rgba(31,92,139,0.2);
  margin-bottom: 2rem;
  transition: background 0.18s;
}
.article-dl-link:hover { background: #c3dff0; }

.article-cta-box {
  background: var(--blue-deep);
  border-radius: 14px;
  padding: 2rem;
  margin-top: 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.article-cta-box p {
  color: rgba(255,255,255,0.65) !important;
  font-size: 0.92rem !important;
  margin: 0 !important;
}
.article-cta-box a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green-fresh);
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 11px 22px;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s;
}
.article-cta-box a:hover { background: var(--green-mid); }

@media (max-width: 900px) {
  .article-page-hero { padding: 3rem 1.5rem 2.5rem; }
  .article-body-wrap { padding: 3rem 1.5rem; }
  .article-cta-box { flex-direction: column; text-align: center; }
}
@media (min-width: 901px) and (max-width: 1100px) {
  .article-page-hero { padding: 4rem 2.5rem 3rem; }
  .article-body-wrap { padding: 3.5rem 2.5rem; }
}
