/* =========================================================================
   Yacours — Organisme de formation professionnelle
   Style épuré + photos · Palette monochrome teal (#135670). Aucun orange.
   ========================================================================= */

:root {
  --teal:      #135670;   /* Primaire — logo Yacours */
  --teal-dk:   #0e4254;   /* Teal foncé — sections sombres, footer */
  --teal-deep: #0a3140;   /* Teal très foncé — surcouches photo */
  --accent:    #2f88a6;   /* Teal clair — liens, libellés, accents */
  --accent-lt: #8fd3e8;   /* Teal lumineux — emphase sur fond sombre */
  --mint:      #eef5f7;   /* Tint clair — fonds doux */
  --mint2:     #e1edf1;   /* Tint — cartouches décoratifs */
  --ink:       #16242b;   /* Corps de texte */
  --muted:     #74838c;   /* Gris — notes, légendes */
  --line:      #e8ebee;   /* Filets fins */
  --white:     #ffffff;

  --maxw: 1140px;
  --header-h: 84px;
  --font: "Calibri", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

/* ----------------------------- Base ----------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: #fff; line-height: 1.7; font-size: 18px; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; display: block; }
a { color: var(--teal); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--accent); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; margin: 0 0 .5em; }
p { margin: 0 0 1rem; }

.wrap, .container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 36px; }
.eyebrow { font-size: .72rem; letter-spacing: .26em; text-transform: uppercase; color: var(--accent); font-weight: 700; }

.section { padding: 110px 0; }
.section--mint { background: var(--mint); }
.section--tight { padding: 90px 0; }

/* ----------------------------- Boutons --------------------------- */
.btn { display: inline-block; padding: 16px 40px; border-radius: 2px; letter-spacing: .05em; font-size: .9rem; font-weight: 600; cursor: pointer; border: 1px solid transparent; transition: background .2s, color .2s, border-color .2s; }
.btn--solid { background: var(--teal); color: #fff; border-color: var(--teal); }
.btn--solid:hover { background: var(--teal-dk); border-color: var(--teal-dk); color: #fff; }
.btn--line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--line:hover { background: var(--teal); border-color: var(--teal); color: #fff; }
.btn--light { background: #fff; color: var(--teal); border-color: #fff; }
.btn--light:hover { background: var(--mint); color: var(--teal-dk); }
.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn--ghost-light:hover { background: #fff; color: var(--teal); }

/* Lien souligné raffiné */
.link-underline { font-weight: 600; color: var(--teal); border-bottom: 2px solid var(--accent); padding-bottom: 5px; display: inline-block; }
.link-underline:hover { color: var(--teal-dk); }

/* ----------------------------- Header ---------------------------- */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; transition: background .3s ease, box-shadow .3s ease; }
.nav { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.nav__logo img { height: 30px; }
.nav__logo .logo-d { display: none; }
.nav__links { display: flex; gap: 36px; list-style: none; align-items: center; margin: 0; padding: 0; }
.nav__links a { font-size: .9rem; letter-spacing: .03em; color: rgba(255,255,255,.9); font-weight: 600; }
.nav__links a:hover, .nav__links a.is-active { color: #fff; }
.nav__cta-btn { border: 1px solid rgba(255,255,255,.6); padding: 11px 24px; border-radius: 2px; font-size: .82rem; letter-spacing: .06em; color: #fff; }
.nav__cta-btn:hover { background: #fff; color: var(--teal); }
.nav__toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { display: block; width: 26px; height: 2px; background: #fff; border-radius: 3px; margin: 6px 0; transition: .3s; }

/* État solide (au scroll ou pages intérieures) */
.site-header.solid { background: rgba(255,255,255,.95); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header.solid .nav__logo .logo-w { display: none; }
.site-header.solid .nav__logo .logo-d { display: block; }
.site-header.solid .nav__links a { color: #43525c; }
.site-header.solid .nav__links a:hover, .site-header.solid .nav__links a.is-active { color: var(--teal); }
.site-header.solid .nav__cta-btn { border-color: var(--ink); color: var(--ink); }
.site-header.solid .nav__cta-btn:hover { background: var(--teal); border-color: var(--teal); color: #fff; }
.site-header.solid .nav__toggle span { background: var(--ink); }

/* ----------------------------- Hero (accueil) -------------------- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; color: #fff; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; background:
    linear-gradient(100deg, rgba(10,49,64,.92) 0%, rgba(14,66,84,.74) 52%, rgba(19,86,112,.42) 100%),
    url('../assets/photos/hero.jpg') center/cover no-repeat,
    linear-gradient(135deg, var(--teal), var(--teal-deep)); }
.hero__inner { position: relative; max-width: 760px; padding: 130px 0 70px; }
.hero .eyebrow { display: block; margin-bottom: 26px; color: var(--accent-lt); }
.hero h1 { color: #fff; font-size: clamp(2.5rem, 5vw, 4.3rem); font-weight: 300; line-height: 1.06; letter-spacing: -.02em; margin-bottom: 28px; }
.hero h1 b { font-weight: 600; color: var(--accent-lt); }
.hero p { font-size: 1.22rem; color: #dceaef; max-width: 50ch; margin-bottom: 40px; }
.hero__links { display: flex; gap: 34px; align-items: center; flex-wrap: wrap; }
.hero__links a.primary { font-weight: 600; color: #fff; border-bottom: 2px solid var(--accent-lt); padding-bottom: 6px; }
.hero__links a.ghost { color: #bcd2da; }
.hero__links a:hover { color: #fff; }
.hero__stats { display: flex; gap: 48px; margin-top: 56px; border-top: 1px solid rgba(255,255,255,.22); padding-top: 30px; }
.hero__stats b { display: block; font-size: 2.1rem; font-weight: 300; }
.hero__stats span { font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: #bcd2da; }

/* ----------------------------- Page hero (pages int.) ------------ */
.page-hero { position: relative; background: linear-gradient(120deg, var(--teal-deep), var(--teal) 70%); color: #fff; padding: calc(var(--header-h) + 70px) 0 76px; }
.page-hero h1 { color: #fff; font-weight: 300; font-size: clamp(2.2rem, 4.4vw, 3.4rem); letter-spacing: -.01em; margin-bottom: 14px; }
.page-hero h1 b { font-weight: 600; color: var(--accent-lt); }
.page-hero p { color: #d7e7ec; max-width: 600px; font-size: 1.12rem; margin: 0; }
.breadcrumb { font-size: .82rem; letter-spacing: .04em; color: #a8c4cd; margin-bottom: 20px; }
.breadcrumb a { color: #d7e7ec; }

/* ----------------------------- En-tête de section ---------------- */
.head { max-width: 720px; margin-bottom: 56px; }
.head.center { margin-left: auto; margin-right: auto; text-align: center; }
.head .eyebrow { display: block; margin-bottom: 14px; }
.head h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); font-weight: 300; color: var(--ink); line-height: 1.15; }
.head h2 b { font-weight: 600; color: var(--teal); }
.head p { color: var(--muted); font-size: 1.1rem; margin-top: 8px; }

/* ----------------------------- Méthode (étapes) ------------------ */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.step { padding: 34px 30px; border-right: 1px solid var(--line); }
.step:first-child { padding-left: 0; }
.step:last-child { border-right: 0; padding-right: 0; }
.step .n { font-size: .8rem; font-weight: 700; letter-spacing: .12em; color: var(--accent); }
.step h3 { font-size: 1.25rem; font-weight: 500; color: var(--ink); margin: 10px 0 8px; }
.step p { color: var(--muted); font-size: .95rem; margin: 0; }

/* ----------------------------- Feature (photo/texte) ------------- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.feature + .feature { margin-top: 100px; }
.feature--rev .feature__txt { order: 2; }
.feature__txt .eyebrow { display: block; margin-bottom: 14px; }
.feature__txt h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 300; color: var(--ink); margin: 0 0 18px; line-height: 1.2; }
.feature__txt h2 b { font-weight: 600; color: var(--teal); }
.feature__txt p { color: var(--muted); margin-bottom: 22px; }
.feature__photo { position: relative; }
.feature__photo img { width: 100%; height: 440px; object-fit: cover; border-radius: 4px; }
.feature__photo::after { content: ""; position: absolute; width: 120px; height: 120px; background: var(--mint2); z-index: -1; border-radius: 4px; }
.feature:not(.feature--rev) .feature__photo::after { right: -20px; bottom: -20px; }
.feature--rev .feature__photo::after { left: -20px; bottom: -20px; }

/* Liste à puces fines */
.list-fine { list-style: none; padding: 0; margin: 0; }
.list-fine li { position: relative; padding-left: 30px; margin-bottom: 12px; color: #3d4a52; }
.list-fine li::before { content: ""; position: absolute; left: 0; top: 11px; width: 11px; height: 11px; border: 2px solid var(--accent); border-radius: 50%; }

/* ----------------------------- Bande photo ----------------------- */
.band { position: relative; padding: 130px 0; color: #fff; text-align: center; }
.band__bg { position: absolute; inset: 0; background: linear-gradient(rgba(10,49,64,.80), rgba(14,66,84,.80)), url('../assets/photos/band-chantier.jpg') center/cover; }
.band__inner { position: relative; max-width: 720px; margin: 0 auto; }
.band .eyebrow { color: var(--accent-lt); display: block; margin-bottom: 18px; }
.band h2 { color: #fff; font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 300; line-height: 1.25; }

/* ----------------------------- Domaines -------------------------- */
.domgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 56px; }
.domain { display: grid; grid-template-columns: 54px 1fr; gap: 22px; align-items: baseline; padding: 26px 0; border-top: 1px solid var(--line); }
.domain .num { color: var(--accent); font-size: .82rem; letter-spacing: .12em; font-weight: 700; }
.domain h3 { font-size: 1.25rem; font-weight: 400; color: var(--ink); margin: 0; }
.domain p { color: var(--muted); font-size: .92rem; margin: 2px 0 0; }
.dom-more { margin-top: 44px; background: var(--mint); border-radius: 6px; padding: 28px 34px; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.dom-more p { margin: 0; color: var(--ink); }
.dom-more b { color: var(--teal); }

/* ----------------------------- Valeurs / cartes ------------------ */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.value .ic { width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--accent); display: grid; place-items: center; color: var(--teal); font-size: 1.1rem; margin-bottom: 18px; }
.value h3 { font-size: 1.3rem; font-weight: 500; color: var(--ink); margin-bottom: 8px; }
.value p { color: var(--muted); font-size: .98rem; margin: 0; }

/* Chiffres clés */
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats-row div { padding: 42px 0; border-right: 1px solid var(--line); text-align: center; }
.stats-row div:last-child { border-right: 0; }
.stats-row b { display: block; font-size: 2.4rem; font-weight: 300; color: var(--teal); }
.stats-row span { font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

/* ----------------------------- CTA ------------------------------- */
.cta-band { padding: 110px 0; text-align: center; background: var(--mint); }
.cta-band .eyebrow { display: block; margin-bottom: 14px; }
.cta-band h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 300; color: var(--ink); margin-bottom: 14px; }
.cta-band h2 b { font-weight: 600; color: var(--teal); }
.cta-band p { color: var(--muted); max-width: 540px; margin: 0 auto 32px; }

/* ----------------------------- Contact --------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.info-item { display: flex; gap: 18px; margin-bottom: 26px; align-items: flex-start; }
.info-item .ic { flex: 0 0 auto; width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--accent); color: var(--teal); display: grid; place-items: center; font-size: 1.1rem; }
.info-item h4 { margin: 0 0 2px; color: var(--ink); font-weight: 600; }
.info-item p, .info-item a { margin: 0; color: var(--muted); }
.placeholder { background: var(--mint); color: var(--teal); padding: 0 6px; border-radius: 4px; font-weight: 700; }
.form { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 34px; box-shadow: 0 10px 30px rgba(14,66,84,.07); }
.form h2 { font-weight: 300; margin: 0 0 20px; }
.form label { display: block; font-weight: 600; color: var(--ink); margin-bottom: 6px; font-size: .92rem; }
.form .field { margin-bottom: 18px; }
.form input, .form textarea { width: 100%; padding: 13px 14px; border: 1px solid #d7dde2; border-radius: 4px; font-family: inherit; font-size: 1rem; color: var(--ink); background: #fff; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(19,86,112,.12); }
.form textarea { min-height: 130px; resize: vertical; }

/* ----------------------------- Footer ---------------------------- */
.site-footer { background: var(--teal-deep); color: #9fc0cb; padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.site-footer img { height: 34px; margin-bottom: 18px; }
.site-footer h4 { color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: 10px; }
.site-footer a { color: #9fc0cb; }
.site-footer a:hover { color: #fff; }
.site-footer p { color: #88aab6; font-size: .96rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .85rem; }

/* ----------------------------- Animations ------------------------ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ----------------------------- Responsive ------------------------ */
@media (max-width: 860px) {
  .nav__links { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 36px 20px; box-shadow: 0 12px 30px rgba(14,66,84,.12); display: none; }
  .nav__links.is-open { display: flex; }
  .nav__links li { padding: 8px 0; }
  .nav__links a { color: #43525c !important; }
  .nav__cta-btn { display: inline-block; border-color: var(--ink) !important; color: var(--ink) !important; margin-top: 8px; }
  .nav__toggle { display: block; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step { border-right: 0; border-bottom: 1px solid var(--line); padding: 28px 0; }
  .feature, .feature--rev { grid-template-columns: 1fr; gap: 36px; }
  .feature--rev .feature__txt { order: 0; }
  .feature__photo img { height: 300px; }
  .domgrid { grid-template-columns: 1fr; gap: 0; }
  .cards { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero__stats { gap: 30px; flex-wrap: wrap; }
}
@media (max-width: 560px) {
  .wrap, .container { padding: 0 24px; }
  body { font-size: 17px; }
  .section { padding: 72px 0; }
  .stats-row { grid-template-columns: 1fr; }
  .stats-row div { border-right: 0; border-bottom: 1px solid var(--line); }
  .footer-bottom { flex-direction: column; }
}
