/* ===== Honor'hydraulic — palette issue du logo ===== */
:root {
  --navy:        #1B2548;   /* bleu marine du logo */
  --navy-2:      #243366;
  --blue:        #1E73C8;   /* bleu vague du logo */
  --blue-light:  #4d9be0;
  --ink:         #1c2536;
  --muted:       #5b6473;
  --bg:          #ffffff;
  --bg-alt:      #f4f7fb;
  --line:        #e3e9f2;
  --radius:      16px;
  --shadow:      0 18px 40px -20px rgba(27, 37, 72, .35);
  --shadow-sm:   0 6px 18px -10px rgba(27, 37, 72, .3);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .brand { font-family: 'Poppins', sans-serif; line-height: 1.15; }

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

a { color: inherit; text-decoration: none; }

.container { width: min(1140px, 92%); margin-inline: auto; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem;
  font-family: 'Poppins', sans-serif; font-weight: 600; font-size: .95rem;
  padding: .85rem 1.6rem; border-radius: 999px;
  border: 2px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: #1a64b0; }
.btn-ghost { border-color: rgba(255,255,255,.5); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-light { background: #fff; color: var(--navy); }
.btn-nav { padding: .55rem 1.2rem; background: var(--blue); color: #fff; }
.btn-nav:hover { background: #1a64b0; }

/* Bouton de langue FR / EN */
.lang-toggle {
  display: inline-flex; align-items: center; gap: .4rem;
  font-family: 'Poppins', sans-serif; font-weight: 600; font-size: .85rem;
  color: var(--navy); background: transparent;
  border: 1.5px solid var(--line); border-radius: 999px;
  padding: .45rem .85rem; cursor: pointer;
  transition: border-color .2s, color .2s, background .2s;
}
.lang-toggle:hover { border-color: var(--blue); color: var(--blue); }
.lang-toggle svg { width: 17px; height: 17px; }
.lang-toggle-mobile { margin: .9rem 4%; justify-content: center; }
.btn-block { width: 100%; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: .7rem 0; }
.brand-logo { height: 46px; }
.nav-links { display: flex; align-items: center; gap: 1.8rem; }
.nav-links a { font-weight: 500; color: var(--navy); font-size: .98rem; }
.nav-links a:not(.btn):hover { color: var(--blue); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 26px; height: 2px; background: var(--navy); transition: .25s; }
.mobile-menu { display: none; flex-direction: column; background: #fff; border-bottom: 1px solid var(--line); }
.mobile-menu a { padding: .9rem 4%; border-top: 1px solid var(--line); color: var(--navy); font-weight: 500; }
.mobile-menu.open { display: flex; }

/* ===== Hero ===== */
.hero {
  position: relative; isolation: isolate;
  background:
    linear-gradient(100deg, rgba(12,18,38,.8) 0%, rgba(12,18,38,.46) 40%, rgba(12,18,38,.2) 72%, rgba(12,18,38,.18) 100%),
    url('assets/hero-honore-wide.jpg') center 25% / cover no-repeat,
    #11203f;
  color: #fff; overflow: hidden;
  min-height: 78vh;
  display: flex; align-items: flex-start;
  padding: clamp(4rem, 9vw, 7.5rem) 0 9rem;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: -1; opacity: .12;
  background-image: radial-gradient(circle at 1px 1px, #fff 1px, transparent 0);
  background-size: 34px 34px;
}
.hero-content { position: relative; z-index: 2; text-align: left; }
.hero-content .eyebrow,
.hero h1,
.hero-sub { max-width: 720px; }
.eyebrow {
  text-transform: uppercase; letter-spacing: .18em; font-size: .8rem;
  font-weight: 600; color: var(--blue-light); margin-bottom: 1.1rem;
}
.eyebrow-dark { color: var(--blue); }
.hero h1 { font-size: clamp(2.2rem, 5.2vw, 3.7rem); font-weight: 700; letter-spacing: -.5px; }
.hero h1 span { color: var(--blue-light); }
.hero-sub { margin: 1.5rem 0 2.2rem; font-size: 1.12rem; color: rgba(255,255,255,.85); max-width: 620px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero-stats {
  list-style: none; display: flex; flex-wrap: wrap; gap: 2.5rem;
  margin-top: 3rem; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,.15);
}
.hero-stats strong { display: block; font-family: 'Poppins'; font-size: 1.7rem; color: #fff; }
.hero-stats span { font-size: .85rem; color: rgba(255,255,255,.7); text-transform: uppercase; letter-spacing: .08em; }
.hero-wave { position: absolute; bottom: -1px; left: 0; width: 100%; line-height: 0; z-index: 3; }
.hero-wave svg { width: 100%; height: 110px; }
.hero-wave path { fill: var(--bg); }

/* ===== Sections ===== */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 680px; margin: 0 auto 3rem; text-align: center; }
.section-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); color: var(--navy); }
.section-lead { color: var(--muted); margin-top: 1rem; font-size: 1.08rem; }
h2 { letter-spacing: -.3px; }

/* ===== Split ===== */
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split-media {
  background: linear-gradient(160deg, #fff, var(--bg-alt));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2.5rem; box-shadow: var(--shadow); display: grid; place-items: center;
}
.split-media img { max-height: 260px; width: auto; }

/* Variante « photo » : portrait du fondateur + seconde photo en médaillon */
.split-media-photo {
  position: relative; padding: 0; overflow: visible;
  background: none; border: 0; box-shadow: none;
}
/* Photo principale : le polo Honor'hydraulic vu de dos (logo + téléphone) */
.split-media-photo .portrait-main {
  width: 100%; max-height: none; height: clamp(360px, 50vw, 540px);
  object-fit: cover; object-position: center 5%;
  border-radius: var(--radius); box-shadow: var(--shadow);
}
/* Médaillon : portrait de face d'Honoré */
.split-media-photo .portrait-badge {
  position: absolute; right: -14px; bottom: -26px;
  width: clamp(110px, 16vw, 150px); height: clamp(110px, 16vw, 150px);
  max-height: none; object-fit: cover; object-position: center;
  border-radius: 18px; border: 5px solid #fff; box-shadow: var(--shadow);
}
@media (max-width: 860px) {
  .split-media-photo { margin-bottom: 2rem; }
  .split-media-photo .portrait-badge { right: 4px; bottom: -22px; }
}
.split-text h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); color: var(--navy); margin-bottom: 1.2rem; }
.split-text p { color: var(--muted); margin-bottom: 1rem; }
.split-text strong { color: var(--ink); }

.check-list { list-style: none; margin-top: 1.4rem; display: grid; gap: .7rem; }
.check-list li { position: relative; padding-left: 1.9rem; color: var(--ink); font-weight: 500; }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 1.35rem; height: 1.35rem; border-radius: 50%;
  background: var(--blue); color: #fff; font-size: .75rem;
  display: grid; place-items: center; font-weight: 700;
}

/* ===== Cards ===== */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.5rem; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem 1.7rem; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: #c9dbf0; }
.card-icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: linear-gradient(160deg, var(--navy), var(--blue));
  display: grid; place-items: center; margin-bottom: 1.2rem; color: #fff;
}
.card-icon svg { width: 28px; height: 28px; }
.card h3 { font-size: 1.18rem; color: var(--navy); margin-bottom: .55rem; }
.card p { color: var(--muted); font-size: .96rem; }

/* ===== Galerie / Réalisations ===== */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.1rem;
}
.gal-item {
  position: relative; margin: 0; cursor: pointer;
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); background: var(--navy);
}
.gal-item img {
  width: 100%; height: 240px; object-fit: cover; display: block;
  transition: transform .5s ease;
}
.gal-item:hover img { transform: scale(1.06); }
.gal-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1.4rem .9rem .7rem;
  font-family: 'Poppins', sans-serif; font-weight: 600; font-size: .98rem; color: #fff;
  background: linear-gradient(to top, rgba(20,30,60,.85), transparent);
}
.gal-item::after {
  content: "⤢"; position: absolute; top: .6rem; right: .7rem;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,.9); color: var(--navy);
  display: grid; place-items: center; font-size: 1rem;
  opacity: 0; transform: scale(.8); transition: .2s;
}
.gal-item:hover::after { opacity: 1; transform: scale(1); }

