/* ===== CSS Reset & Normalize ===== */
html, body, div, span, h1, h2, h3, h4, h5, h6, p, ul, li, ol, a, img, nav, footer, header, section, main, button {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  background: #F4F7FA;
  color: #24314E;
}
body {
  min-height: 100vh;
  background: #F4F7FA;
  color: #24314E;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
}
img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
  border-style: none;
  display: block;
}
a {
  color: #24314E;
  text-decoration: none;
  transition: color 0.2s;
}
ul, ol {
  list-style: none;
}
h1, h2, h3, h4, h5, h6 {
  color: #24314E;
  font-family: 'Montserrat', 'Roboto', Arial, Helvetica, sans-serif;
  font-weight: 600;
  line-height: 1.2;
}
h1 {font-size: 2.5rem; margin-bottom: 20px;}
h2 {font-size: 2rem; margin-bottom: 16px;}
h3 {font-size: 1.25rem; margin-bottom: 12px;}

/* =========================================
   LUXURY PREMIUM PALETTE & FONT STYLES
   ========================================= */
:root {
  --color-primary: #24314E;
  --color-secondary: #71B1A1;
  --color-accent: #F4F7FA;
  --color-gold: #C1A36A;
  --color-dark: #191C23;
  --color-muted: #8A98B2;
  --font-display: 'Montserrat', 'Roboto', Arial, Helvetica, sans-serif;
  --font-body: 'Roboto', Arial, Helvetica, sans-serif;
  --shadow-soft: 0 2px 16px 0 rgba(36,49,78, 0.07);
  --shadow-card: 0 4px 32px 0 rgba(36,49,78, 0.09);
}

/* ================================
   CONTAINER & GLOBAL SPACING
   ================================ */
.container {
  width: 100%;
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}

@media (max-width: 768px) {
  .section {padding: 28px 8px; margin-bottom: 40px;}
  .container {padding-left: 8px; padding-right: 8px;}
}

/* ================================
   HEADER / NAVBAR
   ================================ */
header {
  background: #fff;
  box-shadow: 0 2px 20px rgba(36,49,78, 0.06);
  position: sticky;
  top: 0;
  z-index: 30;
}
header .container {
  min-height: 70px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
header img[alt="Itinéraires Éclairés"] {
  height: 40px;
  margin-right: 32px;
}
nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
nav a {
  font-family: var(--font-display);
  font-size: 1.05rem;
  padding: 6px 8px;
  border-radius: 5px;
  letter-spacing: 0.02em;
  color: #24314E;
  transition: background 0.25s, color 0.18s;
}
nav a:hover,
nav a:focus {
  color: var(--color-gold);
  background: #F9F6ED;
}
nav a.active {
  color: var(--color-gold);
  font-weight: 600;
}
nav .cta-primary {
  background: var(--color-gold);
  color: #24314E;
  font-weight: 600;
  padding: 8px 18px;
  font-size: 1.07rem;
  border-radius: 30px;
  margin-left: 10px;
  letter-spacing: 0.03em;
  box-shadow: 0 3px 14px 0 rgba(193,163,106,0.11);
  transition: background 0.18s, box-shadow 0.23s;
  border: none;
  display: inline-block;
}
nav .cta-primary:hover,
nav .cta-primary:focus {
  background: #B89967;
  color: #fff;
  box-shadow: 0 5px 18px 0 rgba(193,163,106,0.18);
}

/* ==================
   MOBILE NAVIGATION
   ================== */
.mobile-menu-toggle {
  display: none;
  background: var(--color-gold);
  color: #24314E;
  font-size: 2rem;
  padding: 7px 14px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  z-index: 51;
  margin-left: 18px;
  transition: background 0.2s;
}
.mobile-menu-toggle:hover { background: #B89967; color: #fff; }

@media (max-width: 992px) {
  nav {display: none;}
  .mobile-menu-toggle {display: inline-block;}
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(36,49,78,0.82);
  transition: transform 0.36s cubic-bezier(.8,.3,0,1), opacity 0.25s;
  z-index: 150;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-100vw);
}
.mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}
.mobile-menu-close {
  margin-top: 24px;
  margin-left: 24px;
  align-self: flex-start;
  font-size: 2.1rem;
  color: #fff;
  background: none;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  padding: 4px 10px;
  transition: background 0.22s;
  z-index: 20;
}
.mobile-menu-close:hover {
  background: var(--color-gold);
  color: #24314E;
}
.mobile-nav {
  margin-top: 46px;
  display: flex;
  flex-direction: column;
  width: 100vw;
  align-items: flex-start;
  gap: 18px;
  padding: 0 38px;
}
.mobile-nav a {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.38rem;
  padding: 13px 0 13px 12px;
  border-radius: 5px;
  width: 100%;
  display: block;
  transition: background 0.21s, color 0.12s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-gold);
  color: #24314E;
}

