/* Base Styles */
:root {
    --sahelios-bg-main: #FFE4E1;
    --sahelios-header-bg: #8D6E63;
    --sahelios-header-text: #FFFFFF;
    --sahelios-button-bg: #FFA726;
    --sahelios-button-text: #FFFFFF;
    --sahelios-footer-bg: #4A4A4A;
    --sahelios-footer-text: #FFFFFF;
    --sahelios-text-on-light: #333333;
    --sahelios-accent-color: #FFA726;
    --sahelios-text-on-accent: #FFFFFF;

    /* Anciennes variables conservées si encore utilisées ou pour référence */
    --primary-color: #FFA726; /* Mappé sur accent */
    --secondary-color: #f5a623; /* À vérifier si utilisé, sinon supprimer ou réassigner */
    --dark-color: #333333; /* Mappé sur texte sur fond clair */
    --light-color: #F5F5DC; /* Mappé sur fond principal */

    --danger-color: #dc3545; /* Conservé */
    --success-color: #28a745; /* Conservé */
    --max-width: 1200px; /* Conservé */
} 

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

body {    background-color: var(--sahelios-bg-main);
}

a {
    text-decoration: none;
    color: var(--sahelios-accent-color);
}

ul {
    list-style: none;
}

img {
    width: 100%;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    overflow: hidden;
}

.btn {
    display: inline-block;
    background: var(--sahelios-button-bg);
    color: var(--sahelios-button-text);
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: opacity 0.2s ease-in;
}

.btn:hover {
    opacity: 0.9;
}

section {
    padding: 5rem 0;
}

section h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--sahelios-accent-color);
    font-size: 2.5rem;
}

/* Header */
header {
    background-color: var(--sahelios-header-bg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.logo h1 {
    font-size: 1.8rem;
    color: var(--sahelios-header-text);
    margin-bottom: 0.2rem;
}

.logo p {
    font-size: 0.9rem;
    color: var(--sahelios-header-text);
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 1.5rem;
}

nav ul li a {
    color: var(--sahelios-header-text);
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: var(--sahelios-button-bg);
}

/* Mobile Navigation */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--sahelios-header-text);
    cursor: pointer;
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: block;
    }
    
    nav ul {
        flex-direction: column;
        width: 100%;
    }
    
    nav ul li {
        margin: 0.5rem 0;
    }
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('../img/hero_background_sahara.jpeg');
    background-size: cover;
    background-position: center;
    height: 80vh;
    color: #fff;
    display: flex;
    align-items: center;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--sahelios-header-text);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Concept Section */
.concept-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.concept-image {
    position: relative;
}

.placeholder-image {
    background-color: #e9ecef;
    height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    color: #6c757d;
}

.placeholder-image i {
    font-size: 5rem;
    margin-bottom: 1rem;
    color: var(--sahelios-accent-color);
}

