/* ==========================================================================
   REFLOW — reflowsolution.fr
   Feuille de style principale
   Charte : marine / doré / blanc cassé
   ========================================================================== */

:root {
  --marine:        #101F38;
  --marine-mid:    #1C3355;
  --marine-soft:   #33486B;
  --gold:          #B08D63;
  --gold-dark:     #96754D;
  --gold-light:    #DCC7AC;
  --gold-wash:     #F0E7DB;
  --cream:         #FAF7F2;
  --cream-deep:    #F3EDE4;
  --white:         #FFFFFF;
  --ink:           #24303F;
  --muted:         #6B7688;
  --line:          #E3DCD2;

  --font-title: "Josefin Sans", "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --font-body:  "Inter", "Source Sans 3", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1180px;
  --radius: 2px;
  --shadow: 0 1px 2px rgba(16,31,56,.04), 0 12px 32px rgba(16,31,56,.06);
  --shadow-lg: 0 2px 4px rgba(16,31,56,.05), 0 24px 60px rgba(16,31,56,.10);
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* --------------------------------------------------------------- Reset -- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.68;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--marine-mid); text-decoration: none; }
a:hover { color: var(--gold-dark); }
ul { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------------------------------------------------------- Typographie -- */
h1, h2, h3, h4 {
  font-family: var(--font-title);
  color: var(--marine);
  font-weight: 300;
  margin: 0 0 .6em;
  line-height: 1.18;
  letter-spacing: .01em;
}
h1 { font-size: clamp(2.1rem, 4.4vw, 3.45rem); letter-spacing: .005em; }
h2 { font-size: clamp(1.65rem, 2.9vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 1.7vw, 1.35rem); font-weight: 400; }
p  { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 600; color: var(--marine); }

.eyebrow {
  font-family: var(--font-title);
  font-size: .78rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--gold-dark);
  font-weight: 500;
  margin: 0 0 1.1rem;
  display: block;
}
.lead { font-size: clamp(1.05rem, 1.5vw, 1.22rem); color: var(--marine-soft); line-height: 1.62; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }

/* Filet doré sous les titres de section */
.rule::after {
  content: "";
  display: block;
  width: 54px;
  height: 1px;
  background: var(--gold);
  margin: 1.6rem 0 0;
}
.rule.center::after { margin-left: auto; margin-right: auto; }

/* ------------------------------------------------------------- Layout --- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.section { padding: clamp(64px, 8vw, 116px) 0; position: relative; }
.section--tight { padding: clamp(48px, 5vw, 72px) 0; }
.section--cream { background: var(--cream); }
.section--deep  { background: var(--cream-deep); }
.section--white { background: var(--white); }
.section--marine { background: var(--marine); color: #D6DCE6; }
.section--marine h2, .section--marine h3 { color: var(--white); }
.section--marine .eyebrow { color: var(--gold-light); }
.section--marine .rule::after { background: var(--gold-light); }

.center { text-align: center; }
.measure { max-width: 720px; }
.measure.center { margin-left: auto; margin-right: auto; }

.grid { display: grid; gap: 32px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* -------------------------------------------------------------- Boutons -- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  font-family: var(--font-title);
  font-size: .85rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: 15px 30px;
  border: 1px solid var(--marine);
  background: var(--marine);
  color: var(--white);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background .28s var(--ease), color .28s var(--ease),
              border-color .28s var(--ease), transform .28s var(--ease);
}
.btn:hover { background: var(--marine-mid); border-color: var(--marine-mid); color: var(--white); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--marine); }
.btn--ghost:hover { background: var(--marine); color: var(--white); }
.btn--gold { background: var(--gold); border-color: var(--gold); }
.btn--gold:hover { background: var(--gold-dark); border-color: var(--gold-dark); }
.btn--light { background: transparent; border-color: rgba(220,199,172,.55); color: var(--gold-light); }
.btn--light:hover { background: var(--gold-light); border-color: var(--gold-light); color: var(--marine); }
.btn--sm { padding: 11px 20px; font-size: .76rem; }

.arrow-link {
  font-family: var(--font-title);
  font-size: .85rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--gold-dark);
  display: inline-flex;
  align-items: center;
  gap: .5em;
}
.arrow-link span { transition: transform .28s var(--ease); display: inline-block; }
.arrow-link:hover span { transform: translateX(5px); }

/* -------------------------------------------------------------- Header --- */
.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(250,247,242,.92);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 78px;
  padding: 12px 28px;
  max-width: 1280px;
  margin: 0 auto;
}
.brand { display: flex; align-items: center; flex: 0 0 auto; }
.brand img { width: 152px; }

