/* ============================================================
   CORFLY — Page d'accueil · design classique
   ============================================================ */

/* ----------------------------------------------
   VARIABLES
---------------------------------------------- */
:root {
  --blue-dark:  #0d1b2a;
  --gold:       #b07e2f;
  --gold-light: #c99a4a;
  --gold-dim:   rgba(176, 126, 47, 0.12);
  --cream:      #f2efea;
  --cream-mid:  #faf9f7;
  --white:      #ffffff;
  --text-dark:  #111111;
  --text-mid:   #444444;
  --text-muted: #777777;
  --border:     #e8e4de;
  --shadow:     0 2px 12px rgba(0,0,0,0.06);
}

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

body {
  font-family: 'League Spartan', sans-serif;
  background: var(--cream);
  color: var(--text-dark);
}

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

/* ----------------------------------------------
   BOUTONS GLOBAUX
---------------------------------------------- */
.btn-gold {
  background: var(--gold);
  color: var(--white);
  padding: 0.7rem 1.4rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: none;
  transition: background 0.25s;
}

.btn-gold:hover { background: var(--gold-light); }

.btn-gold-guide {
  background: var(--gold);
  color: var(--white);
  padding: 0.85rem 2rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: none;
  transition: background 0.25s;
}

.btn-gold-guide:hover { background: var(--gold-light); }

.btn-outline {
  background: transparent;
  color: rgba(255,255,255,0.65);
  padding: 0.85rem 2rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.2);
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}

.btn-outline:hover {
  background: var(--white);
  color: var(--blue-dark);
  border-color: var(--white);
}

/* ----------------------------------------------
   HERO — fond navy, centré, classique
---------------------------------------------- */
/* ----------------------------------------------
   HERO — fond image, centré
---------------------------------------------- */
.hero {
  background-image: url('/assets/hero-banner.png');
  background-size: cover;
  background-position: center 80%;
  background-repeat: no-repeat;
  padding: 120px 0 100px;
  position: relative;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(13, 27, 42, 0.62);
  pointer-events: none;
}

.hero-flex {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 82%;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-text {
  max-width: 580px;
  text-align: left;
}

.hero-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}

.hero-text h1 {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.12;
  color: var(--white);
  letter-spacing: -1px;
  margin-bottom: 18px;
}

.orange { color: var(--gold); }

.hero-sub {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 480px;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  align-items: center;
}

/* ----------------------------------------------
   ACCOMPAGNEMENT
---------------------------------------------- */
.corfly-accompagnement {
  background: var(--cream);
  padding: 7rem 0;
}

.corfly-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.corfly-title {
  font-size: 2.2rem;
  color: var(--blue-dark);
  margin-bottom: 0.6rem;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.corfly-subtitle {
  font-size: 1.05rem;
  color: var(--text-mid);
  margin-bottom: 3.5rem;
  max-width: 640px;
  line-height: 1.65;
}

.corfly-cards {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
}

.corfly-card-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.corfly-card {
  background: var(--white);
  width: 480px;
  padding: 2.5rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  color: var(--text-dark);
  min-height: 520px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: box-shadow 0.25s, border-color 0.25s;
}

.corfly-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gold);
}

.corfly-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.10);
  border-color: rgba(176, 126, 47, 0.35);
}

.corfly-card h3 {
  font-size: 1.45rem;
  margin-bottom: 0.5rem;
  color: var(--blue-dark);
  font-weight: 700;
}

.corfly-price {
  font-size: 1.7rem;
  font-weight: 800;
  margin-bottom: 1.6rem;
}

.corfly-orange { color: var(--gold); }

.corfly-list {
  list-style: none;
  padding: 0;
  margin-bottom: 2rem;
  flex: 1;
}

.corfly-list li {
  font-size: 1rem;
  color: var(--text-mid);
  margin-bottom: 0.7rem;
  line-height: 1.5;
}

.corfly-btn {
  background: var(--gold);
  color: var(--white);
  padding: 0.9rem 1.8rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: auto;
  align-self: flex-start;
  transition: background 0.25s;
}

