/* ============================================================
   MANARYS ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Â style.css
   Stack: PHP 8, MySQL, Vanilla CSS/JS
   ============================================================ */

/* ============================================================
   1. CSS VARIABLES
   ============================================================ */
:root {
  /* Brand colors */
  --primary:      #945ff9;
  --primary-dark: #e879f9;
  --accent:       #5515cc;
  --accent-2:     #960bac;
  --accent-light: rgba(62,146,204,.1);
  --orange:       #CF4B28;

  /* Backgrounds */
  --bg:        #fffaff;
  --bg-light: #fae0ff;
  --bg-dark:   #960bac;
  --bg-card: #06010e;
  --gradient-brand: linear-gradient(135deg, #34137f 0%, #9f27b1 100%);
  --gradient-brand-soft: linear-gradient(180deg, #8b5cf61f 0%, #faf2fa 100%);
  --gradient-text: linear-gradient(135deg, #8b5cf6 0%, #e879f9 100%);

  /* Text */
  --text: #e3e3e3;
  --text-muted: #86648b;
  --text-light: #aa94b8;

  /* UI */
  --border: #db00ff29;
  --border-dark:#ca94d4;

  /* Layout */
  --nav-height:    80px;
  --container-pad: 1.5rem;
  --topbar-height: 40px;
  --header-height: calc(var(--topbar-height) + var(--nav-height));

  /* Border radius */
  --radius-sm: 6px;
  --radius-md: 15px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --round-radius : 50px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
  --shadow-md: 0 4px 16px rgba(0,0,0,.10), 0 2px 6px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 32px rgba(0,0,0,.12), 0 4px 12px rgba(0,0,0,.06);
  --shadow-xl: 0 20px 48px rgba(0,0,0,.16);
  --shadow-soft : 0 1px 2px #1010180a, 0 8px 24px -8px #8b5cf61a;

  /* Transitions */
  --transition: all .25s ease;
  --transition-slow: all .4s ease;
}

/* ============================================================
   2. RESET + BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
.hidden,.hide{display: none !important;}
.glass,.section-label{
    background: #ffffff24;
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    backdrop-filter: blur(10px);
}
.text-gradient {
    background: var(--gradient-text);
    color: #0000;
    -webkit-background-clip: text;
    background-clip: text;
}
.jumbotron {
    background: var(--bg-light);
    padding: 20px 20px;
    display: flex;
    align-items: flex-start;
    grid-gap: 14px;
    margin: 18px 0px 0px;
    box-shadow: var(--shadow-soft);
    text-align: left;
    font-size: 16px;
    backdrop-filter: blur(4px);
    border-radius: var(--radius-md);
}
html {
  font-size: clamp(15px, 0.4vw + 9px, 20px);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: #000000;
  overflow-x: hidden;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; }

/* Barre de déƒifilement personnalisée */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-light);
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--accent), var(--bg-dark));
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* Arrière-plan Interactif Canvas & Dégradés Structurés */
#canvas3d {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.gradient-glow-1 {
    position: fixed;
    width: 500px;
    height: 500px;
    top: 0px;
    left: 0px;
    background: radial-gradient(circle, rgba(85, 21, 204, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    z-index: 1;
    pointer-events: none;
    filter: blur(10px);
    animation: floatGlow 15s infinite alternate ease-in-out;
}

.gradient-glow-2 {
    position: fixed;
    width: 500px;
    height: 500px;
    bottom: -150px;
    right: -150px;
    background: radial-gradient(circle, rgba(232, 121, 249, 0.12) 0%, rgba(0, 0, 0, 0) 70%);
    z-index: 1;
    pointer-events: none;
    filter: blur(10px);
    animation: floatGlow 18s infinite alternate-reverse ease-in-out;
}

@keyframes floatGlow {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 40px) scale(1.1); }
}
/* Loader élégant */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(45deg, #3c0045, #190053);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    transition: transform 0.8s cubic-bezier(0.85, 0, 0.15, 1), opacity 0.8s ease;
    backdrop-filter: blur(15px);
}

