/* ==========================================================================
   MOYAZ ABOUT PAGE STYLES - VERSION RESPONSIVE CORRIGÉE
   ========================================================================== */
:root {
    --primary-brown: #A0753D;
    --secondary-brown: #8B4513;
    --accent-gold: #D4AF37;
    --warm-beige: #F5E6D3;
    --cream: #FFF8E7;

    --neutral-dark: #4A3728;
    --neutral-light: #FAF8F3;
    --text-primary: #4A3728;
    --text-secondary: #6B5B5B;
    --border-light: #E8DDD0;
    --shadow-warm: rgba(160, 117, 61, 0.15);
    --shadow-medium: rgba(139, 69, 19, 0.2);
}

/* Base Styles */
.page-about {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 28px;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.contact-hero-section {
    background: linear-gradient(135deg, var(--cream) 0%, var(--warm-beige) 100%);
    padding: 120px 0 60px;
    position: relative;
    text-align: center;
}

.contact-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 0 0, rgba(212, 175, 55, 0.4) 3px, transparent 3px),
        radial-gradient(circle at 25px 25px, rgba(160, 117, 61, 0.3) 2px, transparent 2px),
        radial-gradient(circle at 50px 0, rgba(34, 139, 34, 0.3) 2px, transparent 2px);
    background-size: 50px 50px;
    background-repeat: repeat;
    opacity: 1;
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-content {
    animation: fadeInUp 1s ease-out;
}

.contact-hero-content {
    position: relative;
    z-index: 2;
}

.contact-hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    color: var(--secondary-brown);
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
}

.contact-hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ==========================================================================
   CONTENT SECTIONS - BACKGROUNDS ALTERNÉS
   ========================================================================== */
.content-section {
    padding: 80px 0;
    position: relative;
}


/* Section Valeurs - Fond blanc */
.values-section {
    background: linear-gradient(135deg, var(--cream) 0%, var(--warm-beige) 100%);

    border-bottom: 1px solid var(--border-light);

}

/* Section Clients - Fond beige très clair */
.clients-section {
    background-color: var(--cream);
    border-bottom: 1px solid var(--border-light);
}

/* Section CTA - Fond beige chaud */
.cta-section {
    background-color: var(--warm-beige);
    text-align: center;
}

/* Section Titles */
.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 600;
    color: var(--secondary-brown);
    margin-bottom: 15px;
}

.section-title p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ==========================================================================
   STORY SECTION - ENHANCED WITH IMAGE
   ========================================================================== */
   .story-section {
    position: relative;
    background: linear-gradient(135deg, var(--cream) 0%, var(--warm-beige) 100%);
    overflow: hidden;
}

/* Background Image Container */
.story-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.story-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    opacity: 0.15; /* Very subtle background */
    filter: blur(0.5px) sepia(10%);
    transform: scale(1.05);
    transition: all 0.3s ease;
}

.story-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: center;
    margin-top: 40px;
}
/* Enhanced story grid with better contrast */
.story-content {
    background: rgba(255, 255, 255, 0.4); 
    backdrop-filter: blur(5px);
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.story-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 2.5rem);
    color: var(--secondary-brown);
    margin-bottom: 30px;
}

.story-content .lead {
    font-size: clamp(1.1rem, 2.5vw, 1.2rem);
    font-weight: 500;
    color: var(--secondary-brown);
    margin-bottom: 25px;
    line-height: 1.7;
}

.story-content p {
    font-size: clamp(0.95rem, 1.5vw, 1rem);
    margin-bottom: 20px;
    line-height: 1.7;
    color: var(--text-primary);
}

.story-image {
    position: relative;
}
/* Alternative pattern overlay that was already there */
.story-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 0 0, rgba(212, 175, 55, 0.3) 3px, transparent 3px),
        radial-gradient(circle at 25px 25px, rgba(160, 117, 61, 0.2) 2px, transparent 2px),
        radial-gradient(circle at 50px 0, rgba(34, 139, 34, 0.2) 2px, transparent 2px);
    background-size: 50px 50px;
    background-repeat: repeat;
    opacity: 0.6;
    z-index: 2;
    pointer-events: none;
}

/* Ensure content is above background */
.story-section .container {
    position: relative;
    z-index: 3;
}
.image-decoration {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.story-img, .story-main-image {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 20px;
    transition: transform 0.3s ease;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.9), rgba(247, 147, 30, 0.9));
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-decoration:hover .image-overlay {
    opacity: 1;
}

