:root {
    --primary-gold: #D4AF37;
    --dark-gold: #B8941F;
    --light-gold: #F4E4B8;
    --deep-black: #0A0A0A;
    --rich-black: #1A1A1A;
    --soft-black: #2A2A2A;
    --white: #FFFFFF;
    --cream: #F8F6F0;
    --gray: #666666;
    --light-gray: #E5E5E5;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--soft-black);
    line-height: 1.6;
    overflow-x: hidden;
    background: var(--white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    height: 84px;
    overflow: visible;
}

.logo-section a {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo-emblem {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-gold), var(--dark-gold));
    clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.logo-emblem::before {
    content: '';
    position: absolute;
    inset: 2px;
    background: var(--deep-black);
    clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary-gold);
    position: relative;
    z-index: 1;
}

.logo-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-gold);
    letter-spacing: 2px;
}

.logo-image {
    height: 82px;        /* Fixed height */
    width: auto;         /* Largeur automatique */
    max-width: 300px;    /* Maximum 300px */
    object-fit: contain; /* Garde les proportions */
    transform: scale(1.48);
    transform-origin: left center;
    display: block;
}
.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gold);
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-gold);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.btn-devis {
    background: linear-gradient(135deg, var(--primary-gold), var(--dark-gold));
    color: var(--deep-black);
    padding: 0.7rem 1.8rem;
    border: none;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-devis:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(212, 175, 55, 0.5);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-gold);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    height: 90vh;
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.8), rgba(26, 26, 26, 0.9)),
                url('https://wearecatalyst.org/wp-content/uploads/2024/11/DSC_0706-1362x2048.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}


.hero-content {
    text-align: center;
    color: var(--white);
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--white), var(--light-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(212, 175, 55, 0.3);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--light-gold);
    margin-bottom: 2.5rem;
    letter-spacing: 3px;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-gold), var(--dark-gold));
    color: var(--deep-black);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(212, 175, 55, 0.6);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--primary-gold);
}

.btn-secondary:hover {
    background: var(--primary-gold);
    color: var(--deep-black);
    transform: translateY(-3px);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-line {
    width: 2px;
    height: 60px;
    background: linear-gradient(to bottom, transparent, var(--primary-gold));
    margin: 0 auto;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(20px); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* About Section */
.about-section {
    padding: 8rem 0;
    background: linear-gradient(180deg, var(--white), var(--cream));
}

.section-title {
    font-size: 3rem;
    color: var(--deep-black);
    margin-bottom: 1rem;
    position: relative;
}

.section-title.centered {
    text-align: center;
}

.section-title.white-text {
    color: var(--white);
}

.decorative-line {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-gold), var(--dark-gold));
    margin-bottom: 2rem;
    position: relative;
}

.decorative-line::before,
.decorative-line::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--primary-gold);
    transform: rotate(45deg);
    top: -3px;
}

.decorative-line::before {
    left: -15px;
}

.decorative-line::after {
    right: -15px;
}

.decorative-line.centered {
    margin: 0 auto 2rem;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 5rem;
}

.lead-text {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-gold);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-content p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    color: var(--gray);
}
.founder-info{
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(6px);
  padding: 1.8rem 2rem;
  border-radius: 16px;
  margin: 2rem 0;
  border: 1px solid rgba(212,175,55,0.25);
  border-left: 5px solid var(--primary-gold);
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.founder-name{
  color: var(--deep-black);
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: .35rem !important;
}

.founder-title{
  color: rgba(20,20,20,0.6);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 0 !important;
}

.about-description {
    font-style: italic;
    color: var(--soft-black);
}

.about-img {
    width: 100%;
    height: 400px;        /* Hauteur fixe contrôlée */
    object-fit: cover;    /* Remplit le cadre */
    border-radius: 15px;
}

.about-image {
    max-width: 600px;     /* Largeur maximum */
}
.image-frame {
    position: relative;
    padding: 20px;
    background: linear-gradient(135deg, var(--primary-gold), var(--dark-gold));
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(212, 175, 55, 0.3);
}

.image-frame::before {
    content: '';
    position: absolute;
    top: -10px;
    right: -10px;
    width: 100px;
    height: 100px;
    background: var(--primary-gold);
    opacity: 0.2;
    border-radius: 20px;
    z-index: -1;
}

.image-placeholder {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, var(--rich-black), var(--soft-black));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.image-placeholder::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 20px,
            rgba(212, 175, 55, 0.1) 20px,
            rgba(212, 175, 55, 0.1) 40px
        );
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.stat-card {
    text-align: center;
    padding: 3rem 1.5rem;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-gold), var(--dark-gold));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(212, 175, 55, 0.2);
}

.stat-card:hover::before {
    transform: scaleX(1);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-gold);
    margin-bottom: 0.5rem;
    font-family: 'Playfair Display', serif;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--gray);
    font-weight: 500;
}

/* Formations Section */
.formations-section {
    padding: 8rem 0;
    background: var(--white);
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--gray);
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
/* ✅ Catalogue grid: clean + responsive */
.formations-grid,
#catalogueGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  align-items: stretch;
}
/* ✅ Cards: same height, organized */
.formation-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.formation-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.formation-image {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 20px 20px 0 0;
}

.formation-image img,
.formation-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.formation-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--deep-black);
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

/* Center the "Voir tout le catalogue" button nicely */
.formations-cta{
  display: flex;
  justify-content: center;
  margin-top: 2.5rem;     /* space after the cards */
}

/* Optional: make the button look perfectly centered + clean */
.formations-cta .btn{
  display: inline-flex;
  align-items: center;
  gap: .6rem;
}