.loader.loaded {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.loader-logo-wrapper {
    position: relative;
    height: 80px;
    margin-bottom: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader-logo {
    width: 300px;
    height: auto;
    filter: drop-shadow(0 0 15px rgba(232, 121, 249, 0.4));
    animation: logoPulse 2s infinite ease-in-out;
}

.loader-ring {
    position: absolute;
    width: 370px;
    height: 370px;
    border-radius: 50%;
    border: 1px solid transparent;
    border-top: 1px solid var(--primary);
    border-bottom: 1px solid var(--text-muted);
    animation: spin 3s linear infinite;
}

.loader-ring-inner {
    position: absolute;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    border: 1px solid transparent;
    border-left: 1px solid var(--accent-2);
    border-right: 1px solid var(--primary-dark);
    animation: spinReverse 2s linear infinite;
}

.loader-progress-bar {
    width: 250px;
    height: 2px;
    background: rgb(255 255 255 / 12%);
    border-radius: 1px;
    margin-top: 15px;
    position: relative;
    overflow: hidden;
}

.loader-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: #e879f9;
    box-shadow: 0 0 8px var(--accent);
    animation: progressFill 2.5s cubic-bezier(0.1, 0.8, 0.3, 1) forwards;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes spinReverse {
    0% { transform: rotate(360deg); }
    100% { transform: rotate(0deg); }
}

@keyframes logoPulse {
    0%, 100% { transform: scale(1); opacity: 0.9; }
    50% { transform: scale(1.05); opacity: 1; filter: drop-shadow(0 0 25px rgba(232, 121, 249, 0.7)); }
}

@keyframes progressFill {
    0% { width: 0%; }
    40% { width: 45%; }
    70% { width: 85%; }
    100% { width: 100%; }
}

/* Animations de Titres Lettre par Lettre */
.animate-title {
    opacity: 1;
}

.animate-title .word {
    display: inline-block;
    white-space: nowrap;
    margin-right: 0.1em;
    vertical-align: top;
}

.animate-title .letter {
    display: inline-block;
    opacity: 0;
    transform: translateY(40px) rotate(8deg);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: calc(var(--char-index) * 0.025s);
}

.animate-title.active .letter {
    opacity: 1;
    transform: translateY(0) rotate(0deg);
}


/* ============================================================
   3. LAYOUT ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Â CONTAINER, SECTION
   ============================================================ */
.container {
  width: 100%;
  padding-inline: 10%;
}

.container-narrow {
  max-width: 1080px;
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.section {
  padding-block: 5rem;
  position: relative;
}
section#temoignages,section#zones {
    background-image: linear-gradient(90deg, #7c3aed0f 1px, #0000 1px), linear-gradient(#7c3aed0f 1px, #0000 1px);
    background-size: 48px 48px;
    -webkit-mask-image: radial-gradient(#000 30%, #0000 75%);
    mask-image: radial-gradient(#000 90%, #0000 75%);
}

section#temoignages .container {
    position: relative;
    z-index: 1;
}

section#atouts,section#presentation {
    background-image: linear-gradient(90deg, #7c3aed0f 1px, #0000 1px), linear-gradient(#7c3aed0f 1px, #0000 1px);
    background-size: 48px 48px;
    -webkit-mask-image: radial-gradient(#000 80%, #0000 75%);
    mask-image: radial-gradient(#000 80%, #0000 75%);
}
.bg-dark  { background: var(--bg-dark); }

/* Section header */
.section-header { text-align: center; margin-bottom: 3rem;display: flex;flex-direction: column;align-items: center;gap: 20px;}
.section-label  {display: inline-block;font-size: 0.8rem;letter-spacing: .1em;margin-bottom: 1rem;width: fit-content;padding: 6px 15px;border-radius: var(--round-radius);}
.section-title  {font-size: clamp(1.75rem, 3vw, 2.5rem);font-weight: 700;color: var(--text);line-height: 1.2;margin-bottom: .75rem;text-wrap: balance;text-transform: uppercase;}
.section-desc   {color: var(--text-light);font-size: 1rem;margin-inline: auto;text-wrap: balance;}
.section-footer { text-align: center; margin-top: 2.5rem; }

/* ============================================================
   4. BUTTONS
   ============================================================ */
.btn {
    border-radius: var(--radius-sm);
    justify-content: center;
    align-items: center;
    gap: .5rem;
    padding: .875rem 1.5rem;
    font-size: .95rem;
    font-weight: 600;
    transition: transform .2s, box-shadow .2s, filter .2s;
    display: inline-flex;
    box-shadow: 0 10px 15px -10px #8b5cf63d;
    border: 1px;
}

.btn-lg { padding: .85rem 2rem; font-size: 1rem; }
.btn-sm { padding: .45rem 1rem; font-size: .875rem; }

.btn-primary,.btn-accent {
    color: #fff;
    background-image: var(--gradient-brand);
}
.btn-primary:hover,.btn-accent:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid #ffffff94;
}
.btn-outline:hover {
  background: transparent;
  color: var(--bg);
  transform: translateY(-3px);
  backdrop-filter: blur(10px);
  border-color: var(--accent-2);
}

.btn-outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.6);
}
.btn-outline-light:hover {
  background: rgba(255,255,255,.15);
  border-color: #fff;
  color: #fff;
}

/* ============================================================
   5. NAVIGATION
   ============================================================ */

/* Header wrapper (fixed) */
.site-header {
    position: fixed;
    top: 4%;
    left: 10%;
    z-index: 1000;
    width: 80%;
}

header#site-header.scrolled {
    top: 0;
    width: 100%;
    left: 0;
}

/* ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ Top Bar ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ */
.top-bar {
  background: var(--primary);
  height: var(--topbar-height);
  display: flex;
  align-items: center;
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding-inline: 10%;
  gap: 1rem;
}

.top-bar-address {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .8rem;
  color: rgba(255,255,255,.8);
}
.top-bar-address svg { flex-shrink: 0; opacity: .7; }

.top-bar-reveal-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .8rem;
  font-weight: 600;
  color: #fff;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: var(--radius-full);
  padding: .25rem .875rem;
  cursor: pointer;
  transition: background .2s ease;
  text-decoration: none;
  white-space: nowrap;
}
.top-bar-reveal-btn:hover { background: rgba(255,255,255,.25); color: #fff; }
.top-bar-reveal-btn svg { flex-shrink: 0; }

/* Logique reveal gÃƒÆ’Ã‚Â©nÃƒÆ’Ã‚Â©rique : s'applique ÃƒÆ’Ã‚Â  top-bar, hero, footer, contact */
.reveal-btn .reveal-number,
.top-bar-reveal-btn .reveal-number { display: none; }

.reveal-btn.revealed .reveal-label,
.top-bar-reveal-btn.revealed .reveal-label { display: none; }

.reveal-btn.revealed .reveal-number,
.top-bar-reveal-btn.revealed .reveal-number { display: inline; }

/* ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ Main Nav ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ */
.main-nav {
  position: relative;
  z-index: 1;
  height: var(--nav-height);
  transition: all .3s ease, box-shadow .3s ease;
  border-radius: var(--round-radius);
}

.site-header.scrolled .main-nav {
   -webkit-backdrop-filter: blur(24px) saturate(180%);
   backdrop-filter: blur(8px) saturate(180%);
   box-shadow: inset 0px 0px 5px #960bac36;
   background: #0a0414c7;
   padding: 0 10%;
   border-radius: 0;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding-inline: 0%;
  gap: 2rem;
}

/* Social icons in nav */
.nav-social {
  display: flex;
  align-items: center;
  gap: .5rem;
}
.nav-social a {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  /* background: var(--primary); */
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0px solid var(--border);
  transition: var(--transition);
}
.nav-social a:hover {
  background: var(--accent-2);
  color: #fff;
  border-color: var(--accent-2);
  transform: translateY(-2px);
}

/* Logo */
.nav-logo { display: flex; align-items: center; flex-shrink: 0; }
.nav-logo img {
    height: 58px;
    width: auto;
}
.nav-logo-text { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; color: var(--primary); letter-spacing: .02em; }

/* Desktop links */
.nav-links {
  display: flex;
  align-items: center;
  gap: .25rem;
  flex: 1;
  justify-content: center;
}

.nav-item { position: relative; }

.nav-link {
  display: flex;
  align-items: center;
  gap: .35rem;
  padding: .5rem .75rem;
  font-size: .9rem;
  font-weight: 400;
  color: var(--text);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  white-space: nowrap;
  letter-spacing: 1px;
}
.nav-link:hover, .nav-link.active {
  color: var(--primary-dark);
  background: #ffffff14;
}
.dropdown-arrow { flex-shrink: 0; opacity: .7; transition: transform .2s ease; }
.nav-item.has-dropdown:hover .dropdown-arrow { transform: rotate(180deg); }

/* Dropdown */
.dropdown-menu {
  position: absolute;
  top: calc(100% + .5rem);
  left: 0;
  min-width: 220px;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  padding: .5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
  z-index: 10;
}
.nav-item.has-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-link {
  display: block;
  padding: .6rem 1.25rem;
  font-size: .9rem;
  color: var(--text);
  transition: var(--transition);
}
.dropdown-link:hover {
  background: var(--accent-light);
  color: var(--accent-2);
  padding-left: 1.5rem;
}

/* Actions */
.nav-actions { display: flex; align-items: center; gap: .75rem; flex-shrink: 0; }

.nav-phone {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
}
.nav-phone:hover { color: var(--primary); }

.nav-cta { font-size: .85rem; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: var(--accent-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0;
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  z-index: 999;
  overflow-y: auto;
  padding: 1.5rem var(--container-pad) 2rem;
  transform: translateX(100%);
  transition: transform .3s ease;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-nav-list { display: flex; flex-direction: column; gap: .25rem; }
.mobile-nav-link {
  display: block;
  padding: .85rem 1rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  border-radius: var(--radius-sm);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.mobile-nav-link:last-child { border-bottom: none; }
.mobile-nav-link:hover { background: var(--accent-light); color: var(--primary); }
.mobile-subnav { margin-top: .25rem; margin-left: 1rem; display: flex; flex-direction: column; gap: .15rem; }
.mobile-subnav-link { font-size: .9rem; color: var(--text-muted) !important; padding: .6rem 1rem !important; }

/* ============================================================
   6. FLASH MESSAGES
   ============================================================ */
.flash-container {
  position: fixed;
  top: calc(var(--header-height) + 1rem);
  right: 1.25rem;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: .625rem;
  max-width: 360px;
}

.flash {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: .875rem 1.125rem;
  border-radius: var(--radius-md);
  font-size: .9rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  animation: slideInRight .35s ease;
  border-left: 4px solid transparent;
  background: #fff;
  color: var(--text);
}

.flash-success { border-left-color: #22c55e; background: #f0fdf4; color: #166534; }
.flash-error   { border-left-color: #ef4444; background: #fef2f2; color: #991b1b; }
.flash-warning { border-left-color: #f59e0b; background: #fffbeb; color: #92400e; }
.flash-info    { border-left-color: var(--accent); background: var(--accent-light); color: var(--accent-2); }

.flash.dismissing { animation: slideOutRight .35s ease forwards; }

@keyframes slideInRight  { from { opacity:0; transform:translateX(100%); } to { opacity:1; transform:translateX(0); } }
@keyframes slideOutRight { from { opacity:1; transform:translateX(0); } to { opacity:0; transform:translateX(110%); } }

/* ============================================================
   7. HERO SECTION
   ============================================================ */
.mark{
    padding: 7px 20px;
    border-radius: var(--round-radius);
    font-size: 12px;
    letter-spacing: 1px;
}
.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.hero-slider { position: relative; width: 100%; height: 100vh; min-height: 560px; }

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1s ease;
  display: flex;
  align-items: center;
}
.hero-slide.active { opacity: 1; z-index: 1; }

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: linear-gradient(90deg, #7c3aed0f 1px, #0000 1px), linear-gradient(#7c3aed0f 1px, #0000 1px);
  background-size: 48px 48px;
  -webkit-mask-image : radial-gradient(#000 30%, #0000 75%);
  mask-image: radial-gradient(#000 30%, #0000 75%);
}
.hero-overlay:before{
  content: "";
  position: absolute;
  background: radial-gradient(circle, #8b5cf6 0%, transparent 60%);
  top: 4%;
  left: -4%;
  width: 500px;
  height: 500px;
  opacity: .7;
  animation: grow 10s alternate-reverse infinite;
}
.hero-overlay::after{
  content: "";
  position: absolute;
  background: radial-gradient(circle, #8b5cf6 0%, transparent 60%);
  bottom: 4%;
  right: 0%;
  width: 500px;
  height: 500px;
  opacity: .7;
  animation: grow 10s alternate-reverse infinite;
}
@keyframes grow{
  from{width: 300px;height: 300px;}
  to{width: 500px;height: 500px;}
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: var(--header-height);
  display: grid;
  align-items: center;
  min-height: 100vh;
  grid-template-columns: 1.4fr 1fr;
  padding-bottom: 0;
  grid-gap: 3em;
}
.hero-image{
    height: auto;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image .stat1,.hero-image .stat2 {
    position: absolute;
    background: #dfdfdf36;
    padding: 10px 20px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 10px;
}
.hero-image .stat1{animation: pulse2 3s alternate-reverse linear infinite;}
.hero-image .stat2{animation: pulse3 2s alternate-reverse linear infinite;}
.hero-image .stat1 .icone, .hero-image .stat2 .icone{display: flex;justify-content: center;align-items: center;width: 45px;}
.hero-image .stat1 span:nth-child(2), .hero-image .stat2 span:nth-child(2){display: flex;flex-direction: column;/* align-items: center; */justify-content: center;line-height: 1.2;font-size: 16px;letter-spacing: 1px;color: #ffffff;}
.hero-image .stat1 span:nth-child(2) b, .hero-image .stat2 span:nth-child(2) b{font-size: 20px;color: var(--border-dark);}
.hero-image .stat1 {
    top: 0;
    left: 0;
}

.hero-image .stat2 {
    bottom: 0;
    right: 0;
}
.hero-image img{object-fit:contain;object-position: bottom;animation: pulse 2s alternate-reverse linear infinite;}
@keyframes pulse{
  from{transform: translateY(-15px);}
  to{transform: translateY(15px);}
}
@keyframes pulse2{
  from{transform: translateX(-15px);}
  to{transform: translateX(15px);}
}
@keyframes pulse3{
  from{transform: translateX(-10px);}
  to{transform: translateX(10px);}
}
.hero-text {text-align: left;display: flex;flex-direction: column;align-items: flex-start;}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.2;
  margin: 1.25rem 0;
  text-wrap: balance;
  color: var(--text);
}

.hero-subtitle {
  font-size: clamp(1rem, 1.8vw, 1rem);
  margin-bottom: 2rem;
  line-height: 1.65;
  font-weight: 300;
  letter-spacing: .5px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }

/* Hero dots */
.hero-dots {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: .5rem;
}
.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.45);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  padding: 0;
}
.hero-dot.active, .hero-dot:hover {
  background: #fff;
  transform: scale(1.3);
}

/* Default hero (no banners) */
.hero-default {
  height: 100vh;
  min-height: 560px;
  /* background: var(--gradient-brand-soft); */
  display: flex;
  align-items: center;
}

/* ============================================================
   8. PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  position: relative;
  padding-top: calc(var(--header-height) + 3.5rem);
  padding-bottom: 3.5rem;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  background-image: none !important;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  backdrop-filter: blur(10px);
  background-image: linear-gradient(90deg, #7c3aed1f 1px, #0000 1px), linear-gradient(#7c3aed1f 1px, #0000 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(#000 30%, #0000 75%);
  z-index: -1;
}

.page-hero-sm {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
}

.page-hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.page-hero-content h1 {
  font-size: clamp(1.75rem, 3.5vw, 3rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: .75rem;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
}
.page-hero-content p { color: rgba(255,255,255,.72); font-size: 1.0625rem; }

/* Breadcrumb */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem;
  font-size: .875rem;
  color: rgba(255,255,255,.65);
  margin-bottom: 1rem;
}
.breadcrumb a { color: rgba(255,255,255,.8); transition: var(--transition); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { color: rgba(255,255,255,.9); }

/* Hero actions */
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem;justify-content: center;}

/* ============================================================
   9. PRESENTATION SECTION
   ============================================================ */
.presentation-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.presentation-content {display: flex;flex-direction: column;align-items: flex-start;}

.presentation-subtitle {
  font-size: 1.125rem;
  color: var(--primary);
  line-height: 1.7;
  text-wrap: balance;
}

.presentation-body {
  font-size: 1rem;
  line-height: 1.8;
  max-height: 260px;
  overflow-y: auto;
  padding-right: .5rem;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.presentation-body::-webkit-scrollbar { width: 5px; }
.presentation-body::-webkit-scrollbar-track { background: transparent; }
.presentation-body::-webkit-scrollbar-thumb { background: var(--border); border-radius: 99px; }

.presentation-image-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  display: none;
}
.presentation-image-wrap img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}
.stat-card {
  background: linear-gradient(45deg, #e879f92e, #8b5cf645);
  border-radius: var(--radius-md);
  padding: 1.25rem 1rem;
  text-align: center;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  transition: all .3s linear;
}
.stat-card:hover{transform: translateY(-5px);}
.stat-value {
  display: block;
  font-size: 4rem;
  font-weight: 800;
  color: var(--bg-light);
  line-height: 1;
  margin-bottom: .35rem;
}
.stat-label {
  font-size: 1rem;
  color: var(--bg);
  font-weight: 400;
  letter-spacing: 1px;
}

/* ============================================================
   10. SERVICES SECTION
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: transparent;
  border-radius: var(--radius-md);
  padding: 2rem;
  border: 1px solid #eee2f01f;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: .875rem;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.service-icon img { width: 32px; height: 32px; object-fit: contain; }
.service-title {font-size: 1.6em;font-weight: 700;color: var(--text);}
.service-excerpt { font-size: .9rem; color: var(--text-muted); line-height: 1.65; flex: 1; }
.service-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .875rem;
  font-weight: 400;
  color: var(--text);
  margin-top: auto;
  transition: var(--transition);
  letter-spacing: .5px;
}
.service-link:hover { color: var(--accent-2); gap: .6rem; }
.service-image{height: 40vh;overflow: hidden;}
.service-image img{width: 100%;height: 100%;object-fit: cover;}
/* ============================================================
   11. ATOUTS SECTION
   ============================================================ */
.atouts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.atout-card {
  background: transparent;
  border-radius: var(--radius-lg);
  padding: 1.7rem;
  border: 1px solid #ffffff24;
  transition: var(--transition) !important;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}
.atout-card:hover {transform: translateY(-4px) !important;box-shadow: 10px 10px 50px #13131445;}

.atout-icon {
  width: 70px;
  height: 70px;
  border-radius: var(--radius-sm);
  background: linear-gradient(45deg, #960bac, #7c3aed, #e879f9);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  flex-shrink: 0;
}
.atout-icon svg {width: 40px;height: 40px;}

.atout-card h3 {font-size: 1.5em;font-weight: 700;color: var(--text);margin: 15px 0;}
.atout-card p  {font-size: .9rem;color: var(--text-light);line-height: 1.65;}

/* --- CARTES ET STRUCTURES 3D (Glassmorphism & Interactive Tilt) --- */
.card-3d.nobg{border: none;background:transparent ;}
.card-3d-wrapper {
    perspective: 1000px;
    border-radius: var(--radius-sm);
}

.card-3d {
    background: linear-gradient(45deg, #490055, #2c0b65);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px 30px;
    transition: border-color 0.4s ease, box-shadow 0.4s ease, background 0.4s ease;
    transform-style: preserve-3d;
    height: 100%;
    position: relative;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--radius-sm);
}

.card-3d:hover {
    border-color: rgba(232, 121, 249, 0.3);
    box-shadow: 0 15px 40px rgba(150, 11, 172, 0.15);
    background: rgba(255, 255, 255, 0.04);
}
.card-3d.nobg:hover {
    border-color: transparent;
    box-shadow: none;
    background: transparent;
}
.card-3d-content {
    transform: translateZ(50px);
    transition: transform 0.2s ease-out;
}
/* ============================================================
   11. TEAM SECTION
   ============================================================ */
.team-section {
  color: #E2E8F0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3% 10%;
}

.team-header {
  text-align: center;
  margin-bottom: 64px;
  max-width: 700px;
}
.member-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 28px;
  width: 100%;
  grid-template-areas: "i1 i5 i2"
  "i3 i6 i4";
}

.member-card {
  background: #7c3aed14;
  border: 1px solid rgba(148, 163, 184, 0.08);
  border-radius: 20px;
  padding: 55px;
  text-align: center;
  backdrop-filter: blur(12px);
  transition: all 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  cursor: default;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.member-card:nth-child(1){grid-area: i1;}
.member-card:nth-child(2){grid-area: i2;}
.member-card:nth-child(3){grid-area: i3;}
.member-card:nth-child(4){grid-area: i4;}
.member-card:nth-child(5){grid-area: i5;}
.member-card:nth-child(6){grid-area: i6;background: #7c3aed24;}
.member-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 1px;
  background: linear-gradient(135deg, #c819e3, rgb(247 247 247 / 0%), #e879f93b 60%
0%
);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
}

.member-card:hover {
  transform: translateY(-8px);
  background: var(--bg-card);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 40px rgba(124, 58, 237, 0.08);
}

.member-card:hover::before {
  opacity: 1;
}

.member-img {
  width: 200px;
  height: 200px;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(124, 58, 237, 0.3);
  box-shadow: 0 0 30px rgba(124, 58, 237, 0.15);
  transition: all 0.45s ease;
  position: relative;
  background-color: #fff;
}

.member-card:nth-child(6) .member-img {
    border-radius: 0;
    background-color: transparent;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border: 0;
    box-shadow: none;
    overflow: visible;
}

.member-card:nth-child(6) .member-img img {
    object-fit: contain;
}

.member-card:hover .member-img {
  border-color: #e879f9;
  box-shadow: 0 0 40px rgba(124, 58, 237, 0.25);
  transform: scale(1.05);
}

.member-card:nth-child(6):hover .member-img {
    box-shadow: none;
    transform: scale(1.03);
}

.member-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.member-card:hover .member-img img {
  transform: scale(1.1);
}

.member-name {
  display: block;
  font-size: 1.15rem;
  font-weight: 600;
  color: #F8FAFC;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.member-function {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--border-dark);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.member-description {
  font-size: 1rem;
  color: #94A3B8;
  line-height: 1.6;
  margin: 0;
  font-weight: 400;
}
/* ============================================================
   12. CERTIFICATIONS
   ============================================================ */
.certifications-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2rem 3rem;
  padding: 1rem 0;
}

.cert-item {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: .7;
  transition: var(--transition);
  filter: grayscale(40%);
}
.cert-item:hover { opacity: 1; filter: none; }
.cert-item img { max-height: 56px; max-width: 140px; width: auto; object-fit: contain; }
.cert-name {
  font-weight: 600;
  color: var(--text-muted);
  font-size: .9375rem;
  text-align: center;
  padding: .5rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
}

/* ============================================================
   13. REALIZATIONS
   ============================================================ */
.realizations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.realization-card {
  display: block;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
  text-decoration: none;
  color: inherit;
}
.realization-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.realization-image { position: relative; overflow: hidden; height: 220px; }
.realization-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.realization-card:hover .realization-image img { transform: scale(1.05); }

.realization-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(14,79,127,.7) 0%, transparent 60%);
  opacity: 0;
  transition: var(--transition);
}
.realization-card:hover .realization-overlay { opacity: 1; }

.realization-info { padding: 1.25rem; }
.realization-cat {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--accent);
  margin-bottom: .5rem;
}
.realization-info h3 { font-size: 1rem; font-weight: 700; color: var(--primary); margin-bottom: .35rem; line-height: 1.3; }
.realization-client { font-size: .875rem; color: var(--text-muted); }

/* ============================================================
   13b. HOMEPAGE PORTFOLIO MOSAIC
   ============================================================ */
.home-portfolio-mosaic {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-areas:
    "i1 i2 i3"
    "i4 i5 i6";
  gap: 8px;
}
.home-portfolio-mosaic .hpm-item:nth-child(1) { grid-area: i1; }
.home-portfolio-mosaic .hpm-item:nth-child(2) { grid-area: i2; }
.home-portfolio-mosaic .hpm-item:nth-child(3) { grid-area: i3; }
.home-portfolio-mosaic .hpm-item:nth-child(4) { grid-area: i4; }
.home-portfolio-mosaic .hpm-item:nth-child(5) { grid-area: i5; }
.home-portfolio-mosaic .hpm-item:nth-child(6) { grid-area: i6; }

/* Fallbacks selon le nombre d'items */
.home-portfolio-mosaic[data-items="5"],
.home-portfolio-mosaic[data-items="4"] {
  grid-template-columns: 1fr 1fr 1.5fr;
  grid-template-areas:
    "i1 i1 i2"
    "i3 i4 i2";
}
.home-portfolio-mosaic[data-items="3"] {
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: clamp(180px, 22vw, 280px);
  grid-template-areas: "i1 i2 i3";
}
.home-portfolio-mosaic[data-items="2"] {
  grid-template-columns: 1fr 1.5fr;
  grid-template-rows: clamp(200px, 24vw, 300px);
  grid-template-areas: "i1 i2";
}

/* Item de base */
.hpm-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: var(--bg-light);
  display: block;
  text-decoration: none;
  color: inherit;
}
.hpm-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}
.hpm-item:hover img,
.hpm-item:focus img { transform: scale(1.06); }
.hpm-item.hpm-clickable { cursor: pointer; }

/* Placeholder quand pas d'image */
.hpm-no-img {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--bg-light) 0%, #e2e8f0 100%);
  display: flex; align-items: center; justify-content: center;
}

/* Overlay sombre (mode 1 & 3) ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Â toujours visible */
.hpm-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #000, #00000030, #00000000);
  opacity: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: .9rem 1.1rem;
  gap: .12rem;
}
/* Mode 2 : overlay centrÃƒÆ’Ã‚Â© au hover uniquement */
.hpm-overlay.hpm-overlay-light { opacity: 0; transition: opacity .3s ease; }
.hpm-item:hover .hpm-overlay.hpm-overlay-light { opacity: 1; }

/* Overlay centrÃƒÆ’Ã‚Â© (mode 2) */
.hpm-overlay-light {
  background: rgba(0,0,0,.38);
  justify-content: center;
  align-items: center;
  padding: 0;
}
.hpm-zoom-icon {
  color: #fff;
  opacity: 0;
  transform: scale(.75);
  transition: opacity .3s ease, transform .3s ease;
}
.hpm-item:hover .hpm-zoom-icon { opacity: 1; transform: scale(1); }

/* Textes de l'overlay */
.hpm-cat  {font-size: .68rem;font-weight: 700;text-transform: uppercase;letter-spacing: .08em;color: var(--border-dark);}
.hpm-title{font-size: 1.95rem;font-weight: 700;color: #fff;line-height: 1.3;}
.hpm-link { font-size: .75rem; color: rgba(255,255,255,.8); display: flex; align-items: center; gap: .3rem; margin-top: .2rem; }

/* ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ Responsive mosaÃƒÆ’Ã‚Â¯que ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ */
@media (max-width: 1024px) {
  .home-portfolio-mosaic,
  .home-portfolio-mosaic[data-items] {
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: clamp(130px, 20vw, 200px) clamp(130px, 20vw, 200px);
    grid-template-areas:
      "i1 i1 i2"
      "i3 i4 i2";
  }
  .home-portfolio-mosaic .hpm-item:nth-child(5),
}

/* ============================================================
   13c. PAGE RÃƒÆ’Ã¢â‚¬Â°ALISATIONS ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Â Grille 3 colonnes (mode 1 & 3)
   ============================================================ */
.portfolio-hpm-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.portfolio-hpm-grid .hpm-item {
  height: clamp(200px, 24vw, 320px);
}
@media (max-width: 1024px) {
  .portfolio-hpm-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   14. TESTIMONIALS CAROUSEL
   ============================================================ */
.testimonials-carousel { position: relative; overflow: hidden; }

.testimonials-track {
  display: flex;
  gap: 1.5rem;
  transition: transform .45s ease;
  cursor: grab;
  user-select: none;
}
.testimonials-track:active { cursor: grabbing; }

.testimonial-card {
  flex: 0 0 calc(33.333% - 1rem);
  min-width: calc(33.333% - 1rem);
  background: linear-gradient(45deg, #490055, #2c0b65);
  border-radius: var(--radius-md);
  padding: 2rem;
  border: 1px solid #eee2f01f;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.testimonial-stars { display: flex; gap: .2rem; }

.testimonial-content {
  font-size: .9375rem;
  color: var(--text);
  line-height: 1.7;
  font-style: italic;
  flex: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: .875rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid #eee2f01c;
}
.testimonial-photo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.testimonial-name {font-weight: 700;font-size: .9rem;color: var(--text);}
.testimonial-company { font-size: .8125rem; color: var(--text-muted); margin-top: .15rem; }

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 2rem;
}
.carousel-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  cursor: pointer;
  opacity: .5;
}
.carousel-btn:hover {background: var(--primary);border-color: var(--primary);color: #fff;opacity: 1;}
.carousel-dots { display: flex; gap: .5rem; }
.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  padding: 0;
}
.carousel-dot.active {background: var(--accent-2);transform: scale(1.4);}

/* ============================================================
   14b. PAGE TÃƒÆ’Ã¢â‚¬Â°MOIGNAGES ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Â grille, modal, ÃƒÆ’Ã‚Â©toiles, empty state
   ============================================================ */

/* Grille de la page liste */
.testimonials-page-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.testimonials-page-grid .testimonial-card {
  flex: none;
  width: auto;
  min-width: 0;
}
@media (max-width: 1024px) {
  .testimonials-page-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Empty state page */
.tm-empty {
  text-align: center;
  padding: 4rem 1rem;
}
.tm-empty-icon {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  opacity: .5;
}
.tm-empty h2 { font-size: 1.4rem; margin: 0 0 .6rem; }
.tm-empty p  { color: var(--text-muted); margin-bottom: 1.75rem; }

/* Empty state accueil */
.tm-home-empty {
  text-align: center;
  padding: 1.5rem;
  color: var(--text-muted);
  font-size: .95rem;
}

/* Modal overlay */
.tm-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 8000;
  backdrop-filter: blur(2px);
}

/* Modal box */
.tm-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 8001;
  width: min(560px, 94vw);
  max-height: 90vh;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 24px 64px rgba(0,0,0,.25);
  flex-direction: column;
  overflow: hidden;
}
.tm-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.tm-modal-header h3 { margin: 0; font-size: 1rem; font-weight: 700; }
.tm-modal-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  padding: .25rem;
  border-radius: 6px;
  display: flex;
  transition: color .2s;
}
.tm-modal-close:hover { color: var(--danger); }
.tm-modal-body {
  overflow-y: auto;
  padding: 1.5rem;
  flex: 1;
}

/* Star rating interactif */
.tm-star-rating {
  display: flex;
  flex-direction: row-reverse;
  gap: .2rem;
}
.tm-star-rating input[type="radio"] { display: none; }
.tm-star-rating label {
  cursor: pointer;
  color: #e2e8f0;
  transition: color .15s;
  line-height: 0;
}
.tm-star-rating label svg { fill: currentColor; display: block; }
.tm-star-rating input:checked ~ label,
.tm-star-rating label:hover,
.tm-star-rating label:hover ~ label { color: #f59e0b; }

/* ============================================================
   15. NEWS
   ============================================================ */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

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

.news-card {
  display: flex;
  flex-direction: column;
  background: transparent;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid #eee2f01c;
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
  text-decoration: none;
  color: inherit;
}
.news-card:hover {transform: translateY(-4px);box-shadow: var(--shadow-md);}

.news-image {overflow: hidden;height: 40vh;flex-shrink: 0;}
.news-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.news-card:hover .news-image img { transform: scale(1.04); }

.news-body { padding: 1.25rem; display: flex; flex-direction: column; gap: .625rem; flex: 1; }

.news-cat {
  display: inline-flex;
  padding: .2rem .7rem;
  background: rgb(255 255 255 / 10%);
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  border-radius: var(--radius-full);
  align-self: center;
}

.news-title {font-size: 1.3rem;font-weight: 700;line-height: 1.7;}

.news-excerpt {font-size: .875rem;color: var(--text-light);line-height: 1.6;flex: 1;}

.news-date { font-size: .8125rem; color: var(--text-light); margin-top: auto; }

/* Article page */
.article-excerpt {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.75;
  font-style: italic;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #eee2f017;
}

/* ============================================================
   16. ZONES
   ============================================================ */
.zone-main-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.zone-main-subtitle {
  color: var(--text-light);
  font-size: 1.05rem;
  margin: .5rem 0 1rem;
}

.zone-main-desc {
  color: var(--text);
  line-height: 2;
  margin-bottom: 1.75rem;
  max-height: 300px;
  overflow-y: auto;
  padding-right: .5rem;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
  font-size: .9em;
}
.zone-main-desc::-webkit-scrollbar { width: 5px; }
.zone-main-desc::-webkit-scrollbar-track { background: transparent; }
.zone-main-desc::-webkit-scrollbar-thumb { background: var(--border); border-radius: 99px; }

.zone-main-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}

.zone-map-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: 0 4px 24px rgba(0, 0, 0, .12);
}

.zone-map-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

@media (max-width: 900px) {
  .zone-main-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .zone-map-wrap { aspect-ratio: 16 / 9; }
}
.contact-hero{
  background: linear-gradient(135deg, rgb(85 21 204 / 46%) 0%, rgb(232 121 249 / 35%) 100%);
  border-radius: var(--radius-lg);
  padding: 80px 40px;
  text-align: center;
  backdrop-filter: blur(15px);
  margin-bottom: 4em;
}

/* ============================================================
   17. FOOTER
   ============================================================ */
#main-footer {color: rgba(255,255,255,.8);}

/* Footer CTA */
.footer-cta {
  background: var(--bg-light);
  padding: 2rem 0;
}
.footer-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer-cta-title { font-size: clamp(1.25rem, 2.5vw, 1.75rem); font-weight: 800; color: var(--accent-2); margin-bottom: .5rem; }
.footer-cta-sub   { color: var(--text); font-size: 1rem; }

/* Bouton blanc dans le CTA */
.btn-white {
  background: transparent;
  color: var(--bg);
  border: 2px solid var(--bg);
}
.btn-white:hover { background: var(--bg); color: var(--accent-2); }

/* Footer main */
.footer-main {padding: 4rem 0 2.5rem;}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
}

.footer-col {}
.footer-heading {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: .5px;
  margin-bottom: 1.25rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer-list { display: flex; flex-direction: column; gap: .625rem; }
.footer-list li {font-size: 0.875rem;}
.footer-list a {
  color: rgba(255,255,255,.6);
  transition: var(--transition);
  display: inline-block;
}
.footer-list a:hover { color: #fff; padding-left: .3rem; }
.footer-list li:not(:has(a)) { color: rgba(255,255,255,.5); }

/* Contact list with icons */
.footer-contact-list { gap: .875rem !important; }
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: .625rem;
  font-size: .875rem;
  color: rgba(255,255,255,.65);
}
.footer-contact-item svg {flex-shrink: 0;margin-top: .2rem;color: var(--bg);}
.footer-contact-item a { color: rgba(255,255,255,.65); transition: var(--transition); }
.footer-contact-item a:hover { color: #fff; }
/* Bouton reveal dans le footer */
.footer-contact-item a.reveal-btn .reveal-label {
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.footer-contact-item a.reveal-btn .reveal-number { color: #fff; font-weight: 600; }

/* Horaires */
.footer-hours-list {
  display: flex;
  flex-direction: column;
  gap: .375rem;
}
.footer-hours-row {
  display: flex;
  justify-content: space-between;
  gap: .75rem;
  font-size: .8125rem;
  padding: .3rem 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.footer-hours-row:last-child { border-bottom: none; }
.hours-day { color: rgba(255,255,255,.75); font-weight: 500; }
.hours-time { color: rgba(255,255,255,.5); text-align: right; }
.footer-hours-row.closed .hours-day,
.footer-hours-row.closed .hours-time { color: rgba(255,255,255,.3); }

/* Footer bottom */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 1rem 0;
}
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer-bottom-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-logo {max-height: 36px;width: auto}
.footer-logo-text { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; color: rgba(255,255,255,.9); }
.footer-tagline { font-size: .8125rem; color: rgba(255,255,255,.4); }

.footer-social { display: flex; gap: .625rem; }
.footer-social a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.65);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  border: 1px solid rgba(255,255,255,.1);
}
.footer-social a:hover { background: var(--accent); color: #fff; border-color: var(--accent); transform: translateY(-2px); }

.footer-copy {font-size: .8125rem;color: #ffffff;}

/* ============================================================
   18. SCROLL TO TOP
   ============================================================ */
#scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 900;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(62,146,204,.4);
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px) scale(.9);
  pointer-events: none;
  transition: opacity .3s ease, transform .3s ease, background .2s ease;
}
#scroll-top.visible { opacity: 1; transform: translateY(0) scale(1); pointer-events: all; }
#scroll-top:hover   { background: var(--accent-2); transform: translateY(-3px) scale(1.05); }

/* ============================================================
   19. FADE-UP ANIMATIONS
   ============================================================ */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s ease, transform 1s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   20. FILTER BAR
   ============================================================ */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: .625rem;
  margin-bottom: 2rem;
}

.filter-tag {
  display: inline-flex;
  align-items: center;
  padding: .45rem 1.1rem;
  border-radius: var(--radius-full);
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  transition: var(--transition);
  cursor: pointer;
}
.filter-tag:hover, .filter-tag.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* ============================================================
   21. PAGINATION
   ============================================================ */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .375rem;
  padding: 2.5rem 0 1rem;
  flex-wrap: wrap;
}

.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 .625rem;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-weight: 600;
  border: 1.5px solid var(--border);
  color: var(--text-muted);
  background: var(--bg-card);
  transition: var(--transition);
  text-decoration: none;
}
.page-btn:hover { border-color: var(--accent); color: var(--accent); }
.page-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ============================================================
   22. PROSE (article content)
   ============================================================ */
