/* ============================================================
   EVOLIA INSTITUT — Design System v2
   Palette : cream · teal · orange · dark
   Fonts   : Cormorant Garamond + Jost
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;1,400&family=Jost:wght@300;400;500;600&display=swap');

:root {
  /* Core palette */
  --color-cream:       #fff7ed;
  --color-teal:        #1a9b97;
  --color-teal-dark:   #157a76;
  --color-teal-light:  #e6f5f5;
  --color-orange:      #db560e;
  --color-orange-dark: #c44d0c;
  --color-orange-light:#fef0e8;
  --color-dark:        #1c1c1c;
  --color-mid:         #6b6b6b;
  --color-light:       #f0e8de;
  --color-white:       #ffffff;
  --color-border:      #e0d5c8;

  /* Gradients */
  --gradient-teal:   linear-gradient(135deg, #1a9b97 0%, #0d6e6b 100%);
  --gradient-orange: linear-gradient(135deg, #e8600f 0%, #c44d0c 100%);
  --gradient-dark:   linear-gradient(145deg, #1c1c1c 0%, #2d2d2d 100%);
  --gradient-hero:   linear-gradient(145deg, rgba(28,28,28,.88) 0%, rgba(26,155,151,.38) 100%);
  --gradient-teal-soft: linear-gradient(135deg, rgba(26,155,151,.08) 0%, rgba(26,155,151,.04) 100%);

  /* Fonts */
  --font-display: 'Cormorant Garamond', serif;
  --font-body:    'Jost', sans-serif;

  /* Layout */
  --max-width: 1360px;

  /* Radius scale */
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-xs:  0 1px 2px rgba(0,0,0,.05);
  --shadow-sm:  0 1px 4px rgba(0,0,0,.06), 0 2px 8px rgba(0,0,0,.04);
  --shadow-md:  0 4px 16px rgba(0,0,0,.08), 0 1px 4px rgba(0,0,0,.04);
  --shadow-lg:  0 12px 40px rgba(0,0,0,.11), 0 4px 12px rgba(0,0,0,.06);
  --shadow-xl:  0 24px 64px rgba(0,0,0,.14), 0 8px 24px rgba(0,0,0,.07);
  --shadow-teal:   0 8px 28px rgba(26,155,151,.32), 0 2px 8px rgba(26,155,151,.18);
  --shadow-orange: 0 8px 28px rgba(219,86,14,.32), 0 2px 8px rgba(219,86,14,.18);

  /* Transitions */
  --transition:      all .22s cubic-bezier(.25,.46,.45,.94);
  --transition-slow: all .45s cubic-bezier(.25,.46,.45,.94);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: var(--font-body); }

/* ── Base ── */
body {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  color: var(--color-dark);
  background: var(--color-cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ── Typography ── */
h1 {
  font-family: var(--font-display);
  font-size: clamp(38px, 5.5vw, 68px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.02em;
}
h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.015em;
}
h3 {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 600;
  line-height: 1.2;
}
h4 {
  font-family: var(--font-display);
  font-size: clamp(17px, 2vw, 22px);
  font-weight: 600;
}
p { font-size: 16px; line-height: 1.78; }
.section-label { font-size: 12px !important; letter-spacing: .14em !important; }
small, .text-sm { font-size: 14px; }
.text-xs { font-size: 12px; }

/* ── Layout ── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 96px 0; }
.section--sm { padding: 64px 0; }
.section--alt   { background: var(--color-light); }
.section--white { background: var(--color-white); }
.section--teal  { background: var(--color-teal); color: white; }
.section--dark  { background: var(--color-dark); color: white; }
.section--cream { background: var(--color-cream); }

/* ── Buttons ── */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 14px 36px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .22s cubic-bezier(.25,.46,.45,.94), box-shadow .22s cubic-bezier(.25,.46,.45,.94), background .22s ease, color .22s ease;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

/* Shimmer sweep */
.btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.2), transparent);
  transform: skewX(-20deg);
  transition: left .55s ease;
}
.btn:hover::after { left: 150%; }

.btn-primary {
  background: var(--gradient-orange);
  color: white;
  border-color: transparent;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-orange);
}