/* Optional: on mobile, make it full width (looks better) */
@media (max-width: 768px){
  .formations-cta{
    margin-top: 2rem;
  }
  .formations-cta .btn{
    width: 100%;
    max-width: 420px;     /* keep it not too wide */
    justify-content: center;
  }
}
/* ✅ Keeps cards aligned */
.formation-content p {
  display: -webkit-box;
  -webkit-line-clamp: 2;     /* show max 2 lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.6;
  min-height: calc(1.6em * 2);
  max-height: calc(1.6em * 2);
}

.formation-meta {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.meta-item {
    font-size: 0.9rem;
    color: var(--primary-gold);
    font-weight: 500;
}

.formation-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--light-gray);
}

.formation-prix {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-gold);
}

.btn-details {
    background: transparent;
    border: 2px solid var(--primary-gold);
    color: var(--primary-gold);
    padding: 0.6rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-details:hover {
    background: var(--primary-gold);
    color: var(--white);
    transform: translateY(-2px);
}

/* Formation Modal */
.formation-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.formation-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.9);
    cursor: pointer;
}

.modal-content {
    position: relative;
    background: var(--white);
    border-radius: 20px;
    max-width: 700px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: translateY(50px);
    transition: transform 0.3s ease;
}

.formation-modal.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: var(--light-gray);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.modal-close:hover {
    background: var(--primary-gold);
    color: var(--white);
    transform: rotate(90deg);
}

.modal-header {
    background: linear-gradient(135deg, var(--deep-black), var(--rich-black));
    padding: 2.5rem;
    border-radius: 20px 20px 0 0;
    color: var(--white);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    color: var(--white);
    margin: 0;
    padding-right: 3rem;
}

.modal-badge {
    background: var(--primary-gold);
    color: var(--deep-black);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.modal-body {
    padding: 2.5rem;
}

.modal-info {
    margin-bottom: 2rem;
}

.modal-info p {
    margin-bottom: 1rem;
    font-size: 1.05rem;
    color: var(--soft-black);
}

.modal-info strong {
    color: var(--primary-gold);
}

.modal-programme h3 {
    color: var(--deep-black);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.modal-programme ul {
    list-style: none;
    padding: 0;
}

.modal-programme li {
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--light-gray);
    color: var(--gray);
    position: relative;
    padding-left: 2rem;
}

.modal-programme li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-gold);
    font-weight: 700;
    font-size: 1.2rem;
}

.modal-programme li:last-child {
    border-bottom: none;
}

.modal-footer {
    padding: 2rem 2.5rem;
    border-top: 1px solid var(--light-gray);
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.modal-footer .btn {
    margin: 0;
}

/* Gallery Section */
.gallery-section {
    padding: 8rem 0;
    background: linear-gradient(180deg, var(--cream), var(--white));
}

.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.8rem 1.8rem;
    border: 2px solid var(--primary-gold);
    background: transparent;
    color: var(--deep-black);
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-gold);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.gallery-item {
    height: 300px;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    background: linear-gradient(135deg, var(--soft-black), var(--rich-black));
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-img {
    transform: scale(1.1);
}

.gallery-item::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 15px,
            rgba(212, 175, 55, 0.05) 15px,
            rgba(212, 175, 55, 0.05) 30px
        );
    z-index: 1;
    pointer-events: none;
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 10, 10, 0.9), transparent);
    display: flex;
    align-items: flex-end;
    padding: 2rem;
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 2;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-title {
    color: var(--white);
    font-size: 1.2rem;
    font-weight: 600;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-title {
    transform: translateY(0);
}

/* Gallery Teaser Section (homepage) */
/* ── GALLERY TEASER — ANIMATED ── */
.gallery-teaser-section {
    padding: 7rem 0 6rem;
    background: #0a0a0a;
    position: relative;
    overflow: hidden;
}

.gallery-teaser-section .section-header {
    margin-bottom: 3rem;
}

.gallery-teaser-section .section-title {
    color: #fff;
}

.gallery-teaser-section .section-subtitle {
    color: rgba(255,255,255,0.55);
}

.gallery-eyebrow {
    display: block;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--primary-gold);
    margin-bottom: 0.8rem;
}

/* ── MARQUEE STRIP ── */
.gallery-marquee-wrap {
    overflow: hidden;
    width: 100%;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.gallery-marquee {
    display: flex;
    gap: 1rem;
    width: max-content;
    animation: marqueeScroll 30s linear infinite;
}

.gallery-marquee--reverse {
    animation: marqueeScrollReverse 35s linear infinite;
}

.gallery-marquee-wrap:hover .gallery-marquee {
    animation-play-state: paused;
}

@keyframes marqueeScroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
@keyframes marqueeScrollReverse {
    from { transform: translateX(-50%); }
    to   { transform: translateX(0); }
}

.gallery-marquee-item {
    width: 320px;
    height: 210px;
    border-radius: 14px;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
    cursor: pointer;
    box-shadow: 0 8px 30px rgba(0,0,0,0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-marquee-item:hover {
    transform: scale(1.04) translateY(-4px);
    box-shadow: 0 16px 50px rgba(212,175,55,0.3);
    z-index: 2;
}

.gallery-marquee-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
    filter: brightness(0.88);
}

.gallery-marquee-item:hover img {
    transform: scale(1.08);
    filter: brightness(1);
}

/* ── STATS BAR ── */
.gallery-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin: 4rem auto 0;
    max-width: 760px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(212,175,55,0.2);
    border-radius: 20px;
    padding: 2rem 1rem;
    backdrop-filter: blur(10px);
}

.gallery-stat {
    flex: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}

.gstat-num {
    font-family: 'Playfair Display', serif;
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--primary-gold);
    line-height: 1;
}