.prose {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--text);
  max-width: 100%;
}
.prose h2, .prose h3, .prose h4 { color: var(--primary); margin-top: 2rem; margin-bottom: .875rem; line-height: 1.3; }
.prose h2 { font-size: 1.625rem; }
.prose h3 { font-size: 1.25rem; }
.prose p  { margin-bottom: 1.25rem; }
.prose ul, .prose ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }
.prose li { margin-bottom: .5rem; }
.prose ul li { list-style: disc; }
.prose ol li { list-style: decimal; }
.prose strong { font-weight: 700; color: var(--primary); }
.prose a { color: var(--accent); text-decoration: underline; }
.prose a:hover { color: var(--accent-2); }
.prose img { border-radius: var(--radius-md); margin: 1.5rem 0; }
.prose blockquote {
  border-left: 4px solid var(--accent);
  padding: 1rem 1.5rem;
  background: var(--accent-light);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--text-muted);
}
.prose pre {
  background: #1e293b;
  color: #e2e8f0;
  padding: 1.25rem;
  border-radius: var(--radius-md);
  overflow-x: auto;
  font-size: .9rem;
  margin-bottom: 1.25rem;
}
.prose table { width: 100%; border-collapse: collapse; margin-bottom: 1.25rem; }
.prose th, .prose td { padding: .75rem 1rem; border: 1px solid var(--border); }
.prose th { background: var(--bg-light); font-weight: 700; text-align: left; }