.image-decoration:hover .story-img,
.image-decoration:hover .story-main-image {
    transform: scale(1.05);
}

.image-overlay::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(255,255,255,0.1) 10px,
        rgba(255,255,255,0.1) 20px
    );
    animation: slidePattern 20s linear infinite;
}

.image-overlay h3 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 10px;
    position: relative;
    z-index: 2;
}

.image-overlay p {
    font-size: clamp(0.9rem, 1.5vw, 1rem);
    opacity: 0.9;
    position: relative;
    z-index: 2;
}

/* ==========================================================================
   VALUES SECTION
   ========================================================================== */
.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 40px;
}

.value-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    min-height: 250px;
    padding: 0;
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.value-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    transition: all 0.3s ease;
}

.value-card:hover .value-card-image {
    transform: scale(1.05);
    filter: brightness(0.3);
}

.value-card-content {
    position: relative;
    z-index: 2;
    padding: 35px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

.value-card:hover .value-card-content {
    background: rgba(0, 0, 0, 0.7);
}

.value-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.3rem, 2.5vw, 1.5rem);
    color: white;
    margin-bottom: 0;
    transition: all 0.3s ease;
    position: relative;
    z-index: 3;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.value-card:hover h3 {
    margin-bottom: 20px;
    transform: translateY(-10px);
    font-size: clamp(1.4rem, 2.8vw, 1.6rem);
}

.value-card p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    margin-top: 0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    font-size: clamp(0.9rem, 1.5vw, 1rem);
}

.value-card:hover p {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 53, 0.1), transparent);
    transition: left 0.5s ease;
}

.value-card:hover::before {
    left: 100%;
}

.value-card:nth-child(1):hover {
    border-left: 4px solid #228B22;
}

.value-card:nth-child(2):hover {
    border-left: 4px solid #ff6b35;
}

.value-card:nth-child(3):hover {
    border-left: 4px solid #D4AF37;
}

/* Placeholder pour les cartes sans image */
.value-card-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-brown), var(--secondary-brown));
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.value-icon {
    font-size: clamp(2.5rem, 5vw, 3rem);
    color: white;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

/* ==========================================================================
   CLIENTS SECTION
   ========================================================================== */
.clients-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 40px;
}

.client-category {
    background: white;
    border-radius: 15px;
    padding: 35px;
    text-align: center;
    box-shadow: 0 10px 25px var(--shadow-medium);
    transition: transform 0.3s ease;
    border: 1px solid var(--border-light);
}

.client-category:hover {
    transform: translateY(-10px);
}

.client-category h3 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.3rem, 2.5vw, 1.5rem);
    color: var(--secondary-brown);
    margin-bottom: 20px;
}

.client-category p {
    color: var(--text-secondary);
    margin-bottom: 25px;
    line-height: 1.6;
    font-size: clamp(0.9rem, 1.5vw, 1rem);
}

.client-benefits ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.client-benefits li {
    padding: 8px 0;
    color: var(--text-primary);
    position: relative;
    padding-left: 25px;
    font-size: clamp(0.9rem, 1.5vw, 1rem);
}

.client-benefits li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-gold);
    font-weight: bold;
}

/* ==========================================================================
   CTA SECTION
   ========================================================================== */
.cta-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 20px;
    color: var(--secondary-brown);
}

.cta-content p {
    font-size: clamp(1rem, 2vw, 1.1rem);
    margin-bottom: 40px;
    opacity: 0.9;
    color: var(--text-secondary);
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: clamp(0.9rem, 1.5vw, 1rem);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-align: center;
    min-width: 160px;
}

.btn-primary {
    background-color: #824c1e;
    color: white;
    box-shadow: 0 5px 20px var(--shadow-warm);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(160, 117, 61, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-brown);
    border-color: #824c1e;
}