.gstat-plus {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-gold);
    line-height: 1;
}

.gstat-label {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.55);
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-top: 0.2rem;
}

.gallery-stat-divider {
    width: 1px;
    height: 50px;
    background: rgba(212,175,55,0.25);
    flex-shrink: 0;
}

/* ── CTA ── */
.gallery-teaser-cta {
    text-align: center;
    margin-top: 3.5rem;
}

.btn-gallery-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2.5rem;
    background: transparent;
    border: 2px solid var(--primary-gold);
    color: var(--primary-gold);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
}

.btn-gallery-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--primary-gold);
    transform: translateX(-100%);
    transition: transform 0.35s ease;
    z-index: 0;
}

.btn-gallery-cta:hover::before {
    transform: translateX(0);
}

.btn-gallery-cta span,
.btn-gallery-cta svg {
    position: relative;
    z-index: 1;
    transition: color 0.35s ease;
}

.btn-gallery-cta:hover span,
.btn-gallery-cta:hover svg {
    color: #000;
    stroke: #000;
}

.btn-gallery-cta:hover {
    box-shadow: 0 8px 30px rgba(212,175,55,0.4);
    transform: translateY(-2px);
}

/* responsive */
@media (max-width: 768px) {
    .gallery-marquee-item { width: 240px; height: 160px; }
    .gallery-stats { flex-wrap: wrap; gap: 1.5rem; padding: 1.5rem 1rem; }
    .gallery-stat-divider { display: none; }
    .gstat-num { font-size: 2rem; }
}

/* Contact Section */
.contact-section {
    padding: 8rem 0;
    background: linear-gradient(135deg, var(--deep-black), var(--rich-black));
    position: relative;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 30px,
            rgba(212, 175, 55, 0.03) 30px,
            rgba(212, 175, 55, 0.03) 60px
        );
}

.white-text {
    color: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    position: relative;
    z-index: 1;
}

.contact-form-wrapper {
    background: rgba(255, 255, 255, 0.05);
    padding: 3rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.contact-form-title {
    color: var(--white);
    margin-bottom: 0.4rem;
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
}

.contact-form-subtitle {
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 1.4rem;
    font-size: 0.95rem;
    line-height: 1.65;
}

.request-mode-switch {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.7rem;
}

.mode-option {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(212, 175, 55, 0.25);
    background: rgba(255, 255, 255, 0.04);
    color: var(--light-gold);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: center;
    padding: 0.6rem 0.8rem;
}

.mode-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.mode-option.active {
    background: rgba(212, 175, 55, 0.2);
    border-color: rgba(212, 175, 55, 0.55);
    color: var(--white);
}

.mode-panel {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mode-panel.hidden {
    display: none;
}

.formations-header-row h3 {
    color: var(--primary-gold);
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
}

.formations-header-row p {
    color: rgba(255, 255, 255, 0.66);
    font-size: 0.85rem;
    margin-bottom: 0.2rem;
}

.formations-container {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.formation-line {
    display: grid;
    grid-template-columns: 1fr 1.35fr 150px auto;
    gap: 0.7rem;
    align-items: end;
}

.formation-line .remove-formation-btn {
    min-height: 44px;
    border-radius: 10px;
    border: 1px solid rgba(226, 75, 74, 0.35);
    background: rgba(226, 75, 74, 0.15);
    color: #f6b2b2;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.75rem 0.9rem;
}

.formation-line .remove-formation-btn:hover {
    background: rgba(226, 75, 74, 0.24);
}

.btn-add-formation {
    width: fit-content;
    padding: 0.72rem 1rem;
    border-radius: 10px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 2px solid rgba(212, 175, 55, 0.3);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--white);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-gold);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-group select {
    cursor: pointer;
}

.category-select,
.formation-select {
    color: #f2e2b2;
}

.formation-select optgroup {
    color: var(--primary-gold);
    background: #121212;
    font-weight: 700;
}

.form-group select option {
    background: #151515;
    color: #f2e2b2;
}

.form-group select option[value=""] {
    color: rgba(242, 226, 178, 0.78);
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    cursor: pointer;
}

.checkbox-group label {
    color: var(--light-gold);
    font-size: 0.9rem;
    cursor: pointer;
}

.btn-submit {
    background: linear-gradient(135deg, var(--primary-gold), var(--dark-gold));
    color: var(--deep-black);
    padding: 1.2rem;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(212, 175, 55, 0.6);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 15px;
    border-left: 4px solid var(--primary-gold);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.info-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(10px);
}

.info-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.info-card h3 {
    color: var(--primary-gold);
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
}

.info-card p {
    color: var(--light-gold);
    line-height: 1.8;
}

/* Footer */
.footer {
    background: var(--deep-black);
    color: var(--light-gold);
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.footer-logo-img {
    height: 110px;
    width: auto;
    max-width: 240px;
    object-fit: contain;
    filter: none;
    opacity: 0.9;
}
.footer-desc {
    color: var(--gray);
    line-height: 1.8;
}

.footer-col h4 {
    color: var(--primary-gold);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col a {
    color: var(--light-gold);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-col a:hover {
    color: var(--primary-gold);
    padding-left: 5px;
}

.footer-col p {
    margin-bottom: 0.8rem;
    color: var(--light-gold);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-link {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary-gold);
    color: var(--deep-black);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    padding-top: 2rem;
    text-align: center;
    color: var(--gray);
}

/* Chatbot */
.chatbot-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-gold), var(--dark-gold));
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.5);
    z-index: 1301;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--deep-black);
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 8px 30px rgba(212, 175, 55, 0.5);
    }
    50% {
        box-shadow: 0 8px 40px rgba(212, 175, 55, 0.7);
    }
}

