/* ============================================
   RACHETER MES CRÉDITS — style.css v1
   Global stylesheet : header, footer, shared components
   ============================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Playfair+Display:wght@400;500;600;700&display=swap');

/* --- CSS Variables --- */
:root {
  /* Brand */
  --forest: #1B4332;
  --forest-dark: #0F2B1F;
  --forest-mid: #2D6A4F;
  --sage: #40916C;
  --mint: #95D5B2;
  --mint-light: #D8F3DC;

  /* Neutres */
  --white: #FFFFFF;
  --ivory: #FAFAF5;
  --sand: #F5F1EB;
  --slate: #6B7280;
  --charcoal: #1F2937;

  /* Accents */
  --gold: #D4A843;
  --gold-hover: #B8922F;
  --gold-light: #F5ECD4;

  /* Alert */
  --coral: #E07A5F;

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --section-pad: 4rem 1.5rem;
  --container: 1140px;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--charcoal);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--forest-mid); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; }

/* --- HEADER --- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.header-logo img {
  height: 56px;
  width: auto;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.header-nav a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--charcoal);
  letter-spacing: .01em;
  position: relative;
}

.header-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width .3s;
}

.header-nav a:hover { color: var(--forest); }
.header-nav a:hover::after { width: 100%; }

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--gold);
  color: var(--white) !important;
  padding: .6rem 1.4rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: .88rem;
  transition: background .2s, transform .15s;
}

.header-cta:hover {
  background: var(--gold-hover);
  color: var(--white) !important;
  transform: translateY(-1px);
}

.header-cta::after { display: none !important; }

/* Mobile menu */
.header-burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem;
}

.header-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--charcoal);
  margin: 5px 0;
  transition: .3s;
}

@media (max-width: 768px) {
  .header-burger { display: block; }

  .header-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    border-bottom: 2px solid var(--forest);
    box-shadow: 0 10px 30px rgba(0,0,0,.1);
  }

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

  .header-cta { width: 100%; justify-content: center; }
}


/* --- FOOTER --- */
.site-footer {
  background: var(--forest-dark);
  color: rgba(255,255,255,.85);
  padding: 3.5rem 1.5rem 1.5rem;
  font-size: .88rem;
  line-height: 1.7;
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
}

.footer-brand img {
  height: 40px;
  margin-bottom: 1rem;
  background: var(--white);
  padding: 6px 10px;
  border-radius: 6px;
}

.footer-brand p {
  color: rgba(255,255,255,.65);
  font-size: .84rem;
  line-height: 1.6;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--white);
  margin-bottom: .8rem;
  font-weight: 600;
}

.footer-col ul { list-style: none; }

.footer-col li { margin-bottom: .4rem; }

.footer-col a {
  color: rgba(255,255,255,.65);
  font-size: .84rem;
  transition: color .2s;
}

.footer-col a:hover { color: var(--gold); }

.footer-reseau {
  background: rgba(255,255,255,.06);
  border-radius: 8px;
  padding: 1rem 1.2rem;
}

.footer-reseau h4 {
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--mint);
  margin-bottom: .6rem;
  font-family: var(--font-body);
  font-weight: 600;
}

.footer-reseau a {
  display: block;
  color: rgba(255,255,255,.7);
  font-size: .82rem;
  margin-bottom: .3rem;
}

.footer-reseau a:hover { color: var(--gold); }

.footer-legal {
  max-width: var(--container);
  margin: 2.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.1);
}

.footer-disclaimer {
  background: rgba(255,255,255,.05);
  border-left: 3px solid var(--coral);
  padding: .8rem 1rem;
  font-size: .78rem;
  color: rgba(255,255,255,.55);
  line-height: 1.6;
  margin-bottom: 1rem;
  border-radius: 0 4px 4px 0;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .78rem;
  color: rgba(255,255,255,.4);
  flex-wrap: wrap;
  gap: .5rem;
}

.footer-bottom a {
  color: rgba(255,255,255,.5);
  font-size: .78rem;
}

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

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

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}


