/* ==========================================================
   Perception — feuille de style (mise en page « Équilibrée »)
   Couleurs et polices : modifier les variables ci-dessous.
   ========================================================== */

:root {
  --navy: #10263D;        /* marine : titres, section contact */
  --teal: #11636C;        /* bleu canard : accents, phrases-clés */
  --aqua: #3FD0B0;        /* vert d'eau : la touche de peps (logo, puces) */
  --paper: #F4F8F7;       /* fond clair teinté */
  --white: #FFFFFF;
  --text: #2A3F55;        /* texte courant */
  --muted: #4F6376;       /* texte secondaire */
  --line: #E1E9EC;        /* filets */

  --sans: "Schibsted Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;

  /* Grands titres : police, graisse et approche des lettres */
  --display: var(--sans);
  --w-display: 500;
  --track: -.035em;

  --pad: clamp(20px, 5.5vw, 88px);
  --max: 1240px;
  --nav-h: 68px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 8px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--text); font-family: var(--serif); font-size: 18px; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-family: var(--display); color: var(--navy); text-wrap: balance; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 2px; }
.nowrap { white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 12px; z-index: 50; background: var(--white); color: var(--navy); padding: 10px 14px; font-family: var(--sans); font-weight: 600; }
.skip:focus { left: 12px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }

/* ---------- En-tête ---------- */

.header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: var(--nav-h); }

.logo { display: inline-flex; align-items: center; gap: 12px; color: var(--navy); text-decoration: none; }
.logo-mark { width: 34px; height: 34px; flex: none; overflow: visible; }
.logo span { font-family: var(--sans); font-weight: 700; font-size: 16px; letter-spacing: .18em; text-transform: uppercase; }

.menu { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 32px); font-family: var(--sans); font-size: 15px; font-weight: 500; }
.menu a { text-decoration: none; color: var(--muted); padding: 6px 0; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; }
.menu a:hover { color: var(--navy); }
.menu a[aria-current="true"] { color: var(--navy); border-bottom-color: var(--aqua); }
.menu .cta { color: var(--navy); font-weight: 600; border: 1.5px solid var(--navy); border-radius: 999px; padding: 7px 16px; }
.menu .cta:hover, .menu .cta[aria-current="true"] { background: var(--navy); color: var(--white); border-color: var(--navy); }
@media (max-width: 780px) { .menu .opt { display: none; } }
@media (max-width: 380px) { .logo span { font-size: 14px; letter-spacing: .14em; } }

/* ---------- Sections ---------- */

.section { padding: clamp(64px, 9vw, 128px) 0; border-top: 1px solid var(--line); }
.section-paper { background: var(--paper); border-top-color: transparent; }

.label { font-family: var(--sans); font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--teal); margin-bottom: 18px; }
h2 { font-weight: var(--w-display); font-size: clamp(30px, 3.5vw, 48px); line-height: 1.05; letter-spacing: var(--track); }
.intro { margin-top: 22px; font-size: clamp(18px, 1.5vw, 20px); line-height: 1.55; max-width: 56ch; }
.prose { display: grid; gap: 1.1em; max-width: 62ch; }

/* En-tête de section sur deux colonnes : titre à gauche, introduction à droite */
.section-head { display: grid; gap: 20px; }
@media (min-width: 900px) {
  .section-head { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 48px; align-items: start; }
  .section-head .intro { margin-top: 0; max-width: 72ch; }
}

/* ---------- Accueil ---------- */

.hero { padding: clamp(40px, 6.5vw, 96px) 0 clamp(48px, 6vw, 80px); }
.hero .wrap { display: grid; gap: 44px; align-items: center; }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 72px; } }

.hero h1 { font-weight: var(--w-display); font-size: clamp(52px, 7.6vw, 118px); line-height: .94; letter-spacing: var(--track); }
.hero h1 .line { display: block; }
.hl { color: var(--teal); }
.lede { margin-top: 28px; font-size: clamp(20px, 1.8vw, 24px); line-height: 1.5; max-width: 36ch; }
.hero-cta { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }

.btn { display: inline-flex; align-items: center; font-family: var(--sans); font-size: 16px; font-weight: 600; text-decoration: none; padding: 14px 24px; border-radius: 999px; border: 1.5px solid var(--navy); transition: background .2s, color .2s, border-color .2s; }
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--teal); border-color: var(--teal); }
.btn-ghost { color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: var(--white); }