.chatbot-toggle:hover {
    transform: scale(1.1);
}

.chatbot-container {
    position: fixed;
    bottom: 122px;
    right: 30px;
    width: 400px;
    height: 550px;
    max-height: calc(100vh - 140px);
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 1300;
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chatbot-container.active {
    display: flex;
}

.chatbot-header {
    background: linear-gradient(135deg, var(--deep-black), var(--rich-black));
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--primary-gold);
}

.chatbot-header-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.chatbot-avatar {
    width: 45px;
    height: 45px;
    background: var(--white);
    border: 2px solid rgba(212, 175, 55, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.chatbot-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.chatbot-header h4 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #4CAF50;
    border-radius: 50%;
    display: inline-block;
    margin-right: 0.3rem;
    animation: blink 2s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.status-text {
    color: var(--light-gold);
    font-size: 0.85rem;
}

.chatbot-close {
    background: none;
    border: none;
    color: var(--primary-gold);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.3rem;
    transition: all 0.3s ease;
}

.chatbot-close:hover {
    transform: rotate(90deg);
    color: var(--white);
}

.chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    background: linear-gradient(to bottom, #f8f9fa, #ffffff);
}

.message {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, var(--primary-gold), var(--dark-gold));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--deep-black);
    font-size: 0.85rem;
    flex-shrink: 0;
    overflow: hidden;
}

.message-avatar.bot-avatar {
    background: var(--white);
    border: 1.5px solid rgba(212, 175, 55, 0.65);
}

.message-avatar.bot-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.message-content {
    flex: 1;
}

.message-content p {
    background: var(--white);
    padding: 1rem 1.2rem;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 0.8rem;
}

/* New bubble style for v2 chatbot */
.message-bubble {
    padding: 0.9rem 1.2rem;
    border-radius: 18px;
    border-bottom-left-radius: 4px;
    background: linear-gradient(135deg, #f0f0f0, #e6e6e6);
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 0.6rem;
    color: #1a1a1a;
}

.user-bubble {
    background: linear-gradient(135deg, var(--primary-gold), var(--dark-gold));
    color: var(--deep-black);
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 4px;
    font-weight: 500;
}

.bot-message .message-content p {
    background: linear-gradient(135deg, #f5f5f5, #e8e8e8);
    border-bottom-left-radius: 5px;
}

.user-message {
    flex-direction: row-reverse;
}

.user-message .message-avatar {
    background: var(--deep-black);
    color: var(--primary-gold);
}

.user-message .message-content p {
    background: linear-gradient(135deg, var(--primary-gold), var(--dark-gold));
    color: var(--deep-black);
    border-bottom-right-radius: 5px;
}

/* Typing dots animation */
.typing-dots {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0.9rem 1.2rem;
    background: linear-gradient(135deg, #f0f0f0, #e6e6e6);
    border-radius: 18px;
    border-bottom-left-radius: 4px;
    width: fit-content;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.typing-dots span {
    width: 8px;
    height: 8px;
    background: var(--primary-gold);
    border-radius: 50%;
    animation: typingBounce 1.2s infinite ease-in-out;
}
.typing-dots span:nth-child(1) { animation-delay: 0s; }
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
    0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
    40%            { transform: translateY(-6px); opacity: 1; }
}

.quick-replies {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.quick-reply {
    background: var(--white);
    border: 1.5px solid var(--primary-gold);
    padding: 0.6rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.25s ease;
    font-size: 0.88rem;
    text-align: left;
    color: #1a1a1a;
    text-decoration: none;
    display: block;
    font-family: 'Montserrat', sans-serif;
}

.quick-reply:hover:not(:disabled) {
    background: var(--primary-gold);
    color: var(--deep-black);
    transform: translateX(4px);
    font-weight: 600;
}

.quick-reply:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
}


.chatbot-input {
    display: flex;
    padding: 1rem;
    background: var(--white);
    border-top: 1px solid var(--light-gray);
}

.chatbot-input input {
    flex: 1;
    padding: 0.8rem 1.2rem;
    border: 2px solid var(--light-gray);
    border-radius: 25px;
    outline: none;
    transition: all 0.3s ease;
}

.chatbot-input input:focus {
    border-color: var(--primary-gold);
}

.chatbot-input button {
    background: linear-gradient(135deg, var(--primary-gold), var(--dark-gold));
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    margin-left: 0.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--deep-black);
    transition: all 0.3s ease;
}

.chatbot-input button:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .nav-container {
        position: relative;
        padding: 0 1rem;
    }

    .btn-devis {
        display: none;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: calc(100% + 0.6rem);
        left: 1rem;
        right: 1rem;
        flex-direction: column;
        gap: 0.35rem;
        padding: 0.7rem;
        background: rgba(10, 10, 10, 0.98);
        border: 1px solid rgba(212, 175, 55, 0.3);
        border-radius: 14px;
        box-shadow: 0 14px 35px rgba(0, 0, 0, 0.35);
        z-index: 1200;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-link {
        display: block;
        width: 100%;
        padding: 0.7rem 0.55rem;
        border-radius: 8px;
    }

    .nav-link:hover,
    .nav-link.active {
        background: rgba(212, 175, 55, 0.08);
    }
    
    .hamburger {
        display: flex;
    }
    
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .formations-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 0.75rem 0;
    }

    .logo-image {
        height: 66px;
        transform: scale(1.32);
    }

    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .chatbot-container {
        width: calc(100% - 20px);
        right: 10px;
        left: 10px;
        bottom: 96px;
        border-radius: 18px;
        height: min(74vh, 640px);
        max-height: calc(100vh - 110px);
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }

    .filters-bar {
        padding: 1rem;
        border-radius: 12px;
    }

    .search-box {
        margin-bottom: 1rem;
    }

    .search-box input {
        font-size: 0.95rem;
        padding: 0.85rem 1rem;
    }

    .catalogue-section {
        padding: 2.5rem 0 3.5rem;
    }

    .formation-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.7rem;
    }

    .formation-footer .btn-details {
        width: 100%;
        text-align: center;
    }

    .map-section {
        height: 320px;
    }

    .map-overlay-badge {
        width: calc(100% - 2rem);
        left: 1rem;
        right: 1rem;
        transform: none;
        bottom: 1rem;
        border-radius: 16px;
        white-space: normal;
        text-align: center;
        justify-content: center;
        font-size: 0.8rem;
        padding: 0.7rem 0.9rem;
        line-height: 1.45;
    }

    .back-to-top {
        right: 1rem;
        bottom: 5.2rem;
        width: 42px;
        height: 42px;
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
    }

    .map-section {
        height: 280px;
    }
}