/* ============================================================
   23. TAGS
   ============================================================ */
.tag {
  display: inline-flex;
  align-items: center;
  padding: .25rem .75rem;
  border-radius: var(--radius-full);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .04em;
  background: transparent;
  color: var(--accent-2);
  border: 1px solid var(--accent-2);
  margin: .2rem;
  transition: var(--transition);
}
.tag:hover {background: var(--accent-2);color: var(--text);border-color: var(--accent-2);}

/* ============================================================
   24. FEATURES GRID (service page)
   ============================================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.feature-icon { margin-bottom: 1rem; font-size: 2rem; }
.feature-card h3 { font-size: 1.0625rem; font-weight: 700; color: var(--primary); margin-bottom: .5rem; }
.feature-card p  { font-size: .9rem; color: var(--text-muted); line-height: 1.65; }

/* ============================================================
   25. CONTACT PAGE
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 3rem;
  align-items: stretch;
}

/* ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ Panneau info gauche ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ */
.contact-info-panel { display: flex; flex-direction: column; gap: 1.5rem; }

.cip-block {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 2rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.cip-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1.5rem;
  padding-bottom: .75rem;
  border-bottom: 2px solid var(--accent-light);
}

.cip-subtitle {
  font-size: .875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.cip-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: .875rem 0;
  border-bottom: 1px solid var(--border);
}
.cip-item:last-child { border-bottom: none; }

