/* ==========================================================================
   jailechoix — Système CSS complet
   ========================================================================== */


/* ==========================================================================
   1. Design Tokens (:root)
   ========================================================================== */

:root {
  /* Couleurs */
  --jlc-rouge: #B92229;
  --jlc-rouge-hover: #8F1A20;
  --jlc-noir: #231F20;
  --jlc-noir-footer: #1A1617;
  --jlc-blanc: #FFFFFF;
  --jlc-gris-fond: #F5F5F5;
  --jlc-gris-texte: #555555;

  /* Cartes */
  --radius-card: 12px;
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.08);
  --shadow-card-hover: 0 8px 32px rgba(0, 0, 0, 0.14);

  /* Animation */
  --transition: 0.25s ease;

  /* Mise en page */
  --section-padding: 100px 0;
  --container-max: 1200px;
  --container-padding: 0 24px;
}


/* ==========================================================================
   2. Reset & Base
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Open Sans', sans-serif;
  color: var(--jlc-noir);
  background: var(--jlc-blanc);
  line-height: 1.6;
}

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

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


/* ==========================================================================
   3. Container
   ========================================================================== */

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


/* ==========================================================================
   4. Typographie utilitaire
   ========================================================================== */

.script-accent {
  font-family: 'Caveat', cursive;
  font-weight: 700;
  color: var(--jlc-rouge);
  font-size: 1.5rem;
  display: block;
  margin-bottom: 0.25rem;
}

h1,
h2 {
  font-family: 'Raleway', sans-serif;
  font-weight: 800;
  line-height: 1.15;
}

h3,
h4 {
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  line-height: 1.3;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
}

.section-divider {
  width: 60px;
  height: 4px;
  background: var(--jlc-rouge);
  border-radius: 2px;
  margin-bottom: 3rem;
}


/* ==========================================================================
   5. Boutons
   ========================================================================== */

.btn-primary {
  display: inline-block;
  background: var(--jlc-rouge);
  color: var(--jlc-blanc);
  font-family: 'Open Sans', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 32px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.btn-primary:hover {
  background: var(--jlc-rouge-hover);
  transform: translateY(-2px);
}

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--jlc-blanc);
  font-family: 'Open Sans', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 32px;
  border-radius: 10px;
  border: 2px solid var(--jlc-blanc);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}


/* ==========================================================================
   6. Cartes
   ========================================================================== */

.card {
  background: var(--jlc-blanc);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 2rem;
  transition:
    box-shadow var(--transition),
    transform var(--transition),
    border-color var(--transition);
  border: 2px solid transparent;
}

.card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
  border-color: var(--jlc-rouge);
}


/* ==========================================================================
   7. Sections utilitaires
   ========================================================================== */

section {
  padding: var(--section-padding);
}

.section-light {
  background: var(--jlc-blanc);
}

.section-grey {
  background: #F5F5F5;
}

.section-dark {
  background: #231F20;
  color: var(--jlc-blanc);
}

.section-red {
  background: #B92229;
  color: var(--jlc-blanc);
}


/* ==========================================================================
   8. Grille de cartes
   ========================================================================== */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

@media (max-width: 900px) {
  .cards-grid {
    grid-template-columns: 1fr;
  }
}


/* === NAVIGATION === */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition);
  height: 80px;
  display: flex;
  align-items: center;
}

#navbar.scrolled {
  border-bottom-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav-logo img {
  height: 75px;
}

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

.nav-links a {
  font-family: 'Open Sans', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--jlc-noir);
  transition: color var(--transition);
}

.nav-links a:hover {
  color: var(--jlc-rouge);
}

.nav-cta {
  font-size: 0.875rem !important;
  padding: 10px 22px !important;
  color: var(--jlc-blanc) !important;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--jlc-noir);
  border-radius: 2px;
  transition: var(--transition);
}

@media (max-width: 768px) {
  .nav-hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--jlc-blanc);
    padding: 1.5rem;
    gap: 1.25rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
  }

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

  .nav-cta {
    align-self: flex-start;
  }
}

/* === HERO === */
.hero {
  min-height: 100vh;
  display: flex;
  padding-top: 80px;
}

.hero-left {
  flex: 0 0 60%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 64px;
  background: var(--jlc-blanc);
}

.hero-right {
  flex: 0 0 40%;
  background: var(--jlc-rouge);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 48px;
  position: relative;
  overflow: hidden;
}

.hero-logo {
  height: 64px;
  width: auto;
  margin-bottom: 2.5rem;
}

.hero-title {
  font-size: clamp(2.5rem, 4.5vw, 4rem);
  color: var(--jlc-noir);
  margin-bottom: 1.25rem;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--jlc-gris-texte);
  max-width: 480px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.hero-cta {
  font-size: 1.05rem;
  padding: 16px 36px;
  align-self: flex-start;
}

