/* CTRL-PROJET — feuille de style du site
   Couleurs : bleu du logo, bleu nuit et orange du CV 2026. */

@font-face {
  font-family: "Inter";
  src: url("fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --brand: #0086cb;        /* bleu du logo */
  --brand-dark: #006a9f;   /* boutons et liens (contraste AA sur blanc) */
  --navy: #13294b;         /* bleu nuit du CV */
  --navy-2: #1d3a63;
  --orange: #d17a22;       /* accent du CV */
  --ink: #1f2933;
  --muted: #5b6672;
  --soft: #f4f7fa;
  --line: #dfe3e8;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(19, 41, 75, 0.08);
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", -apple-system, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-dark); }
a:hover { color: var(--navy); }
h1, h2, h3 { color: var(--navy); line-height: 1.2; margin: 0 0 .6em; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 750; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
li { margin-bottom: .35em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section--soft { background: var(--soft); }
.section--navy { background: var(--navy); color: #dbe4ef; }
.section--navy h2, .section--navy h3 { color: var(--white); }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.section--navy .section-head p { color: #b9c6d6; }

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 14px;
}

/* Boutons */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 650; font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--brand-dark); color: var(--white); }
.btn--primary:hover { background: var(--navy); color: var(--white); }
.btn--ghost { border-color: var(--brand-dark); color: var(--brand-dark); background: transparent; }
.btn--ghost:hover { background: var(--brand-dark); color: var(--white); }
.section--navy .btn--primary { background: var(--white); color: var(--navy); }
.section--navy .btn--primary:hover { background: var(--orange); color: var(--white); }
.section--navy .btn--ghost { border-color: #8fa6c2; color: var(--white); }
.section--navy .btn--ghost:hover { background: var(--white); color: var(--navy); border-color: var(--white); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* En-tête */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.logo { display: flex; flex-direction: column; align-items: flex-start; text-decoration: none; }
.logo img { height: 34px; width: auto; max-width: none; flex: none; }
.logo span { font-size: .72rem; color: var(--muted); margin-top: 3px; letter-spacing: .01em; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 550; font-size: .97rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--brand-dark); }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--orange); }
.nav .btn { padding: 10px 18px; font-size: .93rem; color: var(--white); }
.nav .btn:hover { color: var(--white); }
.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--line); border-radius: 10px;
  padding: 8px 10px; cursor: pointer; color: var(--navy);
}

/* Bandeau principal */
.hero { padding: 80px 0 88px; background: linear-gradient(180deg, var(--soft) 0%, var(--white) 100%); }
.hero .wrap { display: grid; grid-template-columns: 1.25fr .85fr; gap: 64px; align-items: center; }
.hero-lead { font-size: 1.18rem; color: var(--muted); max-width: 600px; }
.hero-note { margin-top: 22px; font-size: .92rem; color: var(--muted); }
.hero-photo { position: relative; isolation: isolate; margin: 0; }
.hero-photo img { border-radius: 24px; border: 4px solid var(--brand); box-shadow: var(--shadow); width: 100%; height: auto; aspect-ratio: 1086 / 1448; object-fit: cover; object-position: 50% 20%; }
.photo-frame { position: relative; isolation: isolate; }
.hero-photo figcaption { margin-top: 34px; text-align: center; font-size: .95rem; line-height: 1.4; color: var(--muted); }
.hero-photo figcaption strong { display: block; color: var(--navy); }

/* Page intérieure : en-tête simple */
.page-hero { padding: 72px 0 56px; background: var(--soft); border-bottom: 1px solid var(--line); }
.page-hero p { font-size: 1.15rem; color: var(--muted); max-width: 720px; margin: 0; }