.cip-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--primary);
}
.cip-icon--wa { background: #dcfce7; color: #16a34a; }

.cip-text { display: flex; flex-direction: column; gap: .2rem; }
.cip-label { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); }
.cip-value { font-size: .9375rem; color: var(--text); font-weight: 500; }
.cip-link {color: var(--text);transition: var(--transition);}
.cip-link:hover { color: var(--accent); text-decoration: underline; }

/* Horaires */
.cip-block--hours { background: var(--bg-light); border: none; }
.cip-hours-list { display: flex; flex-direction: column; gap: 0; }
.cip-hours-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .5rem;
  padding: .5rem 0;
  font-size: .875rem;
  border-bottom: 1px solid var(--border);
}
.cip-hours-row:last-child { border-bottom: none; }
.cip-hours-row span:first-child { color: var(--text); font-weight: 500; }
.cip-hours-row span:last-child  { color: var(--text-muted); text-align: right; }
.cip-hours-row.is-closed span   { color: var(--text-light); }

/* Map */
.cip-map { border-radius: var(--radius-md); overflow: hidden; }
.cip-map iframe {display: block;width: 100%;border: none;filter: invert(1);}

/* ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ Panneau formulaire droit ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ */
.contact-form-panel {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

.cfp-title {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: .4rem;
  text-transform: uppercase;
}
.cfp-subtitle {
  font-size: .9375rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.cfp-field { margin-bottom: 1rem; }

/* Inputs / Textarea / Select */
.cfp-input {
  width: 100%;
  padding: .875rem 1.125rem;
  border: 0px solid #e879f926;
  border-radius: var(--radius-sm);
  font-size: .9375rem;
  font-family: inherit;
  color: var(--text);
  background: #ffffff0a;
  transition: border-color .2s, box-shadow .2s, background .2s;
  appearance: none;
  outline: none;
}
.cfp-input::placeholder { color: var(--text-light); }
.cfp-input:focus {
  border-color: var(--accent);
  background: transparent;
  box-shadow: 0 0 0 3px rgba(62,146,204,.12);
}
.cfp-input:focus::placeholder { color: var(--text-muted); }

.cfp-textarea {
  min-height: 140px;
  resize: vertical;
}

.cfp-select {
  cursor: pointer;
  color: var(--text);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}
/* Placeholder color for select */
.cfp-select option[value=""] { color: var(--text-light); }

.cfp-submit {
  width: 100%;
  margin-top: .75rem;
  justify-content: center;
}

/* ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ Formulaire generic (admin pages) ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ */
.form-group { margin-bottom: 1.25rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-label { display: block; font-size: .875rem; font-weight: 600; color: var(--text); margin-bottom: .45rem; }

/* .form-control used in contact + other pages */
.form-control,
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: .75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .9375rem;
  font-family: inherit;
  color: var(--text);
  background: var(--bg-light);
  transition: border-color .2s, box-shadow .2s, background .2s;
  appearance: none;
  outline: none;
}
.form-control:focus,
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(62,146,204,.12);
}
.form-control.error, .form-textarea.error { border-color: #ef4444; }
.form-error-msg { font-size: .8125rem; color: #ef4444; margin-top: .3rem; display: none; }
.form-error-msg.visible { display: block; }
.form-textarea, textarea.form-control { min-height: 130px; resize: vertical; }
select.form-control, .form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}
.btn-full, .form-submit { width: 100%; }
.form-checkbox { display: flex; align-items: flex-start; gap: .75rem; cursor: pointer; }
.form-checkbox input[type="checkbox"] { width: 18px; height: 18px; border: 1.5px solid var(--border); border-radius: 4px; cursor: pointer; flex-shrink: 0; margin-top: 2px; accent-color: var(--accent); }
.form-checkbox span { font-size: .875rem; color: var(--text-muted); line-height: 1.5; }

/* ============================================================
   26. FAQ (SEO pages)
   ============================================================ */
.faq-list { display: flex; flex-direction: column; gap: .75rem; }
.faq-item {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-card);
}
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  font-weight: 600;
  color: var(--primary);
  gap: 1rem;
  user-select: none;
  transition: var(--transition);
}
.faq-question:hover { background: var(--accent-light); }
.faq-toggle { flex-shrink: 0; font-size: 1.25rem; color: var(--accent); transition: transform .25s ease; }
.faq-item.open .faq-toggle { transform: rotate(45deg); }
.faq-answer {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .35s ease;
  font-size: .9375rem;
  color: var(--text-muted);
  line-height: 1.75;
}
.faq-item.open .faq-answer { max-height: 600px; padding: 0 1.5rem 1.5rem; }