.corfly-btn:hover { background: var(--gold-light); }

.corfly-note {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: 1rem;
  text-align: center;
  width: 480px;
}

/* ----------------------------------------------
   POUR TOI SI
---------------------------------------------- */
.corfly-pourtoi {
  background: var(--blue-dark);
  padding: 6rem 0;
  text-align: center;
  position: relative;
}

.corfly-pourtoi::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gold);
}

.corfly-pourtoi-title {
  color: var(--white);
  font-size: 2.2rem;
  margin-bottom: 2.5rem;
  font-weight: 700;
}

.corfly-pourtoi-list {
  list-style: none;
  padding: 0;
  margin: 0 auto 2.5rem auto;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.corfly-pourtoi-list li {
  color: rgba(255,255,255,0.85);
  font-size: 1.1rem;
  line-height: 1.5;
  text-align: center;
}

.corfly-pourtoi-phrase {
  color: rgba(255,255,255,0.7);
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
  font-style: italic;
}

/* ----------------------------------------------
   AVIS CLIENTS
---------------------------------------------- */
.corfly-avis {
  background: var(--cream-mid);
  padding: 6rem 0;
  color: var(--text-dark);
  border-top: 1px solid var(--border);
}

.corfly-avis .corfly-container { max-width: 1100px; }

.corfly-avis-top {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 3rem;
}

.corfly-avis-title { font-size: 1.6rem; font-weight: 700; color: var(--blue-dark); }

.corfly-avis-avg { display: flex; align-items: center; gap: 0.4rem; margin-top: 0.3rem; }
.corfly-avis-note-value { font-size: 1.6rem; font-weight: 700; color: var(--blue-dark); }
.corfly-avis-note-stars { color: var(--gold); font-size: 1.2rem; }
.corfly-avis-count { color: var(--text-muted); margin-top: 0.3rem; font-size: 0.9rem; }

.corfly-avis-stars-row { display: flex; align-items: center; margin-bottom: 0.8rem; font-size: 0.95rem; color: var(--text-mid); }
.corfly-avis-stars-row span:first-child { width: 80px; }
.corfly-avis-stars-row span:last-child  { width: 30px; text-align: right; }

.corfly-bar { flex: 1; height: 8px; background: var(--border); margin: 0 12px; overflow: hidden; }
.corfly-bar div { height: 100%; background: var(--gold); width: 0%; transition: width 0.4s ease; }

.corfly-avis-btn {
  background: transparent;
  color: var(--blue-dark);
  border: 1px solid var(--border);
  padding: 0.75rem 1.4rem;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s;
  font-family: 'League Spartan', sans-serif;
}

.corfly-avis-btn:hover { background: var(--gold-dim); border-color: var(--gold); color: var(--gold); }

.corfly-avis-wrapper { display: grid; grid-template-columns: 40px 1fr 40px; align-items: center; gap: 1rem; }

.corfly-arrow-left,
.corfly-arrow-right { font-size: 1.4rem; text-align: center; cursor: pointer; user-select: none; color: var(--gold); transition: opacity 0.2s; }
.corfly-arrow-left:hover,
.corfly-arrow-right:hover { opacity: 0.7; }

.corfly-avis-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }

.corfly-avis-item { background: var(--white); padding: 1.4rem; border: 1px solid var(--border); box-shadow: var(--shadow); min-height: 140px; display: flex; flex-direction: column; justify-content: space-between; }
.corfly-avis-item .stars { color: var(--gold); font-size: 1.1rem; margin-bottom: 0.3rem; }
.corfly-avis-item .name  { font-weight: 700; margin-bottom: 0.3rem; color: var(--blue-dark); font-size: 0.95rem; }
.corfly-avis-item .comment { font-size: 0.9rem; color: var(--text-mid); line-height: 1.5; }

.corfly-avis-badge.livre {
  color: #111111;
}