.nav { margin-left: auto; }
.nav ul { display: flex; align-items: center; gap: 22px; }
.nav li { white-space: nowrap; }
.nav a {
  font-family: var(--font-title);
  font-size: .79rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--marine);
  padding: 6px 0;
  position: relative;
  font-weight: 400;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width .3s var(--ease);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { width: 100%; }
.nav a[aria-current="page"] { color: var(--gold-dark); }

.header__actions { display: flex; align-items: center; gap: 14px; flex: 0 0 auto; }

.lang {
  display: flex;
  align-items: center;
  font-family: var(--font-title);
  font-size: .78rem;
  letter-spacing: .1em;
  color: var(--muted);
}
.lang a { padding: 0 6px; color: var(--muted); }
.lang a:hover { color: var(--marine); }
.lang a[aria-current="true"] { color: var(--marine); font-weight: 600; }
.lang span { color: var(--line); }

.burger {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: var(--radius);
  cursor: pointer;
  position: relative;
}
.burger i {
  position: absolute; left: 11px; right: 11px; height: 1px;
  background: var(--marine); transition: transform .3s var(--ease), opacity .2s;
}
.burger i:nth-child(1) { top: 15px; }
.burger i:nth-child(2) { top: 20px; }
.burger i:nth-child(3) { top: 25px; }
.burger[aria-expanded="true"] i:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.burger[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] i:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* --------------------------------------------------------------- Héros --- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--cream);
  padding: clamp(72px, 10vw, 140px) 0 clamp(64px, 8vw, 116px);
}
.hero__motif {
  position: absolute;
  pointer-events: none;
  user-select: none;
  opacity: .9;
}
.hero__motif--map {
  right: -40px; bottom: 0;
  width: min(46vw, 540px);
}
.hero__motif--arc {
  left: -90px; top: -90px;
  width: min(24vw, 280px);
  opacity: .5;
}
.hero__inner { position: relative; z-index: 2; max-width: 780px; }
.hero h1 { margin-bottom: .5em; }
.hero h1 em { font-style: normal; color: var(--gold-dark); }
.hero__sub { font-size: clamp(1.02rem, 1.45vw, 1.16rem); color: var(--marine-soft); max-width: 640px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.hero--inner { padding: clamp(60px, 7vw, 96px) 0 clamp(44px, 5vw, 64px); border-bottom: 1px solid var(--line); }
.hero--inner .hero__inner { max-width: 840px; }

/* Fil d'Ariane */
.crumbs { font-size: .8rem; color: var(--muted); margin-bottom: 1.4rem; letter-spacing: .04em; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--gold-dark); }

/* -------------------------------------------------------------- Cartes --- */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 38px 34px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--gold-light); }
.card h3 {
  font-size: .95rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--marine);
  margin-bottom: .9em;
}
.card p { color: var(--muted); font-size: .97rem; margin: 0; }
.card__mark { width: 40px; margin-bottom: 22px; opacity: .95; }

.card--plain { background: transparent; border: 0; padding: 0; }
.card--plain:hover { transform: none; box-shadow: none; }

/* Listes à puce dorée */
.ticks li {
  position: relative;
  padding-left: 26px;
  margin-bottom: .85em;
  color: var(--ink);
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0; top: .68em;
  width: 9px; height: 1px;
  background: var(--gold);
}
.ticks li:last-child { margin-bottom: 0; }

/* Panneau encadré */
.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 2px solid var(--gold);
  border-radius: var(--radius);
  padding: 34px 34px;
}
.panel h3 { margin-bottom: 1em; }

/* Familles de produits — pastilles */
.tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tags li {
  font-family: var(--font-title);
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--marine);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 20px;
}
.section--marine .tags li { background: rgba(255,255,255,.04); border-color: rgba(220,199,172,.28); color: var(--gold-light); }