/* ============================================================
   27. SECTION SPINNER
   ============================================================ */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   28. LIGHTBOX
   ============================================================ */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(5,12,22,.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
  backdrop-filter: blur(6px);
}
.lightbox-overlay.open { opacity: 1; pointer-events: all; }
.lightbox-inner { position: relative; max-width: 90vw; max-height: 90vh; display: flex; flex-direction: column; align-items: center; }
.lightbox-img { max-width: 85vw; max-height: 75vh; object-fit: contain; border-radius: var(--radius-md); box-shadow: var(--shadow-xl); }
.lightbox-caption { margin-top: 1.25rem; text-align: center; }
.lightbox-caption h4  { color: #fff; font-size: 1.0625rem; margin-bottom: .25rem; }
.lightbox-caption span { font-size: .875rem; color: var(--accent); }
.lightbox-close {
  position: absolute; top: -3.5rem; right: 0;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.12); border: none; color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: var(--transition);
}
.lightbox-close:hover { background: rgba(255,255,255,.25); }
.lightbox-prev, .lightbox-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.12); border: none; color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: var(--transition);
}
.lightbox-prev { left: -3.5rem; }
.lightbox-next { right: -3.5rem; }
.lightbox-prev:hover, .lightbox-next:hover { background: var(--accent); }
.lightbox-prev svg, .lightbox-next svg, .lightbox-close svg { width: 18px; height: 18px; }

