/* Mistral Agent pour Moodle — site de présentation
   Couleurs reprises du logo et des guides GenerationDeclic.NET. */

@font-face { font-family: "Bitter"; src: url("../fonts/bitter-var.woff") format("woff"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-medium.woff") format("woff"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-semibold.woff") format("woff"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-bold.woff") format("woff"); font-weight: 700; font-display: swap; }

:root {
  --navy: #16324f;
  --navy-2: #22476d;
  --pink: #d6336c;       /* décor */
  --pink-text: #b81f56;  /* texte sur fond clair (contraste AA) */
  --pink-soft: #fbe3ec;
  --cream: #f7f4ef;
  --ink: #1d2733;
  --muted: #4f5d6b;
  --line: #e3e0da;
  --white: #fff;
  --radius: 18px;
  --shadow: 0 14px 40px rgba(22, 50, 79, .10);
  --wrap: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-2); text-underline-offset: 3px; }
a:hover { color: var(--pink-text); }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; border-radius: 4px; }
code { font-size: .88em; background: #f1efe9; padding: .1em .35em; border-radius: 6px; word-break: break-word; }

h1, h2, h3 { font-family: Bitter, Georgia, serif; color: var(--navy); line-height: 1.15; letter-spacing: -.01em; }
h1 em, h2 em { font-style: normal; color: var(--pink-text); }
h3 { font-size: 1.2rem; margin: 0 0 .4rem; }

.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }
.narrow { width: min(820px, 100% - 2.5rem); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 1rem; top: -100px; z-index: 100; background: var(--navy); color: #fff; padding: .6rem 1rem; border-radius: 8px; }
.skip:focus { top: 1rem; }

.kicker { font-size: .82rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--pink-text); margin: 0 0 .6rem; }
.center { text-align: center; }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .85rem 1.5rem; border-radius: 999px; border: 2px solid var(--navy);
  background: var(--navy); color: #fff; font-weight: 600; font-size: 1rem; text-decoration: none;
  cursor: pointer; transition: background .15s, transform .15s, color .15s;
  font-family: inherit;
}
.btn:hover { background: var(--navy-2); border-color: var(--navy-2); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn-small { padding: .5rem 1.1rem; font-size: .95rem; }
.muted-in-btn { opacity: .75; font-weight: 500; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* En-tête */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.brand img { width: 190px; }
.menu { display: flex; align-items: center; gap: 1.5rem; }
.menu a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .98rem; }
.menu a:not(.btn):hover { color: var(--pink-text); }
.menu-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; }
.menu-bars, .menu-bars::before, .menu-bars::after { display: block; width: 24px; height: 2px; background: var(--navy); position: relative; transition: transform .2s; content: ""; }
.menu-bars::before { position: absolute; top: -7px; }
.menu-bars::after { position: absolute; top: 7px; }
.menu-toggle[aria-expanded="true"] .menu-bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-bars::before { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-bars::after { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero { background: var(--cream); padding: 4.5rem 0 4rem; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 3.5rem; align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 4.4vw, 3.6rem); margin: 0 0 1.2rem; font-weight: 800; }
.lead { font-size: 1.18rem; color: var(--muted); margin: 0 0 1.8rem; }
.lead strong { color: var(--ink); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 1.8rem; }
.facts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.facts li { background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: .3rem .85rem; font-size: .9rem; font-weight: 600; color: var(--navy); }
.hero-visual { margin: 0; background: var(--white); border-radius: 16px; box-shadow: 0 30px 80px rgba(22, 50, 79, .22); overflow: hidden; border: 1px solid var(--line); }
.browser { display: flex; gap: 6px; padding: 10px 12px; background: #eef0f3; }
.browser span { width: 11px; height: 11px; border-radius: 50%; background: #cfd5dc; }
.browser span:first-child { background: #f3a3a0; } .browser span:nth-child(2) { background: #f5d38d; } .browser span:nth-child(3) { background: #9fd8a8; }
.hero-visual figcaption { font-size: .88rem; color: var(--muted); padding: .7rem 1rem; border-top: 1px solid var(--line); }

.notice-band { background: #fff7e6; border-top: 1px solid #f1e0b8; border-bottom: 1px solid #f1e0b8; }
.notice { padding: .9rem 0; font-size: .96rem; color: #5b4510; }
.notice a { color: #5b4510; }

/* Sections */
.section { padding: 5rem 0; }
.section-alt { background: var(--cream); }
.section-title { font-size: clamp(1.8rem, 3vw, 2.5rem); text-align: center; margin: 0 0 2.6rem; font-weight: 800; }
.section-title.left { text-align: left; margin-bottom: 1.2rem; }
.section-intro { text-align: center; color: var(--muted); max-width: 680px; margin: -1.6rem auto 2.4rem; }

.card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.8rem; border: 1px solid #efece6; }
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.persona-ico { font-size: 2rem; display: block; margin-bottom: .6rem; }
.persona p { margin: 0; color: var(--muted); }

.feature-split { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; align-items: center; margin-bottom: 3.5rem; }
.feature-split h3 { font-size: 1.7rem; margin-bottom: .8rem; }
.feature-split p { color: var(--muted); }
.feature-split strong { color: var(--ink); }
.shot img { border-radius: 14px; box-shadow: var(--shadow); border: 1px solid var(--line); }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.feature { background: var(--white); border-radius: var(--radius); padding: 1.5rem; border: 1px solid #efece6; }
.feature p { margin: 0; color: var(--muted); font-size: .96rem; }
.f-ico { display: inline-flex; width: 48px; height: 48px; align-items: center; justify-content: center; border-radius: 14px; background: var(--pink-soft); font-size: 1.5rem; margin-bottom: .9rem; }

/* Vidéos */
.videos { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.video-card { margin: 0; }
.video-card video { width: 100%; border-radius: 14px; background: #0d1b2a; box-shadow: var(--shadow); aspect-ratio: 16 / 9; }
.video-card figcaption { padding: 1.1rem .2rem 0; }
.video-card p { margin: 0; color: var(--muted); font-size: .96rem; }
.dur { font-family: Inter, sans-serif; font-size: .8rem; font-weight: 600; color: var(--navy); background: #eef2f6; border-radius: 999px; padding: .15rem .6rem; vertical-align: middle; margin-left: .3rem; }

/* Étapes */
.steps { list-style: none; padding: 0; margin: 0 0 4rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; counter-reset: none; }
.step { background: var(--white); border-radius: var(--radius); padding: 2rem 1.8rem 1.8rem; box-shadow: var(--shadow); position: relative; }
.step-num { width: 52px; height: 52px; border-radius: 50%; background: var(--navy); color: #fff; font-family: Bitter, serif; font-weight: 800; font-size: 1.6rem; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.step-who { font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--pink-text); margin: -.2rem 0 .7rem; }
.step p:last-child { margin: 0; color: var(--muted); }

.rag { background: var(--white); border-radius: var(--radius); padding: 2.4rem; box-shadow: var(--shadow); }
.rag h3 { font-size: 1.5rem; }
.rag-intro { color: var(--muted); margin-top: 0; }
.rag-flow { list-style: none; padding: 0; margin: 1.6rem 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; counter-reset: rag; }
.rag-flow li { counter-increment: rag; background: var(--cream); border-radius: 14px; padding: 1.2rem; position: relative; }
.rag-flow li::before { content: counter(rag); position: absolute; top: -12px; left: 14px; width: 26px; height: 26px; border-radius: 50%; background: var(--pink); color: #fff; font-weight: 700; font-size: .85rem; display: flex; align-items: center; justify-content: center; }
.rag-flow li:not(:last-child)::after { content: "→"; position: absolute; right: -.85rem; top: 50%; transform: translateY(-50%); color: var(--pink); font-weight: 700; z-index: 1; }
.rag-flow b { display: block; color: var(--navy); margin-bottom: .3rem; }
.rag-flow span { font-size: .93rem; color: var(--muted); display: block; }
.rag-shot { margin: 0; }
.rag-shot img { border: 1px solid var(--line); border-radius: 10px; }
.rag-shot figcaption { font-size: .9rem; color: var(--muted); margin-top: .6rem; }

/* Guides */
.guides { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.guide { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; }
.guide:hover { transform: translateY(-3px); box-shadow: 0 20px 50px rgba(22, 50, 79, .16); color: var(--ink); }
.guide img { width: 100%; border-bottom: 1px solid var(--line); }
.guide-body { padding: 1.2rem 1.4rem 1.4rem; display: flex; flex-direction: column; gap: .2rem; }
.guide-n { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--pink-text); }
.guide b { font-family: Bitter, serif; font-size: 1.2rem; color: var(--navy); }
.guide-meta { font-size: .88rem; color: var(--muted); }
.guide-meta::before { content: "↓ "; color: var(--pink); font-weight: 700; }

/* Confiance */
.section-dark { background: var(--navy); color: #e7edf3; }
.section-dark .section-title, .section-dark h3 { color: #fff; }
.section-dark .kicker { color: #f6a9c6; }
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.trust-item { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius); padding: 1.5rem; }
.trust-item h3 { font-size: 1.1rem; }
.trust-item h3::before { content: "✓"; color: #f6a9c6; margin-right: .5rem; font-family: Inter, sans-serif; }
.trust-item p { margin: 0; font-size: .96rem; color: #c9d4df; }
.trust-note { margin: 2rem auto 0; max-width: 820px; text-align: center; font-size: .93rem; color: #b9c6d3; }

/* FAQ */
.faq { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 1.2rem 2.5rem 1.2rem 0; font-weight: 600; font-size: 1.08rem; color: var(--navy); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .4rem; top: 50%; transform: translateY(-50%); font-size: 1.6rem; font-weight: 400; color: var(--pink); transition: transform .2s; }
.faq[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq p { margin: 0 0 1.3rem; color: var(--muted); }

/* Équipe */
.team { display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem; align-items: center; }
.team p { color: var(--muted); }
.people { list-style: none; padding: 0; margin: 0; display: grid; gap: .9rem; }
.people li { background: var(--white); border-radius: 14px; padding: 1rem 1.3rem; border-left: 4px solid var(--pink); }
.people b { display: block; color: var(--navy); font-size: 1.05rem; }
.people span { font-size: .92rem; color: var(--muted); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 3.5rem; align-items: start; }
.contact-grid > div p { color: var(--muted); }
.contact-direct a { font-weight: 600; }
.form { background: var(--cream); border-radius: var(--radius); padding: 2rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1.1rem; }
.field label { font-weight: 600; font-size: .95rem; color: var(--navy); }
.req { color: var(--pink-text); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink); background: var(--white);
  border: 1.5px solid #d6d2ca; border-radius: 10px; padding: .7rem .85rem; width: 100%;
}
.field textarea { resize: vertical; min-height: 150px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(22, 50, 79, .15); }
.field [aria-invalid="true"] { border-color: #c62828; }
.field-error { color: #b3261e; font-size: .88rem; font-weight: 500; }
.check { flex-direction: row; align-items: flex-start; gap: .7rem; }
.check input { width: 20px; height: 20px; margin-top: .2rem; flex: 0 0 auto; accent-color: var(--navy); }
.check label { font-weight: 400; color: var(--muted); font-size: .92rem; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-legend { font-size: .85rem; color: var(--muted); margin: 0 0 1rem; }
.form-status:empty { display: none; }
.form-status { margin-top: 1rem; padding: .9rem 1.1rem; border-radius: 12px; font-weight: 500; }
.form-status.ok { background: #e3f4ec; color: #0b5a45; }
.form-status.err { background: #fde8e7; color: #8c1d18; }

/* Pied de page */
.site-footer { background: #0f2438; color: #b9c6d3; padding: 2.5rem 0; font-size: .92rem; }
.site-footer a { color: #fff; }
.site-footer strong { color: #fff; }
.footer-inner p { margin: .3rem 0; }

/* Responsive */
@media (max-width: 1020px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .rag-flow { grid-template-columns: repeat(2, 1fr); row-gap: 1.6rem; }
  .rag-flow li:nth-child(2)::after { display: none; }
}
@media (max-width: 900px) {
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .menu { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--white); border-bottom: 1px solid var(--line); padding: .5rem 1.25rem 1.25rem; box-shadow: 0 20px 30px rgba(0, 0, 0, .08); }
  .menu.open { display: flex; }
  .menu a:not(.btn) { padding: .8rem 0; border-bottom: 1px solid var(--line); }
  .menu .btn { margin-top: 1rem; justify-content: center; }
  .hero { padding-top: 3rem; }
  .hero-grid, .feature-split, .team, .contact-grid { grid-template-columns: 1fr; gap: 2.2rem; }
  .cards-3, .steps, .guides, .trust, .videos { grid-template-columns: 1fr; }
  .section { padding: 3.8rem 0; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .brand img { width: 160px; }
  .features, .rag-flow, .form-row { grid-template-columns: 1fr; }
  .rag-flow li::after { display: none; }
  .rag { padding: 1.6rem; }
  .form { padding: 1.4rem; }
}
