/* Charte Graphique Lumineuse, Chic & Végétale */
:root {
    --brand-dark: #1B3B2B;        /* Vert Pin profond */
    --brand-accent: #E3A334; /*#C4A47C;      /* Laiton / Bronze */
    --brand-bg: #FAF9F5;          /* Pierre de chaux lumineuse */
    --brand-bg-soft: #F0F4F1;     /* Vert sauge clair */
    --brand-text: #000000;  /*#1A201C;         Anthracite encre */
    --brand-white: #FFFFFF;
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Reset & Bases Multi-plateformes */
*, ::before, ::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

a,
a:visited {
  color: inherit; /* Récupère la couleur du texte parent ou de l'élément */
}

html {
    scroll-behavior: smooth;
    font-family: var(--font-sans);
    background-color: var(--brand-bg);
    color: var(--brand-text);
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent; /* Supprime le rectangle gris au tap sur Chrome/Safari Mobile */
    scroll-padding-top: 50px;
}

body {
    overflow-x: hidden;
    line-height: 1.6;
    width: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


/* Optimisation du clic/tap tactile */
a, button, input, textarea, select {
    touch-action: manipulation;
}

.font-serif { font-family: var(--font-serif); }
.font-sans { font-family: var(--font-sans); }

/* Layout Conteneur PC (1400px) & Smartphone */
.container-custom {
    width: 100%;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

@media (min-width: 768px) {
    .container-custom {
        padding-left: 2rem;
        padding-right: 2rem;
    }
   
}

/* Header & Navigation Responsive */


.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background-color: var(--brand-dark);
    color: var(--brand-white);
    border-bottom: 1px solid rgba(196, 164, 124, 0.3);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
    margin-bottom: 0px;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
    gap: 0.75rem;
}

@media (min-width: 1024px) {
    .header-inner {
        padding-top: 1.25rem;
        padding-bottom: 1.25rem;
        gap: 1rem;
    }
}

.brand-logo {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    flex-shrink: 0;
}

.brand-logo-main {
    font-family: var(--font-serif);
    font-size: clamp(1.2rem, 4vw, 1.5rem); /* Ajustement fluide sur très petits écrans */
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--brand-white);
    white-space: nowrap;
}

@media (min-width: 768px) {
    .brand-logo-main {
        font-size: 1.75rem;
        letter-spacing: 0.1em;
    }
}

.brand-logo-accent { color: var(--brand-accent); }

.brand-logo-sub {

    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--brand-accent);
    font-weight: 700;
    margin-top: 0.2rem;
    display: none;
}

@media (min-width: 640px) {
    .brand-logo-sub { display: block; }
}

.nav-links {
    display: none;
    gap: 2rem;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    font-weight: 700;
    text-align: center;
}

@media (min-width: 1024px) {
    .nav-links { display: flex; }
}

.nav-link {
    color: var(--brand-white);
    text-decoration: none;
    transition: color 0.3s ease;
text-align: center;
}

.nav-link:hover, .nav-link.active {
    color: var(--brand-accent);
}

.header-cta-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .header-cta-group { gap: 1.25rem; }
}

.phone-link {
    color: var(--brand-accent);
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
    white-space: nowrap;
}


/* Boutons d'Action (Optimisés Tactile) */
.btn-accent {
    background-color: var(--brand-accent);
    color: var(--brand-dark);
    padding: 0.5rem 0.75rem;
    min-height: 44px;
    font-size: 1.0rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    text-align: center;
    border-radius: 0;
}

@media (min-width: 768px) {
    .btn-accent {
        padding: 0.85rem 1.75rem;
    }
}

.btn-accent:hover {
    background-color: var(--brand-white);
    color: var(--brand-dark);
}

.btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: var(--brand-white);
    padding: 0.5rem 0.75rem;
    min-height: 44px;
    font-size: 1.0rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 0;
}

@media (min-width: 768px) {
    .btn-outline {
        padding: 0.85rem 1.75rem;
    }
}

