/* ================================================================
   FLASH-JOUR.COM — main.css
   Design : sobre, professionnel, B2B, multilingue (RTL supporté)
   Palette : vert foncé #1a3a2a | or #c8a84b | blanc #fafafa | gris #f0ede8
   ================================================================ */

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

:root {
  --green:    #1a3a2a;
  --green-lt: #2d5c44;
  --gold:     #c8a84b;
  --gold-lt:  #e8c87a;
  --white:    #fafafa;
  --bg:       #f0ede8;
  --text:     #1c1c1c;
  --muted:    #6b6b6b;
  --border:   #d8d4ce;
  --radius:   6px;
  --shadow:   0 2px 12px rgba(0,0,0,.08);
  --max-w:    1100px;
  --font:     'Inter', system-ui, -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--white);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}

/* RTL support */
[dir="rtl"] { font-family: 'Noto Sans Arabic', var(--font); }

img { max-width: 100%; display: block; }
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--gold); }

/* --- LAYOUT --- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }
section { padding: 4rem 1.5rem; max-width: var(--max-w); margin: 0 auto; }

/* --- NAV --- */
header {
  background: var(--green);
  position: sticky; top: 0; z-index: 100;
  border-bottom: 2px solid var(--gold);
}
header nav {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: .9rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.logo {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--gold) !important;
  letter-spacing: .03em;
  white-space: nowrap;
}
header nav ul {
  display: flex; list-style: none; gap: 1.5rem;
  flex: 1;
}
header nav ul a {
  color: rgba(255,255,255,.85);
  font-size: .9rem;
  font-weight: 500;
  transition: color .2s;
}
header nav ul a:hover,
header nav ul a[aria-current="page"] { color: var(--gold); }
.lang-switch {
  color: rgba(255,255,255,.6);
  font-size: .8rem;
  white-space: nowrap;
}
.lang-switch a { color: rgba(255,255,255,.7); }
.lang-switch a:hover { color: var(--gold); }

/* --- BUTTONS --- */
.btn-primary, .btn-secondary, a.cta {
  display: inline-block;
  padding: .7rem 1.6rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .9rem;
  transition: all .2s;
  cursor: pointer;
}
.btn-primary, a.cta {
  background: var(--gold);
  color: var(--green) !important;
}
.btn-primary:hover, a.cta:hover {
  background: var(--gold-lt);
  transform: translateY(-1px);
}
.btn-secondary {
  background: transparent;
  color: var(--white) !important;
  border: 2px solid rgba(255,255,255,.4);
}
.btn-secondary:hover {
  border-color: var(--gold);
  color: var(--gold) !important;
}
.cta-group { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.8rem; }

/* --- HERO --- */
.hero {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-lt) 100%);
  color: var(--white);
  padding: 6rem 1.5rem;
  text-align: center;
}
.hero h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  max-width: 760px;
  margin: 0 auto .8rem;
}
.hero p {
  font-size: 1.15rem;
  color: rgba(255,255,255,.8);
  max-width: 580px;
  margin: 0 auto;
}
.hero .cta-group { justify-content: center; }

/* --- PROOF STRIP --- */
.proof {
  background: var(--bg);
  padding: 2rem 1.5rem;
}
.proof ul {
  list-style: none;
  display: flex;
  gap: 2.5rem;
  justify-content: center;
  flex-wrap: wrap;
  max-width: var(--max-w);
  margin: 0 auto;
}
.proof li {
  font-size: .95rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: .5rem;
}
.proof li::before {
  content: "✓";
  color: var(--gold);
  font-weight: 700;
}
.proof strong { color: var(--green); }