/* ============================================================
   29. REALIZATION DETAIL (template)
   ============================================================ */
.realization-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2rem; }
.realization-item { border-radius: var(--radius-md); overflow: hidden; cursor: pointer; position: relative; }
.realization-item img { width: 100%; height: 200px; object-fit: cover; transition: transform .3s ease; }
.realization-item:hover img { transform: scale(1.05); }
.realization-item-overlay {
  position: absolute; inset: 0;
  background: rgba(14,79,127,.5);
  opacity: 0; transition: var(--transition);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.5rem;
}
.realization-item:hover .realization-item-overlay { opacity: 1; }

.project-meta {
  display: flex; flex-wrap: wrap; gap: 1.5rem;
  padding: 1.5rem; background: var(--bg-light);
  border-radius: var(--radius-md); margin-bottom: 2rem;
  border: 1px solid var(--border);
}
.project-meta-item { display: flex; flex-direction: column; gap: .25rem; }
.project-meta-label { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-light); }
.project-meta-value { font-size: .9375rem; font-weight: 600; color: var(--primary); }

/* ============================================================
   30. RESPONSIVE BREAKPOINTS
   ============================================================ */
@media (max-width: 1024px) {
  :root { --container-pad: 1.25rem; }
  .container { padding-inline: 6%; }
  .nav-container { padding-inline: 6%; }
  .top-bar-inner { padding-inline: 6%; }

  .presentation-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .presentation-image-wrap img { height: 320px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }

  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom-inner { justify-content: center; text-align: center; flex-direction: column; gap: 1rem; }
  .footer-bottom-brand { justify-content: center; }

  .testimonial-card { flex: 0 0 calc(50% - .75rem); min-width: calc(50% - .75rem); }

  .contact-grid { grid-template-columns: 1fr; }
  .contact-form-panel { padding: 1.5rem; }
  .cip-block { padding: 1.5rem; }

  .realizations-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
}

@media print {
  #main-nav, .hero-dots, #scroll-top, .flash-container, .carousel-controls { display: none !important; }
  body { color: #000; background: #fff; }
}

/* ============================================================
   SERVICES SWIPER (homepage ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Â >= 4 services)
   ============================================================ */
.svc-swiper-wrap {
  position: relative;
  padding: 0 52px;          /* espace latÃƒÆ’Ã‚Â©ral pour les boutons nav */
}
.svc-swiper {
  overflow: hidden;          /* clip slides uniquement, arrows sont dehors */
  padding-bottom: 2.75rem;  /* espace pour la pagination dots */
}
/* Boutons nav externes (hors .swiper pour ÃƒÆ’Ã‚Â©viter le clipping) */
.svc-btn-prev,
.svc-btn-next {
  position: absolute;
  top: 50%;
  transform: translateY(calc(-50% - 1.4rem)); /* compense le padding-bottom pagination */
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: #ffffff24;
  box-shadow: 0 2px 12px rgba(0,0,0,.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  line-height: 1;
  color: var(--text);
  transition: background .2s, box-shadow .2s;
  z-index: 10;
  padding: 0;
}
.svc-btn-prev:hover,
.svc-btn-next:hover {
  background: var(--accent-2);
  box-shadow: 0 4px 20px rgba(0,0,0,.2);
  color: var(--text);
}
.svc-btn-prev {left: -20px;}
.svc-btn-next {right: -20px;}
.svc-btn-prev.swiper-button-disabled,
.svc-btn-next.swiper-button-disabled {
  opacity: .35;
  cursor: default;
}
.svc-swiper .swiper-pagination-bullet {
  background: var(--border);
  opacity: 1;
}
.svc-swiper .swiper-pagination-bullet-active {
  background: var(--primary);
  transform: scale(1.3);
}
@media (max-width: 639px) {
  .svc-swiper-wrap { padding: 0 20px; }
  .svc-btn-prev, .svc-btn-next { width: 36px; height: 36px; font-size: 1.3rem; }
}
.svc-slide {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 60vh;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,.08);
  transition: all .2s, box-shadow .2s;
  align-items: flex-start;
  justify-content: flex-end;
  position: relative
}
.svc-slide:before{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #00000036, #620f71ab, #240e57);
  z-index: 1;
}
.svc-slide:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 32px rgba(0,0,0,.13);
}
.svc-slide:hover::before{background: linear-gradient(180deg, #00000036,#6b396db5,#803e77ed)}
.svc-slide-img {
  overflow: hidden;
  aspect-ratio: 16/9;
  flex-shrink: 0;
  height: 100%
}
.svc-slide-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s;
  z-index: 0;
}
.svc-slide:hover .svc-slide-img img {
  transform: scale(1.04);
}
.svc-slide-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.5rem;
  position: absolute;
  align-items: flex-start;
  z-index: 2;
}
.svc-slide-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--bg);
  margin-bottom: .75rem;
  line-height: 1.3;
  text-wrap: balance
}
.svc-slide-excerpt {
  color: var(--bg);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex: 1;
}
.svc-swiper .swiper-wrapper {
  align-items: stretch;
}
.svc-swiper .swiper-slide {
  height: auto;
}