.portrait { margin: 0; display: grid; gap: 12px; width: min(100%, 380px); justify-self: center; }
@media (min-width: 900px) { .portrait { justify-self: end; } }
.portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; border-radius: 6px; background: #1C3552; }
.portrait-photo { position: relative; }
.photo-credit { position: absolute; right: 7px; bottom: 3px; font-family: var(--sans); font-size: 8.5px; line-height: 1.2; letter-spacing: .02em; color: rgba(255, 255, 255, .78); text-shadow: 0 1px 2px rgba(0, 0, 0, .45); pointer-events: none; }
.portrait figcaption { font-family: var(--sans); display: grid; gap: 3px; }
.portrait figcaption strong { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: var(--navy); }
.portrait figcaption strong::before { content: ""; width: 7px; height: 7px; background: var(--aqua); flex: none; }
.portrait figcaption span { font-size: 13.5px; line-height: 1.45; color: var(--muted); padding-left: 15px; }

/* ---------- Services ---------- */

.section-services { padding-top: clamp(48px, 6vw, 88px); padding-bottom: clamp(56px, 7vw, 96px); }
.section-situations { padding-top: clamp(48px, 6vw, 88px); padding-bottom: clamp(44px, 5vw, 64px); }
/* Investisseurs : même fond que Fondateurs & fondatrices (une seule rubrique « Vos enjeux »), séparés par un filet */
.section-investors { background: var(--paper); padding-top: 0; padding-bottom: clamp(56px, 7vw, 96px); border-top: 0; }
.section-investors .wrap > .label { border-top: 1px solid #D6E1DF; padding-top: clamp(44px, 5vw, 64px); }
.section-about { padding-top: clamp(48px, 6vw, 88px); }

.services-grid { display: grid; gap: 16px; margin-top: clamp(36px, 4vw, 56px); }

/* Sur ordinateur : trois colonnes dont les titres, phrases-clés et textes
   démarrent à la même hauteur, quelle que soit la longueur des titres. */
@media (min-width: 900px) {
  .services-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto auto 1fr; column-gap: 20px; row-gap: 0; }
  .service { grid-row: span 3; display: grid; grid-template-rows: subgrid; row-gap: 14px; }
}

.service { display: grid; gap: 12px; align-content: start; background: var(--paper); border-top: 3px solid var(--aqua); border-radius: 0 0 6px 6px; padding: clamp(24px, 2.4vw, 32px); }
.service h3 { display: flex; align-items: flex-start; gap: 12px; font-weight: var(--w-display); font-size: clamp(26px, 2.3vw, 32px); line-height: 1.06; letter-spacing: var(--track); align-self: start; }
.service h3::before { content: ""; flex: none; width: .26em; height: .26em; margin-top: .34em; background: var(--aqua); transition: transform .5s var(--ease); }
.service:hover h3::before { transform: rotate(45deg); }
.service-key { font-family: var(--sans); font-weight: 600; font-size: 17px; line-height: 1.35; color: var(--teal); text-wrap: balance; }
.service-text { color: var(--muted); font-size: 16.5px; line-height: 1.6; text-wrap: pretty; padding-top: 14px; border-top: 1px solid var(--line); }
/* « Concrètement » : bannière déroulante sous les trois cartes */
.how-panel { margin-top: 16px; }
.how-panel summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px 20px; flex-wrap: wrap; padding: clamp(16px, 1.8vw, 20px) clamp(20px, 2.4vw, 32px); background: var(--navy); color: var(--white); border-radius: 6px; transition: background .2s; }
.how-panel summary::-webkit-details-marker { display: none; }
.how-panel summary:hover { background: #17344F; }
.how-panel summary:focus:not(:focus-visible) { outline: none; }
.how-panel summary:focus-visible { outline: 2px solid var(--aqua); outline-offset: -5px; }
.how-label { display: flex; align-items: center; gap: 10px; font-family: var(--sans); font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.how-label::before { content: ""; width: 8px; height: 8px; background: var(--aqua); }
.how-hint { font-family: var(--sans); font-size: 15px; color: rgba(255, 255, 255, .72); margin-right: auto; }
.how-panel summary::after { content: ""; flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--aqua); background: linear-gradient(var(--aqua), var(--aqua)) center / 11px 1.5px no-repeat, linear-gradient(var(--aqua), var(--aqua)) center / 1.5px 11px no-repeat; transition: transform .35s var(--ease); }
.how-panel[open] summary::after { transform: rotate(45deg); }
.how-grid { display: grid; gap: 16px; margin-top: 16px; }
@media (min-width: 900px) { .how-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 20px; } }
.how-panel[open] .how-grid, .how-panel[open] .formats { animation: drop .35s var(--ease); }
.how-col { display: grid; gap: 14px; align-content: start; background: var(--paper); border-radius: 6px; padding: clamp(24px, 2.4vw, 32px); }
.how-title { font-family: var(--display); font-weight: var(--w-display); font-size: 20px; letter-spacing: -.015em; color: var(--navy); }
.how-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.how-col li { position: relative; padding-left: 17px; font-family: var(--sans); font-size: 15px; line-height: 1.4; color: var(--navy); text-wrap: pretty; }
.how-col li::before { content: ""; position: absolute; left: 0; top: .5em; width: 7px; height: 7px; background: var(--aqua); }
.formats { margin: 16px 0 0; padding: 20px clamp(24px, 2.4vw, 32px); background: var(--paper); border-radius: 6px; font-family: var(--sans); font-size: 15px; line-height: 1.5; color: var(--muted); }
.formats strong { color: var(--navy); font-weight: 600; margin-right: 8px; }