.btn-secondary {
  background: transparent;
  color: var(--color-teal);
  border-color: var(--color-teal);
}
.btn-secondary:hover {
  background: var(--gradient-teal);
  color: white;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: var(--shadow-teal);
}

.btn-white {
  background: white;
  color: var(--color-orange);
  border-color: white;
}
.btn-white:hover {
  background: var(--gradient-orange);
  color: white;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: var(--shadow-orange);
}

.btn-outline-white {
  background: transparent;
  color: white;
  border-color: rgba(255,255,255,.55);
  backdrop-filter: blur(4px);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,.18);
  border-color: white;
  transform: translateY(-2px);
}

.btn-teal {
  background: var(--gradient-teal);
  color: white;
  border-color: transparent;
}
.btn-teal:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-teal);
}

.btn-lg { padding: 17px 44px; font-size: 14px; }
.btn-sm { padding: 10px 22px; font-size: 11px; }

/* ── Cards ── */
.card {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 36px;
  transition: transform .32s cubic-bezier(.25,.46,.45,.94), box-shadow .32s cubic-bezier(.25,.46,.45,.94);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
/* Top accent reveal */
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s cubic-bezier(.25,.46,.45,.94);
}
.card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(26,155,151,.08);
}
.card:hover::before { transform: scaleX(1); }
.card > .btn, .card > a.btn { margin-top: auto; }

.card--teal {
  background: var(--gradient-teal);
  color: white;
  border-color: transparent;
}
.card--teal::before { background: rgba(255,255,255,.25); }
.card--orange {
  background: var(--gradient-orange);
  color: white;
  border-color: transparent;
}
.card--orange::before { background: rgba(255,255,255,.25); }
.card--dark {
  background: var(--gradient-dark);
  color: white;
  border-color: transparent;
}

/* Glass card */
.glass-card {
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: var(--radius-md);
  padding: 32px;
}

/* ── Badges ── */
.badge-qualiopi {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,.12);
  border: 1.5px solid rgba(255,255,255,.45);
  color: white;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: var(--radius-xs);
  backdrop-filter: blur(4px);
}
.badge-qualiopi--inverted {
  background: var(--gradient-teal);
  color: white;
  border-color: transparent;
  box-shadow: var(--shadow-teal);
}

.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--radius-xs);
}
.badge--diplome  { background: var(--color-teal-light); color: var(--color-teal-dark); }
.badge--certif   { background: var(--color-orange-light); color: var(--color-orange-dark); }
.badge--cat      { background: var(--color-light); color: var(--color-mid); }

/* ── Grids ── */
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 40px; }

/* ── Section label ── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--color-orange);
  margin-bottom: 14px;
}
.section-label::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  flex-shrink: 0;
}
.section-label--teal { color: var(--color-teal); }
.section-label--white { color: rgba(255,255,255,.7); }

/* ── Dividers ── */
.divider-orange {
  display: block;
  width: 48px;
  height: 3px;
  background: var(--gradient-orange);
  border-radius: 2px;
  margin: 16px 0 24px;
}
.divider-teal {
  display: block;
  width: 48px;
  height: 3px;
  background: var(--gradient-teal);
  border-radius: 2px;
  margin: 16px 0 24px;
}


/* ── Accordion ── */
.accordion {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow .25s ease;
}
.accordion:hover { box-shadow: var(--shadow-md); }
.accordion + .accordion { margin-top: 12px; }
.accordion-header {
  width: 100%;
  background: white;
  border: none;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  color: var(--color-dark);
  cursor: pointer;
  text-align: left;
  transition: background .2s ease, color .2s ease;
}
.accordion-header:hover { background: var(--color-teal-light); color: var(--color-teal-dark); }
.accordion-header[aria-expanded="true"] {
  background: var(--color-teal-light);
  color: var(--color-teal-dark);
}
.accordion-header .icon {
  font-size: 20px;
  font-weight: 300;
  transition: transform .25s cubic-bezier(.25,.46,.45,.94);
  flex-shrink: 0;
  color: var(--color-teal);
}
.accordion-header[aria-expanded="true"] .icon { transform: rotate(45deg); }
.accordion-body {
  padding: 0 24px 20px;
  font-size: 14px;
  color: var(--color-mid);
  line-height: 1.8;
  background: white;
}

