/* ================================================
   Gauthier Delmas — Feuille de style principale
   ================================================ */

:root {
  --navy:        #1a3a5c;
  --navy-dark:   #0f2338;
  --navy-light:  #2a5a8c;
  --gold:        #c4922a;
  --gold-light:  #e8b845;
  --gold-text:   #7a5c18; /* assez foncé pour passer WCAG AA sur fond blanc */
  --white:       #ffffff;
  --off-white:   #f8f6f0;
  --light-gray:  #eeebe3;
  --border:      #d4cfc6;
  --text:        #1a1a1a;
  --text-muted:  #555550;

  --font-heading: Georgia, 'Times New Roman', serif;
  --font-body:    -apple-system, 'Helvetica Neue', Arial, sans-serif;

  --max-width: 1080px;
  --gap:       1.5rem;
  --radius:    4px;
  --transition: 200ms ease;
}

/* ---- Reset & base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
img { max-width: 100%; height: auto; display: block; }

/* ---- Accessibilité : lien d'évitement ---- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--navy);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  text-decoration: none;
  font-weight: 700;
  z-index: 9999;
  border-radius: 0 0 var(--radius) var(--radius);
}
.skip-link:focus { top: 0; }

/* Focus visible — indispensable VoiceOver + clavier */
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

/* ---- Typographie ---- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.25;
  color: var(--navy-dark);
}
h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.1rem; }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }
a { color: var(--navy); text-decoration: underline; }
a:hover { color: var(--navy-light); }
ul, ol { padding-left: 1.5rem; margin-bottom: 1rem; }
li { margin-bottom: 0.35rem; }
strong { font-weight: 700; }

/* ---- Conteneurs ---- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}
.section { padding: 4rem 0; }
.section--alt   { background: var(--off-white); }
.section--navy  { background: var(--navy); color: var(--white); }
.section--navy h2,
.section--navy h3,
.section--navy h4 { color: var(--white); }

/* ---- En-tête du site ---- */
.site-header {
  background: var(--navy);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 1rem;
}
.site-header__logo {
  text-decoration: none;
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.2;
  flex-shrink: 0;
}
.site-header__logo span {
  display: block;
  font-size: 0.68rem;
  font-family: var(--font-body);
  font-weight: 400;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Nav principale */
.main-nav { display: flex; align-items: center; }
.main-nav__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.1rem;
}
.main-nav__link {
  display: block;
  padding: 0.5rem 0.7rem;
  color: rgba(255,255,255,0.88);
  text-decoration: none;
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-weight: 500;
  white-space: nowrap;
  transition: background var(--transition), color var(--transition);
}
.main-nav__link:hover { background: rgba(255,255,255,0.12); color: var(--white); }
.main-nav__link[aria-current="page"] {
  background: rgba(255,255,255,0.18);
  color: var(--white);
  font-weight: 700;
}

/* Dropdown IEP */
.main-nav__item--dropdown { position: relative; }
.main-nav__dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--navy-dark);
  border-radius: var(--radius);
  padding: 0.5rem 0;
  min-width: 230px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  list-style: none;
  margin: 0;
  z-index: 200;
}
.main-nav__item--dropdown:hover .main-nav__dropdown,
.main-nav__item--dropdown:focus-within .main-nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.main-nav__dropdown li { margin: 0; }
.main-nav__dropdown a {
  display: block;
  padding: 0.5rem 1.25rem;
  color: rgba(255,255,255,0.82);
  text-decoration: none;
  font-size: 0.85rem;
  transition: background var(--transition), color var(--transition);
}
.main-nav__dropdown a:hover,
.main-nav__dropdown a:focus-visible {
  background: rgba(255,255,255,0.1);
  color: var(--white);
}

/* Bouton menu mobile */
.menu-toggle {
  display: none;
  background: none;
  border: 2px solid rgba(255,255,255,0.5);
  color: var(--white);
  padding: 0.4rem 0.65rem;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.85rem;
  font-family: var(--font-body);
  line-height: 1.4;
  transition: border-color var(--transition), background var(--transition);
}
.menu-toggle:hover, .menu-toggle:focus-visible {
  border-color: var(--white);
  background: rgba(255,255,255,0.1);
}