.apropos-map-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
    align-items: start;
}

@media (max-width: 900px) {
    .apropos-map-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* ========================================
   CATALOGUE PAGE STYLES
   ======================================== */

/* Catalogue Hero */
.catalogue-hero {
    height: 50vh;
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.9), rgba(26, 26, 26, 0.8)),
                url('https://images.unsplash.com/photo-1524178232363-1fb2b075b655?w=1200');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-top: 80px;
}

.catalogue-hero-content {
    text-align: center;
    color: var(--white);
    z-index: 2;
}

.catalogue-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--primary-gold);
}

.catalogue-hero p {
    font-size: 1.3rem;
    color: var(--light-gold);
}

/* Filters Section */
.catalogue-filters-section {
    background: var(--white);
    padding: 3rem 0 2rem;
    border-bottom: 2px solid var(--light-gray);
}

.filters-bar {
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
}

.search-box {
    margin-bottom: 2rem;
}

.search-box input {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 2px solid var(--light-gray);
    border-radius: 50px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-gold);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
}

.filter-groups {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group label {
    font-weight: 600;
    color: var(--soft-black);
    font-size: 0.9rem;
}

.filter-group select {
    padding: 0.8rem;
    border: 2px solid var(--light-gray);
    border-radius: 10px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--white);
}

.filter-group select:focus {
    outline: none;
    border-color: var(--primary-gold);
}

.btn-reset-filters {
    background: transparent;
    border: 2px solid var(--primary-gold);
    color: var(--primary-gold);
    padding: 0.8rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-reset-filters:hover {
    background: var(--primary-gold);
    color: var(--white);
}

.results-info {
    text-align: center;
    font-size: 1.1rem;
    color: var(--gray);
    font-weight: 500;
}

/* Catalogue Grid */
.catalogue-section {
    padding: 4rem 0 6rem;
    background: linear-gradient(180deg, var(--white), var(--cream));
}

.catalogue-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
}

.catalogue-card {
    height: auto;
}

.formation-category-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(10, 10, 10, 0.8);
    color: var(--primary-gold);
    padding: 0.4rem 1rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

.formation-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.tag {
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
}

.tag-duree {
    background: #e3f2fd;
    color: #1976d2;
}

.tag-niveau {
    background: #fff3e0;
    color: #f57c00;
}

.tag-format {
    background: #f3e5f5;
    color: #7b1fa2;
}