/* ── Timeline ── */
.timeline { position: relative; padding-left: 44px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--color-teal), var(--color-teal-dark));
  border-radius: 2px;
  opacity: .3;
}
.timeline-step { position: relative; margin-bottom: 36px; }
.timeline-step::before {
  content: attr(data-step);
  position: absolute;
  left: -44px;
  top: 2px;
  width: 28px;
  height: 28px;
  background: var(--gradient-teal);
  color: white;
  font-size: 12px;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-teal);
}
.timeline-step h4 { margin-bottom: 6px; font-size: 16px; }
.timeline-step p { font-size: 14px; color: var(--color-mid); }

/* ── Table ── */
.table-compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  border-radius: var(--radius-md);
  overflow: hidden;
}
.table-compare th, .table-compare td {
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}
.table-compare th {
  background: var(--gradient-dark);
  color: white;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .06em;
}
.table-compare tr:last-child td { border-bottom: none; }
.table-compare tr:nth-child(even) td { background: var(--color-light); }
.table-compare .check { color: var(--color-teal); font-weight: 700; }
.table-compare .cross { color: #dc2626; }

/* ── Testimonials ── */
.testimonial-card {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 40px 36px 32px;
  position: relative;
  overflow: hidden;
  transition: transform .32s cubic-bezier(.25,.46,.45,.94), box-shadow .32s ease;
  box-shadow: var(--shadow-sm);
}
.testimonial-card::before {
  content: '\201C';
  font-family: var(--font-display);
  font-size: 120px;
  color: var(--color-teal);
  opacity: .07;
  position: absolute;
  top: -8px;
  left: 20px;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}
.testimonial-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-teal);
  opacity: 0;
  transition: opacity .32s ease;
}
.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}
.testimonial-card:hover::after { opacity: 1; }
.stars { color: #f59e0b; font-size: 14px; margin-bottom: 14px; letter-spacing: 2px; }
.testimonial-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
}
.testimonial-meta img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--shadow-sm);
}
.testimonial-meta .name { font-weight: 600; font-size: 14px; }
.testimonial-meta .role { font-size: 12px; color: var(--color-mid); }

