:root{
  /* Palette: light blue theme / noir / rouge */
  --bg:#eaf6ff; /* very light blue page background */
  --brand-blue:#0b74de; /* primary blue (kept for accents) */
  --brand-black:#0b0b0b; /* deep black for headers */
  --brand-red:#b91c1c; /* red for bottom bar and highlights */
  --muted:#4b5563; /* slightly darker muted color for contrast */
  --card:#f4fbff; /* slightly off-white / very pale blue for cards */
}
/* Load Montserrat locally via font-face fallback to Google Fonts URL */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700;800&display=swap');

/* Banner typography override: use Montserrat and brand blue for banner texts on homepage */
.homepage .big-blue-banner{font-family: 'Montserrat', system-ui, Arial, sans-serif}
.homepage .big-blue-banner .loc-text,
.homepage .big-blue-banner .urgent-contact,
.homepage .big-blue-banner .banner-slogan{color:var(--brand-blue)}

/* Stronger, high-specificity override for the banner block that follows the mission section */
body.homepage .big-blue-banner .blue-content > div > .loc-text,
body.homepage .big-blue-banner .blue-content > div > .urgent-contact,
body.homepage .big-blue-banner .blue-content > div > .banner-slogan{
  font-family: 'Montserrat', system-ui, Arial, sans-serif !important;
  color: var(--brand-blue) !important;
}
/* emphasize the slogan */
body.homepage .big-blue-banner .blue-content > div > .banner-slogan{font-weight:800 !important;font-size:1.1rem}
*{box-sizing:border-box}
/* Use Montserrat site-wide */
body{font-family:'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;margin:0;background:var(--bg);color:#111;font-size:16px;line-height:1.55}

/* Extra high-specificity fallback to force Montserrat where other rules may override */
html body, body, .container, .site-header, .hero, main, section{font-family:'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif}
/* Make the site's textual content italic by default, but preserve normal style for the logo and form controls */
/* Scope broadly to body * to cover most textual nodes while avoiding SVG shapes and icons where possible */
body * {
  font-style: italic;
}

/* Exceptions: keep logo text normal */
.logo, .logo * {
  font-style: normal !important;
}

/* Buttons, inputs, textareas and selects should keep normal font-style for readability */
button, input, textarea, select, .btn, .btn * {
  font-style: normal !important;
}

/* Avoid forcing italics on SVG icons or image elements */
img, svg, video {
  font-style: normal !important;
}
.container{max-width:1100px;margin:0 auto;padding:2rem}
.site-header{background:var(--brand-black);border-bottom:1px solid rgba(255,255,255,0.04)}
.site-header .container{display:flex;align-items:center;justify-content:space-between;padding:1rem 2rem}
.site-header{position:relative;transform:translateY(8px)}
.logo{font-size:1.4rem;color:var(--brand-red);margin:0;position:absolute;left:1rem;top:0.9rem;font-weight:700}
.site-header .container{padding-left:6.5rem}
.main-nav{position:absolute;right:1rem;top:0.8rem;display:flex;gap:1rem;align-items:center}
.main-nav a{color:var(--brand-blue);text-decoration:none}
.main-nav a{margin-left:1rem;color:var(--muted);text-decoration:none}
.site-header{background:linear-gradient(90deg,#021a3322,#021a3311);border-bottom:1px solid #e6eef8}
.hero{padding:4rem 0;text-align:center}
.hero h2{font-size:clamp(1.5rem,3vw,2.5rem);margin:0 0 1rem}
.btn{display:inline-block;background:var(--brand-blue);color:white;padding:.7rem 1.2rem;border-radius:6px;text-decoration:none;border:none}
/* WhatsApp CTA (hero) */
.whatsapp-cta{background:#25D366;color:#0b0b0b;font-weight:700;border-radius:8px;padding:.6rem 1rem;box-shadow:0 8px 22px rgba(37,211,102,0.12)}
.whatsapp-cta:hover{transform:translateY(-4px);box-shadow:0 14px 34px rgba(37,211,102,0.18)}
.whatsapp-cta:focus{outline:3px solid rgba(37,211,102,0.22);outline-offset:3px}

/* Horizontal WhatsApp button used in hero */
.btn-whatsapp-horizontal{display:inline-flex;align-items:center;gap:0.6rem;background:#25D366;color:#062c13;font-weight:700;border-radius:8px;padding:.55rem .9rem;text-decoration:none}
.btn-whatsapp-horizontal img{width:20px;height:20px}
.btn-whatsapp-horizontal:hover{transform:translateY(-3px);box-shadow:0 12px 28px rgba(37,211,102,0.12)}
.btn-whatsapp-horizontal:focus{outline:3px solid rgba(37,211,102,0.18);outline-offset:3px}

@media(max-width:520px){
  .btn-whatsapp-horizontal{padding:.5rem .7rem;font-size:0.95rem}
}
.services .grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem}
.card{background:var(--card);padding:1.2rem;border-radius:8px;box-shadow:0 6px 18px rgba(11,116,222,0.06)}
.services-video-wrap{position:relative;overflow:hidden;background:var(--card);border-radius:10px;padding:0;margin-bottom:1.2rem;height:360px;max-height:50vh}
.services-bg-video{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);min-width:100%;min-height:100%;width:auto;height:auto;z-index:0;object-fit:cover;filter:brightness(0.85)}
.services-video-wrap > *{position:relative;z-index:1}
.video-sound-btn{
  position:absolute;
  right:1rem;
  top:1rem;
  z-index:6;
  background:rgba(0,0,0,0.55);
  color:#fff;
  border:0;padding:0.45rem 0.8rem;border-radius:999px;font-weight:700;backdrop-filter:blur(4px);
}
.video-sound-btn:focus{outline:2px solid rgba(255,255,255,0.8);outline-offset:3px}
.services-video-wrap .overlay-text{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:1.2rem 2rem;text-align:center;color:#fff;z-index:2}
.services-video-wrap .overlay-text h2{font-size:1.8rem;margin:0 0 0.4rem}
.services-video-wrap .overlay-text p{max-width:760px;margin:0 auto;color:rgba(255,255,255,0.92);font-size:0.98rem}

/* Services section color accents (bleu / noir / rouge) */
.services-video-wrap .overlay-text h2{color:var(--brand-blue);text-shadow:0 2px 6px rgba(0,0,0,0.45)}
.services-video-wrap .overlay-text p{color:rgba(255,255,255,0.95)}

/* Cards: subtle red accent + blue headings */
.overlay-cards .card{width:20%;min-width:200px;background:var(--card);backdrop-filter:blur(6px);box-shadow:0 12px 28px rgba(0,0,0,0.12);padding:1.4rem;border-left:4px solid var(--brand-red)}
.overlay-cards .card h3{color:var(--brand-black);margin-top:0;margin-bottom:0.5rem}
.overlay-cards .card p{color:#222}
.overlay-cards .card h3::before{content:'';display:inline-block;width:8px;height:8px;background:var(--brand-blue);border-radius:2px;margin-right:0.6rem;vertical-align:middle}

/* ensure the cards section appears below and is not overlapped */
.services-cards{padding-top:1rem;padding-bottom:3rem}

/* Overlay cards placed on top of the video */
.overlay-cards{position:absolute;left:50%;transform:translateX(-50%);bottom:-2.8rem;display:flex;gap:3.2rem;z-index:3;max-width:1400px;justify-content:space-between;padding:0 1rem}
.overlay-cards .card{width:20%;min-width:200px;background:var(--card);backdrop-filter:blur(6px);box-shadow:0 12px 28px rgba(0,0,0,0.12);padding:1.4rem}

@media(max-width:1100px){
  .overlay-cards{flex-direction:column;position:relative;transform:none;bottom:0;margin-top:1rem;gap:1rem}
  .overlay-cards .card{width:100%;padding:1rem}
}

/* ensure video doesn't autoplay with sound; it's muted and playsinline already in markup */
@media(max-width:900px){
  .services-bg-video{min-width:160%;min-height:160%}
}
.about, .contact{margin-top:2rem}
.contact form{display:flex;flex-direction:column;gap:.6rem;max-width:600px}
input,textarea{padding:.6rem;border:1px solid #e3e8f0;border-radius:6px}
.status{color:var(--muted);margin-top:.6rem}
.site-footer{padding:1rem 0;border-top:1px solid #eaeff6;margin-top:2rem}
.footer-links a{margin-left:1rem;color:var(--muted);text-decoration:none}

/* Bottom bar fixe */
.bottom-bar{
  position:fixed;
  left:0;right:0;bottom:0;
  background:var(--brand-red);
  border-top:1px solid rgba(0,0,0,0.08);
  box-shadow:0 -6px 18px rgba(0,0,0,0.08);
  padding:0.6rem 1rem;
  font-size:0.95rem;
  display:flex;align-items:center;justify-content:center;gap:1rem;
  z-index:40;
}
.bottom-bar a{color:#ffffff;text-decoration:none}
.bottom-bar small{color:#fff}
.bottom-bar .contact-phone{color:#fff;display:inline-block;margin:0 0.6rem}
.bottom-bar .contact-phone a{color:var(--brand-blue);text-decoration:underline}
/* phone icon inside bottom bar */
.bottom-bar .contact-phone svg{width:18px;height:18px;vertical-align:middle;margin-right:0.4rem;fill:var(--primary)}
.bottom-bar .contact-phone a{display:inline-flex;align-items:center;gap:0.4rem}

/* Ensure all content inside the bottom red bar is white for contrast */
.bottom-bar,
.bottom-bar *{
  color: #ffffff !important;
}
.bottom-bar a{color:#ffffff !important;text-decoration:none}
.bottom-bar svg{fill:#ffffff !important}
.bottom-bar img{filter:brightness(0) invert(1); /* try to make images/icons white if they are simple */}

/* Show a small WhatsApp icon before contact links on desktop for clarity */
.bottom-bar .contact-phone a::before,
.urgent-contact a::before{
  content: '';
  display: inline-block;
  width:18px;height:18px;margin-right:0.45rem;vertical-align:middle;
  background-image: url('../assets/whatsapp.svg');
  background-size: contain;background-repeat:no-repeat;background-position:center center;
  filter: none; /* keep original colors for the icon on white backgrounds */
}

@media(max-width:720px){
  /* hide the icon on small screens to keep the UI compact */
  .bottom-bar .contact-phone a::before,
  .urgent-contact a::before{ display:none }
}

/* Contact page: large yellow thank-you message */
.top-thank{position:fixed;left:0;right:0;bottom:8.8rem;z-index:70;background:var(--brand-blue);text-align:center;padding:14px 18px;border-top-left-radius:6px;border-top-right-radius:6px;box-shadow:0 -10px 28px rgba(3,37,76,0.24)}
.top-thank{color:#ffeb3b;font-weight:900;font-size:1.45rem;letter-spacing:0.4px}

@media(max-width:520px){
  .top-thank{font-size:1rem;padding:8px 10px}
}

@media (prefers-reduced-motion: reduce){
  .top-thank{transition:none}
}

/* Ensure top banner text is white on contact page for contrast */
body.contact-page .top-banner,
body.has-top-banner.contact-page .top-banner{
  color: #ffffff !important;
}


/* push page content above bottom bar on small screens */
.site-header{
  position:relative;
  transform:translateY(8px);
  background:linear-gradient(90deg,#021a3322,#021a3311);
  border-bottom:1px solid #e6eef8;
  padding-top:50px; /* further reduced per user request */
  padding-bottom:50px;
}
.logo{font-size:2.2rem;color:var(--brand-red);margin:0;position:absolute;left:3.5rem;top:calc(50% - 1.3rem);font-weight:900;letter-spacing:0.6px;text-shadow:none;background:transparent;padding:0.6rem 1.4rem;border-radius:999px;border:0;box-shadow:none}
/* Make the logo link fill the pill and inherit styles */
.logo a{color:inherit;text-decoration:none;display:inline-block}
.logo a:focus{outline:3px solid rgba(255,255,255,0.24);outline-offset:3px;border-radius:999px}
.site-header .container{padding-left:6.5rem;display:flex;align-items:center;justify-content:space-between;padding:1rem 2rem}
.main-nav{position:absolute;right:1rem;top:calc(50% - 0.6rem);display:flex;gap:1rem;align-items:center}
  .main-nav{position:absolute;right:1rem;top:calc(50% - 0.6rem);display:flex;gap:1rem;align-items:center}
  .main-nav a{display:inline-flex;align-items:center;justify-content:center;min-width:64px;padding:0 .8rem;border-radius:8px;background:transparent;color:var(--brand-blue);text-decoration:none;font-weight:700;font-size:0.95rem;box-shadow:none;border:0}
  .main-nav a:hover,.main-nav a:focus{transform:none;box-shadow:none;outline:2px solid rgba(96,165,250,0.12);outline-offset:3px}

  /* Ensure the 'Donner mon avis' feedback button is visible on all pages */
  .btn-feedback{display:inline-flex !important}
  /* Page-specific classes still supported (legacy), kept for compatibility */
  body.feedback-page .btn-feedback{display:inline-flex !important}
  body.homepage .btn-feedback{display:inline-flex !important}
  body.contact-page .btn-feedback{display:inline-flex !important}
  body.about-page .btn-feedback{display:inline-flex !important}
  body.services-page .btn-feedback{display:inline-flex !important}
.hero{
  padding:4rem 0;
  text-align:center;
  position: relative;
  color: var(--brand-black); /* dark text by default for better contrast on light-blue backgrounds */
  background-color: var(--bg);
  min-height: 100vh; /* make hero fill the full viewport */
  display:flex;align-items:center; /* center content vertically */
}

/* Feedback button default styling (theme aware) */
.btn-feedback{background:var(--brand-blue);color:#fff;padding:0.5rem 0.9rem;border-radius:8px;text-decoration:none;font-weight:700}

/* For the homepage, the hero uses a dark overlay over the image so white text is appropriate */
.homepage .hero{ color: #fff }

/* Specific background for contact page hero */
.hero.contact{
  background-image: url('../assets/bg-contact.jpg.png');
  background-position: center center;
  background-size: cover;
}

/* Reduce large empty space on contact page hero so content sits closer to bottom bar */
.hero.contact{min-height:auto; padding-bottom:2rem; padding-top:2rem}

/* Make contact page content sit closer to bottom bar */
.contact-page main, .contact-page .hero.contact .container{padding-bottom:0}
.contact-page .hero.contact{padding-bottom:0;margin-bottom:0}
.contact-page .site-footer{display:none} /* hide extra footer area to reduce gap */

/* On larger screens, use fixed background so image fills page and creates a strong effect */
@media(min-width:801px){
  .hero{ background-attachment: fixed; }
}

/* Responsive fixes: ensure header/nav and hero behave on small screens */
@media(max-width:900px){
  /* Simplify header layout on small screens */
  .site-header{transform:none;padding-top:0.6rem;padding-bottom:0.6rem}
  .site-header .container{padding-left:1rem;padding-right:1rem;display:flex;align-items:center;justify-content:space-between}
  .logo{position:static;left:auto;top:auto;font-size:1.25rem;margin:0;padding:0.2rem 0}
  .logo a{display:inline-block}

  /* Make nav flow naturally and wrap when needed */
  .main-nav{position:static;right:auto;top:auto;display:flex;gap:0.5rem;flex-wrap:wrap;align-items:center}
  .main-nav a{min-width:unset;padding:0.35rem 0.6rem;font-size:0.95rem}

  /* Reduce hero height on mobile so it doesn't push content off-screen */
  .hero{min-height:auto;padding-top:2rem;padding-bottom:2rem}
  .hero .container{padding-left:1rem;padding-right:1rem}
  .hero::before{transform:none; /* avoid visual compression on small screens */ background-position: center top; background-attachment: scroll}

  /* Ensure floating/absolute header logo center element doesn't overlap nav */
  .header-logo-center{display:none}

  /* Prevent bottom bar from overlapping content: give body bottom padding equal to bar height */
  body{padding-bottom:4.2rem}
  .bottom-bar{padding:0.5rem 0.8rem;font-size:0.92rem}

  /* Ensure gallery strip and other fixed elements are scroll-friendly */
  .gallery-strip{position:relative}
}

/* Very small screens: slightly larger tap targets and compact spacing */
@media(max-width:420px){
  .main-nav a{padding:0.45rem 0.6rem;font-size:0.92rem}
  .btn{padding:0.5rem 0.85rem;font-size:0.95rem}
}

/* Ensure contact hero stays compact on small screens */
@media(max-width:520px){
  .contact-page .hero.contact{min-height:auto;display:block;padding-top:1.2rem;padding-bottom:1rem}
  .header-logo-center{display:none}
}

.homepage .hero::before{
  /* background layer: keep original image but scale vertically to reduce "thickness" of blue tiles */
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../assets/bg-hero.jpg.png');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  transform: scaleY(0.82); /* scale vertically to make tiles look thinner */
  transform-origin: center center;
  pointer-events: none;
  z-index: 0;
}

.homepage .hero::after{
  /* dark overlay for readability placed above the image */
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35); /* overlay sombre pour lisibilité */
  pointer-events: none;
  z-index: 1;
}

.hero .container{ position: relative; z-index: 2; }

/* Use the custom logo image as a subtle background on the About page */
body.about-page{
  background-image: url('../assets/logo-custom.svg.jpg');
  /* repeat vertically so the same image appears stacked below */
  background-repeat: repeat-y;
  /* keep horizontally centered, start first copy below header */
  background-position: center 160px;
  background-size: 70%  auto; /* width 70%, height auto */
  background-attachment: scroll;
}

/* Same background behaviour for the Services page */
body.services-page{
  background-image: url('../assets/logo-custom.svg.jpg');
  background-repeat: no-repeat;
  /* start the image below the top bar (match about page) */
  background-position: center 160px;
  background-size: 70%;
  background-attachment: scroll;
}

/* Responsive: reduce vertical offset on small screens where header is smaller */
@media(max-width:900px){
  body.about-page, body.services-page{
    background-position: center 110px;
    background-size: 60%;
  }
}

/* Improve readability: add a light translucent panel for the main content on about page */
body.about-page .about{background: rgba(255,255,255,0.92);padding:1.2rem;border-radius:10px;box-shadow:0 12px 28px rgba(3,37,76,0.06)}

/* Mission / Objectif / Vision bar under header */
.mission-bar{
    background:linear-gradient(90deg,var(--brand-blue),#065fa8);
    color:#fff;
    padding:1.2rem 0; /* reduced vertical space */
    font-size:1.05rem;
    line-height:1.45;
    min-height:56px; /* reduced height so tiles appear thinner */
    box-shadow:0 10px 28px rgba(3,37,76,0.18); /* lighter shadow */
  }
  /* Keep mission items stacked vertically on all viewports */
  .mission-bar .container{display:flex;flex-direction:column;gap:1rem;align-items:flex-start;justify-content:flex-start;padding:0 1rem}
  .mission-bar .mission-item{width:100%;min-width:0}
  .mission-bar .mission-item strong{display:block;font-size:1.4rem;margin-bottom:0.6rem;font-weight:800}
  .mission-bar .mission-item div{opacity:0.99;font-size:1.12rem}

/* Previously forced horizontal layout for wide screens - removed to keep vertical stacking */

@media(max-width:900px){
  .mission-bar .container{flex-direction:column;gap:0.8rem;padding:0 1rem}
  .mission-bar{padding:0.9rem 0}
}

/* On wider screens, display mission items horizontally */
@media(min-width:900px){
  .mission-bar .container{flex-direction:row;gap:2.4rem;align-items:center;justify-content:space-between;padding:0 1rem}
  .mission-bar .mission-item{width:auto;flex:1}
  .mission-bar .mission-item strong{font-size:1.4rem}
  .mission-bar .mission-item div{font-size:1.12rem}

  .mission-bar.bottom .container{flex-direction:row;gap:2.4rem;align-items:center;justify-content:space-between}
  .mission-bar.bottom .mission-item{width:auto;flex:1}
}

/* when mission bar is placed at the bottom */
  .mission-bar.bottom{
    position:static;
    left:auto;right:auto;bottom:auto;
    z-index:inherit;
    padding:1.2rem 0; /* reduced vertical space for bottom variant */
    min-height:56px;
    margin-top:0.6rem;
    border-radius:8px;
  }
  /* Ensure bottom variant also stacks vertically to match original layout */
  .mission-bar.bottom .container{max-width:1100px;margin:0 auto;padding:0 1rem;display:flex;flex-direction:column;gap:1rem;align-items:flex-start;justify-content:flex-start}
  .mission-bar.bottom .mission-item strong{font-size:1.4rem;font-weight:800}
  .mission-bar.bottom .mission-item div{font-size:1.12rem;opacity:0.99}

@media(max-width:900px){
  .mission-bar.bottom .container{flex-direction:column;gap:0.8rem}
  .mission-bar.bottom{padding:1rem 0;margin-top:0.5rem}

  
}

main{padding-bottom:3.2rem}

/* Large red banner between mission and bottom bar */
/* Removed: red contact banner was deleted from the HTML, styles kept out to avoid unused CSS */

/* Big blue banner with location and map */
.big-blue-banner{background:linear-gradient(90deg,#0b74de,#065fa8);color:#fff;padding:0.7rem 0;margin-top:0.6rem;border-radius:8px}
.big-blue-banner .blue-content{display:flex;gap:0.8rem;align-items:center;justify-content:space-between}
.big-blue-banner .loc-text{font-size:0.95rem;font-weight:700}
.big-blue-banner .loc-link{color:inherit;text-decoration:none}
.big-blue-banner .map-wrap{flex:0 0 44%;max-width:44%}
.big-blue-banner iframe{width:100%;height:130px;border:0;border-radius:6px}

/* Homepage exception: make the big-blue-banner white with black content */
.homepage .big-blue-banner{background:var(--card);color:#111;border:1px solid rgba(0,0,0,0.06)}
.homepage .big-blue-banner .loc-text{color:#111}
.homepage .big-blue-banner .loc-link{color:#111}
.homepage .big-blue-banner .urgent-contact{color:#111}
.homepage .big-blue-banner .banner-slogan{color:#111}
.homepage .big-blue-banner iframe{border:1px solid rgba(0,0,0,0.06)}
.homepage .big-blue-banner .blue-content{align-items:center}

@media(max-width:900px){
  .big-blue-banner .blue-content{flex-direction:column}
  .big-blue-banner .map-wrap{width:100%;max-width:100%}
  .big-blue-banner iframe{height:110px}
}

/* Urgent contact line inside blue banner (red, bold) */
.urgent-contact{color:#ff3b30;font-weight:800;font-size:1rem}
.urgent-contact a{color:inherit;text-decoration:underline}
@media(max-width:900px){
  .urgent-contact{font-size:0.95rem}
}

/* Prominent slogan inside the blue banner (yellow for contrast) */
.banner-slogan{color:#ffeb3b;font-weight:800;font-size:1.15rem;text-transform:uppercase;letter-spacing:0.6px;text-shadow:0 1px 0 rgba(0,0,0,0.25);text-align:center}
.banner-slogan{display:block;width:100%}
@media(max-width:900px){
  .banner-slogan{font-size:1.05rem}
}

/* subtle pulse/glow to draw attention */
@keyframes slogan-pulse{
  0%{text-shadow:0 1px 0 rgba(0,0,0,0.20), 0 0 0 rgba(255,235,59,0)}
  50%{text-shadow:0 1.5px 1.5px rgba(0,0,0,0.22), 0 0 8px rgba(255,235,59,0.14)}
  100%{text-shadow:0 1px 0 rgba(0,0,0,0.20), 0 0 0 rgba(255,235,59,0)}
}
.banner-slogan.animate{animation: slogan-pulse 2.8s ease-in-out infinite, slogan-blink 4s linear infinite}

@keyframes slogan-blink{
  0%{opacity:1}
  48%{opacity:1}
  50%{opacity:0.4}
  52%{opacity:1}
  100%{opacity:1}
}

@media (prefers-reduced-motion: reduce){
  .banner-slogan.animate{animation:none}
}

/* Intro white bar on homepage */
.intro-bar{background:var(--card);border-top:1px solid rgba(0,0,0,0.04);border-bottom:1px solid rgba(0,0,0,0.04);box-shadow:0 10px 28px rgba(11,116,222,0.05);padding:2.8rem 0;margin-top:-9rem;position:relative;z-index:999}
.intro-bar p{margin:0;color:var(--brand-blue);font-size:1.08rem;line-height:1.7;font-style:italic}

/* image inserted at the left corner of the intro bar */
.intro-with-image{display:flex;align-items:center;gap:1rem}
.intro-left-image{width:220px;height:220px;object-fit:cover;border-radius:8px;flex:0 0 auto}
.intro-with-image p{margin:0;padding-left:1.2rem}

@media(max-width:1024px){
  .intro-left-image{width:160px;height:160px}
  .intro-with-image p{padding-left:0.9rem}
  .intro-bar{padding:2.4rem 0;margin-top:-6rem}
}

@media(max-width:900px){
  .intro-left-image{width:120px;height:120px}
  .intro-with-image p{padding-left:0.7rem}
  .intro-bar{padding:1.8rem 0;margin-top:-3.6rem}
}

@media(max-width:800px){
    .mission-bar .container{flex-direction:column;gap:0.8rem;padding:0 1rem}
    .mission-bar{padding:1.1rem 0;font-size:1rem;min-height:auto;box-shadow:none}
  .intro-with-image p{padding-left:0.6rem}
  .intro-bar{padding:1.6rem 0}
  .intro-bar p{font-size:1rem}
}

@media(max-width:480px){
  .intro-left-image{display:none}
  .intro-with-image{flex-direction:column;align-items:flex-start}
}

/* centered image logo in header */
.header-logo-center{position:absolute;left:50%;transform:translateX(-50%);top:50%;transform:translate(-50%, -50%);pointer-events:none}
.header-logo-center .logo-box{background:transparent;width:120px;height:120px;display:flex;align-items:center;justify-content:center;border-radius:6px;box-shadow:none;border:0}
.header-logo-center .logo-box img{width:96px;height:96px;display:block}

/* Gallery */
.gallery{padding:1.2rem 0;background:transparent}
.gallery h3{font-size:1.1rem;margin:0 0 0.8rem;text-align:center}
.gallery-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:0.6rem;align-items:start}
.gallery-item{background:transparent;border-radius:6px;overflow:hidden;box-shadow:0 6px 18px rgba(11,116,222,0.04);display:flex;flex-direction:column}
.gallery-item img{width:100%;height:100px;object-fit:cover;display:block}
.gallery-item figcaption{padding:0.5rem 0.6rem;color:var(--muted);font-size:0.82rem;text-align:center}

@media(max-width:900px){
  .gallery-grid{grid-template-columns:repeat(auto-fit,minmax(110px,1fr))}
}
@media(max-width:520px){
  .gallery-grid{grid-template-columns:repeat(2,minmax(90px,1fr))}
  .gallery-item img{height:84px}
}

/* Gallery strip fixed above bottom bar */
.gallery-strip{position:fixed;left:0;right:0;bottom:3.2rem;z-index:50;background:transparent;padding:6px 0}
.gallery-strip-inner{max-width:1100px;margin:0 auto;padding:0 1rem}
.gallery-strip .gallery-grid.small-strip{display:flex;gap:0.5rem;overflow:auto;padding:6px 0}
.gallery-strip .gallery-item{min-width:320px;flex:0 0 auto;border-radius:10px;overflow:hidden}
.gallery-strip .gallery-item img{height:220px;width:320px;object-fit:cover}
.gallery-strip .gallery-item figcaption{display:none}

.mini-mini-strip{position:relative;left:auto;right:auto;bottom:auto;z-index:10;padding:4px 0;background:transparent;margin:0.4rem 0 5rem}
.mini-mini-inner{max-width:1200px;margin:0 auto;padding:0 1rem}
.mini-mini-grid{display:flex;gap:0.5rem;justify-content:center;align-items:center}
.mini-mini-grid .mini-item{width:420px;height:300px;flex:0 0 auto;border-radius:10px;overflow:hidden;background:transparent;box-shadow:0 12px 36px rgba(0,0,0,0.18);display:flex;align-items:center;justify-content:center;transition:transform 220ms cubic-bezier(.2,.9,.2,1),box-shadow 220ms}
.mini-mini-grid .mini-item img{width:100%;height:100%;object-fit:contain;object-position:center center;display:block;background-color:transparent}

/* boost animation (subtle pulse) */
.mini-mini-grid .mini-item{animation:mini-boost 3s infinite ease-in-out}
@keyframes mini-boost{
  0%{transform:translateY(0) scale(1);box-shadow:0 20px 50px rgba(0,0,0,0.22)}
  50%{transform:translateY(-8px) scale(1.03);box-shadow:0 28px 70px rgba(0,0,0,0.28)}
  100%{transform:translateY(0) scale(1);box-shadow:0 20px 50px rgba(0,0,0,0.22)}
}

/* static-thumb: previously disabled; restore subtle hover effect but keep animation off for reduced-motion */
.mini-mini-grid .mini-item.static-thumb{ /* keep base static to avoid layout shift */
  animation: none;
  transition: transform 220ms cubic-bezier(.2,.9,.2,1), box-shadow 220ms;
}
.mini-mini-grid .mini-item.static-thumb:hover{transform:translateY(-6px);box-shadow:0 22px 56px rgba(0,0,0,0.22)}

@media(max-width:1400px){
  .mini-mini-strip{display:none}
}

@media(max-width:1100px){
  .mini-mini-grid .mini-item{width:320px;height:220px}
}

/* smaller static thumbnails for specific images (13,23,31,41) */
.mini-mini-grid .mini-item.small-thumb{width:160px;height:110px;flex:0 0 auto;box-shadow:0 8px 20px rgba(0,0,0,0.12);transition:transform 220ms cubic-bezier(.2,.9,.2,1),box-shadow 220ms}
.mini-mini-grid .mini-item.small-thumb img{object-fit:contain}
.mini-mini-grid .mini-item.small-thumb:hover{transform:translateY(-6px);box-shadow:0 16px 40px rgba(0,0,0,0.16)}

@media(max-width:800px){
  .gallery-strip .gallery-item{min-width:220px;}
  .gallery-strip .gallery-item img{height:150px;width:220px;}
  .mini-mini-grid .mini-item{width:260px;height:170px;}
}

/* Lightbox styles for enlarged thumbnails */
.lightbox-overlay{position:fixed;inset:0;background:rgba(0,0,0,0.75);display:flex;align-items:center;justify-content:center;z-index:200;opacity:0;pointer-events:none;transition:opacity 200ms ease}
.lightbox-overlay.open{opacity:1;pointer-events:auto}
.lightbox-content{max-width:90vw;max-height:88vh;padding:12px;background:transparent;display:flex;flex-direction:column;align-items:center;position:relative}
.lightbox-content img{max-width:100%;max-height:80vh;display:block;border-radius:8px;box-shadow:0 30px 80px rgba(0,0,0,0.5)}
/* caption overlay: positioned at bottom of the image for maximum readability */
.lightbox-caption{
  position:absolute;
  left:50%;
  transform:translateX(-50%);
  bottom:18px;
  color:#fff;
  font-size:1rem;
  text-align:center;
  max-width:88vw;
  padding:10px 14px;
  border-radius:8px;
  background:linear-gradient(180deg,rgba(0,0,0,0.75),rgba(0,0,0,0.45));
  box-shadow:0 8px 24px rgba(0,0,0,0.4);
  word-break:break-word;
}
.lightbox-close{position:absolute;top:18px;right:18px;width:44px;height:44px;border-radius:999px;background:rgba(255,255,255,0.06);display:flex;align-items:center;justify-content:center;color:#fff;border:0;cursor:pointer}
.lightbox-close:focus{outline:2px solid rgba(255,255,255,0.2)}

@media(max-width:420px){
  .gallery-strip{display:none} /* hide on very small screens */
}

@media(max-width:800px){
    .mission-bar.bottom .container{flex-direction:column;gap:0.8rem}
    .mission-bar.bottom{padding:1rem 0;margin-top:0.5rem;min-height:auto;border-radius:6px}
  .header-logo-center .logo-box img{width:56px;height:56px}
  .logo{font-size:1.2rem;padding:0.35rem 0.8rem;left:1.4rem;top:calc(50% - 0.9rem)}
}

@media(max-width:800px){
  .services .grid{grid-template-columns:1fr}
  .site-header .container{padding:1rem}
  .main-nav{display:flex;gap:0.6rem}
  .main-nav a{width:48px;height:48px;font-size:0.8rem}
}

/* Floating WhatsApp button */
.whatsapp-btn{
  position:fixed;
  right:1rem;
  bottom:3.6rem; /* above bottom-bar (which is ~0.6rem high) */
  width:56px;height:56px;border-radius:999px;
  background:#25D366;display:flex;align-items:center;justify-content:center;
  box-shadow:0 6px 18px rgba(0,0,0,0.18);z-index:60;
}
.whatsapp-btn img{width:28px;height:28px;display:block}
.whatsapp-btn:focus{outline:2px solid #fff;outline-offset:3px}

/* Top banner for contact page (moved from bottom to top) */

:root{--top-banner-offset:4.8rem}

.top-banner{
  position:fixed;
  left:0;right:0;top:0;
  background:var(--brand-blue);
  color:#ffeb3b;
  font-weight:900;
  text-align:center;
  padding:0.9rem 1rem;
  z-index:75;
  box-shadow:0 6px 18px rgba(3,37,76,0.18);
  font-size:1.05rem;
}

/* When top-banner is present, push page content down so it doesn't overlap header */
body.has-top-banner{padding-top:3.6rem}

/* Tighten contact page spacing to remove large empty gap before bottom bar */
.contact-page .hero.contact{min-height:auto;display:block;padding-top:1.2rem;padding-bottom:1rem}
.contact-page main{padding-bottom:0}
.contact-page .container{padding-bottom:0}

@media(max-width:520px){
  body.has-top-banner{padding-top:3.2rem}
  .top-banner{font-size:0.95rem;padding:0.6rem}
}

@media (prefers-reduced-motion: reduce){
  .top-banner{transition:none}
}

/* Mobile overrides: show images and compact their sizes so they appear on phones */
@media(max-width:520px){
  /* show the intro bar image on small screens */
  .intro-left-image{display:block!important;width:96px;height:96px;object-fit:cover;border-radius:6px}
  .intro-with-image{flex-direction:row;align-items:center;gap:0.6rem}

  /* show the gallery strip on small screens and make items smaller for comfortable scrolling */
  .gallery-strip{display:block !important;left:0;right:0;bottom:3.6rem;padding:6px 0}
  .gallery-strip .gallery-grid.small-strip{display:flex;gap:0.5rem;overflow:auto;padding:6px 0}
  .gallery-strip .gallery-item{min-width:180px;flex:0 0 auto;border-radius:8px}
  .gallery-strip .gallery-item img{height:110px;width:180px;object-fit:cover}

  /* show the mini-mini-strip and use small-thumb sizes to fit mobile */
  .mini-mini-strip{display:block !important;margin-bottom:5rem}
  .mini-mini-grid{justify-content:flex-start;padding-left:0.6rem;gap:0.6rem}
  .mini-mini-grid .mini-item{width:140px;height:100px;flex:0 0 auto;border-radius:6px}
  .mini-mini-grid .mini-item img{width:100%;height:100%;object-fit:contain}

  /* keep lightbox usable on mobile */
  .lightbox-content{max-width:95vw;max-height:80vh}
}

/* Blink animation: 2 times per second (2 Hz) */

@keyframes top-banner-blink{
  0%{opacity:1}
  50%{opacity:0}
  100%{opacity:1}
}

.top-banner.blink{
  animation: top-banner-blink 1.5s linear infinite; /* 1.5s per cycle => gentler blink (~0.67 Hz) */
}

@media (prefers-reduced-motion: reduce){
  .top-banner.blink{animation:none;opacity:1}
}

/* pulse animation to attract attention */
.whatsapp-btn{animation:whatsapp-pulse 2.8s infinite ease-in-out}

@keyframes whatsapp-pulse{
  0%{transform:translateY(0) scale(1)}
  50%{transform:translateY(-6px) scale(1.06)}
  100%{transform:translateY(0) scale(1)}
}

/* small clickable label */
.whatsapp-btn::after{
  content:'Cliquez !';
  position:absolute;
  right:68px;
  bottom:8px;
  background:rgba(0,0,0,0.8);
  color:#fff;
  padding:6px 8px;
  border-radius:6px;
  font-size:0.78rem;
  white-space:nowrap;
  opacity:0;
  transform:translateY(6px) scale(0.98);
  transition:opacity 220ms ease,transform 220ms ease;
  pointer-events:none;
}

.whatsapp-btn:hover::after,
.whatsapp-btn:focus::after{
  opacity:1;transform:translateY(0) scale(1);
}

@media(max-width:420px){
  .whatsapp-btn{right:0.6rem;bottom:4.2rem;width:48px;height:48px}
  .whatsapp-btn img{width:22px;height:22px}
}

/* Hover and focus states (respect reduced motion) */
@media (prefers-reduced-motion: reduce){
  .whatsapp-btn{transition:none}
}

.whatsapp-btn:hover{transform:translateY(-50%) scale(1.04);box-shadow:0 16px 44px rgba(0,0,0,0.16)}
.whatsapp-btn:focus{outline:3px solid rgba(11,116,222,0.16);outline-offset:4px}