.formation-prix-info {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.certification-badge {
    font-size: 0.75rem;
    color: var(--primary-gold);
    font-weight: 600;
}

/* No Results */
.no-results {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 5rem 2rem;
    text-align: center;
}

.no-results-icon {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    opacity: 0.5;
}

.no-results h3 {
    font-size: 2rem;
    color: var(--soft-black);
    margin-bottom: 1rem;
}

.no-results p {
    color: var(--gray);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.catalogue-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 2.5rem;
}

.pagination-btn {
    min-width: 46px;
    height: 46px;
    padding: 0 1rem;
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 999px;
    background: var(--white);
    color: var(--soft-black);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.pagination-btn:hover:not(:disabled),
.pagination-btn.active {
    background: var(--primary-gold);
    color: var(--white);
    border-color: var(--primary-gold);
    transform: translateY(-1px);
}

.pagination-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    box-shadow: none;
}

/* Modal Catalogue Styles */
.modal-catalogue {
    max-width: 900px;
}

.modal-meta-info {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

.modal-meta-item {
    background: rgba(212, 175, 55, 0.2);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
    color: var(--light-gold);
}

.modal-section {
    margin-bottom: 2rem;
}

.modal-section h3 {
    color: var(--primary-gold);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.modal-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.modal-info-box {
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid var(--primary-gold);
}

.modal-info-box strong {
    display: block;
    color: var(--primary-gold);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.modal-info-box p {
    color: var(--soft-black);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.objectifs-list {
    list-style: none;
    padding: 0;
}

.objectifs-list li {
    padding: 0.8rem 1rem;
    margin-bottom: 0.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid var(--primary-gold);
    color: var(--soft-black);
}

.programme-list {
    list-style: none;
    padding: 0;
}

.programme-list li {
    padding: 1rem 1.2rem;
    margin-bottom: 0.8rem;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-left: 4px solid var(--primary-gold);
    color: var(--soft-black);
    position: relative;
    padding-left: 5rem;
}

.module-number {
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-gold);
    color: var(--white);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 700;
}

.certification-section {
    background: linear-gradient(135deg, var(--primary-gold), var(--dark-gold));
    padding: 2rem;
    border-radius: 15px;
}

.certification-section h3 {
    color: var(--white);
}

.certification-box {
    background: rgba(255, 255, 255, 0.95);
    padding: 1.5rem;
    border-radius: 10px;
}

.certification-box p {
    margin: 0.5rem 0;
    color: var(--soft-black);
}

.certification-box strong {
    color: var(--primary-gold);
    font-size: 1.2rem;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--deep-black), var(--rich-black));
    padding: 5rem 0;
    text-align: center;
}

.cta-content h2 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-content p {
    color: var(--light-gold);
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Responsive Catalogue */
@media (max-width: 768px) {
    .catalogue-hero h1 {
        font-size: 2rem;
    }
    
    .catalogue-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-groups {
        grid-template-columns: 1fr;
    }
    
    .modal-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
}

/* Bouton large pour catalogue */
.btn-large {
    padding: 1.2rem 3rem;
    font-size: 1.2rem;
    display: inline-block;
    text-decoration: none;
}

.btn-large:hover {
    transform: translateY(-3px);
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.from-left {
    transform: translateX(-50px);
}
.reveal.from-right {
    transform: translateX(50px);
}
.reveal.scale-in {
    transform: scale(0.9);
}
.reveal.visible {
    opacity: 1;
    transform: translate(0) scale(1);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ============================================
   TESTIMONIALS SECTION
   ============================================ */
.testimonials-section {
    padding: 8rem 0;
    background: linear-gradient(135deg, var(--deep-black) 0%, var(--rich-black) 100%);
    position: relative;
    overflow: hidden;
}

.testimonials-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(212,175,55,0.07) 0%, transparent 70%);
    pointer-events: none;
}
.testimonials-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    right: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(212,175,55,0.05) 0%, transparent 70%);
    pointer-events: none;
}

.testimonials-section .section-title.centered {
    color: var(--white);
}
.testimonials-section .section-subtitle {
    color: rgba(255,255,255,0.55);
}

.testimonials-carousel-wrapper {
    position: relative;
    margin-top: 3.5rem;
    overflow: hidden;
}

.testimonials-track {
    display: flex;
    gap: 2rem;
    transition: transform 0.55s cubic-bezier(0.4,0,0.2,1);
    will-change: transform;
}

.testimonial-card {
    flex: 0 0 calc(33.333% - 1.33rem);
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(212,175,55,0.15);
    border-radius: 16px;
    padding: 2.5rem;
    position: relative;
    transition: border-color 0.3s, background 0.3s;
}

.testimonial-card:hover {
    border-color: rgba(212,175,55,0.4);
    background: rgba(255,255,255,0.07);
}

.testimonial-quote-icon {
    font-size: 3.5rem;
    color: var(--primary-gold);
    opacity: 0.5;
    line-height: 1;
    margin-bottom: 1rem;
    font-family: Georgia, serif;
}

.testimonial-text {
    color: rgba(255,255,255,0.8);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    font-style: italic;
}

.testimonial-stars {
    display: flex;
    gap: 3px;
    margin-bottom: 1.5rem;
}

.testimonial-star {
    color: var(--primary-gold);
    font-size: 1rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(212,175,55,0.15);
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-gold), var(--dark-gold));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--deep-black);
    font-size: 1rem;
    flex-shrink: 0;
    font-family: 'Playfair Display', serif;
}

.testimonial-name {
    font-weight: 700;
    color: var(--white);
    font-size: 0.95rem;
}

.testimonial-role {
    font-size: 0.8rem;
    color: var(--primary-gold);
    margin-top: 2px;
}

.testimonials-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 3rem;
}

.testimonials-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(212,175,55,0.4);
    background: transparent;
    color: var(--primary-gold);
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.testimonials-btn:hover {
    background: var(--primary-gold);
    color: var(--deep-black);
    border-color: var(--primary-gold);
}

.testimonials-dots {
    display: flex;
    gap: 8px;
}

.testimonials-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    cursor: pointer;
    transition: all 0.3s;
}

.testimonials-dot.active {
    background: var(--primary-gold);
    width: 24px;
    border-radius: 4px;
}

@media (max-width: 900px) {
    .testimonial-card { flex: 0 0 calc(50% - 1rem); }
}
@media (max-width: 600px) {
    .testimonial-card { flex: 0 0 100%; }
}

/* ============================================
   FAQ SECTION
   ============================================ */
.faq-section {
    padding: 8rem 0;
    background: var(--cream);
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 3.5rem;
}

.faq-item {
    background: var(--white);
    border-radius: 12px;
    border: 1px solid var(--light-gray);
    overflow: hidden;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.faq-item:hover {
    border-color: rgba(212,175,55,0.3);
    box-shadow: 0 4px 20px rgba(0,0,0,0.07);
}

.faq-item.open {
    border-color: var(--primary-gold);
    box-shadow: 0 4px 20px rgba(212,175,55,0.12);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    cursor: pointer;
    gap: 1rem;
    user-select: none;
}

.faq-question-text {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--deep-black);
    line-height: 1.4;
}

.faq-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s;
    color: var(--deep-black);
    font-size: 1.1rem;
    font-weight: 300;
}

.faq-item.open .faq-icon {
    background: var(--primary-gold);
    color: var(--deep-black);
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.open .faq-answer {
    max-height: 300px;
}

.faq-answer-inner {
    padding: 0 2rem 1.5rem;
    color: var(--gray);
    font-size: 0.9rem;
    line-height: 1.8;
}

@media (max-width: 768px) {
    .faq-grid { grid-template-columns: 1fr; }
}

/* ============================================
   MAP SECTION  
   ============================================ */
.map-section {
    padding: 0;
    height: 420px;
    position: relative;
    overflow: hidden;
}

.map-section iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.map-overlay-badge {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--deep-black);
    border: 1px solid rgba(212,175,55,0.4);
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
    z-index: 10;
}

