/* Variables */
:root {
    --primary-color: #00796b;
    --secondary-color: #4caf50;
    --accent-color: #8d6e63;
    --dark-color: #263238;
    --light-color: #f5f5f5;
    --text-color: #333333;
    --text-light: #ffffff;
    --border-radius: 8px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Base */
body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    background-color: var(--light-color);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Amiri', serif;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    color: var(--text-light);
}

.btn-secondary {
    background-color: #f8f9fa;
    color: var(--primary-color);
    border: 1px solid #e9ecef;
}

.btn-secondary:hover {
    background-color: #e9ecef;
    transform: translateY(-3px);
}

.btn-secondary i {
    margin-right: 5px;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.btn-contact {
    background-color: #f8f9fa;
    color: var(--primary-color);
    border: 1px solid #e9ecef;
    display: inline-flex;
    align-items: center;
    margin-top: 10px;
}

.btn-contact:hover {
    background-color: #e9ecef;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-contact i {
    margin-right: 8px;
    font-size: 0.9em;
}

/* Loader */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--light-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    width: 150px;
    height: 150px;
}

/* Header */
.header {
    background-color: var(--light-color);
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 15px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    margin-right: 20px;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--primary-color);
    padding: 5px 0;
}

.logo-text {
    color: #00796b;
    font-weight: 700;
    font-size: 1.8rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.logo-text:hover {
    color: #004d40;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--primary-color);
}

.logo-img {
    width: auto;
    height: 70px;
    margin-right: 10px;
    transition: transform 0.3s ease;
}

.logo:hover .logo-img {
    transform: scale(1.1);
}

.logo span {
    display: flex;
    align-items: center;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.5rem;
}

.logo-animation {
    width: 50px;
    height: 50px;
    margin-right: 10px;
}

.nav-list {
    display: flex;
}

.nav-list li {
    margin-left: 30px;
}

.nav-list a {
    color: var(--dark-color);
    font-weight: 500;
}

.nav-list a:hover {
    color: var(--primary-color);
}

.header-actions {
    display: flex;
    align-items: center;
}

.header-actions a {
    margin-left: 15px;
    color: var(--dark-color);
    font-size: 1.2rem;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--dark-color);
    margin: 3px 0;
    border-radius: 3px;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--light-color);
    box-shadow: var(--box-shadow);
    border-radius: var(--border-radius);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 101;
    padding: 10px 0;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0;
    padding: 0;
}

.dropdown-menu a {
    padding: 8px 20px;
    display: block;
    color: var(--dark-color);
    font-size: 0.9rem;
    transition: var(--transition);
}

.dropdown-menu a:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: var(--primary-color);
}

.dropdown > a .fa-chevron-down {
    font-size: 0.8rem;
    margin-left: 5px;
    transition: var(--transition);
}

.dropdown:hover > a .fa-chevron-down {
    transform: rotate(180deg);
}

/* Responsive Dropdown */
@media (max-width: 768px) {
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background-color: rgba(0, 0, 0, 0.03);
        border-radius: 0;
        margin-left: 20px;
        display: none;
    }
    
    .dropdown.active .dropdown-menu {
        display: block;
    }
    
    .dropdown > a .fa-chevron-down {
        float: right;
        margin-top: 5px;
    }
}

/* Hero Section */
.hero {
    padding: 80px 0;
    background-color: var(--light-color);
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.hero-text {
    flex: 1;
    max-width: 60%;
}

.hero-text p {
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 30px;
}

.hero-animation {
    width: 350px;
    height: 350px;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

@media (max-width: 992px) {
    .hero {
        padding: 50px 0 30px;
    }
    
    .hero-text {
        max-width: 100%;
    }
    
    .hero-content {
        flex-direction: column-reverse;
    }
    
    .hero-animation {
        width: 220px;
        height: 220px;
        margin-bottom: 10px;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 30px 0 20px;
    }
    
    .hero-animation {
        width: 180px;
        height: 180px;
        margin-bottom: 5px;
    }
}

/* Sections */
.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--dark-color);
    max-width: 700px;
    margin: 0 auto;
}

