.domaine-action{
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    background: linear-gradient(135deg, #faf7f3 0%, #f3ede5 25%, #ede5dd 50%, #f3ede5 75%, #faf7f3 100%);
    color: #333;
    position: relative;
    overflow: hidden;
}

.domaine-action::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 20%, rgba(238, 196, 135, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(115, 77, 18, 0.1) 0%, transparent 50%);
    z-index: 1;
}

.domaine-action::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="15" height="15" patternUnits="userSpaceOnUse"><path d="M 15 0 L 0 0 0 15" fill="none" stroke="rgba(115,77,18,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.4;
    z-index: 1;
}

.domaine-action .container {
    max-width: 1000px;
    margin: 0 auto;
    background: transparent;
    padding: 0;
}

.domaine-action h1 {
    font-size: 4em;
    background: linear-gradient(135deg, #734D12 0%, #C36940 50%, #EEC487 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 4rem;
    font-weight: 700;
    text-align: center;
    position: relative;
    z-index: 2;
    animation: glow 3s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        filter: drop-shadow(0 0 20px rgba(238, 196, 135, 0.3));
    }
    to {
        filter: drop-shadow(0 0 30px rgba(238, 196, 135, 0.6));
    }
}

.domaine-action .domains-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
    justify-content: center;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.domaine-action .domain {
    background: rgba(255, 255, 255, 0.92);
    padding: 3rem 2.5rem;
    border-radius: 20px;
    border: 2px solid var(--primary-light);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 20px 50px rgba(85, 54, 44, 0.12),
        inset 0 1px 0 rgba(238, 196, 135, 0.4);
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
}

.domaine-action .domain::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(238, 196, 135, 0.05), rgba(115, 77, 18, 0.05));
    border-radius: 25px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.domaine-action .domain:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 
        0 35px 70px rgba(85, 54, 44, 0.18),
        0 0 50px rgba(238, 196, 135, 0.25);
    border-color: var(--accent-orange);
}

.domaine-action .domain:hover::before {
    opacity: 1;
}

/* Centrer la dernière carte si elle est seule sur sa ligne */
.domaine-action .domain:nth-child(5) {
    grid-column: 1 / -1;
    justify-self: center;
    max-width: 400px;
}

.domaine-action h2 {
    font-size: 1.6em;
    background: linear-gradient(135deg, #734D12 0%, #C36940 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 1.5rem 0;
    display: flex;
    align-items: center;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.domaine-action .icon {
    margin-right: 0.5rem;
    font-size: 1.1em;
}

.domaine-action .description {
    font-size: 1.1em;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: #555;
    font-weight: 500;
}

.domaine-action .actions-title {
    font-size: 1.1em;
    font-weight: 700;
    background: linear-gradient(135deg, var(--brown-theme) 0%, var(--logo-theme) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 1.5rem 0 1rem 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.domaine-action ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.domaine-action li {
    background: rgba(238, 196, 135, 0.15);
    margin: 0.5rem 0;
    padding: 0.8rem 1rem;
    border-radius: 12px;
    font-size: 1em;
    color: var(--brown-theme);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 3px solid transparent;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.domaine-action li::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(238, 196, 135, 0.1), rgba(115, 77, 18, 0.1));
    border-radius: 12px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.domaine-action li:hover {
    background: rgba(238, 196, 135, 0.25);
    border-left-color: var(--logo-theme);
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(238, 196, 135, 0.2);
}

.domaine-action li:hover::before {
    opacity: 1;
}

.domaine-action .quote-section {
    background: rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    border: 1px solid rgba(238, 196, 135, 0.3);
    margin-top: 2rem;
    text-align: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.domaine-action .quote-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.domaine-action .quote {
    background: linear-gradient(135deg, rgba(238, 196, 135, 0.1) 0%, rgba(115, 77, 18, 0.1) 100%);
    color: var(--brown-theme);
    padding: 2rem 1.5rem;
    border-radius: 15px;
    font-style: italic;
    border-left: 4px solid var(--light-theme);
    position: relative;
    overflow: hidden;
}

.domaine-action .quote::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(238, 196, 135, 0.05), rgba(115, 77, 18, 0.05));
    border-radius: 15px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.domaine-action .quote:hover::before {
    opacity: 1;
}

.domaine-action .quote-text {
    font-size: 1.2em;
    margin-bottom: 0.8rem;
    font-weight: 600;
    color: var(--brown-theme);
    line-height: 1.6;
}

.domaine-action .quote-meaning {
    font-size: 1em;
    opacity: 0.9;
    font-style: normal;
    color: var(--logo-theme);
    font-weight: 500;
}

/* Optimisation pour écrans larges - au moins 3 cartes par ligne */
@media (min-width: 1200px) {
    .domaine-action .domains-grid {
        grid-template-columns: repeat(3, 1fr);
        max-width: 1400px;
    }
    
    .domaine-action .domain:nth-child(5) {
        grid-column: 2;
        justify-self: center;
        max-width: 400px;
    }
}

@media (max-width: 768px) {
    .domaine-action .domains-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        justify-content: center;
        padding: 0 1rem;
    }
    
    .domaine-action .domain {
        padding: 2rem 1.5rem;
    }
    
    /* Sur mobile, la règle de centrage de la dernière carte n'est pas nécessaire */
    .domaine-action .domain:nth-child(5) {
        grid-column: auto;
        justify-self: auto;
        max-width: none;
    }
    
    .domaine-action h1 {
        font-size: 2.5em;
        margin-bottom: 2rem;
    }
    
    .domaine-action h2 {
        font-size: 1.3em;
    }
    
    .domaine-action .description {
        font-size: 1em;
    }
    
    .domaine-action .actions-title {
        font-size: 1em;
    }
    
    .domaine-action li {
        font-size: 0.9em;
        padding: 0.6rem 0.8rem;
    }
    
    .domaine-action .quote {
        padding: 1.5rem 1rem;
    }
    
    .domaine-action .quote-text {
        font-size: 1.1em;
    }
    
    .domaine-action .quote-meaning {
        font-size: 0.9em;
    }
}

/* Pour s'adapter à différents thèmes de site */
.domaine-action .light-theme {
    background: #fff;
}

.dark-theme .domain {
    background: rgba(255, 255, 255, 0.95);
}