/* ==========================================================================
   Patrick Carmier — Expert Maritime Fluvial
   Feuille de style unique — mobile-first, sans dépendance externe
   ========================================================================== */

:root {
  /* Palette */
  --color-navy: #0b2540;
  --color-navy-dark: #071829;
  --color-steel: #2f5773;
  --color-steel-light: #4f7a99;
  --color-white: #ffffff;
  --color-off-white: #f5f7f9;
  --color-anthracite: #23272b;
  --color-gray: #5b6570;
  --color-gray-light: #e3e7eb;
  --color-gold: #a9824f;

  /* Texte */
  --text-body: var(--color-anthracite);
  --text-muted: var(--color-gray);

  /* Typo */
  --font-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;

  /* Rythme */
  --radius: 4px;
  --shadow-sm: 0 1px 3px rgba(7, 24, 41, 0.08);
  --shadow-md: 0 4px 16px rgba(7, 24, 41, 0.12);
  --container: 1140px;
  --section-pad: 4.5rem;
}

/* --- Reset minimal ------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
input, textarea { font: inherit; }

body {
  font-family: var(--font-base);
  color: var(--text-body);
  background: var(--color-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* --- Utilitaires ---------------------------------------------------------*/
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.section { padding-block: var(--section-pad); }
.section--alt { background: var(--color-off-white); }
.section--dark {
  background: var(--color-navy);
  color: rgba(255, 255, 255, 0.92);
}
.section--anthracite {
  background: var(--color-anthracite);
  color: rgba(255, 255, 255, 0.92);
}

.eyebrow {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 0.6rem;
}

.section-head {
  max-width: 640px;
  margin-bottom: 2.75rem;
}
.section-head h2 {
  font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.15rem);
  font-weight: 700;
  color: var(--color-navy);
  letter-spacing: -0.01em;
}
.section--dark .section-head h2,
.section--anthracite .section-head h2 { color: var(--color-white); }

.section-head p {
  margin-top: 0.75rem;
  color: var(--text-muted);
  font-size: 1.05rem;
}
.section--dark .section-head p,
.section--anthracite .section-head p { color: rgba(255, 255, 255, 0.72); }

.icon {
  width: 1.5rem;
  height: 1.5rem;
  stroke: currentColor;
  fill: none;
  flex-shrink: 0;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--color-white);
  color: var(--color-navy);
  padding: 0.6rem 1rem;
  border-radius: var(--radius);
  font-weight: 600;
  z-index: 1000;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 1rem; }

:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

/* --- Boutons -------------------------------------------------------------*/
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn .icon { width: 1.1rem; height: 1.1rem; }

.btn--primary {
  background: var(--color-gold);
  color: var(--color-navy-dark);
}
.btn--primary:hover { background: #bd9a68; }

.btn--outline {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.55);
}
.btn--outline:hover {
  border-color: var(--color-white);
  background: rgba(255, 255, 255, 0.08);
}

.btn--dark {
  background: var(--color-navy);
  color: var(--color-white);
}
.btn--dark:hover { background: var(--color-navy-dark); }

.btn--block { width: 100%; }

/* --- Header ----------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-navy);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.85rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--color-white);
}
.brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  flex-shrink: 0;
}
.brand-mark .icon { width: 1.3rem; height: 1.3rem; stroke: var(--color-gold); }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-name { font-weight: 700; font-size: 1.02rem; letter-spacing: 0.01em; }
.brand-title {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.65);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius);
  color: var(--color-white);
}
.nav-toggle .icon { width: 1.4rem; height: 1.4rem; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.site-nav {
  position: fixed;
  inset: 4rem 0 0 0;
  background: var(--color-navy);
  padding: 1.5rem 1.25rem 2rem;
  overflow-y: auto;
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}
.site-nav.is-open {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}
.site-nav ul {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.site-nav a {
  display: block;
  padding: 0.85rem 0.25rem;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.site-nav .btn { margin-top: 1.25rem; }

.site-nav a.nav-link--muted {
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
}
.site-nav a.nav-link--muted:hover { color: rgba(255, 255, 255, 0.8); }

/* --- Hero --------------------------------------------------------------*/
.hero {
  position: relative;
  background: linear-gradient(160deg, var(--color-navy) 0%, var(--color-navy-dark) 100%);
  color: var(--color-white);
  overflow: hidden;
  padding-block: 3.5rem 6rem;
}
.hero-watermark {
  position: absolute;
  right: -4rem;
  top: -3rem;
  width: 22rem;
  height: 22rem;
  opacity: 0.06;
  stroke: var(--color-white);
  pointer-events: none;
}
.hero .container { position: relative; }

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-headline {
  font-size: clamp(1.9rem, 1.5rem + 3.5vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.08;
  max-width: 20ch;
}

.hero-signature {
  font-size: clamp(1rem, 0.9rem + 0.4vw, 1.2rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 0.85rem;
  margin-bottom: 2rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1.5rem;
}
.hero-badge .icon { width: 0.95rem; height: 0.95rem; stroke: var(--color-gold); }

.hero-lead {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.78);
  max-width: 46ch;
  margin-inline: auto;
  margin-top: 1.1rem;
  margin-bottom: 1.75rem;
  text-align: center;
}

.hero-zone {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0.4rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  margin-bottom: 2.25rem;
  text-align: left;
  max-width: 28ch;
  margin-inline: auto;
}
.hero-zone .icon { margin-top: 0.2em; }
.hero-zone .icon { width: 1em; height: 1em; stroke: var(--color-gold); flex-shrink: 0; }

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

.hero-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  width: 100%;
  height: auto;
  color: var(--color-white);
}