.btn-secondary:hover {
    background: #824c1e;
    color: white;
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slidePattern {
    0% { transform: translateX(-50px) translateY(-50px); }
    100% { transform: translateX(50px) translateY(50px); }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

.story-main-image {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.3s;
}

/* Styles pour le customizer preview */
.customize-partial-edit-shortcut-moyaz-about {
    position: relative;
}

.customize-partial-edit-shortcut-moyaz-about:hover {
    outline: 2px solid var(--accent-gold);
    outline-offset: 2px;
}

/* ==========================================================================
   RESPONSIVE DESIGN - CORRECTIONS COMPLÈTES
   ========================================================================== */

/* Écrans larges (Desktop XL) */
@media (min-width: 1440px) {
    .container {
        max-width: 1320px;
    }
    
    .story-grid {
        gap: 80px;
    }
    
    .values-grid,
    .clients-grid {
        gap: 50px;
    }
}

/* Écrans moyens-larges (Desktop L) */
@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
    
    .story-grid {
        gap: 50px;
    }
    
    .values-grid,
    .clients-grid {
        gap: 35px;
    }
}

/* Tablettes paysage et petits desktops */
@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }
    
    .contact-hero-section {
        padding: 100px 0 50px;
    }
    
    .content-section {
        padding: 70px 0;
    }
    
    .story-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .story-image {
        order: -1;
    }
    
    .story-img, .story-main-image {
        height: 300px;
    }
    
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .value-card {
        min-height: 220px;
    }
    
    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .section-title {
        margin-bottom: 50px;
    }
}

/* Tablettes portrait */
@media (max-width: 768px) {
    .container {
        padding: 0 25px;
    }
    
    .contact-hero-section {
        padding: 80px 0 40px;
    }
    
    .contact-hero-section::before {
        background-size: 30px 30px;
    }
    
    .content-section {
        padding: 60px 0;
    }
    
    .section-title {
        margin-bottom: 40px;
    }
    
    .story-content {
        text-align: left;
    }
    
    .story-content h2 {
        margin-bottom: 20px;
    }
    
    .story-content .lead {
        margin-bottom: 20px;
    }
    
    .story-img, .story-main-image {
        height: 250px;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .value-card {
        min-height: 200px;
    }
    
    .value-card-content {
        padding: 30px 25px;
    }
    
    .clients-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .client-category {
        padding: 30px 25px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        padding: 12px 30px;
    }
}

/* Smartphones larges */
@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }
    
    .contact-hero-section {
        padding: 60px 0 30px;
    }
    
    .contact-hero-section::before {
        background-size: 20px 20px;
    }
    
    .content-section {
        padding: 50px 0;
    }
    
    .section-title {
        margin-bottom: 30px;
    }
    
    .story-grid {
        gap: 30px;
    }
    
    .story-content h2 {
        margin-bottom: 15px;
    }
    
    .story-content .lead {
        margin-bottom: 15px;
    }
    
    .story-content p {
        margin-bottom: 15px;
    }
    
    .story-img, .story-main-image {
        height: 200px;
    }
    
    .image-decoration {
        border-radius: 15px;
    }
    
    .story-img, .story-main-image {
        border-radius: 15px;
    }
    
    .value-card {
        min-height: 180px;
        border-radius: 12px;
    }
    
    .value-card-content {
        padding: 25px 20px;
    }
    
    .value-icon {
        font-size: 2.5rem;
    }
    
    .client-category {
        padding: 25px 20px;
        border-radius: 12px;
    }
    
    .cta-content h2 {
        margin-bottom: 15px;
    }
    
    .cta-content p {
        margin-bottom: 30px;
    }
    
    .btn {
        max-width: 250px;
        padding: 12px 25px;
    }
}

/* Smartphones très petits */
@media (max-width: 360px) {
    .container {
        padding: 0 15px;
    }
    
    .contact-hero-section {
        padding: 50px 0 25px;
    }
    
    .content-section {
        padding: 40px 0;
    }
    
    .story-img, .story-main-image {
        height: 180px;
    }
    
    .value-card {
        min-height: 160px;
    }
    
    .value-card-content {
        padding: 20px 15px;
    }
    
    .client-category {
        padding: 20px 15px;
    }
    
    .btn {
        max-width: 220px;
        padding: 10px 20px;
    }
}

/* Corrections pour les interactions tactiles */
@media (hover: none) and (pointer: coarse) {
    .value-card:hover {
        transform: none;
    }
    
    .value-card p {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    .value-card h3 {
        margin-bottom: 15px;
    }
    
    .image-decoration:hover .image-overlay {
        opacity: 0;
    }
    
    .image-decoration:hover .story-img,
    .image-decoration:hover .story-main-image {
        transform: none;
    }
}

/* Améliorations pour l'accessibilité */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .contact-hero-section::before {
        animation: none;
    }
    
    .image-overlay::before {
        animation: none;
    }
}

/* Mode sombre (si supporté) */
@media (prefers-color-scheme: dark) {
    .value-card {
        background: #2a2a2a;
        color: #f0f0f0;
    }
    
    .client-category {
        background: #2a2a2a;
        color: #f0f0f0;
    }
}