/* CBEA — styles partagés, composants et adaptations responsive. */

:root {
  --navy: #0f2346;
  --gold: #b08d57;
  --muted: #647083;
  --line: #e5e9ee;
  --cream: #f8f7f5;
  --sans: "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--navy);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
  background: white;
  -webkit-font-smoothing: antialiased;
}

button,
input,
textarea {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
}

.shell {
  width: min(1080px, calc(100% - 72px));
  margin-inline: auto;
}

.header {
  background: #fff;
  border-bottom: 1px solid #ebedf0;
  position: sticky;
  top: 0;
  z-index: 30;
}

.header .shell {
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand img {
  display: block;
  width: 166px;
  height: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 35px;
}

.nav > a:not(.btn) {
  font-size: 13px;
  font-weight: 600;
  color: #49536b;
  transition: color 0.2s;
}

.nav > a:hover,
.nav > a.active {
  color: #85622e;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--gold);
  color: #fff;
  border: 1px solid var(--gold);
  border-radius: 7px;
  padding: 12px 22px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  transition:
    background 0.2s,
    transform 0.2s;
}

.btn:hover {
  background: #967547;
  transform: translateY(-2px);
}

.btn.outline {
  color: var(--navy);
  background: white;
  border-color: #c9d1db;
}

.btn.outline:hover {
  background: #f4f6f8;
}

.nav .btn {
  padding: 10px 19px;
}

.burger {
  display: none;
  background: none;
  border: 0;
  padding: 7px;
  color: var(--navy);
}

.hero {
  padding-top: 76px;
  padding-bottom: 66px;
  display: grid;
  grid-template-columns: 0.93fr 1.07fr;
  align-items: center;
  gap: 64px;
}

.hero h1 {
  font-size: clamp(34px, 3.75vw, 50px);
  line-height: 1.14;
  letter-spacing: -0.048em;
  margin: 0 0 24px;
  font-weight: 760;
}

.hero .lead {
  font-size: 16px;
  line-height: 1.7;
  color: #46536a;
  margin: 0 0 14px;
}

.hero .tagline {
  color: #536076;
  margin: 0 0 27px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 25px;
}

.hero-notes {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  color: #687487;
  font-size: 12px;
}

.hero-notes span {
  display: flex;
  gap: 7px;
  align-items: center;
}

.visual {
  position: relative;
}

.hero-slides {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  height: 425px;
  background: #e8e4dc;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.035);
  transition:
    opacity 1.1s ease,
    transform 6s ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.section {
  padding: 95px 0;
}

.section-tight {
  padding: 75px 0;
}

.soft {
  background: var(--cream);
}

.section-heading {
  text-align: center;
  margin-bottom: 42px;
}

.section-heading h2 {
  font-size: clamp(23px, 2.35vw, 31px);
  line-height: 1.22;
  letter-spacing: 0.055em;
  font-weight: 760;
  text-transform: uppercase;
  margin: 0 auto 14px;
  max-width: 790px;
}

.section-heading p {
  color: var(--muted);
  margin: 0 auto;
  max-width: 630px;
}

.eyebrow {
  color: #85622e;
  font-size: 11px;
  letter-spacing: 0.2em;
  font-weight: 800;
  text-transform: uppercase;
  display: block;
  margin-bottom: 14px;
}

.ribbon .shell {
  display: grid;
  gap: 0;
}

.ribbon-item {
  gap: 14px;
  align-items: center;
  justify-content: center;
  line-height: 1.35;
}

.ribbon strong {
  display: block;
}

.ribbon small {
  color: var(--muted);
  display: block;
}

.services {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.service {
  background: #fff;
  border: 1px solid var(--line);
  padding: 29px 32px;
  border-radius: 10px;
  min-height: 188px;
  transition:
    border-color 0.25s,
    transform 0.25s,
    box-shadow 0.25s;
}

.service:hover {
  transform: translateY(-3px);
  border-color: #dac8ac;
  box-shadow: 0 12px 30px #14234209;
}

.service .service-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.service .service-icon {
  font-size: 21px;
  color: #85622e;
}

.service h3 {
  font-size: 17px;
  letter-spacing: -0.018em;
  margin: 0 0 10px;
  line-height: 1.35;
}

.service p {
  color: var(--muted);
  margin: 0;
  font-size: 13px;
}

.need-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.need {
  background: white;
}

.need-icon {
  font-size: 31px;
  color: #85622e;
  line-height: 1;
}

.need h3 {
  margin: 0;
}

.method-panel {
  background: var(--navy);
  color: white;
  display: grid;
  overflow: hidden;
  border-radius: 15px;
}

.method-copy {
  align-self: center;
}

.method-panel h2 {
  font-size: 28px;
  line-height: 1.27;
  letter-spacing: -0.025em;
  margin: 0 0 23px;
}

.method-panel .sub {
  font-size: 17px;
  font-weight: 600;
  color: #e7e9ed;
  margin-bottom: 17px;
}

.method-panel p {
  color: #c8d0dc;
  line-height: 1.78;
  font-size: 14px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 17px;
}

.project-tile {
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  min-height: 230px;
  background: #e9ebe9;
  display: block;
}

.project-tile img {
  width: 100%;
  height: 238px;
  object-fit: cover;
  transition: transform 0.6s;
}

.project-tile:hover img {
  transform: scale(1.06);
}

.project-info {
  position: absolute;
  inset: auto 0 0;
  color: white;
  background: linear-gradient(transparent, #0f2346e8);
  padding: 60px 16px 16px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 7px;
}

.project-info strong {
  font-size: 13px;
  line-height: 1.3;
}

.project-info span {
  font-size: 20px;
}

.center-action {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

.sectors-grid {
  display: grid;
  gap: 16px;
}

.sector {
  border: 1px solid var(--line);
  border-radius: 10px;
  text-align: center;
  padding: 24px 15px;
  background: white;
}

.sector .symbol {
  display: block;
  font-size: 27px;
  margin-bottom: 10px;
  color: #85622e;
}

.sector strong {
  font-size: 13px;
}

.reviews {
  margin-inline: auto;
  position: relative;
}

.review-card {
  border: 1px solid var(--line);
  box-shadow: 0 9px 30px #17244309;
  text-align: center;
  background: #fff;
}

.stars {
  color: #85622e;
  letter-spacing: 0.25em;
  font-size: 15px;
  margin-bottom: 14px;
}

.quote {
  font-size: 16px;
  line-height: 1.7;
  margin: 0 0 13px;
  color: #34425b;
}

.review-meta {
  font-size: 12px;
  color: var(--muted);
}

.review-more {
  color: #85622e;
  border: 0;
  background: none;
  margin-top: 12px;
  padding: 5px;
  font-size: 12px;
  font-weight: 700;
}

.rev-arr {
  color: var(--navy);
}

.faqs {
  width: min(780px, 100%);
  margin: auto;
}

.faqs details {
  border-bottom: 1px solid var(--line);
}

.faqs details:first-child {
  border-top: 1px solid var(--line);
}

.faqs summary {
  list-style: none;
  cursor: pointer;
  padding: 21px 6px;
  font-weight: 650;
  font-size: 15px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.faqs summary::-webkit-details-marker {
  display: none;
}

.faqs summary:after {
  content: "+";
  font-size: 23px;
  font-weight: 400;
  color: #85622e;
  line-height: 0.8;
}

.faqs details[open] summary:after {
  content: "−";
}

.faqs details p {
  color: var(--muted);
  margin: 0;
  padding: 0 6px 24px;
}

.cta-panel {
  background: #f7f5f1;
  border: 1px solid #eee8df;
  border-radius: 14px;
  padding: 46px 54px;
  text-align: center;
}

.cta-panel h2 {
  font-size: 27px;
  margin: 0 0 10px;
  letter-spacing: -0.025em;
}

.cta-panel p {
  color: var(--muted);
  margin: 0 auto 21px;
  max-width: 600px;
}

.cta-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin-top: 20px;
  color: #657287;
  font-size: 12px;
  flex-wrap: wrap;
}

.footer {
  background: #f8f8f7;
  border-top: 1px solid var(--line);
  margin-top: 0;
  padding: 50px 0;
}

.footer .shell {
  display: grid;
  grid-template-columns: 1.3fr 0.65fr 1.05fr;
  gap: 55px;
}

.footer-brand img {
  display: block;
  width: 170px;
  max-width: 100%;
  height: auto;
}

.footer-brand p,
.footer-info p {
  font-size: 12px;
  color: #697486;
  line-height: 1.7;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav a,
.footer-info a {
  font-size: 13px;
  color: #42506a;
}

.footer-heading {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.13em;
  color: var(--navy);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.footer-info p {
  margin: 0 0 13px;
}

.footer-legal {
  margin-top: 26px;
  border-top: 1px solid #e5e5e5;
  padding-top: 18px;
  color: #8891a0;
  font-size: 11px;
}

.portfolio-intro {
  text-align: center;
  padding-top: 99px;
  padding-bottom: 64px;
}

.portfolio-intro h1,
.page-simple h1 {
  font-size: 42px;
  line-height: 1.12;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 17px;
}

.portfolio-intro p {
  color: var(--muted);
  max-width: 960px;
  margin: 0 auto 30px;
}

.case {
  display: grid;
  grid-template-columns: 1fr 0.88fr;
  align-items: center;
  gap: 55px;
  padding: 65px 0;
  border-top: 1px solid var(--line);
}

.case:last-of-type {
  border-bottom: 1px solid var(--line);
}

.case-images {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  grid-template-rows: 124px 124px;
  gap: 10px;
}

.case-images img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  border-radius: 9px;
}

.case-images .main {
  grid-row: span 2;
}

.case-images .secondary {
  border: 1px solid #e4e7ec;
}

.case h2 {
  font-size: 29px;
  letter-spacing: -0.035em;
  margin: 0 0 6px;
}

.case p {
  color: #566178;
  font-size: 14px;
}

.page-simple {
  text-align: center;
  padding-top: 100px;
  padding-bottom: 40px;
}

.page-simple p {
  max-width: 570px;
  margin: 0 auto;
  color: var(--muted);
}

.timeline {
  position: relative;
  width: min(840px, 100%);
  margin: 35px auto 0;
}

.timeline:before {
  content: "";
  height: 100%;
  width: 2px;
  position: absolute;
  left: 50%;
  top: 0;
  background: #d8c6a8;
  transform: translateX(-50%);
}

.timeline-entry {
  width: 50%;
  position: relative;
  padding: 14px 42px 30px 0;
  text-align: right;
}

.timeline-entry:after {
  content: "";
  box-sizing: border-box;
  position: absolute;
  right: -9px;
  top: 30px;
  width: 18px;
  height: 18px;
  border: 3px solid white;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 1px #d8c6a8;
}

.timeline-entry:nth-child(even) {
  margin-left: 50%;
  padding: 14px 0 30px 42px;
  text-align: left;
}

.timeline-entry:nth-child(even):after {
  left: -9px;
}

.timeline-entry .when {
  font-size: 12px;
  color: #85622e;
  font-weight: 750;
  letter-spacing: 0.05em;
}

.timeline-entry h3 {
  font-size: 19px;
  margin: 2px 0 4px;
}

.timeline-entry .place {
  font-size: 13px;
  color: #566377;
  margin: 0 0 9px;
}

.timeline-entry p {
  font-size: 13px;
  color: #697489;
  margin: 0;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 17px;
}

.step {
  padding: 27px 19px;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.step strong {
  display: block;
  color: #85622e;
  font-size: 13px;
  margin-bottom: 18px;
}

.step h3 {
  font-size: 15px;
  margin: 0 0 8px;
}

.step p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: start;
  padding-top: 65px;
  padding-bottom: 100px;
}

.contact-card {
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 40px 42px;
  background: #fff;
}

.contact-card h2 {
  font-size: 23px;
  margin: 0 0 25px;
  letter-spacing: -0.025em;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 17px;
}

.field label {
  font-size: 12px;
  font-weight: 700;
}

.field label small {
  font-weight: 400;
  color: var(--muted);
}

.field input,
.field textarea {
  padding: 13px 15px;
  width: 100%;
  border: 1px solid #d9dfe6;
  border-radius: 7px;
  outline: none;
  color: var(--navy);
  background: #fff;
}

.field textarea {
  height: 165px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px #b08d571d;
}

.fineprint {
  font-size: 11px;
  color: #7b8593;
}

.contact-aside .aside-top {
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 37px 36px;
  margin-bottom: 20px;
}

.contact-aside h2 {
  margin: 0 0 25px;
  font-size: 23px;
}

.contact-aside p {
  font-size: 14px;
  color: #526177;
  display: flex;
  gap: 11px;
  align-items: flex-start;
  margin: 0 0 23px;
}

.contact-aside p:last-child {
  margin: 0;
}

.aside-photo {
  width: 100%;
  border-radius: 12px;
}

.overlay {
  display: flex;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 220ms ease,
    visibility 0s linear 220ms;
  position: fixed;
  inset: 0;
  background: #07172bc2;
  z-index: 80;
  align-items: center;
  justify-content: center;
  padding: 25px;
}

.overlay.open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transition-delay: 0s;
}

.modal {
  transform: translateY(18px) scale(0.98);
  transition: transform 220ms ease;
  width: min(520px, 100%);
  background: white;
  border-radius: 14px;
  padding: 35px;
  max-height: 90vh;
  overflow: auto;
  position: relative;
}

.modal h2 {
  margin: 0 0 25px;
  font-size: 22px;
}

.modal-close {
  position: absolute;
  right: 18px;
  top: 13px;
  background: none;
  border: 0;
  font-size: 27px;
  color: #58657a;
}

@media (max-width: 900px) {
  .shell {
    width: min(100% - 40px, 720px);
  }

  .header .shell {
    height: 70px;
  }

  .nav {
    gap: 16px;
  }

  .nav a:not(.btn) {
    display: none;
  }

  .burger {
    display: block;
  }

  .nav.open {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 18px 22px #101c3414;
    padding: 22px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .nav.open a:not(.btn) {
    display: block;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 34px;
    padding-top: 48px;
  }

  .hero h1 {
    font-size: 43px;
  }

  .hero-slides {
    height: 390px;
  }

  .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .case {
    grid-template-columns: 1fr;
    gap: 27px;
  }

  .case-images {
    grid-template-rows: 170px 170px;
  }

  .footer .shell {
    gap: 20px;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .shell {
    width: calc(100% - 34px);
  }

  .brand img {
    width: 137px;
  }

  .nav .btn {
    padding: 9px 14px;
  }

  .hero {
    padding: 45px 0 54px;
  }

  .hero h1 {
    font-size: 34px;
  }

  .hero .lead {
    font-size: 14px;
  }

  .hero-slides {
    height: 270px;
  }

  .section {
    padding: 68px 0;
  }

  .section-tight {
    padding: 52px 0;
  }

  .section-heading {
    margin-bottom: 30px;
  }

  .section-heading h2 {
    font-size: 23px;
    letter-spacing: 0.035em;
  }

  .ribbon-item {
    justify-content: flex-start;
  }

  .services {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .service {
    min-height: auto;
    padding: 23px;
  }

  .need-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .need-icon {
    font-size: 25px;
  }

  .method-panel h2 {
    font-size: 25px;
  }

  .project-grid {
    display: flex;
    overflow: auto;
    scroll-snap-type: x mandatory;
    gap: 13px;
    padding-bottom: 13px;
  }

  .project-tile {
    min-width: 78%;
    scroll-snap-align: start;
  }

  .faqs summary {
    font-size: 13px;
  }

  .cta-panel {
    padding: 35px 20px;
  }

  .cta-panel h2 {
    font-size: 24px;
  }

  .footer .shell {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-info {
    grid-column: 1 / -1;
  }

  .portfolio-intro {
    padding: 68px 0 48px;
  }

  .portfolio-intro h1,
  .page-simple h1 {
    font-size: 30px;
    letter-spacing: 0.045em;
  }

  .case {
    padding: 43px 0;
  }

  .case-images {
    grid-template-rows: 130px 130px;
    gap: 7px;
  }

  .case h2 {
    font-size: 24px;
  }

  .page-simple {
    padding: 70px 0 35px;
  }

  .timeline:before {
    left: 13px;
  }

  .timeline-entry,
  .timeline-entry:nth-child(even) {
    width: 100%;
    margin-left: 0;
    padding: 12px 0 30px 43px;
    text-align: left;
  }

  .timeline-entry:after,
  .timeline-entry:nth-child(even):after {
    left: 4px;
    right: auto;
  }

  .steps {
    grid-template-columns: 1fr 1fr;
    gap: 11px;
  }

  .step {
    padding: 21px 14px;
  }

  .contact-layout {
    padding: 38px 0 75px;
  }

  .contact-card,
  .contact-aside .aside-top {
    padding: 26px;
  }

  .contact-aside {
    display: flex;
  }
}

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

.home .ribbon .shell {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.home .needs-section {
  padding-block: 64px;
}

.home .needs-section .section-heading {
  margin-bottom: 30px;
}

.home .need-grid {
  gap: 24px;
}

.home .need {
  min-height: 170px;
  padding: 22px 24px;
  border: 1px solid #e7e0d6;
  border-radius: 16px;
  box-shadow: 0 8px 24px #0f234605;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}

.home .need-icon {
  width: 40px;
  height: 40px;
  margin: 0;
  color: #98733d;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.home .need-icon svg {
  width: 36px;
  height: 36px;
}

.home .need h3 {
  line-height: 1.35;
}

.home .method-panel {
  grid-template-columns: 1fr;
}

.home .method-copy {
  width: 100%;
  max-width: 920px;
  margin-inline: auto;
}

.home .method-panel h2 {
  max-width: 700px;
}

.home .method-panel p {
  font-size: 16px;
}

.home .sectors-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.home .sector {
  padding: 26px 14px;
}

.home .sector .symbol svg {
  width: 30px;
  height: 30px;
  display: block;
  margin: auto;
}

.home .sector strong {
  display: block;
  font-size: 14px;
  line-height: 1.5;
}

@media (max-width: 1000px) {
  .home .ribbon .shell {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home .sectors-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .home .need {
    padding: 20px;
  }

  .home .need h3 {
    font-size: 20px;
  }
}

@media (max-width: 600px) {
  .home .ribbon .shell {
    grid-template-columns: 1fr;
  }

  .home .need-grid {
    gap: 14px;
  }

  .home .needs-section {
    padding-block: 44px;
  }

  .home .need {
    min-height: 132px;
    align-items: center;
    justify-content: flex-start;
  }

  .home .need-icon {
    width: 36px;
    height: 36px;
    border-radius: 14px;
  }

  .home .need-icon svg {
    width: 32px;
    height: 32px;
  }

  .home .method-panel p {
    font-size: 15px;
  }

  .home .sectors-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home .sector:last-child {
    grid-column: 1 / -1;
  }
}

:focus-visible {
  outline: 3px solid #b08d57;
  outline-offset: 4px;
}

#formulaire-contact {
  scroll-margin-top: 110px;
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.fineprint a {
  text-decoration: underline;
}

.home .need {
  align-items: center;
  text-align: center;
}

.home .need-icon {
  background: none;
  border-radius: 0;
}

.home .need h3 {
  font-weight: 500;
  font-size: 21px;
  letter-spacing: 0;
  max-width: 260px;
}

.home .collaboration {
  background: var(--navy);
  padding: 48px 0;
}

.home .collaboration .method-panel {
  border-radius: 0;
}

.home .collaboration .method-copy {
  padding: 16px 40px;
}

.expertise-page .timeline {
  width: 100%;
  max-width: 960px;
}

.expertise-page .timeline-entry {
  text-align: left;
}

.timeline-entry ul {
  margin: 16px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.timeline-entry li + li {
  margin-top: 10px;
}

.education {
  margin-top: 64px;
}

.education-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.education-card {
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  border-radius: 10px;
  padding: 28px;
  background: var(--cream);
}

.education-card .when {
  color: #8c6b38;
  font-size: 13px;
  font-weight: 600;
}

.education-card h3 {
  font-size: 18px;
  line-height: 1.4;
  margin: 12px 0;
}

.education-card p {
  font-size: 14px;
  color: var(--muted);
}

.education-card .place {
  font-size: 12px;
}

.expertise-page .step p {
  font-size: 14px;
}

@media (max-width: 900px) {
  .header .shell {
    gap: 12px;
  }

  .header .brand {
    margin-right: auto;
  }

  .header .nav .btn {
    font-size: 12px;
    padding: 10px 12px;
  }

  .education-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .header .shell {
    height: auto;
    min-height: 100px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    padding-block: 10px;
  }

  .header .brand {
    grid-column: 1;
    grid-row: 1;
  }

  .header .burger {
    grid-column: 2;
    grid-row: 1;
  }

  .header .nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: center;
  }

  .header .nav .btn {
    width: 100%;
  }

  .header .nav.open {
    top: 100%;
    grid-row: auto;
  }

  .home .need {
    flex-direction: column;
    gap: 12px;
    padding: 20px;
  }

  .home .need h3 {
    font-size: 20px;
    font-weight: 500;
  }

  .home .collaboration {
    padding: 32px 0;
  }

  .home .collaboration .method-copy {
    padding: 0 9px;
  }

  .expertise-page .steps {
    grid-template-columns: 1fr;
  }
}

.home .ribbon {
  background: #f3f3f2;
  border: 0;
  padding: 32px 0;
}

.home .ribbon .shell {
  gap: 0;
}

.home .ribbon-item {
  position: relative;
  display: block;
  text-align: center;
  padding: 16px 22px !important;
  border: 0 !important;
}

.home .ribbon-item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 10%;
  height: 80%;
  width: 1px;
  background: #d9cdbb;
}

.home .ribbon strong {
  font-size: 16px;
  line-height: 1.45;
  font-weight: 650;
}

.home .ribbon small {
  font-size: 13px;
  line-height: 1.6;
  margin-top: 7px;
}

.home .reviews {
  width: 100%;
  padding: 0;
}

.home .review-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding: 10px 0 22px;
}

.home .review-card {
  min-width: 0;
  min-height: 290px;
  padding: 28px 24px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.home .review-active {
  border-color: #ded1bd;
  box-shadow: 0 12px 30px #1724430d;
}

.home .review-preview {
  transform: scale(0.93);
  filter: blur(2px);
  opacity: 0.6;
  user-select: none;
  pointer-events: none;
}

.home .review-preview .quote {
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home .review-preview .review-more {
  display: block;
}

.home .review-active .quote {
  font-size: 16px;
}

.home .review-more {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.home .review-navigation {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 4px;
}

.home .rev-arr {
  position: static;
  transform: none;
  margin: 0;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  font-size: 34px;
  line-height: 1;
  border-radius: 50%;
}

.home .rev-arr:hover {
  background: #eae7e1;
}

.home .review-dots {
  display: flex;
  align-items: center;
  gap: 2px;
}

.home .review-dots button {
  width: 32px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  display: grid;
  place-items: center;
}

.home .review-dots button::after {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #d6d7d8;
}

.home .review-dots button[aria-current="true"]::after {
  background: var(--gold);
  width: 11px;
  height: 11px;
}

.home .reviews button:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 4px;
}

@media (max-width: 1000px) {
  .home .ribbon-item:nth-child(2)::after {
    display: none;
  }

  .home .ribbon-item:nth-child(-n + 2) {
    margin-bottom: 14px;
  }

  .home .review-stage {
    gap: 12px;
    grid-template-columns: minmax(0, 0.65fr) minmax(0, 1.6fr) minmax(0, 0.65fr);
  }

  .home .review-preview {
    padding: 22px 12px;
  }
}

@media (max-width: 600px) {
  .home .ribbon {
    padding: 18px 0;
  }

  .home .ribbon-item {
    padding: 18px 10px !important;
  }

  .home .ribbon-item:nth-child(-n + 2) {
    margin-bottom: 0;
  }

  .home .ribbon-item:not(:last-child)::after {
    display: block;
    top: auto;
    bottom: 0;
    left: 25%;
    width: 50%;
    height: 1px;
  }

  .home .review-stage {
    grid-template-columns: 18px minmax(0, 1fr) 18px;
    gap: 8px;
    overflow: hidden;
    padding-block: 12px 22px;
  }

  .home .review-preview {
    width: 240px;
    min-height: 250px;
    transform: scale(0.9);
  }

  .home .review-previous {
    justify-self: end;
  }

  .home .review-next {
    justify-self: start;
  }

  .home .review-active {
    padding: 26px 18px;
  }

  .home .review-active .quote {
    font-size: 15px;
  }
}

.footer {
  isolation: isolate;
}

.footer-brand img {
  mix-blend-mode: multiply;
}

.linkedin-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 600;
}

.linkedin-icon {
  display: block;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
}

.linkedin-link:hover {
  color: #85622e;
}

.linkedin-link:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
  border-radius: 3px;
}

.cta-panel .linkedin-link {
  color: inherit;
}

.cta-panel .linkedin-link:hover {
  color: #85622e;
}

.contact-aside .contact-icon {
  display: block;
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  color: #85622e;
}

.contact-aside .aside-top p {
  align-items: center;
  gap: 14px;
}

.contact-aside .aside-photo {
  display: block;
  object-fit: cover;
  height: auto;
  aspect-ratio: 3/2;
}

@media (max-width: 600px) {
  .contact-aside {
    flex-direction: column;
  }

  .contact-aside .aside-photo {
    margin-bottom: 0;
  }
}

/* Animations progressives : le contenu reste visible sans JavaScript. */
.overlay.open .modal {
  transform: translateY(0) scale(1);
}
.scroll-reveal {
  transition:
    opacity 600ms ease,
    translate 600ms ease;
}
.scroll-reveal.is-pending {
  opacity: 0;
  translate: 0 24px;
}
.scroll-reveal.is-revealed {
  opacity: 1;
  translate: 0 0;
}
.expertise-page .step {
  background: #fff;
}
.home .need,
.home .sector,
.expertise-page .step {
  transition:
    border-color 250ms ease,
    transform 250ms ease,
    box-shadow 250ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .home .need:hover,
  .home .sector:hover,
  .expertise-page .step:hover {
    transform: translateY(-3px);
    border-color: #dac8ac;
    box-shadow: 0 12px 30px #1423420d;
  }
}
.home .need h3 {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.4;
}
.info-icon {
  width: 23px;
  height: 23px;
  flex: 0 0 23px;
  color: var(--gold);
}
.hero-notes span,
.cta-footer > span {
  display: flex;
  align-items: center;
  gap: 9px;
}
.floating-contact {
  display: none;
}
@media (max-width: 900px) {
  .header .shell {
    display: flex;
    height: 70px;
    min-height: 70px;
    padding-block: 0;
    gap: 12px;
  }
  .header .brand {
    margin-right: auto;
  }
  .header .burger {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    padding: 8px;
  }
  .header .nav {
    display: none;
  }
  .header .nav.open {
    display: flex;
    top: 100%;
  }
  .header .nav .btn {
    display: none;
  }
  .floating-contact {
    display: inline-flex;
    position: fixed;
    z-index: 40;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    left: 50%;
    transform: translateX(-50%);
    max-width: calc(100% - 32px);
    min-height: 48px;
    padding: 13px 24px;
    border-radius: 999px;
    box-shadow: 0 6px 24px #0f234633;
    transition:
      opacity 220ms ease,
      translate 220ms ease,
      visibility 220ms;
  }
  .floating-contact:hover {
    transform: translateX(-50%);
  }
  .floating-contact.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    translate: 0 12px;
  }
  body:has(> .floating-contact) {
    padding-bottom: calc(82px + env(safe-area-inset-bottom, 0px));
  }
  .hero-notes {
    flex-direction: column;
    align-items: flex-start;
    row-gap: 7px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-reveal,
  .scroll-reveal.is-pending,
  .scroll-reveal.is-revealed {
    opacity: 1;
    translate: none;
    transition: none;
  }
  .overlay,
  .modal,
  .floating-contact {
    transition: none;
  }
  .modal {
    transform: none;
  }
  .home .need:hover,
  .home .sector:hover,
  .expertise-page .step:hover {
    transform: none;
  }
}

/* Les plans du diaporama restent intégralement visibles. */
.hero-slide.hero-slide-plan {
  object-fit: contain;
  background: #fff;
}
@media (max-width: 900px) {
  .home .cta-footer,
  .expertise-page .cta-footer {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  .home .cta-footer > span,
  .expertise-page .cta-footer > span {
    max-width: 100%;
    justify-content: center;
    text-align: left;
    min-width: 0;
  }
  .home .cta-footer > .linkedin-link,
  .expertise-page .cta-footer > .linkedin-link {
    align-self: center;
  }
}

/* Réalisations : galerie et description synthétique. */
.case-image-link {
  display: block;
  min-width: 0;
  min-height: 0;
  border-radius: 9px;
  overflow: hidden;
  cursor: zoom-in;
}
.case-image-link:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}
.case-images .case-plan {
  object-fit: contain;
  background: #fff;
}
.case-description p {
  font-size: 15px;
  line-height: 1.8;
  margin: 16px 0 0;
  max-width: 48ch;
}

/* Le dialogue natif garde le focus et rend le fond inactif. */
.image-viewer {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 64px 24px 24px;
  border: 0;
  background: transparent;
  overflow: auto;
}
.image-viewer[open] {
  display: flex;
  align-items: center;
  justify-content: center;
}
.image-viewer::backdrop {
  background: rgba(10, 21, 38, 0.9);
}
.image-viewer-image {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.image-viewer-close {
  position: fixed;
  top: max(12px, env(safe-area-inset-top));
  right: max(12px, env(safe-area-inset-right));
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  background: #fff;
  color: var(--navy);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}
@media (max-width: 600px) {
  .image-viewer {
    padding: 68px 10px 20px;
  }
}

/* Quatre visuels : une mosaïque de deux colonnes dans la galerie. */
.case-images-four {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Réalisations : navigation dans la galerie du projet ouvert. */
.image-viewer {
  padding: 64px 72px;
}
.image-viewer-prev,
.image-viewer-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 1px solid #fff;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-size: 32px;
  cursor: pointer;
}
.image-viewer-prev {
  left: 12px;
}
.image-viewer-next {
  right: 12px;
}
.image-viewer-count {
  position: fixed;
  bottom: 12px;
  left: 0;
  width: 100%;
  text-align: center;
  color: #fff;
  pointer-events: none;
}

/* Trois cartes nettes sur ordinateur, une sur mobile, sans barre de défilement. */
.projects-carousel {
  max-width: 1040px;
  margin-inline: auto;
}
.projects-carousel.is-ready .projects-viewport {
  overflow: hidden;
}
.projects-carousel.is-ready .project-grid {
  display: flex;
  gap: 20px;
  overflow: visible;
  padding: 0;
  transition: transform 0.4s ease;
  scroll-snap-type: none;
}
.projects-carousel.is-ready .project-tile {
  flex: 0 0 calc((100% - 40px) / 3);
  min-width: 0;
  height: 260px;
}
.projects-carousel .project-info strong {
  font-size: 16px;
  line-height: 1.4;
}
.projects-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 24px;
}
.projects-controls[hidden] {
  display: none;
}
@media (max-width: 900px) {
  .projects-carousel.is-ready .project-tile {
    flex-basis: calc((100% - 20px) / 2);
  }
}
@media (max-width: 600px) {
  .projects-carousel.is-ready .project-tile {
    flex-basis: 100%;
    height: 260px;
  }
  .image-viewer {
    padding: 68px 10px 84px;
  }
  .image-viewer-prev,
  .image-viewer-next {
    top: auto;
    bottom: 18px;
    transform: none;
  }
  .image-viewer-prev {
    left: 20px;
  }
  .image-viewer-next {
    right: 20px;
  }
  .image-viewer-count {
    bottom: 22px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .projects-carousel.is-ready .project-grid {
    transition: none;
  }
}
.projects-carousel.is-ready .project-tile img {
  height: 100%;
}

/* Les SVG ne dépendent pas de la ligne de base des caractères. */
.image-viewer-prev,
.image-viewer-next,
.home .rev-arr {
  display: grid;
  place-items: center;
  padding: 0;
}
.image-viewer-prev svg,
.image-viewer-next svg,
.home .rev-arr svg {
  display: block;
  width: 24px;
  height: 24px;
}
.home .projects-controls {
  margin-top: 24px;
}

/* Six photos : trois rangées régulières, également sur mobile. */
.case-images-six {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(3, 130px);
}

/* Portrait et présentation de Frédéric Cauret. */
.expertise-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 340px);
  align-items: center;
  gap: clamp(32px, 5vw, 70px);
  text-align: left;
  padding-top: 76px;
  padding-bottom: 48px;
}
.expertise-intro h1 {
  letter-spacing: 0.035em;
}
.expertise-intro p {
  max-width: none;
  margin: 0 0 20px;
}
.expertise-intro p:last-child {
  margin-bottom: 0;
}
.expertise-portrait {
  margin: 0;
  min-width: 0;
}
.expertise-portrait img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 14px 40px rgba(18, 38, 70, 0.1);
}
@media (max-width: 700px) {
  .expertise-intro {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding-top: 42px;
    padding-bottom: 28px;
  }
  .expertise-intro h1,
  .expertise-intro .eyebrow {
    text-align: center;
  }
  .expertise-intro .eyebrow {
    display: block;
  }
  .expertise-portrait {
    width: min(280px, 100%);
    margin-inline: auto;
  }
}

/* Publication : liens, formulaires, pages d’information et accès clavier. */
.skip-link {
  position: fixed;
  top: 8px;
  left: 12px;
  z-index: 1000;
  padding: 10px 18px;
  background: #fff;
  color: var(--navy);
  transform: translateY(-160%);
}
.skip-link:focus {
  transform: none;
}
:focus-visible {
  outline: 3px solid #80602e;
  outline-offset: 4px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.honeypot {
  display: none !important;
}
.btn:not(.outline) {
  color: #fff;
}
.btn:not(.outline):hover {
  background: #c2a16b;
}
.reviews-source {
  text-align: center;
  margin: 22px 0 0;
  font-size: 14px;
}
.reviews-source a,
.legal-content a:not(.btn),
.fineprint a,
.footer-legal a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.reviews-source a {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 8px 12px;
}
.footer-legal {
  display: flex;
  gap: 12px 22px;
  flex-wrap: wrap;
}
.legal-content {
  padding-block: 54px 70px;
  max-width: 900px;
}
.legal-content h1 {
  line-height: 1.2;
  font-size: clamp(28px, 5vw, 42px);
}
.legal-content h2 {
  font-size: 22px;
  margin-top: 32px;
}
.legal-pending {
  padding: 16px 20px;
  background: var(--cream);
  border-left: 3px solid var(--gold);
}
/* Retour du formulaire : encart lisible, icône et couleur selon le résultat. */
.form-status {
  position: relative;
  margin: 16px 0 0;
  padding: 15px 16px 15px 48px;
  border: 1px solid #d8e0e9;
  border-left-width: 3px;
  border-radius: 10px;
  background: #f4f7fb;
  color: #34475e;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.form-status:empty {
  display: none;
}
.form-status::before {
  content: "";
  position: absolute;
  top: 16px;
  left: 15px;
  width: 21px;
  height: 21px;
  background: currentColor;
  -webkit-mask: var(--status-icon) center / contain no-repeat;
  mask: var(--status-icon) center / contain no-repeat;
}
.form-status[data-state="pending"] {
  --status-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E");
}
.form-status[data-state="success"] {
  background: #eef7f1;
  border-color: #a8cdb4;
  border-left-color: #368354;
  color: #235a38;
  --status-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='m7.5 12 3 3 6-6'/%3E%3C/svg%3E");
}
.form-status[data-state="error"] {
  background: #fff3f1;
  border-color: #e7bab3;
  border-left-color: #b64a3c;
  color: #8d3026;
  --status-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v6m0 4h.01'/%3E%3C/svg%3E");
}
.contact-form button:disabled {
  opacity: 0.7;
  cursor: wait;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* Commandes du diaporama : mêmes composants que les cas concrets. */
.home .hero-controls {
  margin-top: 24px;
  gap: 20px;
}
.hero-slides {
  touch-action: pan-y;
}
@media (max-width: 600px) {
  .home .hero-controls {
    gap: 4px;
  }
  .home .hero-dots button {
    width: 24px;
  }
}