@media (max-width: 800px) {
  .menu-toggle { display: flex; align-items: center; gap: 0.4rem; }
  .main-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--navy-dark);
    padding: 0.75rem 1rem 1.25rem;
    flex-direction: column;
    align-items: stretch;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  }
  .main-nav.is-open { display: flex; }
  .main-nav__list { flex-direction: column; gap: 0; }
  .main-nav__link { padding: 0.75rem 1rem; border-radius: 0; border-bottom: 1px solid rgba(255,255,255,0.07); }
  .main-nav__dropdown {
    position: static;
    opacity: 1; visibility: visible; transform: none;
    box-shadow: none;
    background: transparent;
    padding: 0 0 0 1rem;
  }
  .main-nav__dropdown a { border-bottom: 1px solid rgba(255,255,255,0.05); }
}

/* ---- Hero (page d'accueil) ---- */
.hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, var(--navy-light) 100%);
  color: var(--white);
  padding: 5rem 0 4.5rem;
  text-align: center;
}
.hero__eyebrow {
  display: inline-block;
  background: var(--gold);
  color: var(--navy-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.9rem;
  border-radius: 2rem;
  margin-bottom: 1.25rem;
}
.hero__title {
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--white);
  max-width: 780px;
  margin: 0 auto 1.25rem;
  line-height: 1.2;
}
.hero__title em { color: var(--gold-light); font-style: normal; }
.hero__subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.82);
  max-width: 580px;
  margin: 0 auto 2.25rem;
  line-height: 1.65;
}
.hero__ctas { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* Barre de stats sous le hero */
.stats-strip {
  background: var(--navy-dark);
  color: var(--white);
  border-top: 1px solid rgba(255,255,255,0.1);
}
.stats-strip__inner {
  display: flex;
  justify-content: center;
  gap: 3rem;
  padding: 1.5rem 0;
  flex-wrap: wrap;
}
.stat-item { text-align: center; }
.stat-item__number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  font-family: var(--font-heading);
  color: var(--gold-light);
  line-height: 1;
}
.stat-item__label { font-size: 0.82rem; color: rgba(255,255,255,0.7); margin-top: 0.2rem; }

/* ---- Hero interne (sous-pages) ---- */
.page-hero {
  background: var(--navy);
  color: var(--white);
  padding: 3rem 0 3.5rem;
}
.page-hero h1 { color: var(--white); max-width: 780px; }
.page-hero .lead {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.82);
  margin-top: 1rem;
  max-width: 620px;
}