/* =============
   HERO SECTION
   =============*/
.hero-section {
  background: linear-gradient(120deg, #F7F5E0 70%, #ffffff 100%);
  padding-top: 50px;
  padding-bottom: 50px;
  min-height: 420px;
  display: flex;
  align-items: center;
}
.hero-section .content-wrapper {
  align-items: flex-start;
  max-width: 750px;
}
.hero-section h1 {
  font-size: 2.7rem;
  font-family: var(--font-display);
  color: #24314E;
  line-height: 1.16;
  margin-bottom: 18px;
}
.hero-section .subheadline {
  font-size: 1.21rem;
  color: var(--color-secondary);
  margin-bottom: 36px;
  font-family: var(--font-display);
}

@media (max-width: 768px) {
  .hero-section { min-height: unset; padding-top: 30px; padding-bottom: 30px; }
  .hero-section .content-wrapper {align-items: stretch;}
}

/* ================================
   FEATURES & CARDS
   ================================ */
.features-section {
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
  margin-top: 30px;
}
.features-section h2 {
  color: #24314E;
  font-size: 2rem;
  margin-bottom: 26px;
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 24px;
}
.feature {
  background: #FAFAF8;
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  flex: 1 1 200px;
  min-width: 250px;
  max-width: 45%;
  padding: 26px 23px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  transition: box-shadow 0.21s, transform 0.18s;
  border: 1.5px solid #ECE4D2;
  margin-bottom: 20px;
}
.feature img {
  width: 38px;
  height: 38px;
}
.feature h3 {
  font-size: 1.16rem;
  color: #24314E;
}
.feature p {
  color: var(--color-muted);
}
.feature:hover {
  box-shadow: 0 8px 26px 0 rgba(36,49,78, 0.09);
  transform: translateY(-4px) scale(1.03);
  border-color: var(--color-gold);
}

@media (max-width: 992px) {
  .feature-grid { gap: 20px; }
  .feature { max-width: 95%;  }
}
@media (max-width: 768px) {
  .feature-grid {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  .feature { max-width: 100%; }
}

/* =============================
   TESTIMONIALS
   ============================= */
.testimonials-preview, .testimonials-section, .impact-section {
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
}
.testimonials-preview h2, .testimonials-section h1, .impact-section h2 {
  color: #24314E;
  font-size: 2rem;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  background: #FAFAF8;
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  padding: 20px 30px;
  margin-bottom: 20px;
  position: relative;
  border-left: 5px solid var(--color-gold);
  color: #24314E;
  transition: box-shadow 0.18s, transform 0.18s;
}
.testimonial-card p {
  font-size: 1.04rem;
  color: #24314E;
}
.testimonial-info {
  color: var(--color-secondary);
  font-family: var(--font-display);
  font-size: 0.98rem;
}
.testimonial-card:hover {
  box-shadow: 0 8px 22px 0 rgba(36,49,78, 0.13);
  transform: translateY(-2px) scale(1.015);
}

@media (max-width: 768px) {
  .testimonial-card { padding: 16px 14px; }
}

/* =============================
   CTA BANNER
   ============================= */
.cta-banner, .cta-section {
  background: linear-gradient(100deg, #FAFAF8 60%, #F7F5E0 100%);
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  text-align: center;
  margin-bottom: 60px;
  padding: 42px 20px;
}
.cta-banner h2, .cta-section h2 {
  font-size: 2rem;
  color: #24314E;
  margin-bottom: 16px;
}
.cta-primary {
  background: var(--color-gold);
  color: #24314E;
  font-family: var(--font-display);
  font-size: 1.17rem;
  font-weight: 600;
  border: none;
  border-radius: 32px;
  padding: 16px 36px;
  box-shadow: 0 3px 14px 0 rgba(193,163,106,0.10);
  cursor: pointer;
  transition: background 0.19s, color 0.18s, transform 0.18s;
  margin-top: 10px;
  display: inline-block;
  letter-spacing: 0.03em;
}
.cta-primary:hover, .cta-primary:focus {
  background: #B89967;
  color: #fff;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 26px 0 rgba(193,163,106,0.14);
}

/* =============================
   ABOUT / POLICY SECTIONS
   ============================= */
.about-section, .brand-story, .team-section, .policy-section {
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
  margin-bottom: 60px;
  padding: 40px 20px;
}
.about-section h1, .policy-section h1 {font-size: 2rem;}
.tagline { font-family: var(--font-display); color: var(--color-gold); font-size: 1.2rem; }
.brand-story ul, .team-section ul, .policy-section ul {
  margin-left: 20px;
  margin-bottom: 16px;
}
.brand-story li, .team-section li, .policy-section li {
  list-style: disc inside;
  font-size: 1rem;
  margin-bottom: 8px;
  color: #37466c;
  padding-left: 4px;
}

/* =============================
   PROGRAMME DETAILS
   ============================= */
.programme-hero, .programme-details, .programme-outcomes {
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  margin-bottom: 40px;
  padding: 34px 20px;
}
.programme-details ol, .programme-outcomes ul {
  margin-left: 24px;
  margin-bottom: 18px;
}
.programme-details li, .programme-outcomes li {
  margin-bottom: 10px;
  font-size: 1rem;
  color: #37466c;
}
.programme-details strong {
  color: #24314E;
}

/* =============================
   RESOURCES PAGE
   ============================= */
.resources-hero, .resource-list-section, .downloads-section {
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  margin-bottom: 40px;
  padding: 32px 20px;
}
.resource-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.resource-item {
  flex: 1 1 220px;
  min-width: 220px;
  max-width: 45%;
  background: #FAFAF8;
  border-radius: 14px;
  box-shadow: var(--shadow-card);
  padding: 18px 16px;
  margin-bottom: 20px;
}
@media (max-width: 768px) {
  .resource-list {
    flex-direction: column;
  }
  .resource-item { max-width: 100%; }
}
.downloads-section ul {
  margin-left: 18px;
  margin-bottom: 12px;
}
.downloads-section li {
  color: #37466c;
  margin-bottom: 8px;
  font-size: 1rem;
}
.downloads-section a {
  color: var(--color-gold);
  border-bottom: 1px dashed var(--color-gold);
  transition: color 0.16s, border 0.14s;
}
.downloads-section a:hover { color: #B89967; border-bottom: 1px solid #B89967; }

/* =============================
   FAQ PAGE
   ============================= */
.faq-section {
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  padding: 40px 20px;
  margin-bottom: 60px;
}
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 32px;
}
.faq-item {
  background: #FAFAF8;
  border-radius: 16px;
  padding: 18px 22px;
  box-shadow: var(--shadow-card);
  color: #24314E;
  margin-bottom: 20px;
  transition: box-shadow 0.21s, transform 0.2s;
}
.faq-item h3 {
  color: var(--color-gold);
  font-family: var(--font-display);
  font-size: 1.13rem;
}
.faq-item p {
  color: #37466c;
}
.faq-item:hover {
  box-shadow: 0 8px 28px 0 rgba(36,49,78, 0.10);
  transform: translateY(-2px) scale(1.01);
}
.faq-search h2 {
  color: #24314E;
  font-size: 1.25rem;
  margin-bottom: 5px;
}
.faq-search p { color: var(--color-secondary); }

/* =============================
   CONTACT PAGE
   ============================= */
.contact-section {
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  margin-bottom: 40px;
  padding: 36px 20px;
}
.contact-details {
  margin-top: 20px;
}
.contact-details ul {
  margin-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.contact-details li {
  color: #37466c;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.contact-details img {
  width: 18px; height: 18px;
  opacity: 0.7;
}

/* =============================
   THANK YOU PAGES
   ============================= */
.thank-you-section {
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  margin-bottom: 60px;
  padding: 40px 20px;
  text-align: center;
}

/* =============================
   FOOTER
   ============================= */
footer {
  background: #24314E;
  color: #F4F7FA;
  padding-top: 32px;
  padding-bottom: 22px;
  margin-top: 60px;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: center;
}
.footer-brand img {
  height: 36px;
  margin-bottom: 10px;
  filter: brightness(1.04);
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  justify-content: center;
}
.footer-nav a {
  color: var(--color-gold) !important;
  font-size: 1rem;
  transition: color 0.19s;
}
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  font-size: 0.97rem;
  color: #E6E5DF;
}
.footer-contact span,
.footer-contact img {
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-contact img {
  width: 17px; height: 17px; margin-right: 3px; filter: brightness(1.18); opacity: 0.82; }
.footer-social {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-top: 12px;
  margin-bottom: 6px;
}
.footer-social img { height: 25px; width: 25px; opacity: 0.86; transition: opacity 0.19s; }
.footer-social img:hover { opacity: 1; }
.footer-copyright {
  color: #C1A36A;
  font-size: 0.97rem;
  margin-top: 10px;
  text-align: center;
}

@media (max-width: 768px) {
  footer .container { gap: 20px; }
  .footer-nav { gap: 13px; }
  .footer-contact { flex-direction: column; gap: 8px; }
  .footer-social { gap: 14px; }
}

/* =============================
   LUXURIOUS DETAILS
   ============================= */
::-webkit-scrollbar {
  width: 8px;
  background: #F4F7FA;
  border-radius: 8px;
}
::-webkit-scrollbar-thumb {
  background: #ECE4D2;
  border-radius: 8px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  padding: 24px 20px;
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .text-image-section { flex-direction: column; align-items: stretch; gap: 18px; }
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
/* Mobile responsive for all card/flex layouts */
@media (max-width: 768px) {
  .card-container, .content-grid {
    flex-direction: column;
    gap: 16px;
  }
}

/* ===============
   BUTTON STYLES
   ===============*/
button, .button {
  font-family: var(--font-display);
  font-size: 1rem;
  background: var(--color-gold);
  color: #24314E;
  border: none;
  padding: 12px 28px;
  border-radius: 32px;
  cursor: pointer;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: 0 3px 13px 0 rgba(193,163,106,0.07);
  transition: background 0.2s, color 0.15s, transform 0.18s;
}
button:hover, .button:hover,
button:active, .button:active,
button:focus, .button:focus {
  background: #B89967;
  color: #fff;
  outline: none;
  transform: translateY(-1px) scale(1.01);
}

/* ===============
   COOKIE BANNER
   ===============*/
.cookie-banner {
  position: fixed;
  width: 100vw;
  left: 0;
  bottom: 0;
  background: #24314E;
  color: #fff;
  padding: 22px 20px 16px 20px;
  box-shadow: 0 -2px 16px 0 rgba(36,49,78,0.15);
  z-index: 200;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 16px;
  font-size: 1rem;
  animation: fadeInUp 0.6s cubic-bezier(.4,.84,0,1);
}
@media(max-width: 600px){
  .cookie-banner{flex-direction:column; align-items:flex-start;padding:18px 8px 10px 8px;gap:10px;font-size:.97rem;}
}
.cookie-banner button,
.cookie-banner .cookie-btn {
  margin-left: 6px;
  font-size: 1rem;
  padding: 10px 20px;
  background: var(--color-gold);
  color: #24314E;
  border-radius: 20px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  box-shadow: 0 1px 8px 0 rgba(193,163,106,0.09);
  transition: background 0.16s, color 0.15s;
}
.cookie-banner .cookie-btn.settings {
  background: transparent;
  color: var(--color-gold);
  border: 1.3px solid var(--color-gold);
  padding: 9px 18px;
}
.cookie-banner .cookie-btn.reject {
  background: #fff;
  color: var(--color-primary);
  border: 1.3px solid #fff;
}
.cookie-banner button:hover, .cookie-banner .cookie-btn:hover, .cookie-banner .cookie-btn:focus {
  background: #B89967;
  color: #fff;
}

/* COOKIE CONSENT MODAL */
.cookie-modal-overlay {
  position: fixed;
  z-index: 250;
  left: 0; top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(36,49,78, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s;
}
.cookie-modal {
  background: #fff;
  color: #24314E;
  border-radius: 18px;
  padding: 36px 24px 22px 24px;
  min-width: 320px;
  max-width: 95vw;
  box-shadow: 0 8px 32px rgba(36,49,78,0.22);
  animation: scaleIn 0.34s cubic-bezier(0.6, 0, 0.3, 1);
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}
.cookie-modal h2 { font-size: 1.25rem; font-family: var(--font-display);margin-bottom:10px;color:var(--color-gold); }
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}
.cookie-modal label {
  font-size: 1rem;
  cursor: pointer;
}
.cookie-modal input[type=checkbox] {
  transform: scale(1.3);
  accent-color: var(--color-gold);
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  gap: 16px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.cookie-modal button {
  background: var(--color-gold);
  color: #24314E;
  border-radius: 20px;
  padding: 9px 18px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.18s;
}
.cookie-modal .cookie-modal-close {
  position: absolute;
  right: 13px;
  top: 7px;
  font-size: 2rem;
  background: transparent;
  color: var(--color-gold);
  border: none;
  cursor: pointer;
  padding: 2px 10px;
  border-radius: 100px;
}
.cookie-modal .cookie-modal-close:hover { background: #F4F4ED; }

@media(max-width:500px) {
  .cookie-modal { padding:18px 6px 12px 6px; min-width: 0; }
}

/* == Cookie, fadeIn, scaleIn Animations == */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px);}
  to { opacity: 1; transform: translateY(0);}
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(.76); }
  to { opacity: 1; transform: scale(1); }
}

/* =============================
   UTILITIES & ACCESSIBILITY
   ============================= */
.visually-hidden {
  position: absolute;
  overflow: hidden;
  width: 1px; height: 1px;
  clip: rect(1px,1px,1px,1px);
  white-space: nowrap;
  border: 0; padding: 0;
  margin: -1px;
}

/* Remove tap highlight on mobile */
* {
  -webkit-tap-highlight-color: rgba(0,0,0,0.06);
}

/* Focus styles for accessibility */
a:focus, button:focus, .cta-primary:focus {
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
}

/* ===============
   Typography Responsive Sizes
   ===============*/
@media (max-width: 530px) {
  h1 {font-size: 1.6rem;}
  h2 {font-size: 1.18rem;}
  .cta-banner h2,.cta-section h2 {font-size: 1.15rem;}
}