/* ---------- Situations ---------- */

.cases { display: grid; gap: 16px; margin-top: clamp(36px, 4vw, 56px); }
@media (min-width: 900px) {
  .cases { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto 1fr; row-gap: 0; }
  .case { grid-row: span 2; grid-template-rows: subgrid; }
}
.case { background: var(--white); border-radius: 6px; padding: clamp(22px, 2.4vw, 32px); display: grid; gap: 12px; align-content: start; }
.case-sign { font-family: var(--display); font-weight: var(--w-display); font-size: clamp(19px, 1.6vw, 23px); line-height: 1.3; letter-spacing: -.01em; color: var(--navy); }
.case-effect { color: var(--muted); font-size: 17px; }
/* « Ce que Perception vous apporte » : bandeau pleine largeur */
.promise { margin-top: clamp(40px, 4vw, 56px); display: grid; gap: 12px 40px; align-items: center; background: var(--white); border-top: 3px solid var(--aqua); border-radius: 0 0 6px 6px; padding: clamp(24px, 3vw, 40px) clamp(24px, 3vw, 40px); }
@media (min-width: 900px) { .promise { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); } }
.promise-label { display: flex; align-items: center; gap: 10px; font-family: var(--sans); font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); }
.promise-label::before { content: ""; flex: none; width: 8px; height: 8px; background: var(--aqua); }
.promise-text { font-family: var(--display); font-weight: var(--w-display); font-size: clamp(16px, 1.45vw, 20px); line-height: 1.45; letter-spacing: -.01em; color: var(--teal); text-wrap: balance; }

/* ---------- Investisseurs ---------- */