.btn-outline:hover {
    background-color: var(--brand-white);
    color: var(--brand-dark);
}

/* Sections Aérées & Fluidité Mobile */
.section-hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh; /* Fixation de la barre d'adresse mobile Chrome/Safari */
    display: flex;
    align-items: center;
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
    background-size: cover;
    background-position: center;
    color: var(--brand-white);
}

@media (min-width: 768px) {
    .section-hero {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
}

.section-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(27, 59, 43, 0.72), rgba(27, 59, 43, 0.85));
}

.section-hero .container-custom {
    position: relative;
    z-index: 10;
}

.section-light-ecru {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    background-color: var(--brand-bg);
    color: var(--brand-text);
}

.section-light-soft {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    background-color: var(--brand-bg-soft);
    color: var(--brand-text);
}

.section-dark-overlay {
    position: relative;
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
    background-size: cover;
    background-position: center;
    color: var(--brand-white);
}

.section-dark-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(27, 59, 43, 0.8), rgba(27, 59, 43, 0.8));
}

.section-dark-overlay .container-custom {
    position: relative;
    z-index: 10;
}

.section-white-pure {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
    background-color: var(--brand-white);
    color: var(--brand-text);
}

.section-dark-solid {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
    background-color: var(--brand-dark);
    color: var(--brand-white);
}

@media (min-width: 768px) {
    .section-light-ecru,
    .section-light-soft,
    .section-dark-overlay,
    .section-white-pure,
    .section-dark-solid {
        padding-top: 7rem;
        padding-bottom: 7rem;
    }
}

/* Grilles Adaptatives */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
/*
.grid-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}*/
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    width: 100%;
    box-sizing: border-box;
}
@media (min-width: 768px) {
    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
        gap: 3.5rem;
    }
    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
    }
}

/* Bento Grid Multi-écrans */
.bento-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 1024px) {
    .bento-grid {
        grid-template-columns: 1.2fr 0.8fr;
        gap: 1.5rem;
    }
}

.bento-card {
    background-color: var(--brand-white);
    padding: 1.75rem;
    border: 1px solid rgba(27, 59, 43, 0.1);
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

@media (min-width: 768px) {
    .bento-card {
        padding: 3rem;
    }
}

.bento-card-dark {
    background-color: var(--brand-dark);
    color: var(--brand-white);
    border: 1px solid var(--brand-accent);
}

.bento-badge {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 700;
    background-color: var(--brand-bg-soft);
    color: var(--brand-dark);
    margin-bottom: 1.25rem;
    width: fit-content;
}

.bento-badge-accent {
    background-color: var(--brand-accent);
    color: var(--brand-dark);
}

/* Cartes & Composants */
.card-service {
    padding: 1.75rem;
    background-color: var(--brand-white);
    border: 1px solid rgba(27, 59, 43, 0.08);
    box-shadow: 0 4px 15px -2px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

@media (min-width: 768px) {
    .card-service { padding: 2.5rem; }
}

.card-service:hover {
    transform: translateY(-4px);
    border-color: var(--brand-accent);
}

.card-comparison-bad {
    padding: 1.45rem;
    background-color: #FFF5F5;
    border: 1px solid #FEB2B2;
}

.card-comparison-good {
    padding: 1.45rem;
    background-color: var(--brand-white);
    border: 2px solid var(--brand-accent);
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.05);
}

@media (min-width: 768px) {
    .card-comparison-bad, .card-comparison-good { padding: 1.5rem; }
}

/* Formulaires & Sécurité Tactile Mobile */
.form-box {
    background-color: var(--brand-white);
    color: var(--brand-text);
    padding: 1.5rem;
    border: 1px solid rgba(196, 164, 124, 0.4);
    box-shadow: 0 25px 30px -5px rgba(0, 0, 0, 0.15);
}

@media (min-width: 768px) {
    .form-box { padding: 3rem; }
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.725rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 0.5rem;
    color: #374151;
    font-weight: 700;
}

.form-input, .form-textarea {
    width: 100%;
    background-color: var(--brand-bg);
    border: 1px solid #D1D5DB;
    padding: 0.85rem;
    font-size: 1rem; /* 16px exact pour empêcher le zoom auto iOS/Chrome */
    font-family: var(--font-sans);
    border-radius: 0;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.form-input:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--brand-accent);
    background-color: var(--brand-white);
}