/* ============================================================
   QUICK CONTACT FORM (formulaire question rapide ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Â pages internes)
   ============================================================ */
.qcf-section {
    background-image: linear-gradient(90deg, #7c3aed1f 1px, #0000 1px), linear-gradient(#7c3aed1f 1px, #0000 1px);
    background-size: 48px 48px;
}
.qcf-section .container{
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  max-width: 80%;
  grid-gap: 3em;
}
.qcf-section .qcf-img{
    border-radius: var(--radius-md);
}
.qcf-section .qcf-img img{width: 100%;height: 100%;object-fit: cover;border-radius: var(--radius-md);}
.qcf-box {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 4rem 4rem;
  backdrop-filter: blur(100px);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.qcf-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.qcf-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #7c3aed;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
}

.qcf-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0 0 .25rem;
}

.qcf-subtitle {
  font-size: .875rem;
  color: var(--text-muted);
  margin: 0;
}

.qcf-form {display: flex;flex-direction: column;gap: 2rem;}

.qcf-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.qcf-field { display: flex; flex-direction: column; }

.qcf-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
  justify-content: flex-start;
}

.qcf-success {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: #16a34a;
  font-weight: 600;
  font-size: .9375rem;
}

.qcf-error {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: #ef4444;
  font-size: .875rem;
}

/* ============================================================
   PORTFOLIO GALLERY (Mode 2 ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Â galerie simple)
   ============================================================ */
.portfolio-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .75rem;
}
.portfolio-gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  cursor: pointer;
  background: var(--bg-light);
  aspect-ratio: 1 / 1;
}
.portfolio-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.portfolio-gallery-item:hover img { transform: scale(1.06); }
.portfolio-gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(14, 79, 127, .5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  opacity: 0;
  transition: opacity .25s ease;
}
.portfolio-gallery-item:hover .portfolio-gallery-overlay { opacity: 1; }

/* ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ Portfolio lightbox (modes 2 & 3) ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ */
.portfolio-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 4000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.plb-bg {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 3999;
  background: rgba(0, 0, 0, .88);
  backdrop-filter: blur(6px);
}
.plb-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 90vw;
  max-height: 90vh;
}
.plb-content img {
  max-width: 85vw;
  max-height: 78vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 24px 64px rgba(0,0,0,.5);
  display: block;
}
.plb-counter {
  margin-top: .75rem;
  color: rgba(255,255,255,.7);
  font-size: .875rem;
  letter-spacing: .03em;
}
.plb-close {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 4001;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  width: 42px;
  height: 42px;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}
.plb-close:hover { background: rgba(255,255,255,.25); }
.plb-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4001;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}
.plb-nav:hover { background: rgba(255,255,255,.25); }
.plb-prev { left: 1.25rem; }
.plb-next { right: 1.25rem; }
@media (max-width: 640px) {
  .qcf-box { padding: 1.5rem; }
  .qcf-row { grid-template-columns: 1fr; }
  .home-portfolio-mosaic,
  .home-portfolio-mosaic[data-items] {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: clamp(110px, 400px, 170px) clamp(110px, 3400px, 170px) clamp(110px, 400px, 170px);
    grid-template-areas: "i1 i2"
      "i3 i4"
      "i5 i6";
  }
  .portfolio-hpm-grid { grid-template-columns: 1fr; }
  .portfolio-hpm-grid .hpm-item { height: clamp(160px, 55vw, 240px); }
  .testimonials-page-grid { grid-template-columns: 1fr; }
}
@media (min-width: 1280px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  :root { --container-pad: 1rem; --nav-height: 64px; --topbar-height: 36px; }
  .loader-ring{width: 320px;height: 320px;}
  .loader-ring-inner{width: 300px;height: 300px;}
  .loader-logo{width: 200px;}
  .site-header{width: 100%;left: 0;}
  .nav-logo img{height: 45px;}
  section#atouts, section#presentation{mask-image: none;-webkit-mask-image: none;}
  .hero-content{grid-template-columns: 1fr;height: 100%;padding-top: 10em;min-height: 100%;gap: 5em;}
  .presentation-grid{display: flex;flex-direction: column;justify-content: center;}
  .stat-value{font-size: 2rem;}
  .stat-card{min-height: 150px;}
  .hero-image .stat1{top: -50px;}
  .hero-image .stat2{bottom: -50px;}
  .hero{overflow: visible;}
  .hero-default{height: 100%;}
  .site-header.scrolled .main-nav{padding: 0%;}
  .hpm-title{font-size: 1.2rem;}
  .svc-slide{min-height: 35vh;}
  .svc-slide-title{font-size: 1.5rem;}
   .portfolio-gallery { grid-template-columns: repeat(2, 1fr); }
   .member-grid{grid-template-columns: 1fr;grid-template-areas: "i1" "i2" "i3" "i4" "i5" "i6";}
   .qcf-section .container{display: flex;flex-direction: column;align-items: center;justify-content: center;max-width: 100%}
   .qcf-title{font-size: 1.4em;line-height: 1.2;}
   .member-card{padding: 30px;}
  .plb-nav { width: 38px; height: 38px; }
  .plb-prev { left: .5rem; }
  .plb-next { right: .5rem; }
  .container { padding-inline: 1.25rem; }
  .nav-container { padding-inline: 1.25rem;width: 650px}
  .top-bar-inner { padding-inline: 1.25rem; }
  /* Mobile : cacher l'adresse top-bar, afficher les numÃƒÆ’Ã‚Â©ros directement partout */
  .top-bar-address { display: none; }
  .top-bar-reveal-btn .reveal-label,
  .reveal-btn .reveal-label { display: none; }
  .top-bar-reveal-btn .reveal-number,
  .reveal-btn .reveal-number { display: inline; }

  .section { padding-block: 3.5rem; }

  /* Nav */
  .nav-links, .nav-social { display: none; }
  .hamburger { display: flex; }
  .mobile-menu { display: block; }

  /* Hero */
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .hero-actions .btn { width: 100%; justify-content: center; }

  /* Grids */
  .services-grid     { grid-template-columns: 1fr; }
  .atouts-grid       { grid-template-columns: 1fr; }
  .news-grid         { grid-template-columns: 1fr; }
  .news-grid-3       { grid-template-columns: 1fr; }
  .realizations-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid     { grid-template-columns: 1fr; }

  /* Testimonials */
  .testimonial-card { flex: 0 0 100%; min-width: 100%; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .footer-cta-inner { flex-direction: column; text-align: center; }
  .footer-hours-row { font-size: .8125rem; }

  /* Forms */
  .form-row { grid-template-columns: 1fr; }

  /* Stats */
  .stats-grid { grid-template-columns: repeat(3, 1fr); gap: .75rem; }

  /* Realization gallery */
  .realization-gallery { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .nav-container{width: 400px}
  .realizations-grid    { grid-template-columns: 1fr; }
  .realization-gallery  { grid-template-columns: 1fr; }
  .stats-grid           { grid-template-columns: 1fr 1fr; }
  .flash-container      { right: .75rem; max-width: calc(100% - 1.5rem); }
  #scroll-top           { bottom: 1.25rem; right: 1.25rem; }
  .pagination .page-btn { min-width: 34px; height: 34px; font-size: .8125rem; }
  .lightbox-prev { left: -2rem; }
  .lightbox-next { right: -2rem; }
  .portfolio-gallery { grid-template-columns: repeat(2, 1fr); gap: .4rem; }
}

