/* =========================================================
   CKFD SOLUTION · Feuille de style
   Charte claire + accent orange (marque ckfd)
   Gestion administrative · Puy-de-Dôme
   ========================================================= */

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

:root {
  /* Couleurs */
  --bg:          #ffffff;
  --bg-soft:     #faf7f2;   /* crème doux : sections alternées */
  --bg-warm:     #fdf1e2;   /* orange très clair : bandes accent */
  --ink:         #1a1a1a;   /* titres */
  --text:        #45474d;   /* corps */
  --muted:       #6b7280;   /* secondaire */
  --line:        #ece8e1;   /* filets / bordures */
  --accent:      #f4a03c;   /* orange marque */
  --accent-strong:#e07d14;  /* orange foncé (hover) */
  --accent-ink:  #b85c0a;   /* orange lisible pour petit texte sur blanc */
  --accent-soft: #fdecd6;   /* orange pâle : pastilles, tags */
  --white:       #ffffff;

  /* Rayons & ombres */
  --radius:      16px;
  --radius-sm:   10px;
  --radius-lg:   26px;
  --shadow:      0 1px 2px rgba(26,26,26,.04), 0 8px 24px rgba(26,26,26,.06);
  --shadow-lg:   0 10px 40px rgba(26,26,26,.10);

  /* Mise en page */
  --maxw:        1120px;
  --nav-h:       74px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- Base typographie ---------- */
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; font-weight: 800; letter-spacing: -.02em; }
p { margin: 0 0 1rem; }
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }
strong { color: var(--ink); font-weight: 700; }

/* ---------- Conteneur & sections ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

section { padding: 84px 0; }
.section-soft { background: var(--bg-soft); }
.section-tight { padding: 56px 0; }

.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-title { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.section-subtitle { color: var(--muted); font-size: 1.075rem; margin-top: 14px; }

/* ---------- Tag / étiquette ---------- */
.tag {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-weight: 700; font-size: .98rem;
  padding: 13px 24px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .15s ease, background .2s ease, box-shadow .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn-lg { padding: 16px 30px; font-size: 1.05rem; }
.btn-primary { background: var(--accent); color: #241300; box-shadow: 0 6px 18px rgba(244,160,60,.35); }
.btn-primary:hover { background: var(--accent-strong); color: #fff; transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--ink); border-color: #d9d4cb; }
.btn-outline:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn-ghost { background: var(--white); color: var(--ink); border-color: var(--line); box-shadow: var(--shadow); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-ink); }

/* ---------- Navbar ---------- */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(253,238,222,.92);   /* fond orange pâle */
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid #f3e2cf;
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); }

.navbar-logo { display: flex; align-items: center; gap: 12px; }
.navbar-logo img { height: 54px; width: auto; }
.navbar-logo .logo-baseline { display: flex; flex-direction: column; line-height: 1.05; }
.navbar-logo .logo-name { font-weight: 800; color: var(--ink); font-size: 1.15rem; letter-spacing: -.02em; }
.navbar-logo .logo-name span { color: var(--accent); }
.navbar-logo .logo-sub { font-size: .68rem; color: var(--muted); letter-spacing: .02em; text-transform: uppercase; font-weight: 600; }

.navbar-nav { display: flex; align-items: center; gap: 28px; list-style: none; }
.navbar-nav a { color: var(--text); font-weight: 500; font-size: .96rem; transition: color .2s ease; }
.navbar-nav a:hover, .navbar-nav a.active { color: var(--accent-ink); }

.navbar-actions { display: flex; align-items: center; gap: 12px; }

.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.hamburger span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .2s; }