/* Surcharge de la saisie automatique Chrome Mobile (evite l'effet fond jaune/bleu) */
.form-input:-webkit-autofill,
.form-input:-webkit-autofill:hover, 
.form-input:-webkit-autofill:focus,
.form-textarea:-webkit-autofill,
.form-textarea:-webkit-autofill:hover,
.form-textarea:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--brand-text) !important;
    -webkit-box-shadow: 0 0 0px 1000px var(--brand-bg) inset !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* Champ Honeypot (Sécurité Anti-Spam sans casser le layout) */
.hp-field { 
    display: none !important;
    visibility: hidden;
    position: absolute;
    left: -9999px;
}

/* Accessibilité : désactivation des animations si demandé par le système */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *, ::before, ::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
/* ==========================================================================
   GOOGLE REVIEWS INLINE BADGE — VECTOR STARS & SECURED LINK
   ========================================================================== */

:root {
  --gr-bg: #ffffff;
  --gr-border: #e5e7eb;
  --gr-text: #1f2937;
  --gr-text-muted: #6b7280;
  --gr-star-bg: #e5e7eb;
  --gr-link-color: #2563eb;
}

/* Gestion automatique du Dark Mode selon les réglages système */
@media (prefers-color-scheme: dark) {
  :root {
    --gr-bg: #18181b;
    --gr-border: #27272a;
    --gr-text: #f4f4f5;
    --gr-text-muted: #a1a1aa;
    --gr-star-bg: #3f3f46;
    --gr-link-color: #60a5fa;
  }
}

.gr-inline-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.4rem 0.85rem;
  background-color: var(--gr-bg);
  border: 1px solid var(--gr-border);
  border-radius: 9999px; /* Forme de pilule compacte */
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 0.85rem;
  color: var(--gr-text);
  line-height: 1;
}

/* Bloc Marque */
.gr-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  white-space: nowrap;
}

.gr-logo {
  flex-shrink: 0;
}

/* Séparateur vertical */
.gr-divider {
  color: var(--gr-border);
  user-select: none;
}

/* Bloc Note & Étoiles Vectorielles */
.gr-rating {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.gr-score {
  font-weight: 800;
  letter-spacing: -0.01em;
}

.gr-stars-svg {
  display: block;
  flex-shrink: 0;
}

/* Lien sécurisé vers Kalozia */
.gr-meta {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.gr-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--gr-link-color);
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.15s ease-in-out;
}

.gr-link:hover {
  text-decoration: underline;
}

.gr-link:focus-visible {
  outline: 2px solid var(--gr-link-color);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Adaptation sur très petits écrans (< 380px) */
@media (max-width: 380px) {
  .gr-inline-badge {
    border-radius: 10px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0.6rem;
  }
  .gr-divider {
    display: none;
  }
}



/* ==========================================================================
   HEADER RESPONSIVE — KALOZIA GARDENS
   ========================================================================== */
/*
:root {
  --site-header-bg: #ffffff;
  --text-primary: #1f2937;
  --brand-accent: #2e7d32;  
  --brand-accent-hover: #1b5e20;
  --border-color: #e5e7eb;
}
*/
/*
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--site-header-bg);
  border-bottom: 1px solid var(--border-color);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
*/
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  gap: 1.5rem;
}

/* Logo */
.brand-logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1.1;
}

.brand-logo-main {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.brand-logo-accent {
  color: var(--brand-accent);
}

.brand-logo-sub {
  font-size: 1rem;
  color: var(--brand-accent);
  margin-top: 0.15rem;
}

/* Navigation & Actions Desktop */
.nav-desktop {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-link {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.15s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--brand-accent);
}

.header-actions-desktop {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--brand-accent);
  font-weight: 700;
  text-decoration: none;
  font-size: 0.95rem;
  transition: opacity 0.15s ease;
}