/* Pastille « n photos » sur les albums de plusieurs images */
.gal-count {
  position: absolute; top: .6rem; left: .7rem;
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .3rem .65rem; border-radius: 999px;
  background: rgba(13, 20, 42, .72); color: #fff;
  font-family: 'Poppins', sans-serif; font-size: .78rem; font-weight: 600;
  backdrop-filter: blur(4px);
}
.gal-count svg { width: 14px; height: 14px; }

/* Visionneuse plein écran (lightbox) */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(13, 20, 42, .92);
  display: none; place-items: center; padding: 4vw;
  backdrop-filter: blur(4px);
}
.lightbox.open { display: grid; }
.lightbox img { max-width: 92vw; max-height: 78vh; border-radius: 12px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.7); margin-inline: auto; }
.lightbox-cap { color: #fff; text-align: center; margin-top: 1rem; font-family: 'Poppins'; font-weight: 600; }
.lightbox-counter {
  color: rgba(255,255,255,.65); text-align: center; margin-top: .25rem;
  font-size: .85rem; letter-spacing: .06em;
}
/* Pellicule des miniatures de l'album, sous la grande image */
.lightbox-strip {
  display: flex; gap: .5rem; justify-content: center; flex-wrap: wrap;
  margin-top: 1.1rem; max-width: 92vw;
}
.lightbox-strip button {
  width: 60px; height: 46px; padding: 0; border: 2px solid transparent;
  border-radius: 8px; overflow: hidden; cursor: pointer; background: none;
  opacity: .55; transition: opacity .2s, border-color .2s;
}
.lightbox-strip button img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; box-shadow: none; max-height: none; }
.lightbox-strip button:hover { opacity: .9; }
.lightbox-strip button[aria-current="true"] { opacity: 1; border-color: var(--blue-light); }
@media (max-width: 600px) { .lightbox-strip { display: none; } }
.lightbox-close {
  position: absolute; top: 1.2rem; right: 1.4rem;
  width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.12); color: #fff; font-size: 1.5rem; line-height: 1;
}
.lightbox-close:hover { background: rgba(255,255,255,.25); }
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.12); color: #fff; font-size: 1.6rem;
}
.lightbox-nav:hover { background: rgba(255,255,255,.25); }
.lightbox-prev { left: 1.4rem; }
.lightbox-next { right: 1.4rem; }
@media (max-width: 600px) { .lightbox-nav { width: 42px; height: 42px; } }

