/* Police intégrée au site (Familjen Grotesk, licence libre SIL OFL) */
@font-face {
  font-family: "Familjen Grotesk"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(fonts/familjen-grotesk-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Familjen Grotesk"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(fonts/familjen-grotesk-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Raiz Lab — bleu Léman, blanc, jaune soleil */
:root {
  --encre: #172a3a;
  --leman: #2f5d8a;
  --brume: #edf1f4;
  --trait: #d5dde4;
  --soleil: #f2c230;
  --texte: #1d2b38;
  --texte-2: #4d5c6a;
  --blanc: #ffffff;
  --police: "Familjen Grotesk", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--police);
  font-size: 18px;
  line-height: 1.6;
  color: var(--texte);
  background: var(--blanc);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--leman); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--soleil); outline-offset: 3px; }

h1, h2, h3 { color: var(--encre); font-weight: 700; letter-spacing: -0.025em; }
h1 { font-size: clamp(2.4rem, 4.6vw, 4rem); line-height: 1.03; }
h2 { font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.08; }
h3 { font-size: 1.45rem; line-height: 1.2; letter-spacing: -0.015em; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.section-title { margin-bottom: 3rem; max-width: 18ch; }

/* Boutons */
.btn {
  display: inline-block; font: inherit; font-weight: 600; font-size: 1.05rem;
  text-decoration: none; padding: 1rem 1.6rem; border-radius: 10px; border: 0; cursor: pointer;
  transition: background-color .2s, color .2s;
}
.btn-sun { background: var(--soleil); color: var(--encre); }
.btn-sun:hover { background: #e3b11c; }
.btn-ink { background: var(--encre); color: var(--blanc); }
.btn-ink:hover { background: var(--leman); }
.btn-sm { padding: .6rem 1.1rem; font-size: .95rem; white-space: nowrap; }

/* En-tête */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--trait); }
.top-in { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.wordmark { font-size: 1.55rem; font-weight: 700; letter-spacing: -0.04em; color: var(--encre); text-decoration: none; white-space: nowrap; }
nav { display: flex; align-items: center; gap: 1.8rem; }
nav a:not(.btn) { color: var(--texte); text-decoration: none; font-weight: 500; }
nav a:not(.btn):hover { color: var(--leman); }

/* Accroche */
.hero { padding: 72px 0 96px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.hero-text h1 { margin-bottom: 1.6rem; }
.lead { font-size: 1.2rem; color: var(--texte-2); max-width: 34rem; margin-bottom: 2.2rem; }
.brand { display: flex; align-items: center; gap: 1rem; }
.based { color: var(--texte-2); font-size: .95rem; font-weight: 500; padding-left: 1rem; border-left: 1px solid var(--trait); white-space: nowrap; }

/* Accordéon d'images */
.accordion { display: flex; gap: 10px; height: 500px; }
.acc-item {
  position: relative; flex: 0 0 54px; overflow: hidden; border: 0; padding: 0; cursor: pointer;
  border-radius: 18px; background: var(--encre); font: inherit; color: var(--blanc); text-align: left;
  transition: flex-basis .7s cubic-bezier(.65,0,.35,1), flex-grow .7s cubic-bezier(.65,0,.35,1);
}
.acc-item.is-active { flex: 1 1 auto; }
.acc-item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.acc-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(23,42,58,.85), rgba(23,42,58,.15) 55%); }
.acc-cap {
  position: absolute; z-index: 1; left: 50%; bottom: 120px; white-space: nowrap;
  transform: translateX(-50%) rotate(-90deg); transform-origin: center;
}
.acc-title { font-weight: 600; font-size: 1.05rem; }
.acc-sub { display: none; }
.acc-item.is-active .acc-cap {
  left: 26px; right: 24px; bottom: 24px; transform: none; white-space: normal;
  display: flex; flex-direction: column; gap: .3rem;
}
.acc-item.is-active .acc-title { font-size: 1.6rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.acc-item.is-active .acc-sub { display: block; font-size: 1rem; color: #dfe7ee; line-height: 1.35; animation: accIn .4s .35s both; }
@keyframes accIn { from { opacity: 0; } to { opacity: 1; } }
.acc-note { margin-top: 1rem; font-size: .95rem; color: var(--texte-2); }

/* Services */
.services-head { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: end; margin-bottom: 4rem; }
.services-head p { color: var(--texte-2); font-size: 1.15rem; max-width: 34rem; }
.services { padding: 64px 0 88px; }
.service { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; margin-bottom: 96px; }
.service.flip .service-media { order: 2; }
.service-media { border-radius: 22px; overflow: hidden; position: relative; transition: transform .5s cubic-bezier(.2,.7,.2,1), box-shadow .5s; }
.service-media::after { content: ""; position: absolute; inset: 0; background: var(--leman); opacity: 0; transition: opacity .5s; mix-blend-mode: multiply; }
.service-img { width: 100%; aspect-ratio: 9 / 7; object-fit: cover; transition: transform .9s cubic-bezier(.2,.7,.2,1); }
.service-body h3 { transition: color .3s; }
.service-body h3::after { content: ""; display: block; width: 0; height: 3px; margin-top: .55rem; background: var(--soleil); border-radius: 2px; transition: width .5s cubic-bezier(.2,.7,.2,1); }
.examples li { transition: padding-left .3s, background-color .3s; }
@media (hover: hover) {
  .service:hover .service-media { transform: translateY(-6px); box-shadow: 0 24px 48px -20px rgba(23,42,58,.45); }
  .service:hover .service-media::after { opacity: .12; }
  .service:hover .service-img { transform: scale(1.06); }
  .service:hover .service-body h3 { color: var(--leman); }
  .service:hover .service-body h3::after { width: 64px; }
  .examples li:hover { padding-left: .8rem; background: var(--brume); }
}
.service-body h3 { font-size: clamp(1.6rem, 2.4vw, 2rem); margin-bottom: 1rem; }
.service-body > p { color: var(--texte-2); max-width: 36rem; }
.examples { list-style: none; margin: 1.6rem 0; border-top: 1px solid var(--trait); }
.examples li { padding: .85rem 0; border-bottom: 1px solid var(--trait); color: var(--texte-2); font-size: 1rem; }
.examples b { display: block; color: var(--encre); font-weight: 600; }
.tools { color: var(--texte-2); font-size: 1rem; text-align: center; }

/* Qui sommes-nous */
.about { position: relative; padding: 140px 0; background: var(--encre) url(images/lavaux.jpg) center / cover no-repeat; }
.about::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(23,42,58,.78) 0%, rgba(23,42,58,.45) 50%, rgba(23,42,58,.2) 100%); }
.about-grid { position: relative; }
.about h2 { color: var(--blanc); }
.about-body { background: rgba(255,255,255,.95); border-radius: 22px; padding: 2.4rem 2.4rem 1.2rem; box-shadow: 0 30px 60px -30px rgba(0,0,0,.5); }
.about-grid { display: grid; grid-template-columns: 5fr 6fr; gap: 64px; align-items: start; }
.about h2 { margin-bottom: 1.6rem; }
.about-big { font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.25; font-weight: 500; letter-spacing: -0.02em; color: var(--blanc); max-width: 20ch; padding-left: 1.2rem; border-left: 4px solid var(--soleil); }
.about-quote { position: relative; margin: 0; padding-top: 2.2rem; }
.about-quote::before { content: "«"; position: absolute; top: -1.4rem; left: -.3rem; font-size: 5.5rem; line-height: 1; font-weight: 700; color: var(--soleil); }
.about-quote p { color: var(--texte); font-size: 1.08rem; margin-bottom: 1.1rem; max-width: 40rem; }
.about-quote p:last-child::after { content: "\00a0»"; color: var(--soleil); font-weight: 700; }
.values { list-style: none; margin: 2rem 0 1rem; border-top: 1px solid var(--trait); }
.values li { padding: 1.1rem 0; border-bottom: 1px solid var(--trait); color: var(--texte-2); display: grid; grid-template-columns: 11rem 1fr; gap: 1rem; }
.values b { color: var(--encre); font-weight: 700; font-size: 1.1rem; }
.about-sign { margin: .4rem 0 0; font-weight: 600; color: var(--encre); }
.about-sign::before { content: ""; display: inline-block; width: 28px; height: 3px; margin-right: .7rem; vertical-align: middle; background: var(--soleil); border-radius: 2px; }