.header-phone:hover {
  opacity: 0.85;
}

/* Boutons */
.btn-accent {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  background-color: var(--brand-accent);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  border-radius: 6px;
  transition: background-color 0.15s ease;
  min-height: 44px; /* Zone d'appui tactile minimale (WCAG) */
  box-sizing: border-box;
}
/*
.btn-accent:hover {
  background-color: var(--brand-accent-hover);
}*/

.btn-full {
  width: 100%;
}

/* Bouton Hamburger Mobile (Masqué par défaut) */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: none;
  cursor: pointer;
  border-radius: 6px;
}

.hamburger-line {
  width: 100%;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Tiroir Mobile */
.mobile-drawer {
  display: none;
}

/* ==========================================================================
   BREAKPOINT MOBILE (< 992px)
   ========================================================================== */
@media (max-width: 991px) {
  .nav-desktop,
  .header-actions-desktop {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  /* Transformation du bouton en Croix (X) */
  .mobile-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .mobile-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
    opacity: 0;
  }
  .mobile-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* Tiroir sous le header */
  .mobile-drawer {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: fixed;
    top: 60px; /* S'adapte à la hauteur du header */
    inset-inline: 0;
    bottom: 0;
    background-color: var(--site-header-bg);
    padding: 1.5rem;
    overflow-y: auto;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
    border-top: 1px solid var(--border-color);
  }

  /* État Ouvert */
  .mobile-drawer[data-open="true"] {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
  }

  .mobile-nav-link {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
  }

  .mobile-nav-link.active {
    color: var(--brand-accent);
  }

  .mobile-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-top: 1.5rem;
    margin-top: 1.5rem;
    border-top: 1px solid var(--border-color);
  }

  .mobile-phone {
    justify-content: center;
    font-size: 1.1rem;
  }
}

/* ==========================================================================
   GALERIE & FILTRES KALOZIA
   ========================================================================== */