/* ---- Boutons ---- */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  font-family: var(--font-body);
  transition: all var(--transition);
  line-height: 1.4;
  text-align: center;
}
.btn--primary {
  background: var(--gold);
  color: var(--navy-dark);
  border-color: var(--gold);
}
.btn--primary:hover, .btn--primary:focus-visible {
  background: var(--gold-light);
  border-color: var(--gold-light);
  color: var(--navy-dark);
}
.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}
.btn--outline:hover, .btn--outline:focus-visible {
  border-color: var(--white);
  background: rgba(255,255,255,0.1);
  color: var(--white);
}
.btn--outline-navy {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn--outline-navy:hover, .btn--outline-navy:focus-visible {
  background: var(--navy);
  color: var(--white);
}
.btn--lg { padding: 0.9rem 2.25rem; font-size: 1.05rem; }
.btn--sm { padding: 0.5rem 1.1rem; font-size: 0.88rem; }

/* ---- Cards services ---- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--gap);
}
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.08); transform: translateY(-2px); }
.card__icon {
  width: 52px;
  height: 52px;
  background: var(--off-white);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 0.4rem;
}
.card__title { font-size: 1.2rem; margin-bottom: 0; }
.card__body { color: var(--text-muted); font-size: 0.95rem; flex: 1; }
.card__link {
  margin-top: 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--navy);
  text-decoration: none;
}
.card__link:hover { color: var(--navy-light); }
.card__link::after { content: '→'; }

/* ---- Bloc biographie ---- */
.about-block {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 640px) {
  .about-block { grid-template-columns: 1fr; gap: 1.5rem; }
}
.about-block__meta {
  background: var(--off-white);
  border-radius: var(--radius);
  padding: 1.75rem;
  border-left: 4px solid var(--gold);
}
.about-block__meta h3 { font-size: 1.2rem; margin-bottom: 0.4rem; }
.about-block__meta .subtitle { color: var(--text-muted); font-size: 0.88rem; margin-bottom: 1rem; }
.about-block__meta ul { padding-left: 1.2rem; margin: 0; }
.about-block__meta li { font-size: 0.9rem; color: var(--text-muted); }

/* ---- Tarifs ---- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: var(--gap);
  align-items: start;
}
.pricing-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
}
.pricing-card--featured {
  border-color: var(--navy);
  position: relative;
}
.pricing-card--featured::before {
  content: 'Le plus demandé';
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--navy);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.8rem;
  border-radius: 2rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.pricing-card__name { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); }
.pricing-card__price {
  font-size: 2.75rem;
  font-weight: 700;
  font-family: var(--font-heading);
  color: var(--navy-dark);
  line-height: 1;
  margin: 0.6rem 0 0.2rem;
}
.pricing-card__price-unit { font-size: 0.95rem; font-weight: 400; color: var(--text-muted); }
.pricing-card__desc { font-size: 0.9rem; color: var(--text-muted); margin: 0.75rem 0 1.5rem; }
.pricing-card__features {
  text-align: left;
  list-style: none;
  padding: 0;
  margin: 0 0 1.75rem;
}
.pricing-card__features li {
  padding: 0.45rem 0 0.45rem 1.6rem;
  border-bottom: 1px solid var(--light-gray);
  font-size: 0.9rem;
  position: relative;
  margin: 0;
}
.pricing-card__features li::before { content: '✓'; position: absolute; left: 0; color: var(--navy); font-weight: 700; }

/* ---- Grille IEP ---- */
.iep-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 0.9rem;
}
.iep-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.4rem;
  text-decoration: none;
  color: var(--navy);
  font-weight: 700;
  font-size: 0.95rem;
  transition: all var(--transition);
  display: flex;
  align-items: center;
}
.iep-card:hover, .iep-card:focus-visible {
  border-color: var(--navy);
  background: var(--off-white);
  color: var(--navy-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.07);
}
.iep-card::after { content: '→'; margin-left: auto; opacity: 0.5; padding-left: 0.5rem; }

/* ---- FAQ / Accordéon ---- */
.faq-list { list-style: none; padding: 0; margin: 0; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-question {
  width: 100%;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--font-body);
  color: var(--navy-dark);
  text-align: left;
  transition: color var(--transition);
}
.faq-question:hover,
.faq-question[aria-expanded="true"] { color: var(--navy-light); }
.faq-icon {
  width: 24px;
  height: 24px;
  min-width: 24px;
  border: 2px solid currentColor;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  line-height: 1;
  transition: transform var(--transition);
}
.faq-question[aria-expanded="true"] .faq-icon { transform: rotate(45deg); }
.faq-answer { display: none; padding: 0 0 1.25rem; color: var(--text-muted); font-size: 0.95rem; line-height: 1.65; }
.faq-answer.is-open { display: block; }

/* ---- Formulaire de contact ---- */
.form-grid { display: grid; gap: 1.25rem; }
.form-grid--2col { grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .form-grid--2col { grid-template-columns: 1fr; } }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label { font-weight: 700; font-size: 0.9rem; color: var(--text); }
.form-group input,
.form-group textarea,
.form-group select {
  padding: 0.75rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  width: 100%;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(26,58,92,0.15);
}
.form-group textarea { resize: vertical; min-height: 140px; }
.form-hint { font-size: 0.8rem; color: var(--text-muted); }
.required-note { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 0.5rem; }