/* Méthode */
.method { background: var(--encre); color: var(--blanc); padding: 112px 0; }
.method-head { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: end; margin-bottom: 4rem; }
.method-head h2 { color: var(--blanc); }
.method-head p { color: #c3d0dc; font-size: 1.15rem; max-width: 34rem; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; }
.steps::before { content: ""; position: absolute; top: 27px; left: 40px; right: 40px; height: 2px; background: rgba(255,255,255,.18); }
.step {
  position: relative; padding: 0 1.4rem 1.6rem; margin-top: 27px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: 18px;
  transition: transform .4s cubic-bezier(.2,.7,.2,1), border-color .4s, background-color .4s;
}
.step-n {
  display: grid; place-items: center; width: 54px; height: 54px; margin: -27px 0 1.4rem; border-radius: 50%;
  background: var(--soleil); color: var(--encre); font-weight: 700; font-size: 1.3rem; position: relative;
  box-shadow: 0 0 0 6px var(--encre);
}
.step h3 { color: var(--blanc); font-size: 1.3rem; margin-bottom: .6rem; }
.step > p { color: #c3d0dc; font-size: 1rem; }
.step-list { list-style: none; margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.12); display: grid; gap: .5rem; }
.step-list li { position: relative; padding-left: 1.6rem; font-size: .95rem; color: #e3eaf0; line-height: 1.4; }
.step-list li::before {
  content: ""; position: absolute; left: 2px; top: .3em; width: 6px; height: 11px;
  border-right: 2px solid var(--soleil); border-bottom: 2px solid var(--soleil); transform: rotate(45deg);
}
@media (hover: hover) {
  .step:hover { transform: translateY(-6px); border-color: rgba(242,194,48,.6); background: rgba(255,255,255,.08); }
}
.method-cta { margin-top: 3.5rem; }

/* FAQ */
.faq { padding: 112px 0; }
.faq-grid { display: grid; grid-template-columns: 4fr 7fr; gap: 64px; align-items: start; }
.faq-intro { position: sticky; top: 110px; }
.faq-intro .section-title { margin-bottom: 1.2rem; }
.faq-intro p { color: var(--texte-2); }
.faq-list { border-top: 1px solid var(--trait); }
details { border-bottom: 1px solid var(--trait); }
summary {
  cursor: pointer; list-style: none; padding: 1.4rem 3rem 1.4rem 0; position: relative;
  font-weight: 600; font-size: 1.2rem; color: var(--encre); letter-spacing: -0.01em;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; margin-top: -9px;
  border-right: 2px solid var(--leman); border-bottom: 2px solid var(--leman); transform: rotate(45deg); transition: transform .25s;
}
details[open] summary::after { transform: rotate(-135deg); margin-top: -3px; }
details p { padding: 0 2rem 1.6rem 0; color: var(--texte-2); max-width: 40rem; }

/* Contact */
.contact { background: var(--encre); color: var(--blanc); padding: 112px 0; }
.contact-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
.contact h2 { color: var(--blanc); margin-bottom: 1.4rem; }
.contact .lead { color: #c3d0dc; }
.mail-line { color: #c3d0dc; }
.mail-line a { color: var(--soleil); font-weight: 600; font-size: 1.15rem; }

.form { background: var(--blanc); color: var(--texte); border-radius: 22px; padding: 2.2rem; display: grid; gap: 1.2rem; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.form label { display: grid; gap: .4rem; font-weight: 600; font-size: .95rem; color: var(--encre); }
.form .opt { font-weight: 400; color: var(--texte-2); }
.form input, .form textarea {
  font: inherit; font-size: 1rem; font-weight: 400; color: var(--texte);
  padding: .8rem .95rem; border: 1.5px solid var(--trait); border-radius: 10px; background: var(--blanc);
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--leman); box-shadow: 0 0 0 3px rgba(47,93,138,.18); }
.form textarea { resize: vertical; }
.form button { justify-self: start; }
.privacy { font-size: .9rem; color: var(--texte-2); }
.hp { position: absolute; left: -9999px; }

/* Pied de page */
.foot { background: #10202d; color: #aebdca; padding: 48px 0; font-size: .95rem; }
.foot-in { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; flex-wrap: wrap; }
.foot-name { color: var(--blanc); font-weight: 700; font-size: 1.3rem; letter-spacing: -0.03em; margin-bottom: .3rem; }
.foot-small { font-size: .85rem; margin-top: .4rem; opacity: .8; }
.foot a { color: #aebdca; }

/* Pages simples (merci, mentions légales) */
.page-simple { padding: 56px 0 96px; min-height: 100vh; }
.page-simple .wordmark { display: inline-block; margin-bottom: 3rem; }
.narrow { max-width: 760px; }
.page-simple h1 { font-size: clamp(2rem, 4.4vw, 3rem); margin-bottom: 1.2rem; }
.legal h2 { font-size: 1.8rem; margin: 3rem 0 1rem; }
.legal h3 { font-size: 1.2rem; margin: 1.8rem 0 .4rem; }
.legal p, .legal li { color: var(--texte-2); margin-bottom: .6rem; }
.legal ul { padding-left: 1.2rem; }
.legal .small { font-size: .85rem; margin-top: 2rem; }

/* Tablette */
@media (max-width: 960px) {
  .hero-grid, .contact-grid, .faq-grid, .services-head, .method-head, .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .services-head, .method-head { gap: 1rem; margin-bottom: 3rem; }
  .steps { grid-template-columns: 1fr 1fr; gap: 36px 20px; }
  .steps::before { display: none; }
  .based { display: none; }
  .faq-intro { position: static; }
  .service { grid-template-columns: 1fr; gap: 28px; margin-bottom: 72px; }
  .service.flip .service-media { order: 0; }
  .accordion { height: 440px; }
}

/* Téléphone */
@media (max-width: 680px) {
  body { font-size: 17px; }
  .wrap { padding: 0 16px; }
  nav a:not(.btn) { display: none; }
  .top-in { height: 64px; }
  .wordmark { font-size: 1.35rem; }
  .hero { padding: 44px 0 64px; }
  .hero-text .btn, .btn-sun { display: block; text-align: center; }
  .services, .about, .method, .faq, .contact { padding: 72px 0; }
  .values li { grid-template-columns: 1fr; gap: .2rem; }
  .about { padding: 72px 0; }
  .about { background-position: 22% center; }
  .about::before { background: rgba(23,42,58,.6); }
  .about-body { padding: 1.6rem 1.4rem .6rem; }

  .steps { grid-template-columns: 1fr; gap: 36px; }
  .form { padding: 1.4rem; }
  .form .row { grid-template-columns: 1fr; }
  .form button { justify-self: stretch; }

  /* Accordéon vertical sur téléphone */
  .accordion { flex-direction: column; height: 520px; gap: 8px; }
  .acc-item { flex: 0 0 56px; }
  .acc-cap { left: 20px; bottom: 50%; transform: translateY(50%); }
  .acc-item.is-active .acc-cap { left: 20px; right: 20px; bottom: 18px; }
  .acc-item.is-active .acc-title { font-size: 1.4rem; }
  .acc-item.is-active .acc-sub { font-size: .92rem; }
}

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