/* --- HOW IT WORKS --- */
.how h2 { font-size: 1.7rem; margin-bottom: 1.5rem; color: var(--green); }
.how ol {
  list-style: none;
  counter-reset: steps;
  display: grid;
  gap: 1rem;
  max-width: 680px;
}
.how ol li {
  counter-increment: steps;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.2rem;
  background: var(--bg);
  border-radius: var(--radius);
  border-left: 3px solid var(--gold);
}
.how ol li::before {
  content: counter(steps);
  background: var(--gold);
  color: var(--green);
  font-weight: 800;
  font-size: .85rem;
  min-width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.how a { display: inline-block; margin-top: 1.2rem; font-weight: 600; }

/* --- TWO-COL --- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.two-col > div {
  background: var(--bg);
  padding: 2rem;
  border-radius: var(--radius);
  border-top: 3px solid var(--gold);
}
.two-col h2 { font-size: 1.2rem; margin-bottom: .7rem; color: var(--green); }
.two-col p  { color: var(--muted); font-size: .95rem; margin-bottom: 1rem; }

/* --- PAGE HERO (pages internes) --- */
.page-hero {
  background: var(--green);
  color: var(--white);
  padding: 3.5rem 1.5rem;
}
.page-hero h1 { font-size: clamp(1.5rem, 3vw, 2.4rem); font-weight: 800; margin-bottom: .5rem; }
.page-hero p  { color: rgba(255,255,255,.75); font-size: 1rem; max-width: 560px; }

/* --- BREADCRUMB --- */
nav[aria-label="Fil d'Ariane"],
nav[aria-label="Breadcrumb"] {
  padding: .8rem 0;
  font-size: .82rem;
  color: var(--muted);
}
nav[aria-label="Fil d'Ariane"] ol,
nav[aria-label="Breadcrumb"] ol {
  list-style: none;
  display: flex;
  gap: .4rem;
}
nav[aria-label="Fil d'Ariane"] ol li + li::before,
nav[aria-label="Breadcrumb"] ol li + li::before { content: "›"; }

/* --- CARDS / FEATURES --- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid var(--border);
}
.card-icon { font-size: 1.8rem; margin-bottom: .7rem; }
.card h3   { font-size: 1.05rem; color: var(--green); margin-bottom: .4rem; }
.card p    { font-size: .9rem; color: var(--muted); }

/* --- FAQ --- */
.faq-list { margin-bottom: 2.5rem; }
.faq-list h2 {
  font-size: 1.2rem;
  color: var(--green);
  border-bottom: 2px solid var(--border);
  padding-bottom: .5rem;
  margin-bottom: 1rem;
}
details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: .6rem;
  background: var(--white);
}
details[open] { border-color: var(--gold); }
summary {
  padding: 1rem 1.2rem;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text);
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+";
  color: var(--gold);
  font-size: 1.2rem;
  font-weight: 300;
  transition: transform .2s;
}
details[open] summary::after { content: "−"; }
details p {
  padding: 0 1.2rem 1rem;
  font-size: .92rem;
  color: var(--muted);
  line-height: 1.7;
}

/* --- FORM --- */
.form-section { max-width: 680px; }
.form-group { margin-bottom: 1.2rem; }
label {
  display: block;
  font-size: .88rem;
  font-weight: 600;
  margin-bottom: .35rem;
  color: var(--text);
}
input, select, textarea {
  width: 100%;
  padding: .75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: .95rem;
  font-family: var(--font);
  background: var(--white);
  color: var(--text);
  transition: border-color .2s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--gold);
}
textarea { resize: vertical; min-height: 100px; }
.btn-submit {
  background: var(--green);
  color: var(--white);
  border: none;
  padding: .85rem 2rem;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s;
  width: 100%;
}
.btn-submit:hover { background: var(--green-lt); }
.form-note { font-size: .8rem; color: var(--muted); margin-top: .5rem; }
.type-select {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.type-btn {
  padding: 1.2rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  cursor: pointer;
  transition: all .2s;
  background: var(--white);
}
.type-btn:hover, .type-btn.active {
  border-color: var(--gold);
  background: #fdf9f0;
}
.type-btn strong { display: block; font-size: 1rem; color: var(--green); }
.type-btn span   { font-size: .82rem; color: var(--muted); }

/* --- CTA FOOTER SECTION --- */
.cta-footer {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  margin-top: 2rem;
}
.cta-footer p   { color: var(--muted); margin-bottom: .8rem; }
.cta-footer a   { font-weight: 600; color: var(--green); }

/* --- TRUST BADGES --- */
.trust {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
}
.badge {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .82rem;
  color: var(--muted);
  background: var(--bg);
  padding: .4rem .9rem;
  border-radius: 20px;
}
.badge-icon { font-size: 1rem; }

/* --- FOOTER --- */
footer {
  background: var(--green);
  color: rgba(255,255,255,.7);
  padding: 2rem 1.5rem;
  text-align: center;
  font-size: .85rem;
}
footer a { color: rgba(255,255,255,.7); }
footer a:hover { color: var(--gold); }
footer nav { margin-top: .5rem; }
footer nav a + a::before { content: " | "; }

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
  header nav ul { display: none; }
  .two-col { grid-template-columns: 1fr; }
  .type-select { grid-template-columns: 1fr; }
  .hero { padding: 4rem 1.2rem; }
  .proof ul { flex-direction: column; align-items: center; gap: 1rem; }
}