/* --- À propos ------------------------------------------------------------*/
.about-grid {
  display: grid;
  gap: 2.5rem;
}
.about-text p { color: var(--text-muted); font-size: 1.02rem; }
.about-text p + p { margin-top: 1rem; }

.about-highlights {
  display: grid;
  gap: 1rem;
}
.highlight-item {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  padding: 1.1rem;
  background: var(--color-off-white);
  border: 1px solid var(--color-gray-light);
  border-radius: var(--radius);
}
.highlight-item .icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  background: var(--color-navy);
  flex-shrink: 0;
}
.highlight-item .icon-wrap .icon { width: 1.25rem; height: 1.25rem; stroke: var(--color-gold); }
.highlight-item h3 { font-size: 0.98rem; font-weight: 700; color: var(--color-navy); margin-bottom: 0.2rem; }
.highlight-item p { font-size: 0.9rem; color: var(--text-muted); }

/* --- Services --------------------------------------------------------- */
.services-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-bottom: 2.5rem;
}
.service-card {
  background: var(--color-white);
  border: 1px solid var(--color-gray-light);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.service-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.service-card .icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius);
  background: var(--color-navy);
  margin-bottom: 1.1rem;
}
.service-card .icon-wrap .icon { width: 1.5rem; height: 1.5rem; stroke: var(--color-gold); }
.service-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--color-navy); margin-bottom: 0.5rem; }
.service-card p { font-size: 0.92rem; color: var(--text-muted); }

.expertise-panel {
  background: var(--color-navy);
  color: var(--color-white);
  border-radius: var(--radius);
  padding: 2.25rem;
  display: grid;
  gap: 1.75rem;
}
.expertise-panel h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.6rem; }
.expertise-panel > p { color: rgba(255, 255, 255, 0.75); max-width: 60ch; }
.expertise-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.6rem 1.5rem;
}
.expertise-list li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.88);
  padding-block: 0.15rem;
}
.expertise-list .icon { width: 1rem; height: 1rem; stroke: var(--color-gold); }
.expertise-note {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.25rem;
}

/* --- Galerie -------------------------------------------------------------*/
.gallery-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
.gallery-item {
  border: 1px solid var(--color-gray-light);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-off-white);
  box-shadow: var(--shadow-sm);
}
.gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.gallery-caption {
  padding: 0.65rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-navy);
  border-top: 1px solid var(--color-gray-light);
}

/* --- Zone d'intervention ----------------------------------------------- */
.zone-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.zone-card {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
}
.zone-card .icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}
.zone-card .icon-wrap .icon { width: 1.15rem; height: 1.15rem; stroke: var(--color-gold); }
.zone-card h3 { font-size: 1.05rem; font-weight: 700; }

.zone-footnote {
  margin-top: 2rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

/* --- Agréments ----------------------------------------------------------*/
.badges-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.badge-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--color-white);
  border: 1px solid var(--color-gray-light);
  border-top: 3px solid var(--color-gold);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.badge-card .icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  background: var(--color-navy);
  margin-inline: auto;
  margin-bottom: 1.1rem;
}
.badge-card .icon-wrap .icon { width: 1.5rem; height: 1.5rem; stroke: var(--color-gold); }
.badge-card h3 { font-size: 1rem; font-weight: 700; color: var(--color-navy); margin-bottom: 0.4rem; }
.badge-card p { font-size: 0.87rem; color: var(--text-muted); }