/* --- SHARED COMPONENTS --- */

/* Breadcrumb */
.breadcrumb {
  background: var(--sand);
  padding: .7rem 1.5rem;
  font-size: .82rem;
}

.breadcrumb-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: .4rem;
  flex-wrap: wrap;
}

.breadcrumb a { color: var(--slate); }
.breadcrumb a:hover { color: var(--forest); }
.breadcrumb span.sep { color: var(--slate); margin: 0 .2rem; }
.breadcrumb span.current { color: var(--charcoal); font-weight: 500; }


/* Trust bar */
.trust-bar {
  background: var(--ivory);
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
  padding: 1.2rem 1.5rem;
}

.trust-bar-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .85rem;
  font-weight: 500;
  color: var(--charcoal);
}

.trust-icon {
  width: 36px;
  height: 36px;
  background: var(--mint-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}


/* FAQ Accordion */
.faq-section {
  padding: var(--section-pad);
  background: var(--ivory);
}

.faq-section h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  text-align: center;
  color: var(--forest);
  margin-bottom: 2rem;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid #e5e7eb;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1.2rem 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--charcoal);
  line-height: 1.4;
}

.faq-question::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--sage);
  transition: transform .3s;
  flex-shrink: 0;
  margin-left: 1rem;
}

.faq-question.open::after {
  content: '−';
  color: var(--gold);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease, padding .3s ease;
  font-size: .92rem;
  color: var(--slate);
  line-height: 1.7;
}

.faq-answer.open {
  max-height: 500px;
  padding-bottom: 1.2rem;
}


/* CTA Band */
.cta-band {
  background: var(--forest);
  padding: 3rem 1.5rem;
  text-align: center;
}

.cta-band h2 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--white);
  margin-bottom: .6rem;
}

.cta-band p {
  color: rgba(255,255,255,.75);
  margin-bottom: 1.5rem;
  font-size: .95rem;
}

.cta-band .btn-gold {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--gold);
  color: var(--white);
  padding: .85rem 2rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: 1rem;
  transition: background .2s, transform .15s;
  border: none;
  cursor: pointer;
}

.cta-band .btn-gold:hover {
  background: var(--gold-hover);
  transform: translateY(-2px);
  color: var(--white);
}


/* Buttons */
.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--gold);
  color: var(--white);
  padding: .75rem 1.8rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: .95rem;
  transition: background .2s, transform .15s;
  border: none;
  cursor: pointer;
}

.btn-gold:hover {
  background: var(--gold-hover);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.4);
  padding: .7rem 1.6rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: .92rem;
  transition: all .2s;
  cursor: pointer;
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(212,168,67,.08);
}


/* Section utilities */
.section-light { background: var(--white); padding: var(--section-pad); }
.section-ivory { background: var(--ivory); padding: var(--section-pad); }
.section-sand { background: var(--sand); padding: var(--section-pad); }
.section-forest { background: var(--forest); padding: var(--section-pad); color: var(--white); }

.section-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--forest);
  margin-bottom: .4rem;
}

.section-forest .section-title { color: var(--white); }

.section-subtitle {
  color: var(--slate);
  font-size: .95rem;
  margin-bottom: 2rem;
}

.section-forest .section-subtitle { color: rgba(255,255,255,.7); }

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

.stat {
  font-weight: 700;
  color: var(--forest-mid);
}

.section-forest .stat { color: var(--mint); }


/* Cards */
.card {
  background: var(--white);
  border-radius: 10px;
  padding: 1.5rem;
  border: 1px solid #e5e7eb;
  transition: transform .2s, box-shadow .2s;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(27,67,50,.08);
}

.card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--forest);
  margin-bottom: .5rem;
}

.card p {
  font-size: .9rem;
  color: var(--slate);
  line-height: 1.6;
}


/* Grid */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  :root { --section-pad: 2.5rem 1rem; }
  .section-title { font-size: 1.5rem; }
}
