/* ============================================================
   sail & stitch — direction artistique basée sur la carte de visite
   fond bleu glacier · bleu pétrole · poppins minuscules
   ============================================================ */

:root {
  --bg: #dfebf1;          /* bleu glacier de la carte */
  --bg-soft: #eaf2f6;
  --ink: #44758f;         /* bleu pétrole de la carte */
  --ink-deep: #35617a;
  --accent: #c8613c;      /* corail terracotta — réservé aux CTA */
  --accent-deep: #a94e2d;
  --text: #3d5866;
  --white: #ffffff;
  --line: rgba(68, 117, 143, .18);
  --radius: 14px;
  --content-max: 1100px;
  --pad: max(clamp(1.5rem, 6vw, 5rem), calc((100% - var(--content-max)) / 2));
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Poppins", sans-serif;
  font-weight: 300;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.15;
}

h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); margin-bottom: .75rem; }

a { color: var(--ink); }

section {
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
  padding-inline: var(--pad);
  scroll-margin-top: 70px; /* évite que l'en-tête collant recouvre la section ciblée */
}

.section-intro {
  max-width: 38rem;
  margin-bottom: 2.5rem;
}

/* ---------- bandeau promo (temporaire) ---------- */
.promo-banner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: .55rem var(--pad);
  background: var(--ink);
  color: var(--bg-soft);
  font-size: .88rem;
  text-align: center;
}

.promo-banner[hidden] { display: none; }

.promo-content { display: flex; flex-direction: column; gap: .1rem; }

.promo-note { font-size: 10px; opacity: .85; }

.promo-banner strong { font-weight: 600; }

.promo-cta {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-weight: 500;
  font-size: .8rem;
  padding: .28rem .95rem;
  margin-left: .5rem;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s, transform .15s;
}

.promo-cta:hover { background: var(--accent-deep); transform: translateY(-1px); }

.promo-close {
  position: absolute;
  top: 0;
  right: .15rem;
  background: none;
  border: none;
  color: inherit;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  padding: .5rem .6rem; /* zone tactile confortable */
  opacity: .8;
}

.promo-close:hover { opacity: 1; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: .9rem;
  padding-inline: var(--pad);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo { height: 48px; width: auto; }

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(.9rem, 2.5vw, 1.8rem);
}

.site-nav a {
  text-decoration: none;
  font-weight: 400;
  font-size: .95rem;
}

.site-nav a:hover { color: var(--ink-deep); text-decoration: underline; text-underline-offset: 4px; }

.lang-toggle {
  font-family: inherit;
  font-weight: 600;
  font-size: .8rem;
  color: var(--ink);
  background: transparent;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  padding: .25rem .75rem;
  cursor: pointer;
  transition: background .15s, color .15s;
}

.lang-toggle:hover { background: var(--ink); color: var(--bg); }

/* ---------- boutons ---------- */
.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 500;
  font-size: .95rem;
  padding: .7rem 1.5rem;
  border-radius: 999px;
  transition: transform .15s, background .15s, color .15s;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 3px 14px rgba(200, 97, 60, .3);
}
.btn-primary:hover { background: var(--accent-deep); }

.btn-ghost { border: 1.5px solid var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--white); }

.btn-lg { font-size: 1.05rem; padding: .85rem 2rem; }

/* ---------- hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  min-height: 72vh;
}

.hero h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.hero-sub { max-width: 32rem; margin-bottom: 2rem; }

.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }

.hero-photo { aspect-ratio: 4 / 5; max-height: 540px; }

/* ---------- placeholders photos ---------- */
.photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  border: 1.5px dashed var(--ink);
  border-radius: var(--radius);
  background: var(--bg-soft);
  color: var(--ink);
  font-size: .85rem;
  font-weight: 400;
  opacity: .75;
}

/* ---------- services ---------- */
.services { background: var(--white); border-radius: 32px 32px 0 0; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.card {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  transition: transform .18s;
}

.card:hover { transform: translateY(-3px); }

.card-photo {
  aspect-ratio: 3 / 2;
  background: var(--white);
  margin-bottom: 1.1rem;
}

.card h3 { font-size: 1.08rem; margin-bottom: .35rem; }

.card p { font-size: .95rem; }

/* ---------- process ---------- */
.process { background: var(--white); }

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
  position: relative;
}

/* le texte des étapes passe devant le trait décoratif */
.steps li { position: relative; z-index: 1; }

/* les numéros deviennent des bouées sur la route */
.step-num {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--accent);
  color: var(--accent);
  font-weight: 600;
  margin-bottom: .8rem;
}

/* le chenal : cap en pointillés reliant les bouées, bateau en bout de route */
@media (min-width: 861px) {
  /* trait libre façon carnet de voyage : cap irrégulier qui plonge derrière le texte */
  .steps::before {
    content: "";
    position: absolute;
    top: calc(1.05rem - 45px);
    left: 1rem;
    right: 3.2rem;
    height: 140px;
    background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 140' preserveAspectRatio='none'><path d='M20,66C38,88,100,112,150,102C205,92,235,58,270,45C305,33,330,16,375,22C425,29,475,60,520,45C560,32,585,92,645,100C700,107,730,60,770,45C825,30,880,50,960,24' fill='none' stroke='%23c8613c' stroke-width='2.6' stroke-dasharray='0.5,13' stroke-linecap='round'/></svg>") no-repeat left top / 100% 100%;
    opacity: .6;
  }

  /* le bateau du logo au bout de la route */
  .steps::after {
    content: "";
    position: absolute;
    top: calc(1.05rem - 47px);
    right: 26px;
    width: 54px;
    height: 27px;
    transform: rotate(-14deg); /* à la gîte, en train de grimper la dernière vague */
    background: url("assets/boat.png") no-repeat center / contain;
  }
}

.steps h3 { font-size: 1rem; margin-bottom: .4rem; }

.steps p { font-size: .9rem; }

/* ---------- about ---------- */
.about {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  background: var(--white);
  border-radius: 0 0 32px 32px;
}

.about-photo { aspect-ratio: 1; max-width: 420px; }

.about-text p { max-width: 34rem; }

.about-text p + p { margin-top: 1rem; }

/* ---------- contact ---------- */
.contact { text-align: center; }

.contact-boat {
  width: 84px;
  height: auto;
  margin-bottom: 1.2rem;
  transform: rotate(-5deg); /* légère gîte, clin d'œil au voyage */
}

.contact p {
  max-width: 30rem;
  margin: 0 auto 1.8rem;
}

/* ---------- footer ---------- */
.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem;
  padding-block: 1.5rem;
  padding-inline: var(--pad);
  border-top: 1px solid var(--line);
  font-size: .82rem;
  color: var(--ink);
}

.site-footer span:first-child { font-weight: 600; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-photo { aspect-ratio: 16 / 10; max-height: none; }
  .services-grid, .steps { grid-template-columns: 1fr 1fr; }
  .about { grid-template-columns: 1fr; }
  .about-photo { max-width: none; aspect-ratio: 16 / 10; }
}

@media (max-width: 560px) {
  .site-nav a:not(:last-of-type) { display: none; }
  .services-grid, .steps { grid-template-columns: 1fr; }

  /* zones tactiles élargies (recommandation : ~44px minimum) */
  .site-nav a { padding: .7rem .4rem; }
  .lang-toggle { padding: .55rem 1rem; }
  .promo-cta { padding: .55rem 1.2rem; }
  .promo-banner { padding-block: .7rem; }
}
