@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=DM+Sans:wght@300;400;500&display=swap');

:root{
  --bg: #FBFAF8;
  --surface: #F2F0EC;
  --fg: #17140F;
  --muted: #746E64;
  --accent: #AA1831;
  --accent-dim: rgba(170,24,49,0.09);
  --accent-2: #D8394F;
  --border: rgba(23,20,15,0.09);
  --border-strong: rgba(23,20,15,0.18);

  --font-display: 'Playfair Display', serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'DM Sans', sans-serif;

  --container: 1180px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

body{
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

body::before{
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.045'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
}

img,svg{ display:block; max-width:100%; }

.amp{
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
}
a{ color: inherit; text-decoration: none; }

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

h1,h2,h3,h4{
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  margin: 0;
  letter-spacing: 0;
}

.eyebrow{
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
}
.eyebrow::before{
  content:"";
  width: 32px;
  height: 1px;
  background: var(--accent);
  display:inline-block;
}

p{ margin: 0 0 1em 0; color: var(--muted); font-weight: 300; }
p:last-child{ margin-bottom: 0; }

::selection{ background: var(--accent); color: var(--fg); }
:focus-visible{ outline: 1px solid var(--accent); outline-offset: 4px; }

@keyframes fade-up{
  from{ opacity: 0; transform: translateY(22px); }
  to{ opacity: 1; transform: translateY(0); }
}

/* ---------- header ---------- */
header.site{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251,250,248,0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))){
  header.site{ background: var(--bg); }
}
@media (max-width: 860px){
  header.site{
    background: var(--bg);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}
header.site .bar{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 32px;
  max-width: var(--container);
  margin: 0 auto;
  transition: padding .3s ease;
}
header.site.scrolled{
  box-shadow: 0 2px 24px rgba(23,20,15,0.07);
}
header.site.scrolled .bar{
  padding-top: 14px;
  padding-bottom: 14px;
}
.logo{ display: flex; align-items: center; gap: 14px; }
.logo .mark{ width: auto; height: 30px; flex-shrink: 0; transition: height .3s ease; }
header.site.scrolled .logo .mark{ height: 24px; }
.logo .word{
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16.5px;
  letter-spacing: 0.04em;
  line-height: 1.15;
  color: var(--fg);
}
.logo .word span{
  display:block;
  font-family: var(--font-body);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  color: var(--muted);
  font-weight: 400;
  margin-top: 3px;
  text-transform: uppercase;
  white-space: nowrap;
}

nav.main{ display:flex; align-items:center; gap: 40px; }
nav.main a.lang-switch{
  border: 1px solid var(--border-strong);
  padding: 6px 10px;
  letter-spacing: 0.14em;
}
nav.main a.lang-switch::after{ display:none; }
nav.main a.lang-switch:hover{ border-color: var(--accent); }
nav.main a{
  font-size: 12.5px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  position: relative;
  padding: 4px 0;
  transition: color .3s;
}
nav.main a::after{
  content:"";
  position:absolute;
  left:0; right:0; bottom:-4px;
  height: 1px;
  background: var(--accent);
  width: 0;
  transition: width .3s;
}
nav.main a:hover{ color: var(--fg); }
nav.main a:hover::after{ width:100%; }
nav.main a.active{ color: var(--fg); }
nav.main a.active::after{ width: 100%; }

.header-cta{
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--accent);
  padding: 12px 22px;
  white-space: nowrap;
  transition: background .3s, transform .3s;
}
.header-cta:hover{ background: var(--fg); transform: translateY(-1px); }