/* Categories Section */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.category-card {
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    padding: 30px 20px;
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.category-card.highlighted {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    border: 2px solid var(--primary-color);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 121, 107, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(0, 121, 107, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 121, 107, 0);
    }
}

.category-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background-color: transparent;
    padding: 10px;
}

.category-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.category-card p {
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.category-link {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 500;
}

.category-link i {
    margin-left: 5px;
    transition: var(--transition);
}

.category-link:hover i {
    transform: translateX(5px);
}

.categories-more {
    text-align: center;
    margin-top: 20px;
}

/* Books Sections */
.books-slider {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.book-card {
    background-color: var(--text-light);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: var(--transition);
}

.book-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.book-cover {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.book-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.book-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.book-info {
    padding: 20px;
}

.book-info h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.book-author {
    color: var(--accent-color);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.book-rating {
    color: #ffc107;
    margin-bottom: 10px;
}

.book-rating span {
    color: var(--text-color);
    margin-left: 5px;
    font-size: 0.8rem;
}

.book-price {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* CTA Section */
.cta-section {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 60px 0;
}

.cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    color: var(--text-light);
    margin-bottom: 20px;
}

.cta-content h3 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: var(--text-light);
}

.cta-content p {
    margin-bottom: 30px;
}

.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    font-size: 1rem;
}

.newsletter-form button {
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

/* Footer */
.footer {
    background-color: var(--dark-color);
    color: var(--text-light);
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-logo {
    flex: 1;
    min-width: 250px;
    margin-bottom: 30px;
}

.footer-logo {
    margin-bottom: 30px;
}

.footer-logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    margin-bottom: 15px;
}

.footer-logo .logo-img {
    width: auto;
    height: 80px;
    margin-right: 15px;
}

.footer-logo .logo-text {
    color: var(--light-color);
    font-weight: 700;
    font-size: 1.8rem;
    text-decoration: none;
}

.footer-logo p {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.footer-links {
    flex: 2;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.footer-links-column {
    min-width: 160px;
    margin-bottom: 30px;
}

.footer-links-column h4 {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-links-column ul li {
    margin-bottom: 10px;
}

.footer-links-column a {
    color: #aaa;
    transition: var(--transition);
}

.footer-links-column a:hover {
    color: var(--text-light);
}

.social-links {
    margin-top: 15px;
}

.social-links a {
    display: inline-block;
    margin-right: 10px;
    font-size: 1.2rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Section Introduction */
.intro-section {
    padding: 60px 0;
    background-color: var(--light-color);
    position: relative;
}

.intro-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/pattern-light.png');
    background-size: 200px;
    opacity: 0.05;
    z-index: 0;
}

.intro-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

.intro-section h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.intro-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

.intro-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 30px;
}

.intro-text p {
    margin-bottom: 20px;
}

.intro-text strong {
    color: var(--primary-color);
    font-weight: 600;
}

.intro-section .sub-heading {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin: 30px 0 20px;
    position: relative;
    padding-bottom: 15px;
}

.intro-section .sub-heading:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
}

.feature-list {
    padding-left: 20px;
    margin-bottom: 25px;
}

.feature-list li {
    margin-bottom: 15px;
    position: relative;
    padding-left: 5px;
}

.audience-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin: 25px 0;
}

.audience-category {
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.audience-category:hover {
    transform: translateY(-5px);
}

.audience-category h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.audience-category h3 i {
    margin-right: 10px;
    font-size: 1.1rem;
}

.audience-category p {
    margin-bottom: 15px;
    font-size: 1rem;
}

.audience-category ul {
    padding-left: 20px;
}

.audience-category ul li {
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.commitment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin: 25px 0;
}

.commitment-item {
    text-align: center;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: var(--border-radius);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.commitment-item:hover {
    transform: translateY(-5px);
}

.commitment-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.commitment-item h4 {
    color: var(--dark-color);
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.commitment-item p {
    font-size: 0.95rem;
    line-height: 1.5;
}

.cta-button-container {
    text-align: center;
    margin-top: 40px;
}

.intro-quote {
    background-color: rgba(255, 255, 255, 0.7);
    border-left: 4px solid var(--primary-color);
    padding: 20px 30px;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    margin: 30px 0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.intro-quote blockquote {
    font-size: 1.2rem;
    font-style: italic;
    color: var(--primary-color);
    line-height: 1.6;
    margin: 0;
}

.quote-author {
    display: block;
    margin-top: 10px;
    font-size: 0.9rem;
    font-style: normal;
    text-align: right;
    color: var(--text-color);
}

@media (max-width: 768px) {
    .nav, .header-actions {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .nav.active {
        display: block;
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--light-color);
        z-index: 99;
        padding: 20px;
        overflow-y: auto;
    }
    
    .nav.active .nav-list {
        flex-direction: column;
        width: 100%;
    }
    
    .nav.active .nav-list li {
        margin: 0;
        padding: 0;
        width: 100%;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .nav.active .nav-list li a {
        display: block;
        padding: 15px 0;
        font-size: 1.1rem;
    }
    
    .mobile-menu-btn {
        width: 30px;
        height: 25px;
        position: relative;
        cursor: pointer;
        z-index: 100;
    }
    
    .mobile-menu-btn span {
        display: block;
        position: absolute;
        height: 3px;
        width: 100%;
        background: var(--primary-color);
        border-radius: 3px;
        opacity: 1;
        left: 0;
        transform: rotate(0deg);
        transition: .25s ease-in-out;
    }
    
    .mobile-menu-btn span:nth-child(1) {
        top: 0px;
    }
    
    .mobile-menu-btn span:nth-child(2) {
        top: 10px;
    }
    
    .mobile-menu-btn span:nth-child(3) {
        top: 20px;
    }
    
    .mobile-menu-btn.active span:nth-child(1) {
        top: 10px;
        transform: rotate(135deg);
    }
    
    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
        left: -60px;
    }
    
    .mobile-menu-btn.active span:nth-child(3) {
        top: 10px;
        transform: rotate(-135deg);
    }
    
    /* No scroll when menu is open */
    body.no-scroll {
        overflow: hidden;
    }
    
    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .sub-heading {
        font-size: 1.5rem !important;
        margin-top: 40px !important;
    }
    
    .audience-categories {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .commitment-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .feature-list li {
        margin-bottom: 12px;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form input {
        border-radius: var(--border-radius);
        margin-bottom: 10px;
    }
    
    .newsletter-form button {
        border-radius: var(--border-radius);
    }
    
    .hero-title-container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .hero-title-container h1 {
        width: 100%;
        margin-bottom: 15px;
    }
    
    .banner-animation {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        width: 150px;
        height: 150px;
        margin-left: 0;
    }
}

@media (max-width: 992px) {
    .hero-content {
        flex-direction: column-reverse;
    }
    
    .hero-text {
        padding-right: 0;
        margin-bottom: 40px;
        text-align: center;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .books-slider,
    .books-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 576px) {
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .books-slider,
    .books-grid {
        grid-template-columns: 1fr;
    }
}

/* Animation classes */
.lottie-animation {
    width: 100%;
    height: 100%;
    transform: scale(1.2);
}

/* Nouvelles sections */
#audience, #approche {
    padding: 80px 0;
    background-color: #f9f9f9;
    position: relative;
}

#audience {
    background-color: rgba(0, 121, 107, 0.05);
}

#approche {
    background-color: rgba(76, 175, 80, 0.05);
}

.section-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.section-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    #audience, #approche {
        padding: 50px 0;
    }
    
    .section-content {
        padding: 15px;
    }
    
    .section-content p {
        font-size: 1rem;
        line-height: 1.6;
    }
}