/* ----------------------------------------------
   MODALE
---------------------------------------------- */
.corfly-modal { display: none; position: fixed; z-index: 9999; inset: 0; background: rgba(0,0,0,0.4); backdrop-filter: blur(4px); justify-content: center; align-items: center; }
.corfly-modal-content { background: var(--white); color: var(--text-dark); padding: 2.5rem; width: 420px; border: 1px solid rgba(176,126,47,0.35); position: relative; box-shadow: 0 16px 48px rgba(0,0,0,0.15); }
.corfly-modal-close { position: absolute; right: 16px; top: 10px; font-size: 1.8rem; cursor: pointer; color: var(--text-muted); transition: color 0.2s; }
.corfly-modal-close:hover { color: var(--text-dark); }
.corfly-modal-content h3 { font-size: 1.4rem; color: var(--blue-dark); margin-bottom: 1.2rem; font-weight: 700; }
.corfly-modal-content label { display: block; font-size: 0.8rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--text-muted); margin-top: 1rem; margin-bottom: 0.3rem; }
.corfly-modal-content input,
.corfly-modal-content select,
.corfly-modal-content textarea { width: 100%; padding: 0.75rem; background: #f7f5f2; border: 1px solid var(--border); color: var(--text-dark); font-family: 'League Spartan', sans-serif; font-size: 0.95rem; outline: none; transition: border-color 0.2s; }
.corfly-modal-content input:focus,
.corfly-modal-content select:focus,
.corfly-modal-content textarea:focus { border-color: var(--gold); }
.corfly-modal-btn { margin-top: 1.5rem; width: 100%; background: var(--gold); color: var(--white); padding: 1rem; font-weight: 700; font-size: 0.85rem; letter-spacing: 1px; text-transform: uppercase; border: none; cursor: pointer; font-family: 'League Spartan', sans-serif; transition: background 0.25s; }
.corfly-modal-btn:hover { background: var(--gold-light); }

/* ----------------------------------------------
   SECTION FINALE
---------------------------------------------- */
.corfly-last { background: var(--blue-dark); padding: 7rem 0; text-align: center; color: var(--white); position: relative; }
.corfly-last::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 3px; background: var(--gold); }
.corfly-last-container { max-width: 700px; margin: 0 auto; padding: 0 2rem; }
.corfly-last-title { font-size: 2.4rem; font-weight: 700; margin-bottom: 1rem; letter-spacing: -0.3px; }
.corfly-last-subtitle { font-size: 1.15rem; color: rgba(255,255,255,0.7); line-height: 1.6; }
.corfly-last-quote { font-size: 1.05rem; font-style: italic; color: rgba(255,255,255,0.55); margin-top: 0.5rem; }
.corfly-last-btn { display: inline-block; background: var(--white); color: var(--blue-dark); padding: 1rem 2.2rem; font-weight: 700; font-size: 0.85rem; letter-spacing: 1px; text-transform: uppercase; text-decoration: none; margin-top: 2.5rem; transition: background 0.25s, color 0.25s; }
.corfly-last-btn:hover { background: var(--gold); color: var(--white); }

/* ----------------------------------------------
   FOOTER
---------------------------------------------- */
.corfly-footer { background: var(--blue-dark); text-align: center; padding: 2rem 0; border-top: 1px solid rgba(255,255,255,0.07); color: rgba(255,255,255,0.45); font-size: 0.85rem; letter-spacing: 0.5px; }

/* ----------------------------------------------
   CARTES ACCOMPAGNEMENT — styles premium
---------------------------------------------- */
.corfly-card--featured {
  background: var(--white);
  border-color: rgba(176,126,47,0.4);
  box-shadow: 0 4px 24px rgba(176,126,47,0.1);
}

.corfly-card--featured:hover {
  box-shadow: 0 8px 40px rgba(176,126,47,0.18);
  border-color: var(--gold);
}

.corfly-card--featured h3 { color: var(--blue-dark); }

.corfly-card--featured .corfly-price { color: var(--gold); }

.corfly-card--featured .corfly-list li { color: var(--text-mid); }

.corfly-card-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

.corfly-card-divider {
  height: 1px;
  background: var(--border);
  margin: 10px 0 20px;
}

.corfly-card--featured .corfly-card-divider {
  background: var(--border);
}

.corfly-card-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: auto;
}

