/* ==========================================================================
   Pearlweb — Outils web pour la médecine et la recherche clinique
   Design tokens
   ========================================================================== */

:root{
  /* Couleurs — dominante bleue */
  --ink:            #0A1F3D;   /* bleu nuit profond */
  --blue-primary:   #123B6B;   /* bleu médical */
  --blue-mid:       #1E5A99;   /* bleu intermédiaire pour accents/liens */
  --blue-bright:    #3E8FD0;   /* bleu vif, accent principal */
  --cyan:           #4FA8C9;   /* bleu-cyan discret, second accent */
  --paper:          #F1F5FA;   /* blanc bleuté, froid */
  --paper-dim:      #E4EBF3;
  --grey-light:     #DCE6F0;
  --grey-line:      #C9D6E3;
  --text-body:      #1E2E45;
  --text-muted:     #52698A;
  --white:          #FFFFFF;

  /* Typo */
  --font-display: "Newsreader", "Iowan Old Style", Georgia, serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono:    "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;

  /* Rythme */
  --gutter: clamp(1.5rem, 5vw, 4rem);
  --radius-s: 4px;
  --radius-m: 8px;
  --nav-h: 76px;

  --ease: cubic-bezier(.22,.61,.36,1);
}

*, *::before, *::after{ box-sizing: border-box; }