.mobile-menu {
  position: fixed; top: var(--nav-h); left: 0; right: 0;
  background: var(--white); border-bottom: 1px solid var(--line);
  flex-direction: column; padding: 16px 24px 24px; gap: 4px;
  display: none; box-shadow: var(--shadow-lg); z-index: 99;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { padding: 12px 4px; color: var(--text); font-weight: 500; border-bottom: 1px solid var(--line); }
.mobile-menu a.btn { margin-top: 12px; border-bottom: none; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 96px 0 0; background: var(--bg); }
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; padding-bottom: 40px; }
.hero-title { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 900; }
.hero-title span { color: var(--accent); }
.hero-subtitle { font-size: 1.2rem; color: var(--text); max-width: 34ch; margin: 20px 0 30px; }
.hero-signature { font-size: 1.05rem; font-weight: 700; color: var(--ink); margin-bottom: 26px; }
.hero-signature span { color: var(--accent-ink); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-visual { position: relative; display: flex; justify-content: center; align-items: center; }
.hero-brand { text-align: center; }
.hero-brand img { width: 274px; max-width: 100%; height: auto; }
.hero-brand-sub { margin-top: 10px; color: var(--muted); font-weight: 600; letter-spacing: .02em; font-size: .95rem; }

/* Chaîne des Puys : ligne orange (haut & bas de page) */
.puys { width: 100%; line-height: 0; overflow: hidden; }
.puys svg { width: 100%; height: auto; display: block; transform: scaleX(-1); } /* miroir : Pariou à droite */
.puys-fill { fill: #fdeede; }
.puys-line { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.puys-dot  { fill: var(--accent); }
.puys-label { fill: var(--muted); font-size: 15px; font-weight: 600; letter-spacing: .06em; }

/* ---------- Bandeau stats / chiffres ---------- */
.stats-bar { background: var(--bg-warm); }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: center; }
.stat-number { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 900; color: var(--accent-ink); }
.stat-label { color: var(--text); font-size: .98rem; margin-top: 4px; }

/* ---------- Bloc conviction ---------- */
.conviction { background: var(--bg-soft); }
.conviction-box { max-width: 780px; margin: 0 auto; text-align: center; }
.conviction-box p { font-size: 1.12rem; }
.conviction-box .lead { font-size: 1.5rem; font-weight: 800; color: var(--ink); line-height: 1.3; margin-bottom: 24px; }
.conviction-box .signature { font-size: 1.25rem; font-weight: 800; color: var(--accent-ink); margin-top: 8px; }

/* ---------- Grilles de cartes ---------- */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cards-grid.two { grid-template-columns: repeat(2, 1fr); }
.cards-grid.four { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #e2ddd2; }
.card-icon {
  width: 52px; height: 52px; border-radius: 14px; background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center; font-size: 1.6rem; margin-bottom: 18px;
}
.card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.card p { color: var(--text); font-size: .98rem; margin: 0; }

/* liste à puces orange */
.check-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.check-list li { position: relative; padding-left: 28px; color: var(--text); font-size: .98rem; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .5em; width: 9px; height: 9px;
  background: var(--accent); border-radius: 50%;
}

/* ---------- Tarifs / formules ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.plan {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 32px 28px; display: flex; flex-direction: column; box-shadow: var(--shadow);
  position: relative; transition: transform .2s ease, box-shadow .2s ease;
}
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.plan.featured { border: 2px solid var(--accent); box-shadow: 0 14px 40px rgba(244,160,60,.22); }
.plan-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #241300; font-size: .72rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .05em; padding: 5px 14px; border-radius: 999px;
}
.plan-name { font-size: 1.4rem; font-weight: 900; color: var(--ink); }
.plan-tagline { color: var(--accent-ink); font-weight: 600; font-style: italic; font-size: .98rem; margin: 4px 0 18px; }
.plan-price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; margin-bottom: 4px; }
.plan-price .from { font-size: .85rem; color: var(--muted); font-weight: 600; }
.plan-price .amount { font-size: 2.1rem; font-weight: 900; color: var(--ink); }
.plan-price .period { font-size: .9rem; color: var(--muted); font-weight: 600; }
.plan-ttc { font-size: .85rem; color: var(--muted); margin-bottom: 20px; }
.plan .includes { font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 700; margin-bottom: 12px; }
.plan .check-list { flex: 1; margin-bottom: 24px; }
.plan .btn { width: 100%; }

.pricing-note {
  max-width: 760px; margin: 32px auto 0; text-align: center; color: var(--muted);
  font-size: .95rem; background: var(--bg-soft); border: 1px dashed var(--line);
  border-radius: var(--radius-sm); padding: 16px 20px;
}

/* Tableau options / prestations */
.offer-table { width: 100%; border-collapse: collapse; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.offer-table th, .offer-table td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line); font-size: .96rem; }
.offer-table th { background: var(--bg-soft); color: var(--ink); font-weight: 700; font-size: .82rem; text-transform: uppercase; letter-spacing: .03em; }
.offer-table tr:last-child td { border-bottom: none; }
.offer-table td:first-child { font-weight: 700; color: var(--ink); }
.offer-table .price-cell { color: var(--accent-ink); font-weight: 700; white-space: nowrap; }
.table-scroll { overflow-x: auto; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 40px; max-width: 960px; margin: 0 auto; }
.faq-item h4 { font-size: 1.05rem; margin-bottom: 6px; }
.faq-item h4::before { content: "› "; color: var(--accent); }
.faq-item p { color: var(--text); font-size: .96rem; margin: 0; }

/* ---------- Étapes (méthodo) ---------- */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.step {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px; box-shadow: var(--shadow);
}
.step-number { font-size: 1.6rem; font-weight: 900; color: var(--accent); }
.step h3 { font-size: 1.1rem; margin: 8px 0 6px; }
.step p { font-size: .94rem; color: var(--text); margin: 0; }

/* ---------- Placeholders photos ---------- */
.photo-ph {
  background: repeating-linear-gradient(45deg, #f6f2ea, #f6f2ea 12px, #f1ece2 12px, #f1ece2 24px);
  border: 2px dashed #d9d1c3; border-radius: var(--radius);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; color: #9a917f; font-size: .9rem; font-weight: 600; padding: 24px; min-height: 220px;
}
.photo-ph::before { content: "📷"; font-size: 1.8rem; margin-bottom: 8px; }
.photo-ph.round { border-radius: 50%; width: 150px; height: 150px; min-height: 0; margin: 0 auto; }
.photo-ph.round::before { margin-bottom: 2px; }

/* ---------- Qui sommes-nous / storytelling ---------- */
.story { max-width: 820px; margin: 0 auto; }
.story h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 8px; }
.story h3 { font-size: 1.35rem; margin: 0 0 14px; }
.story p { font-size: 1.06rem; }
.story .emph { font-weight: 700; color: var(--ink); }
.story-signature { font-weight: 800; color: var(--accent-ink); font-size: 1.15rem; margin-top: 10px; }
.story-photo { display: block; width: 100%; max-width: 860px; margin: 0 auto 44px; border-radius: var(--radius); box-shadow: var(--shadow-lg); }

.founder { display: grid; grid-template-columns: 180px 1fr; gap: 32px; align-items: start; }
.founder + .founder { margin-top: 56px; padding-top: 56px; border-top: 1px solid var(--line); }
.founder-photo { position: sticky; top: 100px; }
.founder-img { width: 150px; height: 150px; border-radius: 50%; object-fit: cover; display: block; margin: 0 auto; box-shadow: var(--shadow-lg); }
.founder-name { font-weight: 800; color: var(--ink); margin-top: 12px; text-align: center; }
.founder-role { color: var(--muted); font-size: .88rem; text-align: center; }

/* ---------- CTA final / audit ---------- */
.cta-final { background: var(--bg-warm); }
.cta-box { max-width: 760px; margin: 0 auto; text-align: center; }
.cta-perks { display: flex; flex-wrap: wrap; gap: 18px 28px; justify-content: center; margin-top: 20px; }
.cta-perk { display: flex; align-items: center; gap: 8px; color: var(--text); font-weight: 600; font-size: .96rem; }
.cta-perk::before { content: ""; width: 8px; height: 8px; background: var(--accent); border-radius: 50%; }

/* ---------- Contact ---------- */
.contact-hero { text-align: center; padding: 72px 0 40px; }
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 32px; align-items: start; }

.contact-info-card { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px; }
.contact-info-card h3 { font-size: 1.2rem; margin-bottom: 20px; }
.contact-detail { display: flex; gap: 14px; margin-bottom: 18px; }
.contact-detail-icon { font-size: 1.3rem; }
.contact-detail-text strong { display: block; color: var(--ink); font-size: .95rem; }
.contact-detail-text span, .contact-detail-text a { color: var(--muted); font-size: .95rem; }
.engagements { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); }
.engagements h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-bottom: 12px; }
.engagement-item { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; color: var(--text); font-size: .95rem; }
.engagement-item::before { content: ""; width: 8px; height: 8px; background: var(--accent); border-radius: 50%; flex: 0 0 auto; }

