:root {
  --blue: #2d437b;
  --blue-dark: #1d2b4e;
  --orange: #ffa903;
  --text: #555;
  --container: 1170px;
}

@font-face {
  font-family: "Balham";
  src: url("assets/fonts/balham-webfont.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: #333; background: #fff; font-family: Verdana, Arial, sans-serif; font-size: 14px; line-height: 1.55; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--orange); }
img { max-width: 100%; height: auto; }
button, input, textarea { font: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

.site-header { position: fixed; z-index: 1000; inset: 0 0 auto; height: 85px; background: rgb(255 255 255 / 70%); border-bottom: 1px solid #d4d4d4; box-shadow: 0 1px 4px rgb(0 0 0 / 18%); transition: height .3s linear, background-color .3s linear; }
.nav-shell { width: min(var(--container), calc(100% - 40px)); height: 85px; margin: 0 auto; display: flex; align-items: stretch; transition: height .3s linear; }
.brand { width: 270px; display: flex; align-items: center; flex: 0 0 auto; }
.brand img { width: 256px; height: 52px; object-fit: contain; object-position: left center; transition: width .3s linear, height .3s linear, transform .3s linear; }
.main-nav { margin-left: auto; display: flex; align-items: stretch; }
.main-nav > a, .nav-products > a { padding: 30px 20px 29px; margin-top: 6px; display: flex; align-items: center; color: var(--blue); font: 700 13px/20px "Balham", "Open Sans", sans-serif; text-transform: uppercase; white-space: nowrap; transition: padding .3s linear, margin .3s linear, color .35s ease, background-color .35s ease; }
.main-nav > a:hover, .nav-products:hover > a { color: var(--blue); background: transparent; }
.main-nav a.active, .main-nav a.active:hover { color: #fff; background: var(--blue); }
.nav-products { position: relative; }
.submenu { position: absolute; left: 0; top: 85px; width: 310px; opacity: 0; visibility: hidden; transform: translateY(-8px); background: #fff; box-shadow: 0 8px 22px rgb(0 0 0 / 20%); transition: .2s; }
.nav-products:hover .submenu, .nav-products:focus-within .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.submenu a { display: block; padding: 10px 15px; color: var(--blue); border-bottom: 1px solid #eee; background: #fff; font: 400 13px/18px "Balham", sans-serif; text-transform: uppercase; transition: color .35s ease, background-color .35s ease; }
.submenu a:hover { color: #333; background: #ccc; }
.site-header.compact { height: 60px; background: rgb(255 255 255 / 86%); }
.site-header.compact .nav-shell { height: 60px; }
.site-header.compact .brand img { width: auto; height: 40px; transform: translateY(-5px); }
.site-header.compact .main-nav > a,
.site-header.compact .nav-products > a { margin-top: 3px; padding-top: 19px; padding-bottom: 18px; }
.site-header.compact .submenu { top: 60px; }
.menu-toggle { display: none; align-self: center; margin-left: auto; width: 50px; height: 44px; padding: 12px; border: 0; border-radius: 4px; background: var(--blue); cursor: pointer; }
.menu-toggle span { display: block; height: 2px; margin: 4px 0; background: #fff; }

#app { min-height: 650px; padding-top: 0; }
.container { width: min(var(--container), calc(100% - 40px)); margin: 0 auto; }
.content-section { padding: 133px 0 58px; border-top: 5px solid var(--blue); background: #fff; }
.page-title-image { display: block; width: 470px; margin: 0 0 26px; }
.page-copy { font-size: 15px; }
.page-copy h2 { margin: 30px 0 12px; color: #333; font: 700 25px/1.25 "Open Sans", sans-serif; text-transform: uppercase; }
.page-copy p { margin: 0 0 18px; }
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 50px; align-items: start; }
.media-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; margin: 18px 0 30px; }
.media-row img { box-shadow: 0 2px 8px rgb(0 0 0 / 15%); }

.hero { position: relative; height: 700px; overflow: hidden; background: #20232b url("assets/images/fond.jpg") center / cover no-repeat; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(0 0 0 / 8%), rgb(0 0 0 / 26%)); }
.hero-copy { position: absolute; z-index: 2; inset: 0; color: #fff; font-family: Georgia, serif; pointer-events: none; }
.hero-copy .eyebrow,
.hero-copy .sub,
.hero-copy strong { position: absolute; display: block; transform: translate(-50%, -50%); white-space: nowrap; animation: layerIn .8s ease both; }
.hero-copy .eyebrow { left: 35%; top: 25%; font-size: clamp(25px, 3.2vw, 46px); }
.hero-copy .sub { left: 36%; top: 36%; font-size: clamp(18px, 2vw, 30px); animation-delay: .08s; }
.hero-copy strong { left: 55%; top: 47%; padding: 15px 20px 9px; background: rgb(255 169 3 / 70%); font-size: clamp(31px, 3vw, 42px); line-height: 1; font-weight: 400; animation-delay: .16s; }
.hero-copy strong span { color: var(--blue); }
.scroll-cue { position: absolute; z-index: 3; left: 50%; bottom: 145px; width: 74px; height: 74px; border: 4px solid #fff; border-radius: 50%; transform: translateX(-50%); box-shadow: 0 2px 9px #000; }
.scroll-cue::before { content: ""; position: absolute; left: 19px; top: 15px; width: 29px; height: 29px; border-right: 7px solid #fff; border-bottom: 7px solid #fff; transform: rotate(45deg); }
@keyframes layerIn { from { opacity: 0; transform: translate(calc(-50% + 80px), -50%); } to { opacity: 1; transform: translate(-50%, -50%); } }

.home-content { position: relative; z-index: 4; margin-top: 0; padding-bottom: 48px; border-top: 5px solid var(--blue); background: #fff; }
.feature-grid, .product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.feature-grid { transform: translateY(-141px); margin-bottom: -91px; }
.feature-card { position: relative; display: block; }
.feature-card img { opacity: .8; box-shadow: 0 0 20px #000; transition: opacity .22s ease, box-shadow .22s ease; }
.feature-card .arrow { position: absolute; z-index: 2; left: 50%; top: -89px; width: 89px; transform: translateX(-50%); }
.feature-card .card-image { display: block; width: 249px; max-width: 100%; margin: 0 auto; }
.feature-card:hover img { opacity: .9; box-shadow: 0 0 4px #000; }
.home-heading { width: 100%; margin: 25px 0 30px; }
.home-text h1 { margin: 15px 0; color: #3a3a3a; font: 700 26px/1.25 "Open Sans", sans-serif; text-transform: uppercase; }
.home-text p { font-size: 15px; }

.products-page { min-height: 820px; padding: 86px 0 90px; background: url("assets/images/fondproduits.jpg") center / cover fixed; }
.product-grid { padding-top: 70px; }

.gallery-page { padding: 140px 0 65px; border-top: 5px solid var(--blue); }
.gallery-title { margin: 0 0 26px; color: #333; font: 700 32px/1.2 "Open Sans", sans-serif; text-transform: uppercase; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.filters button { padding: 9px 14px; color: #555; border: 1px solid #ddd; background: #f5f5f5; cursor: pointer; }
.filters button:hover, .filters button.active { color: #fff; border-color: var(--blue); background: var(--blue); }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gallery-item { position: relative; height: 205px; padding: 0; overflow: hidden; border: 0; background: #eee; cursor: zoom-in; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.gallery-item span { position: absolute; inset: auto 0 0; padding: 9px 10px; color: #fff; background: rgb(45 67 123 / 88%); text-align: left; opacity: 0; transform: translateY(100%); transition: .25s; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item:hover span { opacity: 1; transform: translateY(0); }

.contact-hero { height: 440px; display: grid; place-items: center; background: url("assets/images/lesgouttieres2.jpg") center / cover no-repeat; }
.contact-hero h1 { padding: 18px 24px 14px; color: #fff; background: rgb(255 169 3 / 72%); font: 400 clamp(34px, 5vw, 58px)/1 Georgia, serif; }
.contact-hero span { color: var(--blue); }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 35px; padding: 45px 0 55px; }
.contact-details img { width: 256px; margin-bottom: 14px; }
.contact-details p { margin: 7px 0; font-size: 15px; }
.contact-photo { width: 100%; margin-top: 2px; }
.contact-form input, .contact-form textarea { width: 100%; margin: 0 0 13px; padding: 10px 12px; color: #555; border: 1px solid #ccc; background: #fff; outline: 0; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 2px rgb(45 67 123 / 12%); }
.contact-form textarea { min-height: 130px; resize: vertical; }
.consent { display: flex; gap: 9px; align-items: flex-start; margin: 2px 0 16px; font-size: 12px; }
.consent input { width: auto; margin: 3px 0 0; }
.primary-button { padding: 10px 22px; color: #fff; border: 0; background: var(--blue); cursor: pointer; }
.primary-button:hover { background: var(--orange); }
.form-status { margin-top: 12px; color: #26733a; font-weight: 700; }

.zone-map { position: relative; height: 700px; overflow: hidden; background: #e5e3df; }
.map-grid { position: absolute; inset: -80px; opacity: .6; background-color: #e6e3dc; background-image: linear-gradient(25deg, transparent 46%, #c5c2b9 48%, #c5c2b9 51%, transparent 53%), linear-gradient(115deg, transparent 46%, #fff 48%, #fff 51%, transparent 53%); background-size: 90px 90px; transform: rotate(-4deg); }
.map-water { position: absolute; right: -9%; bottom: -25%; width: 48%; height: 115%; background: #b8dce8; border-radius: 55% 0 0 0; transform: rotate(-11deg); }
.map-ring { position: absolute; left: 50%; top: 50%; width: 420px; height: 420px; border: 4px solid rgb(45 67 123 / 42%); border-radius: 50%; background: rgb(45 67 123 / 7%); transform: translate(-50%,-50%); }
.map-pin { position: absolute; left: 50%; top: 47%; width: 38px; height: 38px; border-radius: 50% 50% 50% 0; background: var(--blue); transform: translate(-50%,-50%) rotate(-45deg); box-shadow: 0 4px 10px rgb(0 0 0 / 25%); }
.map-pin::after { content: ""; position: absolute; left: 11px; top: 11px; width: 16px; height: 16px; border-radius: 50%; background: #fff; }
.map-card { position: absolute; left: 50%; top: 18%; width: min(420px, calc(100% - 40px)); padding: 24px; background: #fff; box-shadow: 0 8px 25px rgb(0 0 0 / 22%); transform: translateX(-50%); text-align: center; }
.map-card h1 { margin: 0 0 8px; color: var(--blue); font: 700 25px/1.2 "Open Sans", sans-serif; text-transform: uppercase; }

.legal { padding: 150px 0 65px; border-top: 5px solid var(--blue); }
.legal h1 { color: var(--blue); font-family: "Open Sans", sans-serif; text-transform: uppercase; }

.site-footer { color: #fff; background: var(--blue-dark); }
.footer-grid { width: min(var(--container), calc(100% - 40px)); margin: 0 auto; display: grid; grid-template-columns: 1fr 1.22fr 1.28fr .42fr; gap: 28px; padding: 24px 0 20px; }
.footer-grid section { min-width: 0; }
.footer-title { width: auto; max-height: 42px; margin-bottom: 13px; object-fit: contain; object-position: left center; }
.footer-logo { width: 179px; }
.footer-grid p { margin: 0; line-height: 1.65; }
.newsletter { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.newsletter input { min-width: 0; padding: 9px; border: 0; }
.newsletter button { color: #fff; border: 0; background: var(--orange); cursor: pointer; }
.newsletter small { grid-column: 1 / -1; font-size: 10px; opacity: .8; }
.social-column { text-align: center; }
.social-column .globe { display: block; margin-inline: auto; }
.social-column a img { width: 38px; }
.copyright { padding: 11px 20px; border-top: 1px solid rgb(255 255 255 / 16%); background: #fff; color: #666; text-align: center; font-size: 12px; }
.copyright a { color: var(--blue); font-weight: 700; text-decoration: underline; }

.cookie-banner { position: fixed; z-index: 1200; left: 20px; right: 20px; bottom: 18px; display: flex; justify-content: space-between; gap: 25px; align-items: center; padding: 18px 22px; color: #fff; background: #202020; box-shadow: 0 4px 25px rgb(0 0 0 / 35%); }
.cookie-banner.hidden { display: none; }
.cookie-banner p { margin: 0; }
.cookie-banner button { padding: 9px 15px; border: 1px solid #fff; cursor: pointer; }
.cookie-settings { color: #fff; background: transparent; }
.cookie-accept { margin-left: 8px; color: #fff; border-color: var(--orange) !important; background: var(--orange); }

.lightbox { position: fixed; z-index: 2000; inset: 0; display: none; align-items: center; justify-content: center; color: #fff; background: rgb(0 0 0 / 90%); }
.lightbox.open { display: flex; }
.lightbox figure { width: min(980px, 82vw); margin: 0; text-align: center; }
.lightbox figure img { max-height: 82vh; box-shadow: 0 0 35px #000; }
.lightbox figcaption { margin-top: 10px; }
.lightbox button { position: absolute; color: #fff; border: 0; background: transparent; cursor: pointer; font-size: 58px; }
.lightbox-close { right: 24px; top: 12px; }
.lightbox-prev { left: 22px; top: 48%; }
.lightbox-next { right: 22px; top: 48%; }

@media (max-width: 1100px) {
  .nav-shell { width: calc(100% - 20px); }
  .brand { width: 225px; }
  .brand img { width: 215px; }
  .main-nav > a, .nav-products > a { padding-inline: 9px; font-size: 11px; }
}

@media (max-width: 979px) {
  .site-header { position: relative; height: 85px; }
  .site-header.compact { height: 85px; background: rgb(255 255 255 / 86%); }
  .site-header.compact .nav-shell { height: 85px; }
  .site-header.compact .brand img { width: 256px; height: 54px; transform: none; }
  #app { padding-top: 0; }
  .nav-shell { position: relative; width: 100%; padding: 0 18px; }
  .brand img { width: 256px; max-height: 54px; object-fit: contain; }
  .menu-toggle { display: block; }
  .main-nav { position: absolute; z-index: 10; left: 0; right: 0; top: 85px; display: none; background: #111; box-shadow: 0 8px 18px rgb(0 0 0 / 25%); }
  .main-nav.open { display: block; }
  .main-nav > a, .nav-products > a { display: block; padding: 12px 18px; color: #fff; border-top: 1px solid #323232; }
  .submenu { position: static; width: auto; display: none; opacity: 1; visibility: visible; transform: none; box-shadow: none; }
  .nav-products.open .submenu { display: block; }
  .submenu a { padding-left: 34px; color: #fff; background: #152243; border-color: #323232; }
  .hero { height: 620px; }
  .hero-copy .eyebrow { left: 50%; top: 22%; }
  .hero-copy .sub { left: 50%; top: 33%; }
  .hero-copy strong { left: 50%; top: 44%; }
  .hero-copy strong { white-space: normal; }
  .feature-grid, .product-grid { grid-template-columns: repeat(2, 1fr); row-gap: 75px; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .contact-form { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 13px; }
  .container { width: calc(100% - 32px); }
  .brand { width: 200px; }
  .brand img { width: 195px; }
  .menu-toggle { margin-right: 0; }
  .hero { height: 500px; background-position: 44% center; }
  .hero-copy strong { padding: 12px 14px; }
  .scroll-cue { bottom: 95px; width: 58px; height: 58px; }
  .scroll-cue::before { left: 14px; top: 10px; width: 23px; height: 23px; }
  .home-content { margin-top: 0; }
  .feature-grid { grid-template-columns: 1fr; transform: translateY(-95px); margin-bottom: -60px; gap: 86px; padding: 0 38px; }
  .feature-card .arrow { top: -47px; }
  .home-text h1 { font-size: 21px; }
  .product-grid { grid-template-columns: 1fr; padding: 45px 38px 0; gap: 85px; }
  .products-page { padding-top: 60px; }
  .split { grid-template-columns: 1fr; gap: 20px; }
  .page-title-image { width: 100%; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 7px; }
  .gallery-item { height: 145px; }
  .contact-hero { height: 290px; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-form { grid-column: auto; }
  .zone-map { height: 600px; }
  .map-ring { width: 310px; height: 310px; }
  .footer-grid { grid-template-columns: 1fr; padding-block: 30px; }
  .social-column { text-align: left; }
  .social-column .globe { margin-inline: 0; }
  .cookie-banner { left: 8px; right: 8px; bottom: 8px; display: block; }
  .cookie-banner div { margin-top: 12px; }
  .lightbox-prev { left: 4px; }
  .lightbox-next { right: 4px; }
}