.map-overlay-badge span {
    color: var(--primary-gold);
}

@media (max-width: 768px) {
    .map-section {
        height: 320px;
    }

    .map-overlay-badge {
        width: calc(100% - 2rem);
        left: 1rem;
        right: 1rem;
        transform: none;
        bottom: 1rem;
        border-radius: 16px;
        white-space: normal;
        text-align: center;
        justify-content: center;
        font-size: 0.8rem;
        padding: 0.7rem 0.9rem;
        line-height: 1.45;
    }
}

@media (max-width: 480px) {
    .map-section {
        height: 280px;
    }
}

/* ============================================
   FORMATION DETAIL PAGE  
   ============================================ */
.formation-detail-hero {
    min-height: 55vh;
    background: linear-gradient(135deg, var(--deep-black), var(--rich-black));
    display: flex;
    align-items: flex-end;
    padding-top: 100px;
    position: relative;
    overflow: hidden;
}

.formation-detail-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 70% 50%, rgba(212,175,55,0.1) 0%, transparent 60%);
}

.formation-detail-hero-content {
    position: relative;
    z-index: 2;
    padding: 3rem 0;
    width: 100%;
}

.formation-detail-badge {
    display: inline-block;
    background: var(--primary-gold);
    color: var(--deep-black);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    margin-bottom: 1.2rem;
}

.formation-detail-hero h1 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    color: var(--white);
    margin-bottom: 1rem;
    max-width: 700px;
    line-height: 1.2;
}

.formation-detail-hero p {
    color: rgba(255,255,255,0.65);
    font-size: 1.1rem;
    max-width: 600px;
    margin-bottom: 2rem;
}

.formation-detail-meta-bar {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.formation-detail-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
}

.formation-detail-meta-item strong {
    color: var(--primary-gold);
}

.formation-detail-body {
    padding: 5rem 0;
    background: var(--white);
}

.formation-detail-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 3rem;
    align-items: start;
}

.formation-detail-main section {
    margin-bottom: 3rem;
}

.formation-detail-main h2 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid var(--light-gray);
    position: relative;
    color: var(--deep-black);
}

.formation-detail-main h2::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--primary-gold);
}

.formation-objectifs-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
}

.formation-objectifs-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    font-size: 0.92rem;
    color: var(--soft-black);
    line-height: 1.5;
}

.formation-objectifs-list li::before {
    content: '✓';
    color: var(--primary-gold);
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 2px;
}

.programme-accordion-item {
    border: 1px solid var(--light-gray);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 0.8rem;
}

.programme-accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 1.5rem;
    cursor: pointer;
    background: var(--cream);
    font-weight: 600;
    font-size: 0.93rem;
    color: var(--deep-black);
    gap: 1rem;
    transition: background 0.3s;
}

.programme-accordion-header:hover { background: #f0ece0; }

.programme-accordion-item.open .programme-accordion-header {
    background: var(--primary-gold);
    color: var(--deep-black);
}

.programme-accordion-icon {
    font-size: 1.2rem;
    font-weight: 300;
    transition: transform 0.3s;
    flex-shrink: 0;
}
.programme-accordion-item.open .programme-accordion-icon {
    transform: rotate(45deg);
}

.programme-accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}
.programme-accordion-item.open .programme-accordion-body {
    max-height: 400px;
}

.programme-accordion-body ul {
    list-style: none;
    padding: 1.2rem 1.5rem;
}
.programme-accordion-body ul li {
    padding: 0.4rem 0;
    font-size: 0.9rem;
    color: var(--gray);
    border-bottom: 1px solid var(--light-gray);
    display: flex;
    align-items: center;
    gap: 0.7rem;
}
.programme-accordion-body ul li:last-child { border-bottom: none; }
.programme-accordion-body ul li::before {
    content: '→';
    color: var(--primary-gold);
    font-size: 0.8rem;
}

/* Sticky card */
.formation-sidebar-card {
    position: sticky;
    top: 100px;
    background: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0,0,0,0.1);
}

.formation-sidebar-img {
    height: 200px;
    overflow: hidden;
}

.formation-sidebar-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.formation-sidebar-body {
    padding: 2rem;
}

.formation-sidebar-price {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--deep-black);
    font-family: 'Playfair Display', serif;
    margin-bottom: 1.5rem;
}

.formation-sidebar-details {
    list-style: none;
    margin-bottom: 2rem;
}

.formation-sidebar-details li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--light-gray);
    font-size: 0.88rem;
}

.formation-sidebar-details li:last-child { border-bottom: none; }
.formation-sidebar-details .detail-label { color: var(--gray); }
.formation-sidebar-details .detail-value { font-weight: 600; color: var(--deep-black); }

.formation-sidebar-card .btn { width: 100%; text-align: center; margin-bottom: 0.8rem; }

@media (max-width: 900px) {
    .formation-detail-grid { grid-template-columns: 1fr; }
    .formation-sidebar-card { position: static; }
    .formation-objectifs-list { grid-template-columns: 1fr; }
}

/* Back to top */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 5.5rem;
    width: 48px;
    height: 48px;
    background: var(--primary-gold);
    color: var(--deep-black);
    border: none;
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(212,175,55,0.4);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s;
    z-index: 900;
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--dark-gold);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212,175,55,0.5);
}

@media (max-width: 768px) {
    .back-to-top {
        right: 1rem;
        bottom: 5.2rem;
        width: 42px;
        height: 42px;
        font-size: 1.1rem;
    }
}

