/* ============================================================ */
/* CRISTALLISATION MARBRE RABAT — PAGE STYLES                   */
/* ============================================================ */

/* ============================================================ */
/* HERO PAGE */
/* ============================================================ */


.hero-page {
    position: relative; min-height: 70vh;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; padding: 10rem 0 5rem;
}
.hero-page-bg {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    opacity: 0.5; height: 100vh;
}
.hero-page-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to right, #000000, rgba(0, 0, 0, 0.8), transparent);
}
.hero-page-gradient {
    position: absolute; inset: 0;
    background: radial-gradient(circle at top right, rgba(212, 175, 55, 0.15), transparent 50%);
}
.hero-page-container {
    max-width: 1280px; margin: 0 auto; padding: 0 1.5rem;
    position: relative; z-index: 10;
}
.hero-page-content { max-width: 45rem; }
.hero-page-title {
    font-family: 'Oswald', sans-serif; font-size: 2.5rem;
    font-weight: 700; margin-bottom: 1.5rem; line-height: 0.9;
}
@media (min-width: 768px) { .hero-page-title { font-size: 4rem; } }
@media (min-width: 1024px) { .hero-page-title { font-size: 5rem; } }
.hero-page-desc {
    color: #9ca3af; max-width: 35rem; font-size: 1.1rem;
    font-weight: 300; line-height: 1.7; margin-bottom: 2rem;
    border-left: 2px solid rgba(255, 255, 255, 0.1); padding-left: 1.5rem;
}
.hero-page-desc strong { color: #D4AF37; font-weight: 700; }
.hero-page-buttons { display: flex; flex-direction: column; gap: 1rem; }
@media (min-width: 640px) { .hero-page-buttons { flex-direction: row; } }

/* ============================================================ */
/* INTRO SECTION */
/* ============================================================ */
.intro-section {
    padding: 5rem 0; background: #1a1a1a;
    position: relative; overflow: hidden;
}
@media (min-width: 768px) { .intro-section { padding: 8rem 0; } }
.intro-container {
    max-width: 1280px; margin: 0 auto; padding: 0 1.5rem;
    position: relative; z-index: 10;
}
.intro-grid {
    display: grid; grid-template-columns: 1fr;
    gap: 3rem; align-items: center;
}
@media (min-width: 1024px) { .intro-grid { grid-template-columns: 1fr 1fr; gap: 5rem; } }
.intro-desc {
    color: #9ca3af; font-size: 1.05rem; margin-bottom: 1.5rem; line-height: 1.7;
}
.intro-desc strong { color: #ffffff; }
.intro-list { list-style: none; margin-top: 2rem; }
.intro-list li {
    display: flex; align-items: center; gap: 1rem;
    color: #d1d5db; padding: 0.5rem 0;
}
.intro-list li i { color: #D4AF37; font-size: 1.25rem; }
.intro-image img {
    width: 100%; height: 25rem; object-fit: cover;
    border-radius: 12px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* ============================================================ */
/* PROCESS SECTION */
/* ============================================================ */
.process-section {
    padding: 5rem 0; background: #0a0a0a;
}
@media (min-width: 768px) { .process-section { padding: 8rem 0; } }
.process-container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
.process-header { text-align: center; margin-bottom: 4rem; }
.process-desc {
    color: #9ca3af; font-size: 1.1rem; margin-top: 1rem;
    max-width: 36rem; margin-left: auto; margin-right: auto;
}
.process-grid {
    display: grid; grid-template-columns: 1fr; gap: 2rem;
}
@media (min-width: 768px) { .process-grid { grid-template-columns: repeat(2, 1fr); gap: 2.5rem; } }
@media (min-width: 1024px) { .process-grid { grid-template-columns: repeat(4, 1fr); } }
.process-step {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 2rem; border-radius: 12px;
    position: relative; transition: all 0.3s ease;
}
.process-step:hover {
    border-color: rgba(212, 175, 55, 0.3);
    transform: translateY(-4px);
}
.step-number {
    font-family: 'Oswald', sans-serif; font-size: 3rem;
    font-weight: 700; color: rgba(212, 175, 55, 0.15);
    position: absolute; top: 1rem; right: 1.5rem;
}
.step-icon {
    font-size: 2rem; color: #D4AF37; margin-bottom: 1.5rem;
}
.step-title {
    font-family: 'Oswald', sans-serif; font-size: 1.25rem;
    font-weight: 700; color: #ffffff; margin-bottom: 0.75rem;
}
.step-desc { color: #9ca3af; font-size: 0.9rem; line-height: 1.6; }

/* ============================================================ */
/* ADVANTAGES SECTION */
/* ============================================================ */
.advantages-section {
    padding: 5rem 0; background: #1a1a1a;
}
@media (min-width: 768px) { .advantages-section { padding: 8rem 0; } }
.advantages-container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
.advantages-header { text-align: center; margin-bottom: 4rem; }
.advantages-grid {
    display: grid; grid-template-columns: 1fr; gap: 1.5rem;
}
@media (min-width: 768px) { .advantages-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .advantages-grid { grid-template-columns: repeat(4, 1fr); } }
.advantage-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 2rem; border-radius: 12px;
    transition: all 0.3s ease;
}
.advantage-card:hover {
    border-color: rgba(212, 175, 55, 0.3);
    transform: translateY(-4px);
}
.advantage-icon {
    font-size: 2rem; color: #D4AF37; margin-bottom: 1.5rem;
}
.advantage-title {
    font-family: 'Oswald', sans-serif; font-size: 1.15rem;
    font-weight: 700; color: #ffffff; margin-bottom: 0.75rem;
}
.advantage-desc { color: #9ca3af; font-size: 0.9rem; line-height: 1.6; }

/* ============================================================ */
/* QUARTIERS SECTION */
/* ============================================================ */
.quartiers-section {
    padding: 5rem 0; background: #0a0a0a;
    position: relative; overflow: hidden;
}
@media (min-width: 768px) { .quartiers-section { padding: 8rem 0; } }
.quartiers-bg {
    position: absolute; top: 0; left: 0;
    width: 50%; height: 100%;
    background: rgba(212, 175, 55, 0.05); filter: blur(100px);
}
.quartiers-container {
    max-width: 1280px; margin: 0 auto; padding: 0 1.5rem;
    position: relative; z-index: 10;
}
.quartiers-header { text-align: center; margin-bottom: 4rem; }
.quartiers-desc {
    color: #9ca3af; font-size: 1.1rem; margin-top: 1rem;
    max-width: 40rem; margin-left: auto; margin-right: auto;
}
.quartiers-grid {
    display: grid; grid-template-columns: 1fr; gap: 1.5rem;
}
@media (min-width: 640px) { .quartiers-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .quartiers-grid { grid-template-columns: repeat(3, 1fr); } }
.quartier-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 2rem; border-radius: 12px;
    transition: all 0.3s ease; text-align: center;
}
.quartier-card:hover {
    border-color: rgba(212, 175, 55, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 10px 40px rgba(212, 175, 55, 0.1);
}
.quartier-icon {
    font-size: 2rem; color: #D4AF37; margin-bottom: 1rem;
}
.quartier-name {
    font-family: 'Oswald', sans-serif; font-size: 1.5rem;
    font-weight: 700; color: #ffffff; margin-bottom: 0.75rem;
}
.quartier-desc {
    color: #9ca3af; font-size: 0.9rem; line-height: 1.6;
    margin-bottom: 1.25rem;
}
.quartier-link {
    display: inline-flex; align-items: center; gap: 0.5rem;
    color: #D4AF37; font-family: 'Oswald', sans-serif;
    font-size: 0.8rem; font-weight: 700;
    letter-spacing: 0.1em; text-transform: uppercase;
    transition: gap 0.3s ease;
}
.quartier-link:hover { gap: 0.75rem; }

/* ============================================================ */
/* GALLERY PAGE SECTION (5 IMAGES) */
/* ============================================================ */
.gallery-page {
    padding: 5rem 0; background: #0a0a0a;
}
@media (min-width: 768px) { .gallery-page { padding: 8rem 0; } }
.gallery-page-container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
.gallery-page-header { text-align: center; margin-bottom: 4rem; }
.gallery-page-desc {
    color: #9ca3af; font-size: 1.1rem; margin-top: 1rem;
    max-width: 40rem; margin-left: auto; margin-right: auto;
}
.gallery-page-grid {
    display: grid; grid-template-columns: 1fr; gap: 1.5rem;
}
@media (min-width: 640px) { .gallery-page-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { 
    .gallery-page-grid { 
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: auto auto;
    } 
}
/* Make the first item span 2 columns on large screens for a 5-image layout */
@media (min-width: 1024px) {
    .gallery-page-item:first-child {
        grid-column: span 2;
    }
}
.gallery-page-item {
    position: relative; height: 20rem; overflow: hidden;
    border-radius: 8px; display: block;
}
.gallery-page-img {
    width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease;
}
.gallery-page-item:hover .gallery-page-img { transform: scale(1.1); }
.gallery-page-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent, transparent);
    opacity: 0; transition: opacity 0.3s ease;
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 2rem;
}
.gallery-page-item:hover .gallery-page-overlay { opacity: 1; }
.gallery-page-tag {
    color: #D4AF37; font-size: 0.6rem;
    letter-spacing: 0.2em; font-weight: 700; text-transform: uppercase;
    transform: translateY(1rem); transition: transform 0.5s ease;
}
.gallery-page-item:hover .gallery-page-tag { transform: translateY(0); }
.gallery-page-title {
    color: #ffffff; font-family: 'Oswald', sans-serif;
    font-size: 1.5rem; font-weight: 700;
    transform: translateY(1rem); transition: transform 0.5s ease 0.075s;
}
.gallery-page-item:hover .gallery-page-title { transform: translateY(0); }

/* ============================================================ */
/* FAQ SECTION */
/* ============================================================ */
.faq-section {
    padding: 5rem 0; background: #1a1a1a;
}
@media (min-width: 768px) { .faq-section { padding: 8rem 0; } }
.faq-container { max-width: 900px; margin: 0 auto; padding: 0 1.5rem; }
.faq-header { text-align: center; margin-bottom: 4rem; }
.faq-grid {
    display: flex; flex-direction: column; gap: 1.5rem;
}
.faq-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.5rem 2rem; border-radius: 12px;
    transition: all 0.3s ease;
}
.faq-item:hover { border-color: rgba(212, 175, 55, 0.3); }
.faq-question {
    font-family: 'Oswald', sans-serif; font-size: 1.1rem;
    font-weight: 700; color: #ffffff; margin-bottom: 0.75rem;
    display: flex; align-items: flex-start; gap: 0.75rem;
}
.faq-question i { color: #D4AF37; margin-top: 0.2rem; flex-shrink: 0; }
.faq-answer { color: #9ca3af; font-size: 0.95rem; line-height: 1.7; padding-left: 2rem; }

/* ============================================================ */
/* ACTIVE NAV LINK */
/* ============================================================ */
.nav-link.active {
    color: #D4AF37 !important;
}
.nav-link.active::after {
    width: 100% !important;
}

/* ============================================================ */
/* MOBILE RESPONSIVE FIXES */
/* ============================================================ */
@media (max-width: 768px) {
    .hero-page { min-height: 50vh; padding: 8rem 0 4rem; }
    .hero-page-title { font-size: 2.2rem !important; }
    .hero-page-desc { font-size: 1rem; }
    .intro-image img { height: 18rem; }
    .process-grid { gap: 1.5rem; }
    .process-step { padding: 1.5rem; }
    .quartiers-grid { gap: 1rem; }
    .quartier-card { padding: 1.5rem; }
    .gallery-page-item { height: 16rem; }
    .gallery-page-title { font-size: 1.2rem; }
    .gallery-page-grid { gap: 1rem; }
    .faq-item { padding: 1.25rem 1.5rem; }
    .faq-question { font-size: 1rem; }
    .faq-answer { font-size: 0.9rem; padding-left: 0; }
}

@media (max-width: 480px) {
    .hero-page-title { font-size: 1.8rem !important; }
    .intro-image img { height: 14rem; }
    .process-grid { grid-template-columns: 1fr; }
    .advantages-grid { grid-template-columns: 1fr; }
    .quartiers-grid { grid-template-columns: 1fr; }
    .gallery-page-grid { grid-template-columns: 1fr; }
    .gallery-page-item:first-child { grid-column: span 1; }
}




/* ============================================================ */
/* DEVIS CTA (remplace le formulaire de contact) */
/* ============================================================ */
.devis-cta-block {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.devis-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 1.2rem 2rem;
    background: linear-gradient(135deg, #D4AF37, #F5E6A3, #D4AF37);
    background-size: 200% 200%;
    color: #0a0a0a;
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.4s ease;
    animation: shimmerDevis 3s infinite;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.2);
}

@keyframes shimmerDevis {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.devis-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.4);
}

.devis-cta-btn i {
    font-size: 1.1rem;
}

.devis-cta-note {
    color: #6b7280;
    font-size: 0.85rem;
    text-align: center;
    margin: 0;
}

.devis-cta-quick {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.devis-cta-whatsapp,
.devis-cta-call {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1rem;
    border-radius: 8px;
    font-family: 'Oswald', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.devis-cta-whatsapp {
    background: #25D366;
    color: #ffffff;
}

.devis-cta-whatsapp:hover {
    background: #1ebe5a;
    transform: translateY(-2px);
}

.devis-cta-call {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.devis-cta-call:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #D4AF37;
    transform: translateY(-2px);
}

@media (max-width: 480px) {
    .devis-cta-quick {
        flex-direction: column;
    }
}