.contact-form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: .9rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.required { color: var(--accent-ink); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; font-family: inherit; font-size: .98rem; color: var(--ink);
  background: var(--bg); border: 1px solid #d9d4cb; border-radius: var(--radius-sm); padding: 12px 14px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.form-group textarea { min-height: 140px; resize: vertical; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(244,160,60,.18);
}
.form-privacy { font-size: .9rem; color: var(--muted); }
.form-consent { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 18px; font-size: .88rem; color: var(--text); }
.form-consent input { margin-top: 4px; flex: 0 0 auto; }
.form-consent a { color: var(--accent-ink); text-decoration: underline; }
.form-submit { width: 100%; }
.form-message { margin-top: 16px; padding: 14px 16px; border-radius: var(--radius-sm); font-size: .95rem; display: none; }
.form-message.success { display: block; background: #e8f6ec; color: #1c7a3e; border: 1px solid #b9e3c6; }
.form-message.error { display: block; background: #fdeaea; color: #b42318; border: 1px solid #f5c4c0; }

/* ---------- Pages légales ---------- */
.legal { max-width: 820px; margin: 0 auto; }
.legal h1 { font-size: 2rem; margin-bottom: 8px; }
.legal .updated { color: var(--muted); font-size: .9rem; margin-bottom: 32px; }
.legal h2 { font-size: 1.25rem; margin: 32px 0 12px; }
.legal p, .legal li { color: var(--text); font-size: 1rem; }
.legal ul { padding-left: 20px; margin-bottom: 1rem; }
.legal .todo { background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; padding: 1px 6px; border-radius: 4px; }
.legal .callout { background: var(--bg-soft); border-left: 3px solid var(--accent); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 16px 20px; margin: 20px 0; }

/* ---------- Footer ---------- */
footer { background: #1a1a1a; color: #c9c9cd; padding: 56px 0 28px; }
footer h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 32px; }
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-logo .logo-name { color: #fff; font-weight: 800; font-size: 1.1rem; }
.footer-logo .logo-name span { color: var(--accent); }
.footer-description { font-size: .92rem; color: #a5a5ac; max-width: 32ch; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col a { color: #b8b8be; font-size: .92rem; transition: color .2s ease; }
.footer-col a:hover { color: var(--accent); }
.footer-contact-item { display: flex; gap: 10px; margin-bottom: 10px; font-size: .92rem; color: #b8b8be; }
.footer-contact-item a { color: #b8b8be; }
.footer-contact-item a:hover { color: var(--accent); }
.footer-immat { display: inline-block; margin-top: 6px; font-size: .8rem; color: #241300; background: var(--accent); font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.footer-bottom { border-top: 1px solid #2e2e2e; margin-top: 40px; padding-top: 22px;
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; font-size: .85rem; color: #8a8a90; }
.footer-legal { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-legal a { color: #8a8a90; }
.footer-legal a:hover { color: var(--accent); }

/* ---------- Animation d'apparition ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- Contact : les deux chemins ---------- */
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 36px; }
.choice-card { display: flex; flex-direction: column; align-items: flex-start;
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; }
.choice-card.is-primary { background: var(--bg-warm); border-color: #f3d9b6; }
.choice-card h3 { font-size: 1.14rem; margin-bottom: 8px; }
.choice-card p { font-size: .95rem; color: var(--text); margin-bottom: 20px; }
.choice-card .btn { margin-top: auto; }
.choice-note { font-size: .85rem; color: var(--muted); margin: 12px 0 0; }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-subtitle { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-visual { display: none; }
  .cards-grid, .cards-grid.four, .pricing-grid, .steps-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .choice-grid { grid-template-columns: 1fr; }
  .founder { grid-template-columns: 1fr; }
  .founder-photo { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .navbar-nav { display: none; }
  .navbar-actions .btn { display: none; }
  .hamburger { display: flex; }
  section { padding: 60px 0; }
  .cards-grid, .cards-grid.two, .cards-grid.four, .pricing-grid, .steps-grid,
  .stats-grid, .faq-grid, .form-row, .footer-grid { grid-template-columns: 1fr; }
  .navbar-logo .logo-sub { display: none; }
}
