/* ================================
   ROOT VARIABLES
   ================================ */
:root {
  --color-primary:  #6b1a1a;
  --color-accent:   #34783d;
  --color-bg:       #F7F8FC;
  --color-text:     #1C1C2E;
  --color-white:    #FFFFFF;

  --font-heading: 'Sora', sans-serif;
  --font-body:    'Source Serif 4', serif;

  --header-height: 70px;
  --container-max: 1200px;
  --radius:        8px;
  --transition:    0.25s ease;
}

/* ================================
   RESET & BASE
   ================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  min-height: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

main {
  flex: 1 0 auto;
}

/* ================================
   HEADER
   ================================ */
#site-header {
  padding: 5px;
  position: relative;
  z-index: 200;
  background: var(--color-white);
  height: var(--header-height);
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  width: 100%;
}

#site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.logo-abc {
  color: var(--color-accent);
}

.logo-text {
  color: var(--color-primary);
}

/* Nav */
#main-nav > ul {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
}

#main-nav > ul > li > a {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-text);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
}

#main-nav > ul > li > a:hover {
  color: var(--color-primary);
  background: rgba(26, 58, 107, 0.07);
}

/* Adhérer button */
.btn-nav {
  background: var(--color-accent) !important;
  color: var(--color-white) !important;
  padding: 0.5rem 1.1rem !important;
  border-radius: 50px !important;
}

.btn-nav:hover {
  background: var(--color-primary) !important;
}

/* ================================
   DROPDOWN
   ================================ */
.has-dropdown {
  position: relative;
}

.has-dropdown::before {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 8px;
  z-index: 101;
}

.dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  min-width: 220px;
  padding: 0.5rem 0;
  z-index: 100;
}

.has-dropdown:hover .dropdown {
  display: block;
}

.dropdown li a {
  display: block;
  padding: 0.6rem 1.2rem;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: var(--color-text);
  transition: background var(--transition), color var(--transition);
}

.dropdown li a:hover {
  background: var(--color-bg);
  color: var(--color-primary);
}

/* ================================
   MOBILE NAV
   ================================ */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--color-primary);
}

.nav-backdrop {
  display: none;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: block;
    color: var(--color-primary);
    background: none;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    z-index: 202;
    position: relative;
  }

  #main-nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--color-white);
    padding: 1rem 1.5rem 1.5rem;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    z-index: 201;
  }

  #main-nav.open { display: block; }

  /* nav backdrop — mobile only */
  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 99;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
  }
  .nav-backdrop--visible {
    opacity: 1;
    pointer-events: auto;
  }

  #main-nav > ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }

  #main-nav > ul > li { width: 100%; }

  #main-nav > ul > li > a {
    display: block;
    padding: 0.75rem 0.5rem;
    border-bottom: 1px solid var(--color-bg);
  }

  .dropdown {
    position: static;
    box-shadow: none;
    padding-left: 1rem;
    display: block;
    border-left: 3px solid var(--color-accent);
    margin: 0.25rem 0 0.5rem;
  }
}

/* ================================
   FOOTER
   ================================ */
#site-footer {
  margin-top: auto;
  background: #0a3715;
  color: var(--color-white);
  padding: 1rem 0 0;
  padding-left: 1rem;
  flex-shrink: 0;
}

.footer-top {
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 1.5rem;
}

.footer-top .logo {
  display: inline-flex;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
}

.footer-top .logo-abc  { color: var(--color-accent); }
.footer-top .logo-text { color: var(--color-white); }

.footer-desc {
  font-size: 1.25rem;
  opacity: 0.6;
  max-width: 480px;
  line-height: 1.5;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.2rem;
  padding-bottom: 1.5rem;
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-white);
  margin-bottom: 0.8rem;
}

.footer-col ul li {
  margin-bottom: 0.4rem;
}

.footer-col ul li a,
.footer-col ul li span {
  font-size: 1rem;
  opacity: 0.55;
  transition: opacity var(--transition);
}