/* --- Contact ------------------------------------------------------------*/
.contact-grid {
  display: grid;
  gap: 2.5rem;
}
.contact-info {
  display: grid;
  gap: 1rem;
  align-content: start;
}
.contact-item {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 1.25rem;
  background: var(--color-off-white);
  border: 1px solid var(--color-gray-light);
  border-radius: var(--radius);
}
.contact-item .icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--color-navy);
  flex-shrink: 0;
}
.contact-item .icon-wrap .icon { width: 1.25rem; height: 1.25rem; stroke: var(--color-gold); }
.contact-item span { display: block; font-size: 0.8rem; color: var(--text-muted); }
.contact-item strong { display: block; font-size: 1.02rem; color: var(--color-navy); }

.contact-note {
  padding: 1.25rem;
  border: 1px dashed var(--color-gray-light);
  border-radius: var(--radius);
  font-size: 0.88rem;
  color: var(--text-muted);
}

.contact-form {
  background: var(--color-white);
  border: 1px solid var(--color-gray-light);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: 1.1rem;
}
.form-field { display: grid; gap: 0.4rem; }
.form-field label { font-size: 0.85rem; font-weight: 600; color: var(--color-navy); }
.form-field input,
.form-field textarea {
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--color-gray-light);
  border-radius: var(--radius);
  background: var(--color-off-white);
  color: var(--text-body);
}
.form-field input:focus,
.form-field textarea:focus {
  outline: 2px solid var(--color-gold);
  outline-offset: 1px;
  background: var(--color-white);
}
.form-status {
  font-size: 0.85rem;
  color: var(--color-steel);
  min-height: 1.2em;
}

/* --- Footer --------------------------------------------------------------*/
.site-footer {
  background: var(--color-anthracite);
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
}

.footer-top {
  display: grid;
  gap: 2.25rem;
  padding-block: 3.5rem 2.5rem;
}

.footer-brand .brand { color: var(--color-white); }
.footer-tagline {
  margin-top: 1rem;
  max-width: 32ch;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.55);
}

.footer-col { display: grid; gap: 0.75rem; align-content: start; }
.footer-heading {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 0.25rem;
}
.footer-col a {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.72);
  width: fit-content;
}
.footer-col a:hover { color: var(--color-white); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-block: 1.25rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.45);
}

/* --- Page mentions légales ------------------------------------------------*/
.legal-page { padding-block: 3.5rem 5rem; }
.legal-page h1 {
  font-size: 1.9rem;
  color: var(--color-navy);
  margin-bottom: 0.5rem;
}
.legal-page .updated { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 2.5rem; }
.legal-page h2 {
  font-size: 1.15rem;
  color: var(--color-navy);
  margin-top: 2.25rem;
  margin-bottom: 0.6rem;
}
.legal-page p, .legal-page li { color: var(--text-muted); font-size: 0.98rem; }
.legal-page ul { list-style: disc; padding-left: 1.25rem; display: grid; gap: 0.35rem; }
.legal-page a { color: var(--color-steel); text-decoration: underline; }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 2rem;
  color: var(--color-steel);
  font-weight: 600;
  font-size: 0.92rem;
}
.back-link .icon { width: 1rem; height: 1rem; }

/* ==========================================================================
   Breakpoints
   ========================================================================== */

/* Tablette */
@media (min-width: 640px) {
  :root { --section-pad: 5.5rem; }
  .hero-actions .btn { width: auto; }
  .badges-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: repeat(2, 1fr); }

  .hero-zone {
    white-space: nowrap;
    max-width: none;
    align-items: center;
    font-size: 0.95rem;
  }
  .hero-zone .icon { margin-top: 0; }

  .hero-headline {
    font-size: 2.15rem;
    max-width: none;
    white-space: nowrap;
  }
}

/* Desktop */
@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .site-nav {
    position: static;
    inset: auto;
    background: transparent;
    padding: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
    overflow: visible;
  }
  .site-nav ul {
    flex-direction: row;
    align-items: center;
    gap: 0.25rem;
  }
  .site-nav a {
    border-bottom: none;
    padding: 0.5rem 0.9rem;
    font-size: 0.92rem;
  }
  .site-nav .btn { margin-top: 0; margin-left: 0.75rem; }
  .nav-inner {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .footer-top { grid-template-columns: 1.4fr repeat(3, 1fr); }

  .hero-headline { font-size: 3.1rem; }
  .hero-lead { max-width: 68ch; }

  .about-grid { grid-template-columns: 1.1fr 0.9fr; align-items: start; }
  .contact-grid { grid-template-columns: 0.85fr 1.15fr; }
  .badges-grid { grid-template-columns: repeat(4, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .expertise-panel { grid-template-columns: 0.9fr 1.6fr; align-items: start; }
  .zone-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1280px) {
  .hero-headline { font-size: 4rem; }
}