html{
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *{ animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body{
  margin: 0;
  background: var(--paper);
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img{ max-width: 100%; display: block; }
a{ color: inherit; }
button{ font: inherit; }

h1,h2,h3,h4{
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0 0 0.5em;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.container{
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible{
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.skip-link{
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--white);
  padding: 0.75em 1.25em;
  z-index: 200;
}
.skip-link:focus{ left: var(--gutter); top: var(--gutter); }

.eyebrow{
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-mid);
  margin-bottom: 1.1em;
}
.eyebrow::before{
  content: "";
  width: 18px;
  height: 1px;
  background: var(--cyan);
  display: inline-block;
}

/* ==========================================================================
   Navigation — barre horizontale conventionnelle
   ========================================================================== */

.navbar{
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: var(--gutter);
  background: var(--ink);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.navbar__mark{
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-decoration: none;
  color: var(--white);
  font-size: 0.88rem;
  flex-shrink: 0;
}

.navbar__links{
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.navbar__links a{
  position: relative;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(255,255,255,0.7);
  padding-bottom: 6px;
  transition: color 0.2s var(--ease);
}
.navbar__links a::after{
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--blue-bright);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}
.navbar__links a:hover{ color: var(--white); }
.navbar__links a.is-active{ color: var(--white); }
.navbar__links a.is-active::after,
.navbar__links a:hover::after{ transform: scaleX(1); }

.navbar__cta{
  flex-shrink: 0;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  color: var(--ink);
  background: var(--white);
  padding: 0.65em 1.3em;
  border-radius: var(--radius-s);
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.navbar__cta:hover{ background: var(--blue-bright); color: var(--white); transform: translateY(-1px); }

.navbar__toggle{
  display: none;
  background: none;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: var(--radius-s);
  width: 40px;
  height: 36px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
}
.navbar__toggle span{
  width: 18px;
  height: 1px;
  background: var(--white);
}

.mobile-menu{
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--ink);
  padding: 6rem var(--gutter) 2rem;
}
.mobile-menu.is-open{ display: block; }
.mobile-menu ul{
  list-style: none;
  padding: 0;
  margin: 0 0 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.mobile-menu a{
  font-family: var(--font-display);
  font-size: 1.6rem;
  text-decoration: none;
  color: var(--white);
}
.mobile-menu .btn{ width: 100%; justify-content: center; }

@media (max-width: 900px){
  .navbar__links{ display: none; }
  .navbar__cta{ display: none; }
  .navbar__toggle{ display: flex; }
}

/* ==========================================================================
   Boutons
   ========================================================================== */

.btn{
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  padding: 0.85em 1.5em;
  border-radius: var(--radius-s);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.btn-primary{
  background: var(--ink);
  color: var(--white);
}
.btn-primary:hover{ background: var(--blue-primary); transform: translateY(-1px); }
.btn-ghost{
  background: transparent;
  color: var(--ink);
  border-color: var(--grey-line);
}
.btn-ghost:hover{ border-color: var(--ink); }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero{
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 4rem) var(--gutter) 4rem;
  position: relative;
  overflow: hidden;
}
@media (max-width: 900px){ .hero{ min-height: auto; padding-top: calc(var(--nav-h) + 2.5rem); } }

.hero::before{
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grey-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grey-line) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.35;
  mask-image: radial-gradient(ellipse 80% 60% at 30% 20%, black, transparent 70%);
  pointer-events: none;
}

.hero__grid{
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: start;
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
}
.hero__intro{ width: 100%; }
.hero__message{
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(310px, .75fr);
  gap: clamp(2.5rem, 7vw, 6.5rem);
  align-items: end;
}
.hero__support{ padding-bottom: .35rem; }
@media (max-width: 980px){
  .hero__grid{ grid-template-columns: 1fr; }
  .hero__message{ grid-template-columns: 1fr; gap: 1.5rem; }
  .hero__support{ max-width: 620px; padding-bottom: 0; }
}

.hero__title{
  font-size: clamp(2.1rem, 4.6vw, 3.6rem);
  line-height: 1.08;
  max-width: 19ch;
  margin-bottom: 0;
}
.hero__title em{
  font-style: italic;
  color: var(--blue-mid);
}
.hero__subtitle{
  font-size: 1.08rem;
  color: var(--text-muted);
  max-width: 52ch;
  margin: 0 0 1.65rem;
}
.hero__actions{
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

/* Fenêtre de démonstration web */
.browser-demo{ width:100%; border:1px solid #cbd3db; border-radius:14px; background:#fff; box-shadow:0 34px 70px -34px rgba(11,32,54,.38); overflow:hidden; }
.browser-demo__chrome{ height:44px; display:grid; grid-template-columns:90px minmax(160px,520px) 90px; align-items:center; justify-content:space-between; gap:1rem; padding:0 1rem; background:#eef1f4; border-bottom:1px solid #d7dde3; }
.browser-demo__dots{ display:flex; gap:7px; }
.browser-demo__dots i{ width:10px; height:10px; border-radius:50%; background:#ff605c; }
.browser-demo__dots i:nth-child(2){ background:#ffbd44; }
.browser-demo__dots i:nth-child(3){ background:#00ca4e; }
.browser-demo__address{ padding:.42rem 1rem; border:1px solid #d8dee4; border-radius:6px; background:#fff; color:#7c8995; font:.62rem var(--font-mono); text-align:center; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.browser-demo__secure{ color:#8fa0ae; font-size:.55rem; text-align:right; }
.ecrf-app{ height:548px; background:#f3f6f8; overflow:hidden; }
.ecrf-app__topbar{ height:54px; display:grid; grid-template-columns:190px 1fr auto; align-items:center; padding:0 1.2rem; color:#fff; background:#132b42; }
.ecrf-app__topbar strong{ font:700 .78rem var(--font-mono); letter-spacing:.08em; }
.ecrf-app__topbar strong span{ color:var(--cyan); }
.ecrf-app__topbar nav{ display:flex; align-self:stretch; align-items:center; gap:1.8rem; }
.ecrf-app__topbar nav span{ height:100%; display:flex; align-items:center; font-size:.7rem; color:#aebdca; }
.ecrf-app__topbar nav .is-current{ color:#fff; box-shadow:inset 0 -2px var(--cyan); }
.ecrf-app__user{ display:flex; align-items:center; gap:.65rem; font-size:.68rem; }
.ecrf-app__user i{ display:grid; place-items:center; width:29px; height:29px; border-radius:50%; background:#2b5979; font:normal .58rem var(--font-mono); }
.ecrf-app__workspace{ height:calc(100% - 54px); display:grid; grid-template-columns:190px 1fr; }
.ecrf-app__sidebar{ position:relative; padding:1.25rem .8rem; background:#20394f; color:#aebdca; }
.ecrf-app__study{ margin:0 .55rem 1rem; font:.56rem/1.6 var(--font-mono); letter-spacing:.08em; color:#8096a8; }
.ecrf-app__study strong{ color:#fff; font-size:.72rem; }
.ecrf-app__sidebar > span{ display:block; padding:.65rem .7rem; border-radius:4px; font-size:.65rem; }
.ecrf-app__sidebar > span::before{ content:"○"; display:inline-block; width:1.35rem; color:#7690a5; }
.ecrf-app__sidebar > span.is-current{ background:#2b4b65; color:#fff; }
.ecrf-app__sidebar > span.is-current::before{ content:"●"; color:var(--cyan); }
.ecrf-app__sidebar small{ position:absolute; bottom:1rem; left:1.5rem; font:.52rem/1.6 var(--font-mono); color:#71899d; }
.ecrf-app__content{ min-width:0; padding:1.05rem 1.25rem 1.25rem; overflow:hidden; }
.ecrf-app__breadcrumb{ margin-bottom:.6rem; color:#8494a1; font:.53rem var(--font-mono); letter-spacing:.05em; }
.ecrf-app__heading{ display:flex; align-items:center; justify-content:space-between; margin-bottom:.8rem; }
.ecrf-app__heading h3{ margin:0 0 .12rem; font-size:1rem; }
.ecrf-app__heading p{ margin:0; color:var(--text-muted); font-size:.65rem; }
.ecrf-app__heading button{ border:0; border-radius:4px; padding:.55rem .9rem; background:var(--blue-mid); color:#fff; font:.62rem var(--font-body); }

/* Widget "formulaire eCRF" animé — signature element */
.ecrf-card{
  background: var(--white);
  border: 1px solid var(--grey-line);
  border-radius: var(--radius-m);
  box-shadow: 0 12px 28px -24px rgba(11,32,54,0.25);
  overflow: hidden;
}
.ecrf-card__bar{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--grey-line);
  background: var(--paper);
}
.ecrf-card__ref{
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}
.ecrf-card__status{
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  color: var(--cyan);
}
.ecrf-card__status i{
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--cyan);
  display: inline-block;
  animation: pulse 1.8s infinite;
}
@keyframes pulse{
  0%,100%{ opacity: 1; } 50%{ opacity: 0.35; }
}

.ecrf-card__body{
  padding: 0.85rem 1rem 1rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  height: 296px;
}
.ecrf-section{
  min-width: 0;
  padding: 0 .9rem 0 0;
  border-right: 1px solid var(--grey-line);
}
.ecrf-section:first-child{ padding-top: 0; }
.ecrf-section:last-child{
  padding-right: 0;
  border-right: none;
}
.ecrf-section__title{
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-mid);
  margin-bottom: 0.45rem;
}
.ecrf-field{ margin-bottom: 0.48rem; }
.ecrf-field:last-child{ margin-bottom: 0; }
.ecrf-field label{
  display: block;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.28em;
}
.ecrf-field .value{
  position: relative;
  border: 1px solid var(--grey-line);
  border-radius: var(--radius-s);
  padding: 0.42em 0.6em;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink);
  min-height: 1.4em;
  display: flex;
  align-items: center;
  background: var(--paper);
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.ecrf-field.is-active .value,
.ecrf-field.is-active .ecrf-radio,
.ecrf-field.is-active .ecrf-unit{
  border-color: var(--blue-mid);
  box-shadow: 0 0 0 2px rgba(30,90,153,0.12);
}
.ecrf-field.is-filled:not(.is-invalid) .value{
  background: var(--white);
}
.value--date{
  padding-right: 2.3rem;
}
.value--date::after{
  content: "";
  position: absolute;
  right: 0.65rem;
  top: 50%;
  width: 0.9rem;
  height: 0.9rem;
  transform: translateY(-50%);
  border: 1px solid var(--blue-mid);
  border-radius: 2px;
  background:
    linear-gradient(var(--blue-mid), var(--blue-mid)) 20% 30% / 60% 1px no-repeat,
    linear-gradient(var(--blue-mid), var(--blue-mid)) 50% 0 / 1px 100% no-repeat,
    linear-gradient(var(--paper), var(--paper));
  opacity: 0.72;
}
.ecrf-bio-row{
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 0.35rem;
}
.ecrf-unit{
  border: 1px solid var(--grey-line);
  border-radius: var(--radius-s);
  padding: 0.42em 0.5em;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-muted);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}
.ecrf-field__status{
  display: block;
  height: .8rem;
  white-space: nowrap;
  margin-top: 0.22rem;
  font-family: var(--font-mono);
  font-size: 0.56rem;
  color: var(--text-muted);
}
.ecrf-field.is-invalid .value{
  background: #FFF0F0;
  border-color: #B5473F;
  color: #8F2E27;
}
.ecrf-field.is-invalid .ecrf-unit{
  border-color: #B5473F;
  color: #8F2E27;
}
.ecrf-field.is-invalid .ecrf-field__status{
  color: #B5473F;
}
.ecrf-field.is-invalid .ecrf-field__status::after{
  content: " · hors borne";
}
.ecrf-field.is-corrected .value{
  background: #F2FAF6;
  border-color: #8AC7A4;
}
.ecrf-field.is-corrected .ecrf-unit{
  border-color: #8AC7A4;
}
.ecrf-radio-group{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
}
.ecrf-radio{
  border: 1px solid var(--grey-line);
  border-radius: var(--radius-s);
  padding: 0.34rem 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  background: var(--white);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.ecrf-radio i{
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 50%;
  border: 1px solid var(--grey-line);
  box-shadow: inset 0 0 0 3px var(--white);
  background: var(--white);
}
.ecrf-radio.is-checked{
  border-color: var(--blue-mid);
  color: var(--ink);
  background: var(--paper);
}
.ecrf-radio.is-checked i{
  border-color: var(--blue-mid);
  background: var(--blue-mid);
}
.ecrf-field .value .caret{
  display: inline-block;
  width: 1px;
  height: 1em;
  background: var(--blue-mid);
  margin-left: 2px;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink{ 50%{ opacity: 0; } }

.ecrf-card__footer{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.1rem;
  border-top: 1px solid var(--grey-line);
}
.ecrf-progress{
  flex: 1;
  height: 4px;
  background: var(--grey-light);
  border-radius: 2px;
  margin-right: 1rem;
  overflow: hidden;
}
.ecrf-progress__bar{
  height: 100%;
  width: 30%;
  background: linear-gradient(90deg, var(--blue-mid), var(--cyan));
  transition: width 0.6s var(--ease);
}
.ecrf-check{
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--text-muted);
}

@media (max-width: 760px){
  .browser-demo__chrome{ grid-template-columns:65px 1fr 20px; }
  .ecrf-app{ height:570px; }
  .ecrf-app__topbar{ grid-template-columns:1fr auto; }
  .ecrf-app__topbar nav{ display:none; }
  .ecrf-app__workspace{ grid-template-columns:1fr; }
  .ecrf-app__sidebar{ display:none; }
  .ecrf-app__content{ padding:.9rem; }
  .ecrf-card__body{ grid-template-columns:1fr; gap:.7rem; height:365px; min-height:0; overflow:auto; }
  .ecrf-section{ padding:0 0 .7rem; border-right:0; border-bottom:1px solid var(--grey-line); }
  .ecrf-section:last-child{ border-bottom:0; }
}

/* ==========================================================================
   Sections génériques
   ========================================================================== */



section{
  padding: 6.5rem 0;
  border-top: 1px solid var(--grey-line);
}
section:first-of-type{ border-top: none; }

#activite, #confiance, #methode{ background: var(--paper-dim); }

.section-head{
  max-width: 62ch;
  margin-bottom: 3rem;
}
.section-head h2{
  font-size: clamp(1.7rem, 3vw, 2.35rem);
}
.section-head p{
  color: var(--text-muted);
  font-size: 1.02rem;
}

/* ==========================================================================
   Activité
   ========================================================================== */

.about__grid{
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
}
@media (max-width: 860px){ .about__grid{ grid-template-columns: 1fr; } }

.about__text p{ margin: 0 0 1.2em; color: var(--text-body); }
.about__text p:last-child{ margin-bottom: 0; }

.about__facts{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.4rem;
}
.about__facts li{
  border-left: 2px solid var(--grey-line);
  padding-left: 1.1rem;
  transition: border-color 0.2s var(--ease);
}
.about__facts li:hover{ border-color: var(--cyan); }
.about__facts .tag{
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--blue-mid);
  margin-bottom: 0.3em;
}
.about__facts h4{ margin: 0 0 0.25em; font-size: 1.02rem; }
.about__facts p{ margin: 0; color: var(--text-muted); font-size: 0.92rem; }

/* ==========================================================================
   Services
   ========================================================================== */

.services__grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--grey-line);
  border: 1px solid var(--grey-line);
}
@media (max-width: 860px){ .services__grid{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px){ .services__grid{ grid-template-columns: 1fr; } }

.service-card{
  background: var(--paper);
  padding: 2.1rem 1.8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: background 0.25s var(--ease);
}
.service-card:hover{ background: var(--white); }
.service-card__icon{
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  align-self: center;
  flex: 0 0 88px;
  margin: 0 auto 1.55rem;
  border: 1px solid rgba(30,90,153,.2);
  border-radius: 18px;
  background: var(--white);
  color: var(--blue-mid);
  font-size: 2.35rem;
  transition: color .2s var(--ease), background .2s var(--ease), transform .2s var(--ease);
}
.service-card:hover .service-card__icon{ color: var(--white); background: var(--blue-mid); transform: translateY(-2px); }
.service-card .tag{
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  color: var(--cyan);
  display: block;
  text-align: center;
  margin-bottom: 1rem;
}
.service-card h3{
  width: 100%;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
}
.service-card p{
  width: 100%;
  color: var(--text-muted);
  font-size: 0.93rem;
  margin: 0;
}

/* ==========================================================================
   Réalisations
   ========================================================================== */

.projects__grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.4rem;
}

.project-card{
  border: 1px solid var(--grey-line);
  border-radius: var(--radius-m);
  background: var(--white);
  padding: 1.6rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}
.project-card:hover{
  transform: translateY(-3px);
  box-shadow: 0 22px 40px -28px rgba(11,32,54,0.35);
  border-color: var(--blue-mid);
}
.project-browser{
  overflow: hidden;
  border: 1px solid #cbd3db;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 14px 28px -24px rgba(11,32,54,.5);
}
.project-browser__bar{
  height: 31px;
  display: grid;
  grid-template-columns: 54px 1fr 54px;
  align-items: center;
  padding: 0 .6rem;
  border-bottom: 1px solid #d7dde3;
  background: #eef1f4;
}
.project-browser__bar > span{ display: flex; gap: 4px; }
.project-browser__bar i{ width: 7px; height: 7px; display: block; border-radius: 50%; background: #ff605c; }
.project-browser__bar i:nth-child(2){ background: #ffbd44; }
.project-browser__bar i:nth-child(3){ background: #00ca4e; }
.project-browser__bar b{
  min-width: 0;
  padding: .28rem .55rem;
  overflow: hidden;
  border: 1px solid #d8dee4;
  border-radius: 4px;
  background: #fff;
  color: #8a97a3;
  font: 400 .48rem var(--font-mono);
  text-align: center;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.project-browser__screen{ height: 165px; overflow: hidden; background: #f3f6f8; }
.project-browser__screen img{ width: 100%; height: 100%; display: block; object-fit: cover; object-position: top center; transition: transform .35s var(--ease); }
.project-card:hover .project-browser__screen img{ transform: scale(1.02); }
.project-browser__placeholder{ display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .55rem; color: #9aa8b4; background: linear-gradient(145deg, #f7f9fb, #e9eff4); }
.project-browser__placeholder > i{ font-size: 1.35rem; }
.project-browser__placeholder span{ font: .58rem var(--font-mono); letter-spacing: .03em; }
.project-card__top{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.project-card__logo{
  width: 42px;
  height: 42px;
  border-radius: var(--radius-s);
  background: var(--paper);
  border: 1px solid var(--grey-line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--blue-primary);
  flex-shrink: 0;
}
.project-card__ref{
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.05em;
  color: var(--grey-line);
  text-align: right;
}
.project-card h3{
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.08rem;
  margin: 0;
}
.project-card .cat{
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  display: block;
  margin-top: 0.15em;
}
.project-card p.desc{
  color: var(--text-body);
  font-size: 0.92rem;
  margin: 0;
  flex: 1;
}
.project-card__tag{
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.05em;
  color: var(--blue-mid);
  border: 1px solid var(--grey-line);
  border-radius: 999px;
  padding: 0.3em 0.75em;
}

/* ==========================================================================
   Confiance / logos
   ========================================================================== */

.trust__grid{
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--grey-line);
  position: relative;
  width: 100%;
}
.trust__grid::before,
.trust__grid::after{
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 1;
  width: clamp(2rem, 8vw, 6rem);
  pointer-events: none;
}
.trust__grid::before{
  left: 0;
  background: linear-gradient(90deg, var(--paper), rgba(241,245,250,0));
}
.trust__grid::after{
  right: 0;
  background: linear-gradient(270deg, var(--paper), rgba(241,245,250,0));
}
.trust__track{
  display: flex;
  width: max-content;
  animation: trust-marquee 30s linear infinite;
}
.trust__group{
  display: flex;
  align-items: center;
  gap: 1px;
}

.trust-logo{
  background: var(--paper);
  min-height: 150px;
  width: clamp(180px, 19vw, 238px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 0.8rem;
  text-align: center;
}
.trust-logo span{
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}
.trust-logo img{
  max-width: 298px;
  max-height: 117px;
  width: auto;
  height: auto;
  object-fit: contain;
}
@keyframes trust-marquee{
  from{ transform: translateX(0); }
  to{ transform: translateX(-50%); }
}
@media (max-width: 760px){
  .trust-logo{
    min-height: 120px;
    width: 170px;
    padding-inline: 0.7rem;
  }
  .trust-logo img{
    max-width: 216px;
    max-height: 91px;
  }
}
@media (prefers-reduced-motion: reduce){
  .trust__track{
    animation: none;
    transform: translateX(0);
  }
}

/* ==========================================================================
   Témoignage
   ========================================================================== */

.testimonials__grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}
.testimonial{
  min-width: 0;
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--grey-line);
  border-radius: var(--radius-m);
  background: var(--white);
  position: relative;
  overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}
.testimonial:hover{
  transform: translateY(-3px);
  box-shadow: 0 22px 40px -28px rgba(11,32,54,0.35);
  border-color: var(--blue-mid);
}
.testimonial::before{
  content: "\201C";
  position: absolute;
  top: .65rem;
  right: 1.2rem;
  color: rgba(30,90,153,.1);
  font-family: var(--font-display);
  font-size: 4.5rem;
  line-height: 1;
  pointer-events: none;
}
.testimonial blockquote{
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.65vw, 1.25rem);
  line-height: 1.5;
  color: var(--ink);
  margin: 0 0 1.6rem;
  flex: 1;
  font-style: italic;
}
.testimonial blockquote::before{ content: "\201C"; }
.testimonial blockquote::after{ content: "\201D"; }
.testimonial cite{
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding-top: 1rem;
  border-top: 1px solid var(--grey-line);
  font-style: normal;
}
.testimonial cite .avatar{
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--blue-primary);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  transition: background .25s var(--ease);
}
.testimonial cite .who strong{ display: block; font-size: 0.94rem; color: var(--ink); }
.testimonial cite .who span{ font-size: 0.85rem; color: var(--text-muted); }
.testimonial:hover cite .avatar{ background: var(--blue-mid); }
@media (max-width: 900px){
  .testimonials__grid{ grid-template-columns: 1fr; }
}

/* ==========================================================================
   Méthode
   ========================================================================== */

.method__list{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}
.method__item{
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--grey-line);
}
.method__item:last-child{ border-bottom: 1px solid var(--grey-line); }
.method__num{
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--cyan);
  padding-top: 0.2em;
}
.method__item h3{
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.05rem;
  margin: 0 0 0.35em;
}
.method__item p{ margin: 0; color: var(--text-muted); font-size: 0.94rem; max-width: 60ch; }

/* ==========================================================================
   Contact
   ========================================================================== */

.contact__grid{
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3.5rem;
}
@media (max-width: 860px){ .contact__grid{ grid-template-columns: 1fr; } }

.contact__info dl{
  margin: 0 0 2rem;
}
.contact__info dt{
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.3em;
}
.contact__info dd{
  margin: 0 0 1.4rem;
  font-size: 1.02rem;
  color: var(--ink);
}
.contact__info a{ text-decoration: none; border-bottom: 1px solid var(--grey-line); }
.contact__info a:hover{ border-color: var(--ink); }

.contact__mailto{
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
}

form.contact-form{
  display: grid;
  gap: 1.2rem;
}
.form-row{ display: grid; gap: 0.45rem; }
.form-row--trap{
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-row.two{
  grid-template-columns: 1fr 1fr;
  display: grid;
  gap: 1.2rem;
}
@media (max-width: 560px){ .form-row.two{ grid-template-columns: 1fr; } }

.form-row label{
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.form-row input,
.form-row select,
.form-row textarea{
  font-family: var(--font-body);
  font-size: 0.96rem;
  padding: 0.75em 0.9em;
  border: 1px solid var(--grey-line);
  border-radius: var(--radius-s);
  background: var(--white);
  color: var(--text-body);
  width: 100%;
}
.form-row textarea{ resize: vertical; min-height: 120px; }

.form-consent{
  display: flex;
  align-items: flex-start;
  gap: 0.7em;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.form-consent input{ margin-top: 0.3em; }

.form-note{
  font-size: 0.82rem;
  color: var(--text-muted);
}

.form-status{
  font-family: var(--font-mono);
  font-size: 0.82rem;
}
.form-status[data-state="success"]{ color: var(--blue-mid); }
.form-status[data-state="error"]{ color: #B5473F; }

/* ==========================================================================
   Blog
   ========================================================================== */

.blog-main{
  padding-top: var(--nav-h);
}
.blog-hero{
  padding: 6rem 0 4rem;
  background: var(--paper-dim);
  border-bottom: 1px solid var(--grey-line);
}
.blog-hero h1{
  font-size: clamp(2.1rem, 4vw, 3.35rem);
  max-width: 18ch;
}
.blog-hero p:not(.eyebrow){
  max-width: 68ch;
  color: var(--text-muted);
  font-size: 1.08rem;
}
.blog-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}
@media (max-width: 900px){ .blog-grid{ grid-template-columns: 1fr; } }
.blog-card{
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  padding: 1.4rem;
  border: 1px solid var(--grey-line);
  border-radius: var(--radius-m);
  background: var(--white);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.blog-card:hover{
  transform: translateY(-3px);
  box-shadow: 0 22px 40px -28px rgba(11,32,54,.35);
  border-color: var(--blue-mid);
}
.blog-card__image{
  display: block;
  margin: -1.4rem -1.4rem .35rem;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-bottom: 1px solid var(--grey-line);
  background: var(--paper);
}
.blog-card__image img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s var(--ease);
}
.blog-card:hover .blog-card__image img{ transform: scale(1.02); }
.blog-meta{
  margin: 0;
  font: .68rem var(--font-mono);
  letter-spacing: .06em;
  color: var(--blue-mid);
}
.blog-card h2,.blog-card h3{
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.08rem;
  font-weight: 700;
}
.blog-card h2 a,.blog-card h3 a{
  text-decoration: none;
}
.blog-card p{
  margin: 0;
  color: var(--text-muted);
}
.blog-read{
  margin-top: auto;
  color: var(--blue-mid);
  font-weight: 700;
  text-decoration: none;
}
.blog-more{ margin-top: 1.5rem; }
.blog-article{
  padding-block: 4rem 5rem;
}
.blog-cover{
  margin: 0 0 2rem;
  border: 1px solid var(--grey-line);
  border-radius: var(--radius-m);
  overflow: hidden;
  background: var(--white);
}
.blog-cover img{
  width: 100%;
  max-height: 520px;
  object-fit: cover;
}
.blog-content{
  max-width: 760px;
  font-size: 1.05rem;
}
.blog-content h2,.blog-content h3,.blog-content h4{
  margin-top: 1.7em;
}
.blog-content a{
  color: var(--blue-mid);
  font-weight: 700;
}
.blog-content blockquote{
  margin: 1.6rem 0;
  padding: 1rem 1.2rem;
  border-left: 3px solid var(--cyan);
  background: var(--paper-dim);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-style: italic;
}

/* ==========================================================================
   Footer
   ========================================================================== */

footer{
  border-top: 1px solid var(--grey-line);
  padding: 2.5rem 0;
}
.footer__row{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.footer__mark{
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--ink);
}
.footer__legal{
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Reveal on scroll
   ========================================================================== */

.reveal{
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible{
  opacity: 1;
  transform: translateY(0);
}
