/* IBS Étanchéité — feuille de style commune */

@font-face { font-family: "Poppins"; src: url("Poppins-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("Poppins-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("Poppins-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --navy: #0E2A47;
  --navy-2: #163A5E;
  --cyan: #2EC4D6;
  --teal: #0A6F7C;
  --ink: #0E2A47;
  --muted: #4A5F73;
  --bg: #FFFFFF;
  --bg-soft: #F1F5F8;
  --line: #DCE4EB;
  --radius: 14px;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--teal); }
a:hover { color: var(--navy); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; font-weight: 700; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section--soft { background: var(--bg-soft); }
.section--navy { background: var(--navy); color: #fff; }
.section--navy a { color: var(--cyan); }

.eyebrow {
  display: inline-block;
  font-size: .78rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 14px;
}
.section--navy .eyebrow, .hero .eyebrow { color: var(--cyan); }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 62ch; }
.section--navy .lead { color: #C7D5E2; }

/* Les 3 couches : signature graphique reprise du logo */
.layers { display: flex; flex-direction: column; gap: 4px; width: 72px; margin: 0 0 22px; }
.layers span { display: block; height: 6px; border-radius: 3px; background: var(--navy); }
.layers span:nth-child(2) { height: 5px; opacity: .55; }
.layers span:nth-child(3) { height: 4px; opacity: .25; }
.section--navy .layers span, .hero .layers span { background: #fff; }
.layers--center { margin-left: auto; margin-right: auto; }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 12px 26px; border-radius: 999px;
  font: inherit; font-weight: 500; font-size: 1rem; text-decoration: none;
  border: 2px solid transparent; cursor: pointer; transition: background .2s, color .2s, border-color .2s;
}
.btn--primary { background: var(--cyan); color: var(--navy); }
.btn--primary:hover { background: #fff; color: var(--navy); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-2); color: #fff; }
.btn--ghost { border-color: currentColor; color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--navy); }
.btn--outline { border-color: var(--navy); color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: #fff; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* En-tête */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 46px; width: auto; }
.brand span { font-size: .72rem; font-weight: 500; letter-spacing: .26em; color: var(--teal); }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .97rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--teal); }
.nav .btn { color: #fff; padding: 10px 22px; min-height: 44px; }
.nav .btn:hover { color: #fff; }
.nav-toggle { display: none; width: 46px; height: 46px; border: 0; background: none; padding: 0; cursor: pointer; color: var(--navy); }
.nav-toggle svg { width: 28px; height: 28px; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 20px;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 14px; border-bottom: 0; }
  .brand span { display: none; }
}

/* Héros */
.hero { position: relative; color: #fff; background: var(--navy); overflow: hidden; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 62%; }
.hero::after { content: ""; position: absolute; inset: 0; background: rgba(9, 28, 48, .62); }
.hero .wrap { position: relative; z-index: 1; padding-top: clamp(90px, 14vw, 170px); padding-bottom: clamp(80px, 12vw, 150px); }
.hero h1 { max-width: 15ch; }
.hero p { font-size: 1.15rem; max-width: 52ch; color: #E3ECF3; margin-bottom: 30px; }
.hero--page .wrap { padding-top: clamp(70px, 10vw, 120px); padding-bottom: clamp(60px, 8vw, 96px); }
.hero--page h1 { max-width: 20ch; }

/* Bandeau de confiance */
.trust { background: var(--navy); color: #fff; border-top: 1px solid rgba(255,255,255,.1); }
.trust ul { list-style: none; margin: 0; padding: 22px 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.trust li { display: flex; align-items: center; gap: 12px; font-size: .93rem; font-weight: 500; }
.trust svg { width: 26px; height: 26px; flex: none; color: var(--cyan); }
@media (max-width: 900px) { .trust ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .trust ul { grid-template-columns: 1fr; } }

/* Chiffres */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 40px; }
.stat { border-top: 3px solid var(--navy); padding-top: 18px; }
.stat strong { display: block; font-size: clamp(2.2rem, 4.5vw, 3rem); line-height: 1; letter-spacing: -0.03em; }
.stat span { color: var(--muted); font-size: .98rem; }
@media (max-width: 700px) { .stats { grid-template-columns: 1fr; } }

/* Grille services */
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid--3, .grid--2 { grid-template-columns: 1fr; } }

.card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit;
  transition: transform .2s, border-color .2s;
}
a.card:hover { transform: translateY(-3px); border-color: var(--cyan); color: inherit; }
.card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.card__body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card__body p { color: var(--muted); font-size: .96rem; margin: 0; }
.card__more { margin-top: auto; padding-top: 12px; font-weight: 500; font-size: .93rem; color: var(--teal); }

/* Pour qui */
.audience { padding: 32px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.audience h3 { font-size: 1.35rem; }
.check { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }
.check li { position: relative; padding-left: 30px; }
.check li::before {
  content: ""; position: absolute; left: 0; top: .45em; width: 16px; height: 16px; border-radius: 50%;
  background: var(--cyan) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.2l2.6 2.6L12 5.4' fill='none' stroke='%230E2A47' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* Étapes */
.steps { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; counter-reset: step; }
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step, decimal-leading-zero); display: block; font-size: 2.4rem; font-weight: 700;
  color: var(--cyan); line-height: 1; margin-bottom: 14px;
}
.steps p { color: #C7D5E2; font-size: .96rem; margin: 0; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* Mosaïque photos */
.mosaic { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 36px; }
.mosaic img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 10px; }
@media (max-width: 760px) { .mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Deux colonnes texte + image */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.split img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.split--reverse > :first-child { order: 2; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split--reverse > :first-child { order: 0; } }

.service + .service { margin-top: clamp(64px, 8vw, 104px); }
.service { scroll-margin-top: 100px; }

/* Bandeau CTA */
.cta { background: var(--navy); color: #fff; border-radius: 20px; padding: clamp(36px, 5vw, 60px); display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.cta h2 { margin: 0 0 6px; }
.cta p { margin: 0; color: #C7D5E2; }

/* Formulaire */
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 500; font-size: .93rem; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink); background: #fff;
  border: 1.5px solid #B9C7D4; border-radius: 10px; padding: 12px 14px; min-height: 50px; width: 100%;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(46,196,214,.45); border-color: var(--teal); }
.consent { grid-column: 1 / -1; display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; color: var(--muted); }
.consent input { width: 22px; height: 22px; margin-top: 2px; flex: none; accent-color: var(--navy); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.req { color: #B3261E; }
.notice { grid-column: 1 / -1; padding: 14px 18px; border-radius: 10px; background: #FDECEA; color: #8C1D18; display: none; }
.notice.is-visible { display: block; }
@media (max-width: 640px) { .form { grid-template-columns: 1fr; } }

.contact-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 32px; }
.contact-card a { color: #fff; text-decoration: none; }
.contact-card a:hover { color: var(--cyan); }
.contact-card dl { margin: 0; display: grid; gap: 18px; }
.contact-card dt { font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--cyan); }
.contact-card dd { margin: 2px 0 0; font-size: 1.05rem; font-weight: 500; }

/* Texte légal */
.prose { max-width: 780px; }
.prose h2 { font-size: 1.4rem; margin-top: 1.8em; }
.prose p, .prose li { color: var(--muted); }

/* Pied de page */
.site-footer { background: #0A1F35; color: #C7D5E2; padding: 64px 0 28px; font-size: .95rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--cyan); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 36px; }
.footer-grid img { height: 104px; width: auto; margin-bottom: 16px; }
.footer-grid h3 { color: #fff; font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; font-size: .85rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* Bouton d'appel flottant (mobile) */
.call-fab { display: none; }
@media (max-width: 700px) {
  .call-fab {
    display: inline-flex; position: fixed; right: 16px; bottom: 16px; z-index: 60;
    width: 58px; height: 58px; border-radius: 50%; background: var(--cyan); color: var(--navy);
    align-items: center; justify-content: center; box-shadow: 0 6px 20px rgba(9,28,48,.3);
  }
  .call-fab svg { width: 26px; height: 26px; }
}

:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