/* ---- Témoignages ---- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--gap);
}
.testimonial {
  background: var(--white);
  border-left: 4px solid var(--gold);
  padding: 1.5rem 1.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  border-left-width: 4px;
  border-left-color: var(--gold);
}
.testimonial__text {
  font-size: 1rem;
  font-style: italic;
  color: var(--text);
  margin-bottom: 1rem;
  line-height: 1.65;
}
.testimonial__author { font-weight: 700; font-size: 0.9rem; color: var(--navy); }
.testimonial__detail { font-size: 0.82rem; color: var(--text-muted); }

/* ---- En-tête de section ---- */
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header__label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin-bottom: 0.75rem;
}
.section--navy .section-header__label { color: rgba(255,255,255,0.65); }
.section-header h2 { margin-bottom: 0.75rem; }
.section-header__sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto;
}
.section--navy .section-header__sub { color: rgba(255,255,255,0.75); }

/* ---- Fil d'Ariane ---- */
.breadcrumb {
  background: var(--off-white);
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--border);
}
.breadcrumb__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 0.4rem;
  font-size: 0.84rem;
  flex-wrap: wrap;
  align-items: center;
}
.breadcrumb__list li { display: flex; align-items: center; gap: 0.4rem; }
.breadcrumb__list li:not(:last-child)::after { content: '/'; color: var(--text-muted); }
.breadcrumb__list a { color: var(--navy); text-decoration: none; }
.breadcrumb__list a:hover { text-decoration: underline; }
.breadcrumb__list [aria-current="page"] { color: var(--text-muted); }

/* ---- Pied de page ---- */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.8);
  padding: 3rem 0 2rem;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2rem;
}
@media (max-width: 680px) {
  .site-footer__grid { grid-template-columns: 1fr; gap: 1.5rem; }
}
.site-footer h4 {
  color: var(--white);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}
.site-footer a { color: rgba(255,255,255,0.7); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer__nav { list-style: none; padding: 0; margin: 0; }
.site-footer__nav li { margin-bottom: 0.45rem; font-size: 0.88rem; }
.site-footer__contact-block { font-size: 0.9rem; line-height: 1.7; }
.site-footer__tel {
  display: inline-block;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold-light) !important;
  margin-top: 0.4rem;
}
.site-footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
}
.site-footer__legal a {
  color: rgba(255,255,255,0.65);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.site-footer__legal a:hover,
.site-footer__legal a:focus-visible {
  color: var(--white);
}

/* ---- Pages légales ---- */
.legal-prose h2 {
  font-size: 1.25rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}
.legal-prose h2:first-of-type { margin-top: 0; }
.legal-prose ul { padding-left: 1.35rem; margin-bottom: 1rem; }
.legal-prose li { margin-bottom: 0.45rem; }
.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.25rem;
  font-size: 0.92rem;
}
.legal-table th,
.legal-table td {
  border: 1px solid var(--border);
  padding: 0.65rem 0.85rem;
  text-align: left;
  vertical-align: top;
}
.legal-table th {
  background: var(--off-white);
  font-weight: 700;
}

/* ---- Utilitaires ---- */
.text-center  { text-align: center; }
.text-muted   { color: var(--text-muted); }
.lead         { font-size: 1.1rem; line-height: 1.65; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.divider { border: none; border-top: 1px solid var(--border); margin: 2rem 0; }
.tag {
  display: inline-block;
  background: var(--off-white);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 2rem;
}

/* Bloc mise en avant (alerte info) */
.highlight-box {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--navy);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  font-size: 0.95rem;
}
.highlight-box--gold { border-left-color: var(--gold); }
.highlight-box p:last-child { margin-bottom: 0; }

/* CTA bande */
.cta-band {
  background: var(--navy);
  color: var(--white);
  padding: 3.5rem 0;
  text-align: center;
}
.cta-band h2 { color: var(--white); margin-bottom: 0.75rem; }
.cta-band p { color: rgba(255,255,255,0.8); margin-bottom: 1.75rem; max-width: 520px; margin-left: auto; margin-right: auto; }

/* ---- Impression ---- */
@media print {
  .site-header, .site-footer, .hero__ctas, .cta-band, .btn { display: none !important; }
  body { font-size: 12pt; color: #000; }
  a { color: #000; }
  a[href]::after { content: ' (' attr(href) ')'; font-size: 0.8em; }
}