.hero-quote-wrap {
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-smiley {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  opacity: 0.9;
}

.hero-quote {
  font-family: 'Caveat', cursive;
  font-weight: 700;
  font-size: clamp(1.75rem, 2.5vw, 2.25rem);
  color: var(--jlc-blanc);
  line-height: 1.4;
}

/* Smiley décoratif en fond */
.hero-right::before {
  content: '';
  position: absolute;
  width: 320px;
  height: 320px;
  background: url('../logos/smiley-wht.svg') no-repeat center / contain;
  opacity: 0.06;
  bottom: -60px;
  right: -60px;
  pointer-events: none;
}

/* Mobile */
@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    min-height: auto;
  }

  .hero-left {
    flex: none;
    padding: 60px 24px 48px;
  }

  .hero-right {
    flex: none;
    padding: 48px 24px;
  }

  .hero-logo {
    height: 48px;
  }

  .hero-cta {
    align-self: stretch;
    text-align: center;
  }
}

/* === SERVICES COMPTABLES === */
.service-card {
  text-align: center;
}

.card-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1.25rem;
}

.card-icon img {
  width: 100%;
  height: 100%;
}

.service-card h3 {
  font-size: 1.25rem;
  color: var(--jlc-noir);
  margin-bottom: 0.75rem;
}

.service-card p {
  color: var(--jlc-gris-texte);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* === COACHING & MENTORAT === */
.coaching-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.coaching-card {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  background: #2E2A2B;
  border-left: 4px solid var(--jlc-rouge);
  border-radius: 0 var(--radius-card) var(--radius-card) 0;
  padding: 1.75rem 2rem;
}

.coaching-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  margin-top: 3px;
}

.coaching-card h3 {
  color: var(--jlc-blanc);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.coaching-card p {
  color: #B0ABAC;
  font-size: 0.95rem;
  line-height: 1.7;
}

.coaching-quote {
  background: var(--jlc-rouge);
  border-radius: var(--radius-card);
  padding: 2rem 2.5rem;
  font-family: 'Caveat', cursive;
  font-weight: 700;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  color: var(--jlc-blanc);
  text-align: center;
  border: none;
  margin: 0;
}

/* === NOTRE APPROCHE — TIMELINE === */
.timeline {
  display: flex;
  align-items: flex-start;
}

.timeline-step {
  flex: 1;
  text-align: center;
  padding: 0 1rem;
}

.timeline-number {
  font-family: 'Raleway', sans-serif;
  font-weight: 800;
  font-size: 3.5rem;
  color: var(--jlc-rouge);
  line-height: 1;
  margin-bottom: 1rem;
}

.timeline-step h3 {
  font-size: 1.15rem;
  color: var(--jlc-noir);
  margin-bottom: 0.5rem;
}

.timeline-step p {
  color: var(--jlc-gris-texte);
  font-size: 0.9rem;
  line-height: 1.6;
}

.timeline-connector {
  flex: 0 0 40px;
  height: 4px;
  background: var(--jlc-rouge);
  align-self: center;
  margin-top: -80px;
  border-radius: 2px;
  opacity: 0.4;
}

@media (max-width: 900px) {
  .timeline {
    flex-direction: column;
    align-items: center;
    gap: 0;
  }

  .timeline-step {
    padding: 0;
    width: 100%;
    max-width: 400px;
    text-align: left;
    display: flex;
    flex-direction: column;
  }

  .timeline-connector {
    width: 4px;
    height: 32px;
    flex: none;
    margin: 0;
    align-self: center;
  }
}

/* === À PROPOS === */
.about-grid {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 5rem;
  align-items: center;
}

.about-photo-wrap {
  position: relative;
  width: fit-content;
}

.about-photo {
  width: 340px;
  max-width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 16px;
  display: block;
  padding: 20px;
  background: var(--jlc-gris-fond);
  box-sizing: border-box;
}

.about-badge {
  position: absolute;
  bottom: -16px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--jlc-rouge);
  color: var(--jlc-blanc);
  font-family: 'Open Sans', sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  padding: 6px 16px;
  border-radius: 20px;
  white-space: nowrap;
}

.about-smiley-deco {
  position: absolute;
  top: -16px;
  right: -16px;
  width: 48px;
  height: 48px;
  opacity: 0.6;
}

.about-content p {
  color: var(--jlc-gris-texte);
  line-height: 1.8;
}

.about-oaa {
  margin: 1.5rem 0 1rem;
  width: fit-content;
  padding: 10px 14px;
  background: var(--jlc-rouge);
  border-radius: 12px;
}

.about-oaa-logo {
  display: block;
  width: 100%;
  max-width: 240px;
  height: auto;
}

.about-quote {
  font-family: 'Caveat', cursive;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--jlc-rouge);
  border: none;
  margin: 2rem 0 1.5rem;
  padding: 0;
  line-height: 1.4;
}

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

  .about-photo-wrap {
    margin: 0 auto;
  }

  .about-photo {
    width: 260px;
  }

  .about-oaa-logo {
    max-width: 220px;
  }
}

/* === TÉMOIGNAGES === */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  border-color: transparent;
}

.testimonial-quote-mark {
  font-family: 'Caveat', cursive;
  font-size: 4rem;
  color: var(--jlc-rouge);
  line-height: 0.8;
  display: block;
}

.testimonial-card p {
  color: var(--jlc-gris-texte);
  font-size: 0.95rem;
  line-height: 1.7;
  flex: 1;
}