/* Étapes numérotées */
.steps { counter-reset: step; display: grid; gap: 4px; }
.step {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 24px;
  padding: 30px 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step__no {
  font-family: var(--font-title);
  font-size: 2rem;
  font-weight: 300;
  color: var(--gold-light);
  line-height: 1;
}
.step h3 { margin-bottom: .5em; }
.step p { color: var(--muted); margin: 0; }

/* Marchés */
.markets { display: flex; flex-wrap: wrap; gap: 12px 10px; }
.markets li {
  font-size: .92rem;
  color: var(--marine);
  background: var(--white);
  border: 1px solid var(--line);
  padding: 10px 18px;
  border-radius: var(--radius);
}
.section--marine .markets li {
  background: transparent;
  border-color: rgba(220,199,172,.32);
  color: var(--gold-light);
}
.section--deep .markets li { background: var(--white); }

/* Citation fondateur */
.quote {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
  align-items: center;
}
.quote blockquote {
  margin: 0;
  font-family: var(--font-title);
  font-weight: 300;
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  line-height: 1.45;
  color: var(--marine);
}
.quote cite { font-style: normal; font-size: .95rem; color: var(--muted); display: block; margin-top: 1.2rem; }
.quote cite b { color: var(--marine); font-weight: 600; }

/* Bande d'appel à l'action */
.cta-band { background: var(--marine); color: #CBD3E0; text-align: center; }
.cta-band h2 { color: var(--white); }
.cta-band p { max-width: 560px; margin: 0 auto 30px; color: #B9C3D4; }

/* Split média / texte */
.split { display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.portrait {
  background: var(--cream-deep);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px;
  color: var(--muted);
  font-size: .85rem;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }

/* ------------------------------------------------------------ Formulaire -- */
.form { display: grid; gap: 26px; }
.field { display: grid; gap: 8px; }
.field > label, .fieldset__legend {
  font-family: var(--font-title);
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--marine);
  font-weight: 500;
}
.req { color: var(--gold-dark); }
.hint { font-size: .84rem; color: var(--muted); }

input[type="text"], input[type="email"], input[type="tel"], input[type="url"],
select, textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: var(--radius);
  color: var(--ink);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
  font-size: .97rem;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(176,141,99,.13);
}
textarea { min-height: 140px; resize: vertical; }
select { appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%236B7688' stroke-width='1.4' d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 15px center; padding-right: 40px; }

fieldset { border: 0; margin: 0; padding: 0; }
.fieldset__legend { display: block; margin-bottom: 12px; }

.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; }
.choice {
  display: flex; align-items: flex-start; gap: 11px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: .94rem;
  transition: border-color .22s var(--ease), background .22s var(--ease);
}
.choice:hover { border-color: var(--gold-light); }
.choice input { margin: 4px 0 0; accent-color: var(--gold-dark); width: 16px; height: 16px; flex: 0 0 auto; }
.choice input:checked ~ span { color: var(--marine); font-weight: 500; }
.choice:has(input:checked) { border-color: var(--gold); background: #FEFCF9; }

/* Sélecteur de profil */
.profile-pick { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.profile-card {
  position: relative;
  display: block;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: var(--radius);
  padding: 26px 26px 24px;
  cursor: pointer;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease);
}
.profile-card:hover { border-color: var(--gold-light); transform: translateY(-2px); }
.profile-card input { position: absolute; opacity: 0; pointer-events: none; }
.profile-card__title {
  font-family: var(--font-title);
  font-size: .95rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--marine);
  display: block;
  margin-bottom: .55em;
}
.profile-card__desc { font-size: .92rem; color: var(--muted); }
.profile-card:has(input:checked) {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold) inset;
  background: #FEFCF9;
}
.profile-card:has(input:checked) .profile-card__title { color: var(--gold-dark); }

/* Blocs conditionnels */
.after-profile { display: grid; gap: 26px; }
.after-profile[hidden], .conditional[hidden] { display: none !important; }
.field--consent > label.choice {
  text-transform: none; letter-spacing: normal; font-weight: 400;
  font-family: var(--font-body); font-size: .94rem; color: var(--ink); line-height: 1.55;
}
.conditional { display: grid; gap: 26px; animation: fadeUp .45s var(--ease) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.form__note { font-size: .84rem; color: var(--muted); }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.alert { padding: 16px 20px; border-radius: var(--radius); font-size: .95rem; margin-bottom: 28px; }
.alert--ok  { background: #F0F5EF; border: 1px solid #C9DCC4; color: #33532C; }
.alert--err { background: #FBF0EE; border: 1px solid #E6C7C1; color: #7A3A2F; }

.field--error input, .field--error select, .field--error textarea { border-color: #C0705F; }
.error-msg { font-size: .84rem; color: #A9503F; }

/* --------------------------------------------------------------- Footer --- */
.footer { background: var(--marine); color: #9FAAC0; padding: 68px 0 34px; font-size: .93rem; }
.footer a { color: #C3CCDC; }
.footer a:hover { color: var(--gold-light); }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 44px; }
.footer__mark { width: 52px; margin-bottom: 20px; }
.footer h4 {
  font-family: var(--font-title);
  font-size: .78rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold-light);
  font-weight: 500;
  margin: 0 0 16px;
}
.footer li { margin-bottom: 9px; }
.footer__bottom {
  margin-top: 52px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.09);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  justify-content: space-between;
  font-size: .84rem;
  color: #7E8AA1;
}
.footer__tag { font-family: var(--font-title); letter-spacing: .18em; text-transform: uppercase; font-size: .74rem; color: var(--gold); }

/* --------------------------------------------------- Contenu légal long --- */
.legal h2 { font-size: 1.5rem; margin-top: 2.4em; }
.legal h2:first-of-type { margin-top: 0; }
.legal p, .legal li { color: var(--ink); }
.legal ul { list-style: disc; padding-left: 22px; margin-bottom: 1.2em; }
.legal li { margin-bottom: .5em; }
.legal .placeholder { background: var(--gold-wash); padding: 1px 6px; border-radius: 2px; color: var(--gold-dark); }

/* ------------------------------------------------------------ Révélation -- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ------------------------------------------------------------ Responsive -- */
@media (max-width: 1040px) {
  .nav ul { gap: 20px; }
  .nav a { font-size: .76rem; letter-spacing: .09em; }
  .brand img { width: 132px; }
}
@media (max-width: 1180px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .header__inner { min-height: 68px; }
  .burger { display: block; order: 3; }
  .header__actions { margin-left: auto; }
  .nav {
    position: fixed;
    inset: 68px 0 auto 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    padding: 12px 28px 26px;
    display: none;
  }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav li { border-bottom: 1px solid var(--line); }
  .nav li:last-child { border-bottom: 0; }
  .nav a { display: block; padding: 15px 0; font-size: .85rem; letter-spacing: .12em; }
  .nav a::after { display: none; }
  .hero__motif--arc { display: none; }
  .hero__motif--map { width: 74vw; right: -110px; bottom: -40px; opacity: .5; }
}
/* Sur petit écran, le bouton « Nous contacter » de l'en-tête laisse la place
   au sélecteur de langue et au menu ; l'appel à l'action reste dans le menu,
   dans le bandeau d'ouverture et en bas de chaque page. */
@media (max-width: 760px) {
  .header__actions .btn { display: none; }
  .brand img { width: 128px; }
  .header__inner { gap: 14px; }
  /* Zones tactiles confortables au pouce */
  .lang a { padding: 12px 9px; font-size: .82rem; }
  .footer li { margin-bottom: 4px; }
  .footer li a { display: inline-block; padding: 7px 0; }
  .footer__bottom { gap: 8px 26px; }
  .crumbs a { display: inline-block; padding: 4px 0; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  .header__inner { padding: 10px 20px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .profile-pick { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 34px; }
  .card { padding: 30px 26px; }
  .panel { padding: 26px 24px; }
  .step { grid-template-columns: 1fr; gap: 10px; }
  .step__no { font-size: 1.5rem; }
  .hero__cta .btn { width: 100%; justify-content: center; }
}

/* ------------------------------------------------------------ Impression -- */
@media print {
  .header, .footer, .hero__motif, .btn { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
}