/* ===== Brands ===== */
.brands {
  list-style: none; display: flex; flex-wrap: wrap; justify-content: center;
  gap: 1rem 1.2rem;
}
.brands li {
  font-family: 'Poppins'; font-weight: 600; font-size: 1.15rem; color: var(--navy);
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: .8rem 2rem; box-shadow: var(--shadow-sm);
}
.brand-etc { color: var(--blue); }

/* ===== CTA band ===== */
.cta-band {
  background:
    radial-gradient(800px 400px at 20% 0%, rgba(30,115,200,.5), transparent 60%),
    linear-gradient(135deg, var(--navy), var(--navy-2));
  color: #fff;
}
.cta-inner { text-align: center; padding: clamp(3rem, 6vw, 4.5rem) 0; }
.cta-inner h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.cta-inner p { color: rgba(255,255,255,.8); margin: 1rem auto 2rem; max-width: 540px; }

/* ===== Contact ===== */
.contact-list { list-style: none; display: grid; gap: 1.1rem; margin: 1.6rem 0; }
.contact-list li { display: flex; gap: 1rem; align-items: flex-start; color: var(--ink); }
.contact-list a:hover { color: var(--blue); }
.contact-ico {
  width: 42px; height: 42px; flex: none; border-radius: 12px;
  background: var(--bg-alt); border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--blue);
}
.contact-ico svg { width: 20px; height: 20px; }
.siret { color: var(--muted); font-size: .9rem; }

.contact-form {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem; box-shadow: var(--shadow);
}
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; font-size: .9rem; color: var(--navy); margin-bottom: .4rem; }
.field input, .field textarea {
  width: 100%; padding: .8rem 1rem; border: 1px solid var(--line);
  border-radius: 12px; font: inherit; color: var(--ink);
  background: var(--bg-alt); transition: border .2s, box-shadow .2s, background .2s;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); background: #fff;
  box-shadow: 0 0 0 4px rgba(30,115,200,.12);
}
.field textarea { resize: vertical; }
.form-note { margin-top: 1rem; padding: .8rem 1rem; border-radius: 10px; font-size: .92rem; font-weight: 500; }
.form-note.ok { background: #e7f6ee; color: #1c7c4a; }
.form-note.err { background: #fdecec; color: #b22c2c; }
.field .opt { font-weight: 400; color: var(--muted); font-size: .82rem; }

.btn-whatsapp {
  margin: .4rem 0 1.4rem; background: #25D366; color: #08381c;
  box-shadow: var(--shadow-sm);
}
.btn-whatsapp:hover { background: #1fbb59; }
.btn-whatsapp svg { width: 20px; height: 20px; }

/* ===== Footer ===== */
.site-footer { background: var(--navy); color: rgba(255,255,255,.75); }
.footer-inner { text-align: center; padding: 3rem 0; display: grid; gap: 1rem; justify-items: center; }
/* logo PNG transparent rendu blanc pour rester lisible sur le fond marine */
.footer-logo { height: 50px; filter: brightness(0) invert(1); }
.footer-tag { font-family: 'Poppins'; color: #fff; }
.footer-copy { font-size: .85rem; }

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .split { grid-template-columns: 1fr; }
  .split-media { order: -1; }
  /* Sur mobile : on centre le contenu du hero */
  .hero-content { text-align: center; }
  .hero-content .eyebrow,
  .hero h1,
  .hero-sub { max-width: 100%; margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-stats { gap: 1.6rem 2rem; justify-content: center; }
}