/* =============================================
   UNIFIED PAGE HERO — same style for all pages
   ============================================= */
.page-hero {
    height: 50vh;
    min-height: 320px;
    /* Replace the URL below with your own image per page using inline style or a custom class */
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.85), rgba(26, 26, 10, 0.80)),
                var(--page-hero-bg, url('https://images.unsplash.com/photo-1524178232363-1fb2b075b655?w=1200'));
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    margin-top: 80px;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(212,175,55,0.10) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 50%, rgba(212,175,55,0.07) 0%, transparent 60%);
    pointer-events: none;
}

.page-hero-content {
    text-align: center;
    color: var(--white);
    position: relative;
    z-index: 2;
    padding: 0 1.5rem;
}

.page-hero-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--primary-gold);
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.page-hero-content p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.82);
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    letter-spacing: 0.06em;
}

.page-hero-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.2rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.55);
    font-family: 'Montserrat', sans-serif;
}

.page-hero-breadcrumb a {
    color: var(--primary-gold);
    text-decoration: none;
    transition: opacity 0.2s;
}

.page-hero-breadcrumb a:hover {
    opacity: 0.8;
}

.page-hero-breadcrumb span {
    color: rgba(255,255,255,0.4);
}

/* Per-page background image overrides — change the URL to your own image */
.page-hero--catalogue {
    --page-hero-bg: url('https://images.unsplash.com/photo-1524178232363-1fb2b075b655?w=1200');
}

.page-hero--galerie {
    --page-hero-bg: url('https://images.unsplash.com/photo-1522202176988-66273c2fd55f?w=1200');
}

.page-hero--apropos {
    --page-hero-bg: url('https://images.unsplash.com/photo-1552664730-d307ca884978?w=1200');
}

.page-hero--contact {
    --page-hero-bg: url('https://images.unsplash.com/photo-1423666639041-f56000c27a9a?w=1200');
}

/* =============================================
   MOBILE READABILITY AND TOUCH IMPROVEMENTS
   ============================================= */
img {
    max-width: 100%;
}

button,
.btn,
.btn-devis,
.btn-details,
.btn-reset-filters,
.btn-submit,
.btn-gallery-cta,
.filter-btn,
.pfe-btn-gold,
.pfe-btn-outline,
.pfe-btn-outline-white {
    min-height: 44px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    body {
        font-size: 16px;
        line-height: 1.65;
    }

    p,
    li,
    label,
    input,
    textarea,
    select {
        font-size: 1rem;
    }

    .hero,
    .catalogue-hero,
    .page-hero {
        min-height: 48vh;
        background-attachment: scroll;
    }

    .section-title,
    .catalogue-hero h1,
    .page-hero-content h1 {
        font-size: clamp(1.8rem, 7vw, 2.35rem);
        line-height: 1.2;
    }

    .section-subtitle,
    .catalogue-hero p,
    .page-hero-content p {
        font-size: 1rem;
        line-height: 1.65;
        letter-spacing: 0;
    }

    .btn,
    .btn-details,
    .btn-reset-filters,
    .btn-submit,
    .btn-gallery-cta,
    .btn-large,
    .filter-btn {
        padding: 0.95rem 1.2rem;
        font-size: 1rem;
        line-height: 1.2;
    }

    .hero-buttons .btn,
    .cta-buttons .btn,
    .formations-cta .btn,
    .formation-footer .btn-details {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .contact-form-wrapper {
        padding: 1.5rem;
    }

    .contact-form-title {
        font-size: 1.65rem;
    }

    .contact-form-subtitle {
        font-size: 0.92rem;
    }

    .request-mode-switch {
        grid-template-columns: 1fr;
    }

    .formation-line {
        grid-template-columns: 1fr;
    }

    .formation-line .remove-formation-btn,
    .btn-add-formation {
        width: 100%;
        justify-content: center;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.9rem 1rem;
        font-size: 1rem;
    }

    .checkbox-group {
        align-items: flex-start;
    }

    .checkbox-group label {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .about-img {
        height: clamp(230px, 55vw, 320px);
    }

    .apropos-map-grid iframe {
        height: 320px;
    }

    .formation-image {
        aspect-ratio: 4 / 3;
    }

    .gallery-marquee-item {
        width: 210px;
        height: 140px;
    }

    .footer {
        padding: 3rem 0 1.5rem;
    }

    .footer-logo-img {
        height: 88px;
    }

    .chatbot-toggle {
        width: 56px;
        height: 56px;
        right: 18px;
        bottom: 26px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 14px;
    }

    .navbar {
        padding: 0.6rem 0;
    }

    .logo-image {
        height: 60px;
        transform: scale(1.24);
    }

    .nav-menu {
        left: 0.8rem;
        right: 0.8rem;
    }

    .nav-link {
        font-size: 1rem;
        padding: 0.82rem 0.55rem;
    }

    .section-title,
    .catalogue-hero h1,
    .page-hero-content h1 {
        font-size: clamp(1.6rem, 8.5vw, 2rem);
    }

    .section-subtitle,
    .catalogue-hero p,
    .page-hero-content p {
        font-size: 0.96rem;
    }

    .btn,
    .btn-details,
    .btn-reset-filters,
    .btn-submit,
    .btn-gallery-cta,
    .btn-large,
    .filter-btn {
        font-size: 0.96rem;
        padding: 0.9rem 1rem;
    }

    .map-section {
        height: 260px;
    }

    .apropos-map-grid iframe {
        height: 290px;
    }

    .gallery-marquee-item {
        width: 185px;
        height: 124px;
    }
}