.testimonial-card footer {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 1rem;
  border-top: 1px solid #eee;
}

.testimonial-card footer strong {
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  color: var(--jlc-noir);
  font-size: 0.95rem;
}

.testimonial-card footer span {
  color: var(--jlc-gris-texte);
  font-size: 0.8rem;
}

@media (max-width: 900px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
}

/* === CONTACT === */
.contact-grid {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 5rem;
  align-items: start;
}

.contact-intro {
  color: #B0ABAC;
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.contact-smiley {
  width: 80px;
  height: 80px;
  margin-bottom: 2rem;
  opacity: 0.85;
}

.contact-secure {
  color: #7A7577;
  font-size: 0.8rem;
}

/* Formulaire dark */
.contact-form-wrap {
  background: #2E2A2B;
  border-radius: var(--radius-card);
  padding: 1.25rem;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #C8C3C4;
  font-family: 'Open Sans', sans-serif;
}

.form-optional {
  font-weight: 400;
  color: #7A7577;
  font-size: 0.8rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: #3A3536;
  border: 1px solid #4A4546;
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--jlc-blanc);
  font-family: 'Open Sans', sans-serif;
  font-size: 0.95rem;
  transition: border-color var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--jlc-rouge);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
  border-color: #ff6b6b;
}

.form-group select option {
  background: #3A3536;
}

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

.h-captcha {
  margin: 1rem 0;
}

.form-submit {
  width: 100%;
  justify-content: center;
  margin-top: 0.5rem;
  font-size: 1rem;
  padding: 16px;
}

.form-feedback {
  margin-top: 1rem;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  display: none;
}

.form-feedback.success {
  display: block;
  background: rgba(34, 197, 94, 0.15);
  color: #86efac;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.form-feedback.error {
  display: block;
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

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

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

/* === FOOTER === */
#footer {
  background: var(--jlc-noir-footer);
  color: #B0ABAC;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1fr;
  gap: 3rem;
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}

.footer-logo {
  height: 40px;
  width: auto;
  margin-bottom: 1rem;
  filter: brightness(0) invert(1);
}

.footer-brand p {
  font-size: 0.875rem;
  color: #7A7577;
  line-height: 1.6;
  max-width: 260px;
}

.footer-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-nav a {
  font-size: 0.875rem;
  color: #B0ABAC;
  transition: color var(--transition);
}

.footer-nav a:hover {
  color: var(--jlc-rouge);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: #B0ABAC;
  transition: color var(--transition);
}

.footer-link:hover {
  color: var(--jlc-rouge);
}

.footer-bottom {
  border-top: 1px solid #2E2A2B;
  padding: 1.25rem 0;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: #5A5557;
}

.footer-legal-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: #5A5557;
}

.footer-legal-links a {
  color: #5A5557;
  transition: color var(--transition);
}

.footer-legal-links a:hover {
  color: var(--jlc-rouge);
}

.footer-cookie-btn {
  background: none;
  border: none;
  color: #5A5557;
  font-family: 'Open Sans', sans-serif;
  font-size: 0.8rem;
  cursor: pointer;
  padding: 0;
  transition: color var(--transition);
}

.footer-cookie-btn:hover {
  color: var(--jlc-rouge);
}

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

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

/* === COOKIE BANNER === */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2000;
  background: var(--jlc-noir);
  border-top: 3px solid var(--jlc-rouge);
  padding: 1.25rem 1.5rem;
  transform: translateY(0);
  transition: transform 0.4s ease;
}

.cookie-banner.hidden {
  transform: translateY(110%);
}

.cookie-banner-content {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.cookie-banner-content p {
  color: #B0ABAC;
  font-size: 0.875rem;
  line-height: 1.5;
  flex: 1;
  margin: 0;
}

.cookie-banner-content a {
  color: var(--jlc-rouge);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-banner-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.cookie-btn-accept {
  padding: 10px 24px;
  font-size: 0.875rem;
}

.cookie-link {
  font-size: 0.875rem;
  color: #7A7577;
  transition: color var(--transition);
  text-decoration: none;
}

.cookie-link:hover {
  color: var(--jlc-blanc);
}

@media (max-width: 600px) {
  .cookie-banner-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .cookie-banner-actions {
    width: 100%;
    justify-content: space-between;
  }
}

/* === PAGE LÉGALE === */
.legal-page {
  padding-top: 80px;
}

.legal-section {
  padding: 0;
}

.legal-content {
  max-width: 800px;
  padding-top: 80px;
  padding-bottom: 80px;
}

.legal-header {
  margin-bottom: 3rem;
}

.legal-date {
  color: var(--jlc-gris-texte);
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.legal-body {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.legal-section h2 {
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--jlc-noir);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--jlc-rouge);
}

.legal-section p,
.legal-section li {
  color: var(--jlc-gris-texte);
  line-height: 1.8;
  font-size: 0.95rem;
}

.legal-section ul {
  margin: 0.75rem 0 0.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.legal-section a {
  color: var(--jlc-rouge);
  text-decoration: underline;
  text-underline-offset: 2px;
}