/* ---------- breadcrumb ---------- */
.breadcrumb{ border-bottom: 1px solid var(--border); }
.breadcrumb .wrap{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 32px;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.breadcrumb a{ color: var(--muted); transition: color .3s; }
.breadcrumb a:hover{ color: var(--accent); }
.breadcrumb .sep{ color: var(--border-strong); }
.breadcrumb .current{ color: var(--fg); }
@media (max-width: 600px){
  .breadcrumb .wrap{ padding: 13px 32px; font-size: 10.5px; }
}

.nav-toggle{ display:none; }

@media (max-width: 860px){
  nav.main{
    position: fixed;
    inset: 70px 0 0 0;
    background: var(--bg);
    flex-direction: column;
    align-items: flex-start;
    padding: 34px 32px;
    gap: 26px;
    transform: translateX(100%);
    transition: transform .3s ease;
    border-top: 1px solid var(--border);
  }
  nav.main.open{ transform: translateX(0); }
  nav.main a{ font-size: 20px; font-family: var(--font-display); text-transform: none; letter-spacing: 0; }
  .header-cta{ display:none; }
  .nav-toggle{
    display:block; background:none; border:none;
    width: 26px; height: 18px; position: relative; cursor: pointer;
  }
  .nav-toggle span{
    position:absolute; left:0; right:0; height:1px; background:var(--fg);
    transition: all .25s ease;
  }
  .nav-toggle span:nth-child(1){ top:0; }
  .nav-toggle span:nth-child(2){ top:8px; }
  .nav-toggle span:nth-child(3){ top:16px; }
  .nav-toggle.open span:nth-child(1){ transform: translateY(8px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2){ opacity:0; }
  .nav-toggle.open span:nth-child(3){ transform: translateY(-8px) rotate(-45deg); }
}

/* ---------- hero ---------- */
.hero{
  position: relative;
  padding: 74px 0 88px;
  overflow: hidden;
  min-height: 82vh;
  display: flex;
  align-items: center;
}
.hero::before{
  content:"";
  position: absolute;
  top: 12%;
  right: 6%;
  width: 340px;
  height: 340px;
  border: 1px solid rgba(170,24,49,0.16);
  transform: rotate(45deg);
  pointer-events: none;
}
.hero .wrap{ position: relative; width: 100%; }
.hero-grid{
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 56px;
  align-items: center;
}
.hero .eyebrow{ opacity:0; animation: fade-up .8s .1s forwards; }
.hero h1{
  font-size: clamp(36px, 4.8vw, 60px);
  font-weight: 400;
  color: var(--fg);
  opacity:0; animation: fade-up .8s .25s forwards;
}
.hero h1 em{
  font-style: italic;
  color: var(--accent);
}
.hero .lede{
  margin-top: 26px;
  font-size: 17px;
  max-width: 46ch;
  color: var(--muted);
  opacity:0; animation: fade-up .8s .4s forwards;
}
.hero-ctas{ display:flex; gap:18px; margin-top: 38px; flex-wrap: wrap; align-items:center; opacity:0; animation: fade-up .8s .55s forwards; }

.btn{
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 15px 26px;
  display:inline-block;
  border: 1px solid transparent;
  transition: all .3s;
}
.btn-primary{ background: var(--accent); color: var(--bg); }
.btn-primary:hover{ background: var(--fg); transform: translateY(-2px); }
.btn-ghost{ color: var(--muted); border-bottom: 1px solid var(--border-strong); padding-left:0; padding-right:0; }
.btn-ghost:hover{ color: var(--fg); border-color: var(--fg); }

/* route diagram — stylized map with sequential country highlight */
.route{
  position: relative;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  padding: 24px 20px 42px;
  opacity: 0; animation: fade-up .9s .5s forwards;
}
.route::after{
  content: "CARTE — RÉSEAU D'APPROVISIONNEMENT";
  position: absolute; left: 20px; bottom: 15px;
  font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted);
}
.route svg{ width: 100%; height: auto; max-width: 460px; margin: 0 auto; overflow: visible; }
.route .frame-mark{ stroke: var(--border-strong); stroke-width: 1; }
.route .map-link{
  fill: none; stroke: var(--border-strong); stroke-width: 1; stroke-dasharray: 3 4;
}
.route .map-link{
  fill: none; stroke: var(--border-strong); stroke-width: 0.8; stroke-dasharray: 2.5 3;
}
.route .country path{
  stroke: var(--border-strong);
  stroke-width: 0.9;
  vector-effect: non-scaling-stroke;
  fill: var(--bg);
  opacity: 0.7;
  animation: country-pulse 10s ease-in-out infinite;
}
.route .label{
  font-family: var(--font-body);
  font-size: 8px;
  letter-spacing: 0.05em;
  fill: var(--fg);
  text-anchor: middle;
  pointer-events: none;
}
.route .country.fr path{ animation-delay: 0s; }
.route .country.ro path{ animation-delay: 2s; }
.route .country.bg path{ animation-delay: 4s; }
.route .country.gr path{ animation-delay: 6s; }
.route .country.tr path{ animation-delay: 8s; }
@keyframes country-pulse{
  0%, 14%, 100%{ fill: var(--bg); stroke: var(--border-strong); opacity: 0.7; }
  4%{ fill: var(--accent); stroke: var(--accent); opacity: 1; }
}

@media (max-width: 860px){ .hero-grid{ grid-template-columns: 1fr; } .hero{ min-height: auto; } }

/* ---------- stats (stat-row style) ---------- */
.stats{ border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stats .wrap{ padding: 0; display: grid; grid-template-columns: repeat(4,1fr); gap:0; }
.stat{ padding: 34px 26px; border-left: 1px solid var(--border); transition: background .3s; }
.stat:first-child{ border-left:none; }
.stat:hover{ background: var(--surface); }
.stat .num{ font-family: var(--font-display); font-size: 32px; color: var(--accent); font-weight: 600; }
.stat .label{ font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }
@media (max-width: 760px){
  .stats .wrap{ grid-template-columns: repeat(2,1fr); }
  .stat{ padding: 26px 18px; }
  .stat:nth-child(2n+1){ border-left:none; }
}

/* ---------- generic section ---------- */
section{ padding: 96px 0; }
.section-alt{ background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head{ display:flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 58px; }
.section-head h2{ font-size: clamp(28px,3vw,40px); max-width: 16ch; color: var(--fg); font-weight: 400; }
.section-head .desc{ max-width: 34ch; text-align: right; color: var(--muted); }
@media (max-width: 760px){
  .section-head{ flex-direction: column; align-items: flex-start; }
  .section-head .desc{ text-align:left; }
}

/* process */
.process-list{ border-top: 1px solid var(--border); }
.process-item{ display: grid; grid-template-columns: 90px 1fr 1.3fr; gap: 28px; padding: 34px 0; border-bottom: 1px solid var(--border); align-items: start; }
.process-item .idx{ font-family: var(--font-body); font-size: 12.5px; color: var(--accent); letter-spacing:.1em; display:flex; align-items:center; gap:8px; }
.process-item .idx::before{ content:""; width:6px; height:6px; background: var(--accent); }
.process-item h3{ font-size: 20px; color: var(--fg); font-weight: 500; }
@media (max-width: 760px){ .process-item{ grid-template-columns: 1fr; gap: 8px; } }

/* card grid — ghost-numbered service strip */
.card-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  counter-reset: card;
}
.card{
  background: var(--bg);
  padding: 38px 34px;
  position: relative;
  transition: background .35s;
  counter-increment: card;
}
.card:hover{ background: var(--surface); }
.card::before{
  content: counter(card, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 700;
  color: var(--accent-dim);
  line-height: 1;
  display: block;
  margin-bottom: 18px;
  transition: color .35s;
}
.card:hover::before{ color: rgba(170,24,49,0.28); }
.card .tag{ font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.14em; }
.card h3{ font-size: 21px; margin-top: 8px; color: var(--fg); font-weight: 500; }
.card p{ margin-top: 12px; font-size: 14.5px; }
@media (max-width: 760px){ .card-grid{ grid-template-columns: 1fr; } }

/* cta band */
.band{ text-align:center; }
.band .wrap{ padding: 96px 32px; display:flex; flex-direction: column; align-items: center; gap: 30px; }
.band h2{ color: var(--fg); font-size: clamp(28px,3.6vw,42px); max-width: 20ch; font-weight: 400; }

/* footer */
footer.site{ border-top: 1px solid var(--border); padding: 60px 0 36px; }
footer.site .wrap{ display:flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
footer.site .col h4{ font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); margin-bottom: 16px; font-weight: 400; }
footer.site .col a, footer.site .col p{ font-size: 14px; margin: 0 0 9px 0; color: var(--muted); }
footer.site .col a:hover{ color: var(--accent); }
footer.site .bottom{
  margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--border);
  font-size: 11px; letter-spacing: 0.06em; color: var(--muted);
  display:flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}

/* page hero (inner pages) */
.page-hero{ position: relative; padding: 70px 0 46px; border-bottom: 1px solid var(--border); overflow: hidden; }
.page-hero::before{
  content: "";
  position: absolute;
  top: -50px;
  right: 4%;
  width: 200px;
  height: 200px;
  border: 1px solid rgba(170,24,49,0.14);
  transform: rotate(45deg);
  pointer-events: none;
}
.page-hero .wrap{ position: relative; }
.page-hero .eyebrow{ opacity: 0; animation: fade-up .7s .05s forwards; }
.page-hero h1{ font-size: clamp(32px,4vw,48px); max-width: 20ch; color: var(--fg); font-weight: 400; opacity: 0; animation: fade-up .8s .18s forwards; }
.page-hero .lede{ margin-top: 20px; max-width: 52ch; font-size: 16.5px; color: var(--muted); opacity: 0; animation: fade-up .8s .32s forwards; }
.page-hero .tagline{ opacity: 0; animation: fade-up .8s .32s forwards; }

/* about / bio */
.bio-grid{ display:grid; grid-template-columns: 0.8fr 1.2fr; gap: 64px; }
.bio-mark{
  aspect-ratio: 3/4; background: var(--surface); border: 1px solid var(--border);
  display:flex; align-items:center; justify-content:center; overflow: hidden;
}
.bio-mark .mark{ width: 80px; height:80px; }
.lang-row{ display:flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.lang-pill{
  font-size: 11.5px; border: 1px solid var(--border-strong); padding: 7px 14px;
  color: var(--muted); letter-spacing: .04em;
}
@media (max-width: 860px){ .bio-grid{ grid-template-columns: 1fr; } }

/* contact */
.contact-grid{ display:grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.field{ margin-bottom: 22px; }
.field label{
  display:block; font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--muted); margin-bottom: 10px;
}
.field input, .field textarea, .field select{
  width: 100%; background: var(--surface); border: 1px solid var(--border-strong);
  padding: 13px 15px; font-family: var(--font-body); font-size: 15px; color: var(--fg);
}
.field textarea{ resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus, .field select:focus{ border-color: var(--accent); outline:none; }
.contact-info dt{ font-size: 10.5px; text-transform: uppercase; color: var(--muted); margin-top: 24px; letter-spacing:.1em; }
.contact-info dt:first-child{ margin-top:0; }
.contact-info dd{ margin: 8px 0 0 0; font-size: 17px; color: var(--fg); }
@media (max-width: 860px){ .contact-grid{ grid-template-columns: 1fr; } }

.specialization-list{ list-style:none; margin:14px 0 0; padding:0; }
.specialization-list li{
  font-size: 15px; color: var(--muted); padding: 14px 0; border-bottom: 1px solid var(--border);
  display:flex; justify-content: space-between; transition: color .3s;
}
.specialization-list li:hover{ color: var(--fg); }
.specialization-list li:first-child{ border-top: 1px solid var(--border); }
.specialization-list li .n{ font-size: 11.5px; color: var(--accent); letter-spacing:.1em; }

/* tabs (profilés) */
.tabs{ display: flex; gap: 6px; border-bottom: 1px solid var(--border); margin-bottom: 50px; }
.tab-btn{
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  background: none; border: none; padding: 16px 4px; margin-right: 34px;
  color: var(--muted); cursor: pointer; border-bottom: 1px solid transparent; transform: translateY(1px);
  transition: color .3s;
}
.tab-btn:hover{ color: var(--fg); }
.tab-btn.active{ color: var(--fg); border-bottom-color: var(--accent); }
.tab-panel{ display:none; }
.tab-panel.active{ display:block; }

.profile-grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); counter-reset: profile; }
.profile-card{ background: var(--bg); padding: 32px 28px; position: relative; transition: background .35s; counter-increment: profile; }
.profile-card:hover{ background: var(--surface); }
.profile-card::before{
  content: counter(profile, decimal-leading-zero);
  font-family: var(--font-display); font-size: 34px; font-weight: 700;
  color: var(--accent-dim); line-height:1; display:block; margin-bottom: 14px;
}
.profile-card .n{ font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.12em; }
.profile-card h3{ font-size: 18px; margin-top: 10px; color: var(--fg); font-weight: 500; }
.profile-card p{ font-size: 14px; margin-top: 10px; }
.profile-card ul{ margin: 16px 0 0; padding: 0; list-style: none; font-size: 12.5px; color: var(--muted); }
.profile-card ul li{ padding: 6px 0; border-top: 1px solid var(--border); }
.profile-card ul li:first-child{ border-top: none; }
@media (max-width: 860px){ .profile-grid{ grid-template-columns: 1fr; } .tab-btn{ margin-right: 22px; } }

.notice{ border: 1px solid var(--border-strong); background: var(--surface); padding: 20px 24px; font-size: 14.5px; color: var(--muted); }
.notice.success{ border-color: var(--accent); color: var(--fg); }
.notice.success::before{ content: "✓ "; color: var(--accent); }

/* ---------- media band (full-bleed photo) ---------- */
.media-band{
  position: relative;
  height: 440px;
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.media-band img{
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(35%) contrast(1.05);
}
.media-band::after{
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(12,12,12,0) 40%, rgba(12,12,12,0.55) 100%);
}
.media-caption{
  position: absolute; left: 32px; bottom: 26px; z-index: 2;
  color: #F5F0EB;
  max-width: var(--container);
  right: 32px;
  margin: 0 auto;
}
.media-caption .eyebrow{ color: var(--accent-2); margin-bottom: 10px; }
.media-caption p{ color: #D8D3CB; max-width: 46ch; }
@media (max-width: 760px){ .media-band{ height: 300px; } }

.profile-media{
  width: 100%; height: 260px; object-fit: cover;
  margin-bottom: 46px;
  filter: grayscale(30%) contrast(1.05);
  border: 1px solid var(--border);
}

@media (prefers-reduced-motion: reduce){
  .route .country path{ animation: none; opacity: 0.75; }
  .hero .eyebrow, .hero h1, .hero .lede, .hero-ctas, .route,
  .page-hero .eyebrow, .page-hero h1, .page-hero .lede, .page-hero .tagline{ animation: none; opacity: 1; }
  html{ scroll-behavior: auto; }
}
