/* ============================================================
   COURBIERE Kévin – Conseiller Patrimonial | Partenaire Prodémial
   Palette : Rouge #D32F2F / Fond #FFFFFF & #F8F9FA / Texte #212529
   ============================================================ */

:root {
  --rouge: #D32F2F;
  --rouge-fonce: #B71C1C;
  --fond: #FFFFFF;
  --fond-alt: #F8F9FA;
  --texte: #212529;
  --texte-doux: #5F6368;
  --bordure: #E9ECEF;
  --rayon: 12px;
  --ombre: 0 6px 24px rgba(33, 37, 41, 0.08);
  --transition: 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--texte);
  background-color: var(--fond);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  transition: transform var(--transition), box-shadow var(--transition), background-color var(--transition);
  cursor: pointer;
}

.btn-primary {
  background-color: var(--rouge);
  color: #fff;
  box-shadow: 0 4px 14px rgba(211, 47, 47, 0.35);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background-color: var(--rouge-fonce);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(211, 47, 47, 0.4);
}

.btn-light {
  background-color: #fff;
  color: var(--rouge);
}

.btn-light:hover,
.btn-light:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--bordure);
  backdrop-filter: blur(6px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: inline-block;
}

.brand-logo {
  display: block;
  height: 52px;
  width: auto;
}

.nav-list {
  display: flex;
  gap: 8px;
}

.nav-link {
  display: block;
  padding: 8px 16px;
  font-weight: 500;
  border-radius: 8px;
  transition: color var(--transition), background-color var(--transition);
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--rouge);
  background-color: rgba(211, 47, 47, 0.07);
}

/* Bouton burger (mobile) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 8px;
  background: none;
  border: 1px solid var(--bordure);
  border-radius: 8px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background-color: var(--texte);
  border-radius: 2px;
}

/* ---------- Héro ---------- */
.hero {
  background:
    radial-gradient(ellipse 70% 60% at 50% 0%, rgba(211, 47, 47, 0.35) 0%, rgba(211, 47, 47, 0) 65%),
    var(--texte);
  padding: 110px 0 100px;
  text-align: center;
  color: #fff;
}

.hero-logo {
  display: block;
  height: 160px;
  width: auto;
  margin: 0 auto 32px;
}

.hero-title {
  max-width: 820px;
  margin: 0 auto 20px;
  font-size: clamp(1.9rem, 4.5vw, 3.1rem);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #fff;
}

.hero-lead {
  max-width: 620px;
  margin: 0 auto 36px;
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.78);
}

/* ---------- Sections génériques ---------- */
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  text-align: center;
  letter-spacing: -0.4px;
}

.section-title::after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  margin: 14px auto 0;
  background-color: var(--rouge);
  border-radius: 4px;
}

.section-sub {
  max-width: 640px;
  margin: 18px auto 0;
  text-align: center;
  color: var(--texte-doux);
}

/* ---------- Services ---------- */
.services {
  background-color: #EEF1F4;
  padding: 90px 0;
}

/* ---------- Mon approche ---------- */
.approche {
  background-color: var(--texte);
  padding: 90px 0;
  color: #fff;
}

.section-title--light {
  color: #fff;
}

.section-sub--light {
  color: rgba(255, 255, 255, 0.75);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 52px;
  list-style: none;
  counter-reset: etape;
}

.step {
  position: relative;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--rayon);
  padding: 40px 30px 32px;
  transition: transform var(--transition), border-color var(--transition), background-color var(--transition);
}

.step:hover {
  transform: translateY(-6px);
  border-color: rgba(211, 47, 47, 0.6);
  background-color: rgba(255, 255, 255, 0.08);
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 22px;
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  background-color: var(--rouge);
  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(211, 47, 47, 0.4);
}

.step-title {
  margin-bottom: 12px;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
}

.step-text {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.98rem;
}


.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 52px;
}

.card {
  background-color: var(--fond);
  border: 1px solid var(--bordure);
  border-radius: var(--rayon);
  padding: 36px 30px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--ombre);
  border-color: rgba(211, 47, 47, 0.35);
}