.moments { list-style: none; margin: clamp(32px, 3.6vw, 48px) 0 0; padding: 0; display: grid; gap: 24px; }
@media (min-width: 600px) { .moments { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 32px; } }
@media (min-width: 1000px) { .moments { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.moments li { border-top: 1px solid var(--navy); padding-top: 16px; display: grid; gap: 8px; align-content: start; }
.moments strong { font-family: var(--display); font-weight: var(--w-display); font-size: clamp(19px, 1.6vw, 22px); line-height: 1.25; letter-spacing: -.015em; color: var(--navy); }
.moments span { font-size: 16px; line-height: 1.5; color: var(--muted); }

/* ---------- Pourquoi Perception ---------- */

.why { display: grid; gap: 36px; }
@media (min-width: 900px) { .why { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 72px; align-items: end; } }
.readings { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.readings li { font-family: var(--sans); font-weight: 600; font-size: 15px; color: var(--teal); background: var(--paper); border: 1px solid var(--line); padding: 7px 14px; border-radius: 999px; }
.quote { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 2.8vw, 38px); line-height: 1.32; color: var(--navy); padding-left: 22px; border-left: 3px solid var(--aqua); max-width: 30ch; }

/* ---------- À propos ---------- */

h2.name { font-size: clamp(24px, 2.65vw, 36px); }

.facts { margin: clamp(32px, 3.6vw, 48px) 0 0; display: grid; gap: 24px; }
@media (min-width: 600px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 32px; } }
@media (min-width: 1000px) { .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.facts div { border-top: 1px solid var(--navy); padding-top: 16px; display: grid; gap: 6px; align-content: start; }
.facts dt { font-family: var(--display); font-weight: var(--w-display); font-size: clamp(28px, 2.6vw, 38px); line-height: 1.05; letter-spacing: var(--track); color: var(--navy); }
.facts dd { margin: 0; font-size: 16px; line-height: 1.45; color: var(--muted); }

.about-body { display: grid; gap: 36px; margin-top: 44px; }
@media (min-width: 900px) { .about-body { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 72px; } }
.crossroads { display: grid; gap: 14px; align-content: start; }
.crossroads p { font-family: var(--sans); font-weight: 600; font-size: 15px; color: var(--muted); }
/* Domaines de compétence : liste typographique, sans effet « bouton » */
.tags { list-style: none; margin: 0; padding: 0; display: grid; border-bottom: 1px solid var(--line); }
.tags li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-family: var(--display); font-weight: var(--w-display); font-size: clamp(15px, 1.3vw, 17.5px); letter-spacing: -.01em; color: var(--navy); }
.tags li::before { content: ""; flex: none; width: 7px; height: 7px; background: var(--aqua); }

/* ---------- Bandeau illustré « deux lectures » ---------- */

.band { background: var(--paper); padding: clamp(32px, 4.5vw, 64px) 0; }
.band .wrap { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .band .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 72px; } }
.band-visual { justify-self: center; width: min(100%, 500px); }
.band-visual img { width: 100%; height: auto; aspect-ratio: 900 / 600; object-fit: cover; object-position: 50% 42%; display: block; }
.band-kicker { font-family: var(--sans); font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--teal); margin-bottom: 18px; }
.band-title { font-family: var(--display); font-weight: var(--w-display); font-size: clamp(30px, 3.5vw, 48px); line-height: 1.08; letter-spacing: var(--track); color: var(--navy); max-width: 20ch; text-wrap: balance; }
.band-title .hl { color: var(--teal); }

/* ---------- Publications (pour plus tard) ---------- */

.pubs { list-style: none; margin: 40px 0 0; padding: 0; display: grid; }
.pubs a { display: grid; gap: 4px; padding: 22px 0; border-top: 1px solid var(--line); text-decoration: none; }
.pub-meta { font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--teal); }
.pub-title { font-family: var(--display); font-size: 22px; font-weight: var(--w-display); color: var(--navy); }
.pubs a:hover .pub-title { color: var(--teal); }

/* ---------- Contact ---------- */

.section-dark { background: var(--navy); color: var(--white); border-top: 0; }
.section-dark h2 { color: var(--white); }
.section-dark .label { color: var(--aqua); }
.section-dark .intro { color: rgba(255, 255, 255, .82); }
.contact-mail { display: inline-block; margin-top: 28px; font-family: var(--display); font-weight: var(--w-display); font-size: clamp(18px, 1.6vw, 22px); letter-spacing: -.01em; line-height: 1.3; text-decoration: none; overflow-wrap: anywhere; background-image: linear-gradient(var(--aqua), var(--aqua)); background-size: 100% 2px; background-position: 0 100%; background-repeat: no-repeat; padding-bottom: 4px; transition: background-size .35s var(--ease), color .2s; }
.contact-mail:hover { color: var(--aqua); background-size: 40% 2px; }
.contact-links { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 10px; }
.pill { display: inline-flex; font-family: var(--sans); font-size: 14.5px; font-weight: 600; text-decoration: none; padding: 10px 16px; border-radius: 999px; color: var(--white); background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .3); transition: background .2s, color .2s; }
.pill:hover { background: var(--white); color: var(--navy); }

/* ---------- Pied de page ---------- */

.footer { background: var(--navy); color: rgba(255, 255, 255, .6); border-top: 1px solid rgba(255, 255, 255, .12); font-family: var(--sans); font-size: 14px; padding: 24px 0 32px; }
.footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.footer a { color: rgba(255, 255, 255, .8); }
.footer a:hover { color: var(--white); }

/* ---------- Animations ---------- */

@keyframes rise { from { opacity: 0; transform: translateY(.3em); } }
@keyframes fade { from { opacity: 0; } }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } }
@keyframes reveal { from { opacity: 0; transform: translateY(28px); } }

/* Apparition au défilement, uniquement sur les navigateurs qui la gèrent nativement */
@supports (animation-timeline: view()) {
  .reveal { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 40%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