/* Grilles et cartes */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: 0 1px 0 rgba(19,41,75,.03);
}
.card h3 { margin-bottom: .5em; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card--accent { border-top: 4px solid var(--brand); }
.card-icon {
  width: 46px; height: 46px; border-radius: 12px; margin-bottom: 18px;
  display: grid; place-items: center; background: #e6f3fa; color: var(--brand-dark);
}
.card-icon svg { width: 24px; height: 24px; }
.section--navy .card { background: var(--navy-2); border-color: #2c4b77; color: #dbe4ef; }

/* Situations */
.situations { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
.situations li {
  margin: 0; padding: 22px 24px 22px 60px; position: relative;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
}
.situations li::before {
  content: ""; position: absolute; left: 22px; top: 26px; width: 22px; height: 22px;
  border-radius: 50%; background: var(--orange)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.situations strong { color: var(--navy); display: block; margin-bottom: 2px; }
.situations li:last-child:nth-child(odd) { grid-column: 1 / -1; }

/* Projets */
.project { border-left: 4px solid var(--brand); }
.project .meta { font-size: .88rem; color: var(--muted); margin: -.3em 0 1em; }
.project dl { margin: 0; }
.project dt { font-weight: 700; color: var(--navy); font-size: .9rem; text-transform: uppercase; letter-spacing: .06em; margin-top: 14px; }
.project dd { margin: 4px 0 0; }

/* Étapes */
.steps { counter-reset: step; list-style: none; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(5, 1fr); }
.steps li { counter-increment: step; margin: 0; padding: 24px 20px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.steps li::before {
  content: counter(step); display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 50%; margin-bottom: 14px;
  background: var(--navy); color: var(--white); font-weight: 700;
}
.steps strong { display: block; color: var(--navy); margin-bottom: 4px; }
.steps span { color: var(--muted); font-size: .95rem; }

/* Tableau des modalités */
.terms { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.terms div { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.terms strong { display: block; color: var(--navy); margin-bottom: 6px; }
.terms p { margin: 0; color: var(--muted); font-size: .95rem; }

/* Service détaillé */
.service { display: grid; grid-template-columns: 1fr 1.6fr; gap: 48px; padding: 48px 0; border-top: 1px solid var(--line); }
.service:first-of-type { border-top: 0; padding-top: 0; }
.service .for { color: var(--muted); }
.service .result { background: var(--soft); border-radius: 10px; padding: 14px 18px; margin-top: 18px; }
.service .result strong { color: var(--navy); }

/* À propos */
.about { display: grid; grid-template-columns: .8fr 1.3fr; gap: 64px; align-items: start; }
.about img { border-radius: 20px; box-shadow: var(--shadow); position: sticky; top: 110px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; }
.tags li { margin: 0; padding: 6px 12px; border-radius: 999px; background: var(--soft); border: 1px solid var(--line); font-size: .9rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 24px 0 0; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; }
.contact-list .card-icon { margin: 0; flex: none; }
.contact-list strong { display: block; color: var(--navy); }
.booking { background: var(--navy); color: #dbe4ef; border-radius: var(--radius); padding: 30px; }
.booking h2 { color: var(--white); font-size: 1.5rem; }
.form label { display: block; font-weight: 600; font-size: .93rem; margin-bottom: 6px; color: var(--navy); }
.form .field { margin-bottom: 18px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form input, .form textarea {
  width: 100%; font: inherit; color: var(--ink);
  padding: 12px 14px; border: 1px solid #c9d1da; border-radius: 10px; background: var(--white);
}
.form input:focus, .form textarea:focus { outline: 3px solid rgba(0,134,203,.25); border-color: var(--brand); }
.form textarea { min-height: 150px; resize: vertical; }
.form .hint { font-size: .85rem; color: var(--muted); margin-top: 12px; }
.form .hp { position: absolute; left: -9999px; }
.form-status { margin-top: 14px; font-weight: 600; }
.form-status.ok { color: #1b7f3b; }
.form-status.err { color: #b42318; }

/* Texte légal */
.legal { max-width: 760px; }
.legal h2 { font-size: 1.3rem; margin-top: 2em; }

/* Bandeau d'appel final */
.cta { text-align: center; }
.cta .section-head { margin: 0 auto 8px; }
.cta .actions { justify-content: center; }

/* Pied de page */
.site-footer { background: #0d1d36; color: #aebdd0; padding: 56px 0 28px; font-size: .95rem; }
.site-footer a { color: #dbe4ef; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-grid h3 { color: var(--white); font-size: .95rem; text-transform: uppercase; letter-spacing: .08em; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-logo { filter: brightness(0) invert(1); height: 30px; width: auto; max-width: none; margin-bottom: 14px; }
.footer-bottom { border-top: 1px solid #22385a; margin-top: 40px; padding-top: 22px; display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; font-size: .88rem; }

/* Accessibilité */
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--white); padding: 8px 14px; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

/* Responsive */
@media (max-width: 1000px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .terms { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line); padding: 8px 24px 20px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav a[aria-current="page"] { box-shadow: none; }
  .nav .btn { margin-top: 14px; justify-content: center; border-bottom: 0; }
  .hero .wrap, .about, .contact-grid, .service { grid-template-columns: 1fr; gap: 36px; }
  .hero-photo { max-width: 380px; margin: 0 auto; }
  .about img { position: static; max-width: 340px; }
  .grid--3, .grid--2, .situations { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .section { padding: 64px 0; }
  .hero { padding: 48px 0 64px; }
    .steps, .terms, .form .row { grid-template-columns: 1fr; }
  .btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

.h3 { font-size: 1.2rem; font-weight: 700; }
.about h2 { margin-top: 1.6em; }
.about h2:first-child { margin-top: 0; }