.footer-col ul li a:hover {
  opacity: 1;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 0.8rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-bottom p {
  font-size: 0.8rem;
  opacity: 0.4;
  margin-right: 10px;
}

.social-links {
  display: flex;
  gap: 1.5rem;
}

.social-links a {
  font-size: 0.82rem;
  opacity: 0.5;
  transition: opacity var(--transition);
}

.social-links a:hover {
  opacity: 1;
  color: var(--color-accent);
}

.social-box {
  display: inline-flex;
  width: 21px;
  height: 21px;
  align-items: center;
  justify-content: center;
  transition: opacity var(--transition);
}

.social-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.social-box:hover {
  opacity: 0.8;
}

/* Footer responsive */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
}

@media (max-width: 400px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ================================
   RESPONSIVE OVERFLOW & SAFETY
   ================================ */
html {
  overflow-x: hidden;
  max-width: 100%;
}

body {
  overflow-x: hidden;
  max-width: 100%;
}

img, video, embed, iframe {
  max-width: 100%;
  height: auto;
}

#site-header {
  max-width: 100%;
}

#site-header .container {
  max-width: 100%;
  padding-left: 10px;
  padding-right: 10px;
}

#main-nav > ul > li > a {
  white-space: nowrap;
}

@media (max-width: 1024px) {
  #main-nav > ul {
    gap: 0.1rem;
  }
  #main-nav > ul > li > a {
    font-size: 0.82rem;
    padding: 0.5rem 0.5rem;
  }
}

@media (max-width: 900px) {
  #main-nav {
    max-width: 100%;
  }
  #main-nav > ul > li > a {
    white-space: normal;
  }
}

#site-footer {
  max-width: 100%;
  overflow: hidden;
  padding-right: 1rem;
}

.footer-grid {
  max-width: 100%;
}

.footer-col ul li a,
.footer-col ul li span {
  word-break: break-word;
}

/* ================================
   FOOTER ACCORDION (mobile)
   ================================ */
@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .footer-col {
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }

  .footer-col h4 {
    margin-bottom: 0;
    padding: 1rem 0.5rem;
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(255,255,255,0.1);
    position: relative;
  }

  .footer-col h4::after {
    content: "+";
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    opacity: 0.6;
    transition: transform 0.2s ease;
  }

  .footer-col.open h4::after {
    content: "\2212";
    transform: translateY(-50%) rotate(0deg);
  }

  .footer-col ul {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 0.5rem;
  }

  .footer-col.open ul {
    max-height: 300px;
    padding: 0.5rem 0.5rem 1rem;
  }
}

/* ================================
   CONSENT CHECKBOX LINKS
   ================================ */
.consent-line a,
.checkbox-contact a,
.cgv-group a {
    color: var(--color-accent);
    font-weight: 700;
    text-decoration: underline;
    transition: opacity 0.2s;
}
.consent-line a:hover,
.checkbox-contact a:hover,
.cgv-group a:hover {
    opacity: 0.7;
    text-decoration: underline;
}

/* ================================
   RADIO CARDS (shared UI component)
   ================================ */
.radio-group {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.radio-card {
    cursor: pointer;
}
.radio-card input {
    display: none;
}
.radio-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 18px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    transition: all 0.2s;
    text-align: center;
}
.radio-card input:checked + .radio-content {
    border-color: var(--color-accent);
    background: rgba(24,126,92,0.06);
}
.radio-icon { font-size: 1.5rem; margin-bottom: 6px; }
.radio-label { font-family: var(--font-heading); font-size: 0.85rem; font-weight: 700; color: var(--color-text); }
.radio-price { font-size: 0.78rem; color: var(--color-accent); font-weight: 600; margin-top: 4px; }
.radio-group-2col {
    grid-template-columns: repeat(2, 1fr);
}
@media (max-width: 768px) {
    .radio-group { grid-template-columns: 1fr; }
    .radio-group-2col { grid-template-columns: 1fr; }
}