.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  margin-bottom: 22px;
  color: var(--rouge);
  background-color: rgba(211, 47, 47, 0.09);
  border-radius: 14px;
}

.card-icon svg {
  width: 28px;
  height: 28px;
}

.card-title {
  margin-bottom: 12px;
  font-size: 1.2rem;
  font-weight: 700;
}

.card-text {
  color: var(--texte-doux);
  font-size: 0.98rem;
}

/* ---------- À propos ---------- */
.about {
  background-color: var(--fond-alt);
  padding: 90px 0;
}

.about-inner {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-photo {
  position: relative;
}

.about-photo::before {
  content: "";
  position: absolute;
  top: 16px;
  left: 16px;
  width: 100%;
  height: 100%;
  background-color: var(--rouge);
  border-radius: var(--rayon);
  opacity: 0.9;
}

.about-photo img {
  position: relative;
  display: block;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 30%;
  border-radius: var(--rayon);
  box-shadow: var(--ombre);
}

.about-text .section-title {
  text-align: left;
}

.about-text .section-title::after {
  margin-left: 0;
}

.about-text p {
  margin-top: 20px;
  color: var(--texte-doux);
}

.about-text strong {
  color: var(--texte);
}

.about-points {
  display: flex;
  flex-direction: column;
  gap: 26px;
  background-color: var(--fond);
  border: 1px solid var(--bordure);
  border-radius: var(--rayon);
  padding: 36px 32px;
  box-shadow: var(--ombre);
}

.about-points li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.point-marker {
  flex: none;
  width: 12px;
  height: 12px;
  margin-top: 7px;
  background-color: var(--rouge);
  border-radius: 50%;
}

.about-points strong {
  font-size: 1.05rem;
}

/* ---------- Honoraires / Transparence ---------- */
.honoraires {
  background-color: rgba(211, 47, 47, 0.07);
  padding: 90px 0;
}

.honoraires-content {
  max-width: 720px;
  margin: 36px auto 0;
  text-align: center;
}

.honoraires-highlight {
  display: inline-block;
  margin-bottom: 24px;
  padding: 12px 26px;
  font-size: 1.15rem;
  color: var(--rouge);
  background-color: rgba(211, 47, 47, 0.09);
  border-radius: 50px;
}

.honoraires-highlight strong {
  font-weight: 800;
}

.honoraires-text {
  margin-top: 14px;
  color: var(--texte-doux);
}

/* ---------- Appel à l'action / Contact ---------- */
.cta {
  background: linear-gradient(135deg, var(--rouge) 0%, var(--rouge-fonce) 100%);
  padding: 80px 0;
  text-align: center;
  color: #fff;
}

.cta-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
}

.cta-text {
  max-width: 560px;
  margin: 16px auto 32px;
  color: rgba(255, 255, 255, 0.9);
}

/* ---------- Footer ---------- */
.footer {
  background-color: var(--texte);
  color: rgba(255, 255, 255, 0.8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr 1.3fr 0.8fr;
  gap: 40px;
  padding-top: 56px;
  padding-bottom: 48px;
}

.footer-brand {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
}

.footer-tagline {
  margin-top: 8px;
  font-size: 0.9rem;
}

.footer-heading {
  margin-bottom: 12px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-contact {
  font-style: normal;
  line-height: 1.9;
}

.footer-contact strong {
  color: #fff;
}

.footer-zone {
  line-height: 1.8;
}

.footer-contact a:hover,
.footer-links a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 20px 0;
  font-size: 0.85rem;
  text-align: center;
}

.footer-orias {
  margin-top: 6px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
}

.footer-orias a {
  color: inherit;
  text-decoration: underline;
}

.footer-orias a:hover {
  color: #fff;
}

/* ---------- Formulaire de contact ---------- */
.contact-form {
  background-color: var(--fond-alt);
  padding: 90px 0;
}

.form {
  max-width: 680px;
  margin: 44px auto 0;
  background-color: var(--fond);
  border: 1px solid var(--bordure);
  border-radius: var(--rayon);
  padding: 40px 36px;
  box-shadow: var(--ombre);
}

.form-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.9rem;
  font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  color: var(--texte);
  background-color: var(--fond);
  border: 1px solid var(--bordure);
  border-radius: 8px;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--rouge);
  box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.15);
}