.concept-text h3 {
    color: var(--sahelios-accent-color);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.concept-text h4 {
    margin: 1.5rem 0 0.5rem;
}

.concept-text ul {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.concept-text ul li {
    list-style-type: disc;
    margin-bottom: 0.5rem;
}

/* Context Section */
.stats-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.stat-box {
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.stat-box:hover {
    transform: translateY(-10px);
}

.stat-box i {
    font-size: 2.5rem;
    color: var(--sahelios-accent-color);
    margin-bottom: 1rem;
}

.stat-box h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--sahelios-accent-color);
}

.context-details {
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.context-details p {
    margin-bottom: 1rem;
}

/* Analysis Section */
.tabs {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.tab-buttons {
    display: flex;
    background-color: #f1f1f1;
}

.tab-button {
    flex: 1;
    background-color: #f1f1f1;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 1rem;
    font-size: 1rem;
    transition: 0.3s;
}

.tab-button:hover {
    background-color: #ddd;
}

.tab-button.active {
    background-color: var(--sahelios-accent-color);
    color: var(--sahelios-text-on-accent);
}

.tab-content {
    padding: 2rem;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.tab-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    align-items: center;
}

.tab-image .placeholder-image {
    height: 300px;
}

.tab-text ul {
    padding-left: 1.5rem;
    margin: 1rem 0;
}

.tab-text ul li {
    list-style-type: disc;
    margin-bottom: 0.5rem;
}

/* Forces & Faiblesses Section */
.ff-tabs {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.ff-tab-buttons {
    display: flex;
    background-color: #f1f1f1;
}

.ff-tab-button {
    flex: 1;
    background-color: #f1f1f1;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 1rem;
    font-size: 1rem;
    transition: 0.3s;
}

.ff-tab-button:hover {
    background-color: #ddd;
}

.ff-tab-button.active {
    background-color: var(--sahelios-accent-color);
    color: white;
}

.ff-tab-content {
    padding: 2rem;
}

.ff-tab-pane {
    display: none;
}

.ff-tab-pane.active {
    display: block;
}

.forces-faiblesses-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.forces, .faiblesses {
    padding: 1.5rem;
    border-radius: 10px;
}

.forces {
    background-color: rgba(40, 167, 69, 0.1);
    border-left: 5px solid var(--success-color);
}

.faiblesses {
    background-color: rgba(220, 53, 69, 0.1);
    border-left: 5px solid var(--danger-color);
}

.forces h3, .faiblesses h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.forces h3 {
    color: var(--success-color);
}

.faiblesses h3 {
    color: var(--danger-color);
}

.forces ul, .faiblesses ul {
    padding-left: 1.5rem;
}

.forces ul li, .faiblesses ul li {
    list-style-type: disc;
    margin-bottom: 0.8rem;
}

/* Ameliorations Section */
.ameliorations-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.tech-items {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.5rem;
}

.tech-item {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.tech-item:hover {
    transform: translateY(-10px);
}

.tech-item i {
    font-size: 2.5rem;
    color: var(--sahelios-accent-color);
    margin-bottom: 1rem;
}

.tech-item h4 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.tech-item ul {
    text-align: left;
    padding-left: 1.5rem;
}

.tech-item ul li {
    list-style-type: disc;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.timeline {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background-color: var(--sahelios-accent-color);
    top: 0;
    bottom: 0;
    left: 20px;
    margin-left: -3px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 100%;
}

.timeline-dot {
    position: absolute;
    width: 25px;
    height: 25px;
    left: 15px;
    background-color: white;
    border: 4px solid var(--sahelios-accent-color);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-content {
    padding: 20px 30px;
    background-color: white;
    position: relative;
    border-radius: 6px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.timeline-content h4 {
    color: var(--sahelios-accent-color);
    margin-bottom: 0.5rem;
}

.timeline-content p {
    color: var(--sahelios-text-on-light);
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.timeline-content ul {
    padding-left: 1.5rem;
}

.timeline-content ul li {
    list-style-type: disc;
    margin-bottom: 0.5rem;
}

/* Assistance Section */
.assistance-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.assistance-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.assistance-item {
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.assistance-item:hover {
    transform: translateY(-10px);
}

.assistance-item i {
    font-size: 2.5rem;
    color: var(--sahelios-accent-color);
    margin-bottom: 1rem;
}

.assistance-item h3 {
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.assistance-item ul {
    padding-left: 1.5rem;
}

.assistance-item ul li {
    list-style-type: disc;
    margin-bottom: 0.5rem;
}

/* CTA Section */
.cta {
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url("../img/cta-background.jpeg");
    background-size: cover;
    background-position: center;
    color: #fff;
    text-align: center;
    padding: 5rem 0;
}

.cta h2 {
    color: #fff;
    margin-bottom: 1.5rem;
}

.cta p {
    max-width: 700px;
    margin: 0 auto 2rem;
    font-size: 1.1rem;
}

/* Footer */
footer {
    background-color: var(--sahelios-footer-bg);
    color: var(--sahelios-footer-text);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-logo h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.footer-links h4, .footer-contact h4 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-links ul li {
    margin-bottom: 0.8rem;
}

.footer-links ul li a {
    color: #ccc;
    transition: color 0.3s;
}

.footer-links ul li a:hover {
    color: var(--sahelios-accent-color);
}

.footer-contact p {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.footer-contact p i {
    margin-right: 0.5rem;
}

.social-icons {
    display: flex;
    margin-top: 1.5rem;
}

.social-icons a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: #444;
    border-radius: 50%;
    margin-right: 1rem;
    transition: background-color 0.3s;
}

.social-icons a:hover {
    background-color: var(--sahelios-accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #444;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tech-items {
        grid-template-columns: 1fr 1fr;
    }
    
    .assistance-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }
    
    nav ul {
        margin-top: 1rem;
    }
    
    .concept-grid, 
    .tab-grid, 
    .forces-faiblesses-grid, 
    .ameliorations-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    nav ul li {
        margin: 0.5rem 0;
    }
    
    .stats-container,
    .tech-items,
    .assistance-grid {
        grid-template-columns: 1fr;
    }
    
    section {
        padding: 3rem 0;
    }
    
    .hero {
        height: 60vh;
    }
}

/* Animation for page elements */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Detailed pages styles */
.detailed-page {
    padding: 2rem 0;
}

.detailed-page h1 {
    color: var(--sahelios-accent-color);
    margin-bottom: 2rem;
    text-align: center;
}

.detailed-page .content {
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.detailed-page .content h2 {
    color: var(--sahelios-accent-color);
    margin: 2rem 0 1rem;
    text-align: left;
}

.detailed-page .content h3 {
    color: var(--sahelios-accent-color);
    margin: 1.5rem 0 1rem;
}

.detailed-page .content p {
    margin-bottom: 1rem;
}

.detailed-page .content ul {
    padding-left: 2rem;
    margin-bottom: 1.5rem;
}

.detailed-page .content ul li {
    list-style-type: disc;
    margin-bottom: 0.5rem;
}

.back-to-home {
    display: inline-block;
    margin: 2rem 0;
    color: var(--sahelios-accent-color);
    font-weight: 500;
}

.back-to-home i {
    margin-right: 0.5rem;
}

/* 3D Model Viewer */
.model-viewer {
    width: 100%;
    height: 500px;
    background-color: #e9ecef;
    border-radius: 10px;
    margin-bottom: 2rem;
}

/* Interactive Elements */
.interactive-element {
    margin: 3rem 0;
}

.interactive-element h3 {
    margin-bottom: 1.5rem;
    text-align: center;
}

.slider-container {
    width: 100%;
    padding: 2rem;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.slider {
    width: 100%;
    margin-bottom: 1rem;
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.comparison-container {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.comparison-before,
.comparison-after {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
}

.comparison-before {
    left: 0;
    z-index: 1;
    background-image: url('../img/gallery/sahelios_van_3d_angle2.png');
}

.comparison-after {
    right: 0;
    z-index: 2;
    background-image: url("../img/gallery/sahelios_van_3d_angle2_v2.png");
    width: 50%;
}

.comparison-slider {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background-color: #fff;
    z-index: 3;
    cursor: ew-resize;
}

.comparison-slider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background-color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.comparison-slider::after {
    content: '↔';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--sahelios-accent-color);
    font-size: 1.5rem;
    font-weight: bold;
}



/* Style pour le bouton Contact dans le menu */
nav ul li a.contact-btn-menu {
    background-color: var(--danger-color);
    color: var(--sahelios-header-text); /* Ou une autre couleur de texte contrastante si besoin */
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-weight: bold;
}

nav ul li a.contact-btn-menu:hover {
    background-color: #c82333; /* Une nuance plus foncée de --danger-color pour le survol */
    color: var(--sahelios-header-text);
}

/* Styles pour la galerie d'images */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.gallery-item {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    text-align: center;
}

.gallery-item img {
    width: 100%;
    height: 200px; /* Hauteur fixe pour l'uniformité */
    object-fit: cover; /* Assure que l'image couvre la zone sans distorsion */
    display: block;
}

.gallery-item p {
    padding: 1rem;
    font-size: 0.9rem;
    color: var(--sahelios-text-on-light);
}

/* Styles pour le formulaire de contact */
.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-form .btn {
    margin-top: 1rem;
}