.corfly-card-actions .corfly-btn {
  flex: 1;
  text-align: center;
  align-self: auto;
  margin-top: 0;
}

.corfly-btn-outline {
  flex: 1;
  text-align: center;
  background: transparent;
  color: var(--blue-dark);
  padding: 0.9rem 1.8rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: 1px solid var(--border);
  transition: border-color 0.25s, color 0.25s;
}

.corfly-btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ----------------------------------------------
   QUESTIONS FRÉQUENTES
---------------------------------------------- */
.corfly-faq {
  background: var(--white);
  padding: 6rem 0;
  border-top: 1px solid var(--border);
}

.corfly-faq .corfly-container {
  max-width: 800px;
}

.corfly-faq-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--blue-dark);
  text-align: center;
  margin-bottom: 0.6rem;
}

.corfly-faq-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 3rem;
}

.corfly-faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.corfly-faq-item {
  border: 1px solid var(--border);
  background: var(--cream-mid);
  overflow: hidden;
}

.corfly-faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.4rem;
  background: none;
  border: none;
  text-align: left;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  transition: color 0.2s;
}

.corfly-faq-question:hover {
  color: var(--gold);
}

.corfly-faq-icon {
  flex-shrink: 0;
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--gold);
  transition: transform 0.25s ease;
}

.corfly-faq-item.open .corfly-faq-icon {
  transform: rotate(45deg);
}

.corfly-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 1.4rem;
}

.corfly-faq-item.open .corfly-faq-answer {
  max-height: 500px;
  padding: 0 1.4rem 1.3rem;
}

.corfly-faq-answer p {
  color: var(--text-mid);
  line-height: 1.65;
  font-size: 0.95rem;
}

@media (max-width: 700px) {
  .corfly-faq { padding: 4rem 0; }
  .corfly-faq-title { font-size: 1.5rem; }
}

/* ----------------------------------------------
   RESPONSIVE
---------------------------------------------- */

/* Mobile */
@media (max-width: 768px) {
  /* Hero */
  .hero { padding: 72px 0 60px; }

  .hero-flex {
    width: 92%;
    justify-content: center;
  }

  .hero-text { text-align: center; max-width: 100%; }

  .hero-text h1 { font-size: 2rem; letter-spacing: -0.5px; }

  .hero-sub { max-width: 100%; }

  .hero-buttons {
    justify-content: center;
    flex-wrap: wrap;
  }

  .btn-gold-guide,
  .btn-outline { width: 100%; text-align: center; }

  /* Accompagnement */
  .corfly-accompagnement { padding: 4rem 0; }

  .corfly-title    { font-size: 1.7rem; }
  .corfly-subtitle { font-size: 0.95rem; }

  .corfly-card  { width: 100%; min-height: auto; padding: 1.8rem; }
  .corfly-note  { width: 100%; }

  /* Pour toi si */
  .corfly-pourtoi { padding: 4rem 0; }
  .corfly-pourtoi-title { font-size: 1.7rem; }
  .corfly-pourtoi-list li { font-size: 1rem; }

  /* Avis */
  .corfly-avis { padding: 4rem 0; }

  .corfly-avis-top {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .corfly-avis-stars-row { justify-content: center; }

  .corfly-avis-list { grid-template-columns: 1fr; }

  .corfly-avis-wrapper {
    grid-template-columns: 32px 1fr 32px;
    gap: 6px;
  }

  /* Section finale */
  .corfly-last { padding: 4rem 0; }
  .corfly-last-title { font-size: 1.8rem; }
  .corfly-last-btn { width: 100%; text-align: center; }

  /* Modale */
  .corfly-modal-content { width: 92%; padding: 1.8rem; }

  .corfly-card-actions { flex-direction: column; }
  .corfly-btn-outline  { width: 100%; text-align: center; }

  .corfly-cards {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }

  .corfly-card-wrapper {
    width: 100%;
    max-width: 480px;
  }
}

/* Très petit mobile */
@media (max-width: 400px) {
  .hero-text h1 { font-size: 1.65rem; }
  .corfly-title { font-size: 1.5rem; }
}