.form-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 26px;
  font-size: 0.88rem;
  color: var(--texte-doux);
}

.form-consent input {
  flex: none;
  margin-top: 4px;
  accent-color: var(--rouge);
}

.form-consent a {
  color: var(--rouge);
  text-decoration: underline;
}

.form-alerte {
  max-width: 680px;
  margin: 32px auto 0;
  padding: 16px 22px;
  border-radius: var(--rayon);
  font-weight: 500;
}

.form-alerte--ok {
  color: #1B5E20;
  background-color: #E8F5E9;
  border: 1px solid #A5D6A7;
}

.form-alerte--erreur {
  color: var(--rouge-fonce);
  background-color: rgba(211, 47, 47, 0.08);
  border: 1px solid rgba(211, 47, 47, 0.35);
}

/* ---------- FAQ ---------- */
.faq {
  background-color: #EEF1F4;
  padding: 90px 0;
}

.faq-list {
  max-width: 820px;
  margin: 44px auto 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background-color: var(--fond);
  border: 1px solid var(--bordure);
  border-left: 4px solid var(--rouge);
  border-radius: var(--rayon);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.faq-item:hover {
  box-shadow: var(--ombre);
}

.faq-item summary {
  position: relative;
  padding: 20px 56px 20px 24px;
  font-weight: 600;
  font-size: 1.02rem;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 22px;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--rouge);
  transition: transform var(--transition);
}

.faq-item[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq-item[open] summary {
  color: var(--rouge);
}

.faq-answer {
  padding: 0 24px 22px;
  color: var(--texte-doux);
}

/* ---------- Page Mentions légales ---------- */
.legal {
  background-color: var(--fond-alt);
  padding: 80px 0 90px;
}

.legal-inner {
  max-width: 820px;
}

.legal-title {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.4px;
}

.legal-title::after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  margin-top: 14px;
  background-color: var(--rouge);
  border-radius: 4px;
}

.legal-section {
  margin-top: 44px;
  background-color: var(--fond);
  border: 1px solid var(--bordure);
  border-left: 4px solid var(--rouge);
  border-radius: var(--rayon);
  padding: 30px 34px;
}

.legal-section h2 {
  margin-bottom: 16px;
  font-size: 1.25rem;
  font-weight: 700;
}

.legal-list li {
  margin-bottom: 10px;
  color: var(--texte-doux);
}

.legal-list li:last-child {
  margin-bottom: 0;
}

.legal-list strong,
.legal-section p {
  color: var(--texte);
}

.legal-section a {
  color: var(--rouge);
  font-weight: 500;
}

.legal-section a:hover {
  text-decoration: underline;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .cards,
  .steps {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
  }

  .about-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-photo {
    max-width: 340px;
    margin: 0 auto;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .brand-logo {
    height: 42px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    background-color: #fff;
    border-bottom: 1px solid var(--bordure);
    box-shadow: var(--ombre);
  }

  .nav.is-open {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    gap: 0;
    padding: 12px 24px 20px;
  }

  .nav-link {
    padding: 12px 8px;
    border-bottom: 1px solid var(--bordure);
    border-radius: 0;
  }

  .nav-list li:last-child .nav-link {
    border-bottom: none;
  }

  .hero {
    padding: 80px 0 70px;
  }

  .hero-logo {
    height: 120px;
    margin-bottom: 24px;
  }

  .services,
  .approche,
  .about,
  .contact-form,
  .faq {
    padding: 64px 0;
  }

  .form {
    padding: 28px 22px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .cta {
    padding: 64px 0;
  }
}

/* Accessibilité : réduction des animations */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn,
  .card,
  .nav-link {
    transition: none;
  }
}