/* ── Blog cards ── */
.blog-card {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .32s cubic-bezier(.25,.46,.45,.94), box-shadow .32s ease;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}
.blog-card-img-wrap {
  overflow: hidden;
  position: relative;
}
.blog-card-img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(28,28,28,.35), transparent 55%);
  opacity: 0;
  transition: opacity .35s ease;
}
.blog-card:hover .blog-card-img-wrap::after { opacity: 1; }
.blog-card img {
  width: 100%;
  height: 208px;
  object-fit: cover;
  transition: transform .5s cubic-bezier(.25,.46,.45,.94);
  display: block;
}
.blog-card:hover img { transform: scale(1.05); }
.blog-card-body {
  padding: 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.blog-card-meta {
  font-size: 12px;
  color: var(--color-mid);
  margin-bottom: 12px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.blog-card-cat {
  background: var(--color-teal-light);
  color: var(--color-teal-dark);
  padding: 3px 10px;
  border-radius: var(--radius-xs);
  font-weight: 700;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .1em;
}
.blog-card-cat--orange {
  background: var(--color-orange-light);
  color: var(--color-orange-dark);
}
.blog-card h3 { font-size: 19px; line-height: 1.28; margin-bottom: 10px; }
.blog-card p { font-size: 13px; color: var(--color-mid); line-height: 1.7; margin-bottom: 18px; flex: 1; }
.blog-card a.read-more {
  color: var(--color-orange);
  font-weight: 600;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap .2s ease;
}
.blog-card:hover a.read-more { gap: 8px; }

/* ── Stat block ── */
.stat-number {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 600;
  background: var(--gradient-teal);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.stat-label {
  font-size: 13px;
  color: var(--color-mid);
  margin-top: 8px;
  line-height: 1.5;
}

/* ── Form ── */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 13px; font-weight: 600; letter-spacing: .03em; }
.form-group input,
.form-group select,
.form-group textarea {
  background: white;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--color-dark);
  transition: border .2s, box-shadow .2s;
  appearance: none;
  min-height: 48px;
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-teal);
  box-shadow: 0 0 0 4px rgba(26,155,151,.12);
}
.form-group.error input,
.form-group.error select,
.form-group.error textarea { border-color: #e53e3e; }
.form-error { font-size: 12px; color: #e53e3e; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ── AOS — animate on scroll ── */
.aos {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .68s cubic-bezier(.25,.46,.45,.94), transform .68s cubic-bezier(.25,.46,.45,.94);
}
.aos.visible { opacity: 1; transform: translateY(0); }
.aos-scale {
  opacity: 0;
  transform: scale(.96);
  transition: opacity .68s cubic-bezier(.25,.46,.45,.94), transform .68s cubic-bezier(.25,.46,.45,.94);
}
.aos-scale.visible { opacity: 1; transform: scale(1); }
.aos[data-delay="1"] { transition-delay: 100ms; }
.aos[data-delay="2"] { transition-delay: 200ms; }
.aos[data-delay="3"] { transition-delay: 300ms; }
.aos[data-delay="4"] { transition-delay: 400ms; }
.aos[data-delay="5"] { transition-delay: 500ms; }

/* ── Gradient highlight text ── */
.text-gradient {
  background: var(--gradient-teal);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-gradient-orange {
  background: var(--gradient-orange);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Image hover zoom ── */
.img-hover-zoom { overflow: hidden; border-radius: var(--radius-md); }
.img-hover-zoom img { transition: transform .5s cubic-bezier(.25,.46,.45,.94); }
.img-hover-zoom:hover img { transform: scale(1.05); }

/* ── Info banner ── */
.info-banner {
  background: var(--gradient-orange);
  color: white;
  font-size: 13px;
  font-weight: 500;
  padding: 10px 0;
  text-align: center;
  letter-spacing: .02em;
}
.info-banner a { color: white; text-decoration: underline; text-underline-offset: 3px; }

/* ── Tag pills ── */
.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  background: var(--color-teal-light);
  color: var(--color-teal-dark);
}
.tag-pill--orange {
  background: var(--color-orange-light);
  color: var(--color-orange-dark);
}

/* ── Floating stat badge ── */
.stat-badge {
  background: white;
  border-radius: var(--radius-md);
  padding: 16px 20px;
  box-shadow: var(--shadow-xl);
  text-align: center;
  min-width: 120px;
}
.stat-badge .num {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  background: var(--gradient-teal);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}
.stat-badge .lbl { font-size: 11px; color: var(--color-mid); margin-top: 4px; line-height: 1.4; }

/* ── Tab system (htabs) ── */
.htabs-nav {
  display: flex;
  border-bottom: 2px solid var(--color-border);
  margin-bottom: 40px;
  background: white;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  overflow: hidden;
}
.htab-btn {
  flex: 1;
  background: none;
  border: none;
  padding: 16px 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--color-mid);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all .22s ease;
  letter-spacing: .06em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.htab-btn:hover { color: var(--color-teal); background: var(--color-teal-light); }
.htab-btn.htab-active {
  color: var(--color-teal);
  border-bottom-color: var(--color-teal);
  background: var(--color-teal-light);
}
.htab-panel { display: none; }
.htab-panel.htab-active { display: block; }
.htab-subtitle {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--color-mid);
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.htab-subtitle::after { content: ''; flex: 1; height: 1px; background: var(--color-border); }

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .grid-3 { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .form-grid-2 { grid-template-columns: 1fr; }
  .htabs-nav { flex-wrap: wrap; }
  .htab-btn { font-size: 10px; padding: 12px 6px; gap: 3px; }
  h1 { font-size: clamp(32px, 8vw, 52px); }
  h2 { font-size: clamp(24px, 6vw, 38px); }
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .btn { padding: 12px 24px; }
  .btn-lg { padding: 14px 32px; font-size: 13px; }
}

/* ============================================================
   EVOLIA INSTITUT — CSS Confort Visuel & Anti-Fatigue Oculaire
============================================================ */

/* ── Variables (override/extend :root) ── */
:root {
  --color-bg:          #F8F6F2;
  --color-surface:     #F2F0EB;
  --color-text-main:   #2D2D2D;
  --color-text-muted:  #4A4A4A;
  --color-text-light:  #6B6B6B;
  --color-border:      rgba(0,0,0,0.09);
  --font-size-body:    17px;
  --line-height-body:  1.70;
  --max-prose-width:   65ch;
}

/* ── 2. Fond de page ── */
html, body { background-color: var(--color-bg) !important; color: var(--color-text-main) !important; }

/* ── 3. Typographie corps ── */
body, p, li, td, th, label, input, textarea, select {
  font-size: var(--font-size-body) !important;
  line-height: var(--line-height-body) !important;
  color: var(--color-text-main);
}
.card-body, .caption, small, figcaption, .text-muted,
[class*="subtitle"], [class*="description"] {
  font-size: 15px !important; color: var(--color-text-muted) !important; line-height: 1.65 !important;
}
.badge, .tag, .label, time, [class*="meta"] {
  font-size: 13px !important; color: var(--color-text-light) !important;
}

/* ── 4. Titres ── */
h1 { font-size: clamp(36px,5vw,54px) !important; line-height: 1.15 !important; color: var(--color-text-main) !important; font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(26px,3.5vw,34px) !important; line-height: 1.25 !important; color: var(--color-text-main) !important; font-weight: 600; letter-spacing: -0.015em; }
h3 { font-size: clamp(20px,2.5vw,24px) !important; line-height: 1.35 !important; color: var(--color-text-main) !important; font-weight: 600; }
h4 { font-size: 19px !important; line-height: 1.4 !important; color: var(--color-text-main) !important; font-weight: 600; }
h5, h6 { font-size: 17px !important; line-height: 1.5 !important; color: var(--color-text-muted) !important; font-weight: 600; }

/* ── 5. Largeur prose ── */
p, .prose, [class*="content"] p, [class*="text-block"], article p, .description, .entry-content p { max-width: var(--max-prose-width); }

/* ── 6. Espacement sections ── */
section, .section, [class*="block"], [class*="row"] {
  padding-top:    clamp(48px,8vw,96px) !important;
  padding-bottom: clamp(48px,8vw,96px) !important;
}
p + p { margin-top: 1.1em; }

/* ── 7. Cartes & surfaces ── */
.card, [class*="card"], [class*="item"], [class*="tile"], [class*="box"] {
  background-color: #FFFFFF !important;
  border: 0.5px solid var(--color-border) !important;
  border-radius: 12px !important;
}

/* ── 8. Boutons ── */
a[class*="btn"], button[class*="btn"], .button, [class*="cta"] {
  letter-spacing: 0.01em; font-size: 16px !important; font-weight: 600 !important;
  padding: 14px 28px !important; border-radius: 8px !important;
  transition: opacity 0.18s ease, transform 0.18s ease;
}
a[class*="btn"]:hover, button[class*="btn"]:hover, .button:hover { opacity: 0.88; transform: translateY(-1px); }

/* ── 9. Liens ── */
a { text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* ── 10. Images ── */
img:not([class*="logo"]):not([class*="icon"]):not([class*="partner"]) { border-radius: 10px; filter: brightness(0.97) saturate(0.95); }

/* ── 11. Header / nav ── */
header, nav, [class*="header"], [class*="navbar"] {
  background-color: rgba(248,246,242,0.95) !important;
  backdrop-filter: blur(12px);
  border-bottom: 0.5px solid var(--color-border) !important;
}
nav a, [class*="nav"] a { font-size: 15px !important; font-weight: 500 !important; color: var(--color-text-main) !important; }

/* ── 12. Footer ── */
footer, [class*="footer"] { background-color: #EDEAE4 !important; color: var(--color-text-muted) !important; }
footer p, footer li, footer a, [class*="footer"] p, [class*="footer"] a { font-size: 14px !important; color: var(--color-text-muted) !important; }

/* ── 13. Formulaires ── */
input[type="text"], input[type="email"], input[type="tel"], textarea, select {
  background-color: #FFFFFF !important; border: 1px solid rgba(0,0,0,0.15) !important;
  border-radius: 8px !important; padding: 12px 16px !important; font-size: 16px !important;
  color: var(--color-text-main) !important; transition: border-color 0.2s ease;
}
input:focus, textarea:focus, select:focus { border-color: rgba(0,0,0,0.35) !important; outline: none !important; box-shadow: 0 0 0 3px rgba(0,0,0,0.06) !important; }

/* ── 14. Citations ── */
blockquote, [class*="testimonial"], [class*="quote"] {
  font-size: 17px !important; line-height: 1.7 !important; color: var(--color-text-muted) !important;
  border-left: 3px solid rgba(0,0,0,0.12) !important; padding-left: 1.25rem !important; font-style: italic;
}

/* ── Protection : variants design-system contra comfort CSS ── */

/* Cartes colorées — ne pas devenir blanches */
.card--teal  { background: var(--gradient-teal) !important; border-color: transparent !important; color: white !important; }
.card--orange{ background: var(--gradient-orange) !important; border-color: transparent !important; color: white !important; }
.card--dark  { background: var(--gradient-dark) !important; border-color: transparent !important; color: white !important; }
.glass-card  { background: rgba(255,255,255,.12) !important; border-color: rgba(255,255,255,.22) !important; }

/* Badges catégories */
.badge--diplome { background: var(--color-teal-light) !important; color: var(--color-teal-dark) !important; border: none !important; border-radius: 2px !important; font-size: 11px !important; }
.badge--certif  { background: var(--color-orange-light) !important; color: var(--color-orange-dark) !important; border: none !important; border-radius: 2px !important; font-size: 11px !important; }
.badge--cat     { background: var(--color-light) !important; color: var(--color-mid) !important; border: none !important; border-radius: 2px !important; font-size: 11px !important; }
.badge-qualiopi { background: rgba(255,255,255,.12) !important; border: 1.5px solid rgba(255,255,255,.45) !important; color: white !important; border-radius: 2px !important; font-size: 11px !important; }
.badge-qualiopi--inverted { background: var(--gradient-teal) !important; border-color: transparent !important; }

/* Cartes blog & testimonials */
.blog-card          { border-radius: 16px !important; }
.testimonial-card   { border: 1px solid var(--color-border) !important; border-left: 1px solid var(--color-border) !important; padding: 40px 36px 32px !important; font-style: normal !important; color: var(--color-dark) !important; border-radius: 16px !important; }
.blog-card-cat      { background: var(--color-teal-light) !important; color: var(--color-teal-dark) !important; border: none !important; border-radius: 2px !important; font-size: 10px !important; }
.blog-card-cat--orange { background: var(--color-orange-light) !important; color: var(--color-orange-dark) !important; }

/* Marquee */
.mq-item { background-color: transparent !important; border: none !important; border-radius: 0 !important; }
.mq-pill { background: white !important; border: 1px solid var(--color-border) !important; border-radius: 9999px !important; padding: 6px 16px !important; }

/* Tailles btn */
a.btn-sm, button.btn-sm { padding: 10px 22px !important; font-size: 11px !important; }
a.btn-lg, button.btn-lg { padding: 17px 44px !important; font-size: 14px !important; }

/* Sections spéciales */
.hero-teal-bar { padding-top: 22px !important; padding-bottom: 22px !important; }
.info-banner   { padding-top: 10px !important; padding-bottom: 10px !important; }

/* ── Marquee bande déroulante ── */
@keyframes mq-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.mq-band {
  overflow: hidden;
  padding: 18px 0;
}
.mq-band--white {
  background: white;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.mq-band--cream { background: #f8f5f1; }
.mq-label {
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--color-mid);
  margin-bottom: 18px;
  opacity: .75;
}
.mq-track-wrap { overflow: hidden; }
.mq-track {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 40px;
  animation: mq-scroll 28s linear infinite;
}
.mq-track--rev { animation-direction: reverse; }
.mq-track:hover { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .mq-track { animation: none; }
}
.mq-item {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.mq-item img {
  height: 72px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  mix-blend-mode: multiply;
  filter: grayscale(0%);
  opacity: 1;
  transition: opacity .25s ease, filter .25s ease, transform .25s ease;
}
.mq-item img:hover { opacity: 1; filter: grayscale(0%); transform: scale(1.05); }
.mq-sep {
  width: 1px;
  height: 20px;
  background: var(--color-border);
  flex-shrink: 0;
}
.mq-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  border: 1px solid var(--color-border);
  border-radius: 9999px;
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-dark);
  white-space: nowrap;
  flex-shrink: 0;
}
.mq-pill img {
  height: 22px;
  width: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
}