/* Panneau de filtres (Cases à cocher) */
.filter-panel {
  background-color: var(--brand-white, #ffffff);
  border: 1px solid rgba(27, 59, 43, 0.15);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.filter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.filter-title {
  font-weight: 700;
  color: var(--brand-dark, #1b3b2b);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn-reset-filters {
  background: none;
  border: none;
  color: #6b7280;
  font-size: 0.8rem;
  cursor: pointer;
  text-decoration: underline;
}

.btn-reset-filters:hover {
  color: var(--brand-accent, #c4a47c);
}

.filter-checkboxes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* Style moderne des cases à cocher (Pills/Boutons) */
.tag-checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #f3f4f6;
  border: 1px solid #e5e7eb;
  padding: 0.5rem 0.85rem;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.85rem;
  user-select: none;
  transition: all 0.2s ease;
}

.tag-checkbox-label:hover {
  background-color: #e5e7eb;
}

.tag-filter-checkbox {
  accent-color: var(--brand-dark, #1b3b2b);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.tag-filter-checkbox:checked + .checkbox-custom + .tag-text,
.tag-checkbox-label:has(.tag-filter-checkbox:checked) {
  background-color: var(--brand-dark, #1b3b2b);
  color: #ffffff;
  border-color: var(--brand-dark, #1b3b2b);
}

/* Statut & Erreurs */
.gallery-status {
  font-size: 0.85rem;
  color: #6b7280;
  margin-bottom: 1rem;
  font-style: italic;
}

.no-results-msg {
  text-align: center;
  padding: 3rem 1rem;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  color: #4b5563;
}
/* Carte de Projet (Corrigée pour être 100% responsive et fluide) */
.project-card {
    width: 100%; /* S'adapte dynamiquement à sa colonne de grille */
    max-width: 100%; /* Empêche tout dépassement */
    background-color: var(--brand-white, #ffffff);
    border: 1px solid rgba(27, 59, 43, 0.1);
    border-radius: 0; /* Angles droits demandés */
    overflow: hidden;
    box-shadow: 0 4px 15px -2px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.project-image-wrapper {
    position: relative;
    width: 100%;
    height: 260px; /* Hauteur harmonisée et fluide */
    overflow: hidden;
    cursor: pointer;
}

.project-cover-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
/* Carte de Projet */ /*
.project-card {
	width:  400px;
  background-color: var(--brand-white, #ffffff);
  border: 1px solid rgba(27, 59, 43, 0.1);
  overflow: hidden;
  box-shadow: 0 4px 15px -2px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
}



.project-image-wrapper {
  position: relative;
  height: 280px;
  /*width: 300px;*/
  overflow: hidden;
  cursor: pointer;
}
*/ /*
.project-cover-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}*/
.project-card-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.project-image-wrapper:hover .project-cover-image {
  transform: scale(1.04);
}

.image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  opacity: 0.9;
  transition: opacity 0.2s ease;
}

.overlay-badge {
  background-color: rgba(255, 255, 255, 0.95);
  color: var(--brand-dark, #1b3b2b);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.4rem 0.75rem;
  border-radius: 4px;
}

.project-card-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-location {
  color: var(--brand-accent, #c4a47c);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
}

.project-title {
  font-size: 1.5rem;
  color: var(--brand-dark, #1b3b2b);
  margin-top: 0.25rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.project-description {
  color: #4b5563;
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
}

.project-tag-pill {
  font-size: 0.7rem;
  background-color: #f3f4f6;
  color: #374151;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

/* ==========================================================================
   LIGHTBOX DIALOG (MODAL)
   ========================================================================== */
.lightbox-dialog {
  border: none;
  border-radius: 12px;
  padding: 0;
  max-width: 900px;
  width: 95%;
  background: #000000;
  color: #ffffff;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
}

.lightbox-dialog::backdrop {
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(4px);
}

.lightbox-content {
  position: relative;
  padding: 1.5rem;
}

.lightbox-close {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 2rem;
  cursor: pointer;
  z-index: 10;
  line-height: 1;
}

.lightbox-main-view {
  width: 100%;
  height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #000000;
}

.lightbox-main-view img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.lightbox-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  padding: 0 0.5rem;
}

.btn-lightbox-nav {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #ffffff;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
}

.btn-lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.3);
}

.lightbox-counter {
  font-size: 0.85rem;
  color: #a1a1aa;
}

.lightbox-thumbnails {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  margin-top: 1rem;
  padding-bottom: 0.5rem;
}

.thumb-img {
  width: 70px;
  height: 50px;
  object-fit: cover;
  border-radius: 4px;
  opacity: 0.5;
  cursor: pointer;
  transition: opacity 0.2s;
  flex-shrink: 0;
}

.thumb-img.active,
.thumb-img:hover {
  opacity: 1;
  outline: 2px solid var(--brand-accent, #c4a47c);
}

/* ==========================================================================
   SECTION 2 : HERO PORTFOLIO (RESPONSIVE FLUIDE)
   ========================================================================== */
.portfolio-hero {
  padding-top: clamp(5rem, 10vw, 9rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  background-color: var(--brand-dark, #1b3b2b);
  border-bottom: 1px solid rgba(196, 164, 124, 0.25);
}

.portfolio-subtitle {
  color: var(--brand-accent, #c4a47c);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  font-weight: 700;
  display: block;
  margin-bottom: 0.5rem;
}

.portfolio-main-title {
  /* Utilisation de clamp() pour s'adapter dynamiquement aux écrans mobiles et desktops sans casser la ligne */
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.15;
  color: #ffffff;
}

.portfolio-description {
  color: #D1D5DB;
  font-size: clamp(0.85rem, 1.5vw, 0.95rem);
  margin-top: 0.75rem;
  font-weight: 300;
  max-width: 45rem;
  line-height: 1.6;
}