/* ===== HERO SECTION ===== */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 8rem 0 5rem;
    margin-top: 80px; /* Compensation pour le header fixe */
    min-height: 60vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    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 1000 100" preserveAspectRatio="none"><polygon fill="rgba(255,255,255,0.1)" points="1000,100 1000,0 0,0 0,100"/></svg>') repeat-x;
    background-size: 100px 100px;
    opacity: 0.1;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Hero two-column grid (image left, text right) */
.hero-grid {
    display: flex;
    align-items: center;
    gap: 2rem;
}

/* RTL – place image to the right and content to the left */
html[lang="ar"] .hero-grid {
    flex-direction: row;
}

/* Ensure text alignment is correct for Arabic */
html[lang="ar"] .hero-content {
    text-align: right;
}

html[lang="ar"] .hero-buttons {
    justify-content: flex-end;
}

.hero-image {
    flex: 1;
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
}

.hero-content {
    flex: 1;
}

@media (max-width: 768px) {
    /* Mobile hero text sizing for FR/EN/AR */
    .hero {
        padding: 5rem 0 3rem;
    }
    .hero h1 {
        font-size: clamp(1.6rem, 7.5vw, 2.2rem);
        line-height: 1.25;
        hyphens: auto;
        overflow-wrap: anywhere;
    }
    .hero p {
        font-size: 1rem;
        margin-bottom: 1.75rem;
    }
    .hero-buttons {
        gap: 0.75rem;
    }
    .hero-grid {
        flex-direction: column;
        text-align: center;
    }
    
    /* Fix RTL mobile layout */
    html[lang="ar"] .hero-grid {
        flex-direction: column;
    }
    
    html[lang="ar"] .hero-content {
        text-align: center;
    }
    
    html[lang="ar"] .hero-buttons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: clamp(1.45rem, 9vw, 1.9rem);
    }
    .hero-buttons .btn {
        width: 100%;
        max-width: 320px;
    }
}

/* ===== SECTION À PROPOS - ORGANISÉ ET PROPRE ===== */
.about {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e8f4f8 100%);
}

/* Header de section centralisé */
.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-header .section-title {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 700;
}

.section-header .section-subtitle {
    font-size: 1.3rem;
    color: var(--text-color);
    margin-bottom: 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Vision et Mission - Blocs centrés avec arrière-plans alternés */
.about-intro {
    margin-bottom: 0;
    padding: 40px 0 80px 0;
    background: white;
}

.about-mission {
    margin-bottom: 0;
    padding: 80px 0;
    background: linear-gradient(135deg, #f0f8ff 0%, #e6f3ff 100%);
}

.intro-content,
.mission-content {
    max-width: 1200px;
    margin: 0 auto;
    background: transparent;
    padding: 40px;
    border-radius: 0;
    box-shadow: none;
    border: none;
}

/* Vision container avec logo et texte côte à côte - Design amélioré */
.vision-container {
    display: grid;
    gap: 70px;
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    position: relative;
    overflow: visible;
    direction: ltr;
}

/* Configuration par défaut pour FR/EN : texte à gauche, logo à droite */
.vision-container {
    grid-template-columns: 1fr 560px;
    grid-template-rows: 500px; /* Hauteur fixe pour référence */
}

.vision-content {
    grid-column: 1;
    grid-row: 1;
    align-self: center; /* Centre verticalement dans la cellule de grille */
    justify-self: start; /* Aligne horizontalement à gauche */
}

.vision-logo {
    grid-column: 2;
    grid-row: 1;
    align-self: center; /* Centre verticalement dans la cellule de grille */
    justify-self: center; /* Centre horizontalement */
}

/* Configuration pour l'arabe : logo à gauche, texte à droite */
html[lang="ar"] .vision-container {
    grid-template-columns: 560px 1fr;
    grid-template-rows: 500px;
}

html[lang="ar"] .vision-logo {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
    justify-self: center;
}

html[lang="ar"] .vision-content {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    justify-self: start;
}

.vision-container::before {
    display: none;
}

.vision-text {
    text-align: left;
}

/* Support RTL pour l'arabe - alignement à droite */
[dir="rtl"] .vision-text {
    text-align: right;
}

/* Support pour les langues spécifiques */
html[lang="ar"] .vision-text {
    text-align: right;
    direction: rtl;
}

html[lang="fr"] .vision-text,
html[lang="en"] .vision-text {
    text-align: left;
    direction: ltr;
}

.vision-text h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.2;
    position: relative;
}

.vision-text h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

[dir="rtl"] .vision-text h3::after {
    right: 0;
    left: auto;
}

/* Support RTL pour les langues spécifiques */
html[lang="ar"] .vision-text h3::after {
    right: 0;
    left: auto;
}

html[lang="fr"] .vision-text h3::after,
html[lang="en"] .vision-text h3::after {
    left: 0;
    right: auto;
}

.vision-text p {
    font-size: 1.2rem;
    line-height: 1.7;
    color: var(--text-color);
    margin-bottom: 30px;
    font-weight: 400;
}

/* Logo Frame - Style amélioré inspiré de l'exemple */
.logo-frame {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    box-shadow: 
        0 25px 50px rgba(59, 130, 246, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    animation: logoFloat 4s ease-in-out infinite;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-8px) rotate(1deg);
    }
    50% {
        transform: translateY(-15px) rotate(0deg);
    }
    75% {
        transform: translateY(-8px) rotate(-1deg);
    }
}

.logo-frame:hover {
    transform: scale(1.05) translateY(-10px);
    box-shadow: 
        0 35px 70px rgba(59, 130, 246, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.logo-frame::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.2) 0%, transparent 60%),
        linear-gradient(45deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
    border-radius: 30px;
    pointer-events: none;
}

.logo-frame::after {
    content: '';
    position: absolute;
    inset: 3px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 27px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.vision-logo-img {
    width: 100%;
    height: auto;
    max-width: 420px;
    filter: none;
    position: relative;
    z-index: 2;
}

/* Vision Tags - Badges colorés inspirés de l'exemple */
.vision-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 25px;
}

/* Alignement des tags selon la langue */
html[lang="ar"] .vision-tags {
    justify-content: flex-start; /* Alignement à droite pour l'arabe en mode RTL */
    direction: rtl;
}

html[lang="fr"] .vision-tags,
html[lang="en"] .vision-tags {
    justify-content: flex-start; /* Alignement à gauche pour FR/EN */
    direction: ltr;
}

.vision-tag {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.vision-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.vision-tag:hover::before {
    left: 100%;
}

.vision-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Couleurs spécifiques pour chaque tag */
.tech-tag {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.edu-tag {
    background: linear-gradient(135deg, #10b981, #047857);
}

.digital-tag {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.ai-tag {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.mobile-tag {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.security-tag {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
}

/* Mission content (style simple centré) */
.mission-content {
    text-align: center;
}

.mission-content h3 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 25px;
    font-weight: 600;
}

.mission-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
    margin: 0;
}

/* Piliers d'Innovation avec arrière-plan distinct */
.about-pillars {
    margin-bottom: 0;
    padding: 80px 0;
    background: white;
}

.pillars-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 60px;
    font-weight: 600;
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .pillars-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
    
    /* Responsivité pour la section vision/mission - Nouvelle approche Grid */
    .vision-container {
        grid-template-columns: 1fr !important;
        grid-template-rows: auto auto !important; /* Deux rangées : logo puis texte */
        gap: 30px;
        text-align: center;
        justify-items: center; /* Centre tous les éléments horizontalement */
    }
    
    .vision-content {
        grid-column: 1 !important;
        grid-row: 2 !important; /* Texte en deuxième position */
        align-self: start !important;
        justify-self: center !important;
        text-align: center;
        width: 100%;
    }
    
    .vision-logo {
        grid-column: 1 !important;
        grid-row: 1 !important; /* Logo en première position */
        align-self: center !important;
        justify-self: center !important;
    }
    
    /* Règles spécifiques pour toutes les langues en mobile */
    html[lang="ar"] .vision-container,
    html[lang="fr"] .vision-container,
    html[lang="en"] .vision-container {
        grid-template-columns: 1fr !important;
        grid-template-rows: auto auto !important;
        direction: inherit;
    }
    
    html[lang="ar"] .vision-content,
    html[lang="fr"] .vision-content,
    html[lang="en"] .vision-content {
        grid-column: 1 !important;
        grid-row: 2 !important;
        align-self: start !important;
        justify-self: center !important;
    }
    
    html[lang="ar"] .vision-logo,
    html[lang="fr"] .vision-logo,
    html[lang="en"] .vision-logo {
        grid-column: 1 !important;
        grid-row: 1 !important;
        align-self: center !important;
        justify-self: center !important;
    }
    
    .vision-text {
        text-align: center !important;
    }
    
    html[lang="ar"] .vision-text {
        text-align: center !important;
        direction: rtl;
    }
    
    .vision-text h3::after {
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%);
    }
    
    .vision-tags {
        justify-content: center !important;
    }
    
    .logo-frame {
        width: 300px;
        height: 300px;
        margin: 0 auto;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .pillars-grid {
        grid-template-columns: repeat(3, 1fr);
        max-width: 900px;
    }
    
    /* Ajustements pour tablettes */
    .vision-container {
        gap: 50px;
        grid-template-rows: 400px; /* Hauteur réduite pour tablette */
    }
    
    .logo-frame {
        width: 400px;
        height: 400px;
    }
}

/* Piliers d'Innovation - Cadres toujours visibles */
.pillar-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    /* Cadre toujours visible */
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.1);
}

.pillar-card:hover {
    transform: translateY(-10px);
    /* Couleur secondaire au hover */
    border-color: var(--secondary-color);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.2);
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.pillar-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
}

.pillar-card:hover .pillar-icon {
    transform: scale(1.1);
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.pillar-icon i {
    font-size: 2rem;
    color: white;
}

.pillar-card h4 {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.pillar-card:hover h4 {
    color: var(--secondary-color);
}

.pillar-card p {
    color: #6b7280;
    line-height: 1.6;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.pillar-card:hover p {
    color: var(--text-color);
}

/* ===== SECTION PILIERS D'INNOVATION (autonome) ===== */
.pillars-section {
    padding: 15px 0 25px 0;
    background: white;
}

.pillars-section .pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .pillars-section {
        padding: 10px 0 20px 0;
    }
    
    .pillars-section .pillars-grid {
        grid-template-columns: 1fr;
        max-width: 350px;
        gap: 12px;
    }
    
    .pillars-section .pillar-card {
        padding: 1rem;
    }
    
    .pillars-section .pillar-icon {
        width: 50px;
        height: 50px;
        margin: 0 auto 0.8rem;
    }
    
    .pillars-section .pillar-icon i {
        font-size: 1.4rem;
    }
    
    .pillars-section .pillar-card h4 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .pillars-section .pillar-card p {
        font-size: 0.85rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .pillars-section .pillars-grid {
        grid-template-columns: repeat(3, 1fr);
        max-width: 800px;
        gap: 18px;
    }
}

/* Piliers d'Innovation - Cadres toujours visibles */
.pillars-section .pillar-card {
    background: white;
    padding: 1.2rem;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    /* Cadre toujours visible */
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.1);
}

.pillars-section .pillar-card:hover {
    transform: translateY(-8px);
    /* Couleur secondaire au hover */
    border-color: var(--secondary-color);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.2);
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.pillars-section .pillar-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    transition: all 0.3s ease;
}

.pillars-section .pillar-card:hover .pillar-icon {
    transform: scale(1.1);
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3);
}

.pillars-section .pillar-icon i {
    font-size: 1.6rem;
    color: white;
}

.pillars-section .pillar-card h4 {
    color: var(--text-color);
    margin-bottom: 0.6rem;
    font-size: 1.1rem;
    font-weight: 600;
    transition: color 0.3s ease;
    line-height: 1.3;
}

.pillars-section .pillar-card:hover h4 {
    color: var(--secondary-color);
}

.pillars-section .pillar-card p {
    color: #6b7280;
    line-height: 1.5;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    margin: 0;
}

.pillars-section .pillar-card:hover p {
    color: var(--text-color);
}

/* ===== AUTRES SECTIONS (placeholder) ===== */

/* ===== WHY CHOOSE US ===== */
.why-choose-us {
	padding: 100px 0;
	background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
}

.why-choose-us .section-title {
	text-align: center;
}

.why-choose-us .section-subtitle {
	text-align: center;
}

.why-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
	margin-top: 40px;
}

.why-item {
	background: var(--white);
	border-radius: 16px;
	padding: 30px;
	box-shadow: var(--shadow);
	border: 1px solid rgba(59, 130, 246, 0.1);
	transition: all 0.3s ease;
}

.why-item:hover {
	transform: translateY(-6px);
	box-shadow: var(--shadow-lg);
	border-color: var(--secondary-color);
}

.why-icon {
	width: 64px;
	height: 64px;
	border-radius: 14px;
	background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--white);
	font-size: 1.5rem;
	margin-bottom: 16px;
}

.why-item h3 {
	font-size: 1.2rem;
	margin-bottom: 10px;
	color: var(--text-color);
}

.why-item p {
	color: #6b7280;
	line-height: 1.6;
}

.why-cta {
	text-align: center;
	margin-top: 30px;
}

@media (max-width: 1024px) {
	.why-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 768px) {
	.why-grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}
}

.hero .btn-outline {
    border-color: var(--white);
    color: var(--white);
}

.hero .btn-outline:hover {
    background: var(--white);
    color: var(--primary-color);
}

/* Section À Propos - Nouveau design */
.about {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e3f2fd 100%);
}

.about-hero {
    text-align: center;
    margin-bottom: 80px;
}

.vision-statement {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.vision-statement h3 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.vision-statement p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-color);
}

.about-innovation {
    margin-bottom: 80px;
}

.about-innovation h3 {
    color: var(--primary-color);
    font-size: 2.2rem;
    margin-bottom: 30px;
    text-align: center;
}

.about-innovation p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 50px;
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.innovation-pillars {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.pillar-item {
    text-align: center;
    padding: 40px 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pillar-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.pillar-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.pillar-icon i {
    font-size: 2rem;
    color: white;
}

.pillar-item h4 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.pillar-item p {
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 1.6;
}

.about-future {
    margin-bottom: 80px;
}

.about-future h3 {
    color: var(--primary-color);
    font-size: 2.2rem;
    margin-bottom: 30px;
    text-align: center;
}

.future-vision {
    max-width: 1000px;
    margin: 0 auto;
}

.future-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 40px;
    text-align: center;
}

.commitment-badges {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 40px;
}

.badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 25px;
    background: var(--primary-color);
    color: white;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.badge:hover {
    background: var(--secondary-color);
    transform: scale(1.05);
}

.badge i {
    font-size: 1.2rem;
}

.about-cta {
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 60px 40px;
    border-radius: 25px;
    margin-top: 60px;
}

.about-cta h3 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.about-cta p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    line-height: 1.7;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    padding: 15px 35px;
    font-size: 1.1rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    font-weight: 600;
    min-width: 200px;
}

.cta-buttons .btn-primary {
    background: white;
    color: var(--primary-color);
    border: 2px solid white;
}

.cta-buttons .btn-primary:hover {
    background: transparent;
    color: white;
}

.cta-buttons .btn-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.cta-buttons .btn-outline:hover {
    background: white;
    color: var(--primary-color);
}

/* ===== SECTION SERVICES ===== */
.services {
    padding: 0px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    position: relative;
    overflow: hidden;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(245, 158, 11, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.services-header {
    text-align: center;
    margin-bottom: 80px;
    position: relative;
    z-index: 2;
}

.services-header .section-title {
    font-size: 3.2rem;
    color: var(--primary-color);
    margin-bottom: 25px;
    font-weight: 700;
    position: relative;
}

.services-header .section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.services-header .section-subtitle {
    font-size: 1.4rem;
    color: var(--text-color);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
    font-weight: 400;
}

/* Services Grid - Optimisé pour 8 services avec 3 par rangée sur PC */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 100px;
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Service Category Cards */
.service-category {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.08),
        0 1px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.service-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-category:hover::before {
    transform: scaleX(1);
}

.service-category:hover {
    transform: translateY(-10px);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.12),
        0 8px 16px rgba(0, 0, 0, 0.08);
    border-color: var(--secondary-color);
}

/* Service Icon */
.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    position: relative;
    transition: all 0.4s ease;
}

.service-icon::before {
    content: '';
    position: absolute;
    inset: 3px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
    border-radius: 17px;
    pointer-events: none;
}

.service-category:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
}

.service-icon i {
    font-size: 2.2rem;
    color: white;
    position: relative;
    z-index: 2;
}

/* Service Title */
.service-category h3 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.service-category:hover h3 {
    color: var(--secondary-color);
}

/* Service Description */
.service-category > p {
    font-size: 1.05rem;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 25px;
    font-weight: 400;
}

/* Service List */
.service-list {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}

.service-list li {
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 1.5;
    transition: all 0.3s ease;
}

.service-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 10px;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
    transition: all 0.3s ease;
}

.service-category:hover .service-list li::before {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    transform: scale(1.1);
}

.service-list li:hover {
    color: var(--primary-color);
    padding-left: 35px;
}

/* Service CTA Button */
.service-cta {
    text-align: center;
    margin-top: auto;
}

/* Override service-detail.css gradient for service buttons */
.service-category .service-cta {
    background: none;
    padding: 0;
    position: relative;
}

.btn-service {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.btn-service::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-service:hover::before {
    left: 100%;
}

.btn-service:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

/* Services Footer CTA */
.services-footer {
    position: relative;
    z-index: 2;
}

.services-cta-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 60px 40px;
    border-radius: 25px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.services-cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.services-cta-section h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.services-cta-section p {
    font-size: 1.2rem;
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 2;
    opacity: 0.95;
}

.services-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.services-cta-buttons .btn {
    padding: 15px 35px;
    font-size: 1.1rem;
    border-radius: 50px;
    font-weight: 600;
    min-width: 200px;
    transition: all 0.3s ease;
}

.services-cta-buttons .btn-primary {
    background: white;
    color: var(--primary-color);
    border: 2px solid white;
}

.services-cta-buttons .btn-primary:hover {
    background: transparent;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

.services-cta-buttons .btn-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.services-cta-buttons .btn-outline:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

/* Responsive Design */
/* Large screens et plus - TOUJOURS 3 colonnes comme demandé */
@media (min-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 40px;
        max-width: 1400px;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 100px;
    }
}

/* Medium to large screens - 3 colonnes */
@media (min-width: 992px) and (max-width: 1199px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
        margin-bottom: 100px;
    }
    
    .service-category {
        padding: 35px 25px;
    }
}

/* Medium screens - 2 colonnes */
@media (min-width: 768px) and (max-width: 991px) {
    .services {
        padding: 50px 0;
    }
    
    .services-header .section-title {
        font-size: 2.8rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
        margin-bottom: 80px;
    }
    
    .service-category {
        padding: 30px 25px;
    }
    
    .service-icon {
        width: 70px;
        height: 70px;
    }
    
    .service-icon i {
        font-size: 2rem;
    }
    
    .service-category h3 {
        font-size: 1.4rem;
    }
}

/* Small screens - 1 colonne */
@media (max-width: 767px) {
    .services {
        padding: 40px 0;
    }
    
    .services-header .section-title {
        font-size: 2.5rem;
    }
    
    .services-header .section-subtitle {
        font-size: 1.2rem;
        padding: 0 20px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-bottom: 60px;
    }
    
    .service-category {
        padding: 30px 25px;
        margin: 0 20px;
    }
    
    .service-icon {
        width: 70px;
        height: 70px;
    }
    
    .service-icon i {
        font-size: 2rem;
    }
    
    .service-category h3 {
        font-size: 1.4rem;
    }
    
    .services-cta-section {
        padding: 40px 30px;
        margin: 0 20px;
    }
    
    .services-cta-section h3 {
        font-size: 2rem;
    }
    
    .services-cta-section p {
        font-size: 1.1rem;
    }
    
    .services-cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .services-cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .service-category {
        margin: 0 10px;
        padding: 25px 20px;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
    }
    
    .service-icon i {
        font-size: 1.8rem;
    }
    
    .service-category h3 {
        font-size: 1.3rem;
    }
    
    .service-category > p {
        font-size: 1rem;
    }
    
    .service-list li {
        font-size: 0.9rem;
    }
    
    .services-cta-section {
        padding: 30px 20px;
        margin: 0 10px;
    }
    
    .services-cta-section h3 {
        font-size: 1.8rem;
    }
}

/* ===== RESPONSIVE - SECTION À PROPOS ===== */

/* Tablette */
@media (max-width: 1024px) {
    .about {
        padding: 80px 0;
    }
    
    .vision-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    [dir="rtl"] .vision-container {
        grid-template-columns: 1fr;
    }
    
    .logo-frame {
        width: 300px;
        height: 300px;
        margin: 0 auto;
    }
    
    .vision-logo-img {
        max-width: 250px;
    }
    
    .vision-text {
        text-align: left; /* Garder l'alignement à gauche en LTR même en responsive */
    }
    
    [dir="rtl"] .vision-text {
        text-align: right; /* Garder l'alignement à droite en RTL même en responsive */
    }
    
    .vision-text h3 {
        font-size: 2.2rem;
    }
    
    .vision-text h3::after {
        left: 0; /* Trait à gauche en LTR */
        transform: none;
    }
    
    [dir="rtl"] .vision-text h3::after {
        right: 0; /* Trait à droite en RTL */
        left: auto;
        transform: none;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .about {
        padding: 60px 0;
    }
    
    .section-header {
        margin-bottom: 50px;
        padding: 0 20px;
    }
    
    .section-header .section-title {
        font-size: 2.5rem;
        margin-bottom: 15px;
    }
    
    .section-header .section-subtitle {
        font-size: 1.1rem;
        padding: 0 10px;
    }
    
    .about-intro {
        padding: 30px 0 50px 0;
    }
    
    .intro-content {
        padding: 20px;
    }
    
    .vision-container {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 20px;
    }
    
    .logo-frame {
        width: 250px;
        height: 250px;
        margin: 0 auto;
        border-radius: 30px;
    }
    
    .vision-logo-img {
        max-width: 200px;
    }
    
    .vision-text {
        text-align: left; /* Alignement à gauche en LTR même en mobile */
        padding: 0 10px;
    }
    
    [dir="rtl"] .vision-text {
        text-align: right; /* Alignement à droite en RTL même en mobile */
    }
    
    .vision-text h3 {
        font-size: 2rem;
        margin-bottom: 15px;
    }
    
    .vision-text p {
        font-size: 1.1rem;
        line-height: 1.6;
        margin-bottom: 25px;
    }
    
    .vision-tags {
        justify-content: center;
        gap: 8px;
    }
    
    .vision-tag {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
    
    .about-cta {
        padding: 50px 20px 80px 20px;
    }
    
    .cta-content {
        padding: 30px 20px;
    }
    
    .cta-content h3 {
        font-size: 2rem;
    }
    
    .cta-content p {
        font-size: 1.1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
}

/* Mobile très petit */
@media (max-width: 480px) {
    .section-header .section-title {
        font-size: 2.2rem;
    }
    
    .section-header .section-subtitle {
        font-size: 1rem;
    }
    
    .logo-frame {
        width: 200px;
        height: 200px;
        border-radius: 25px;
    }
    
    .vision-logo-img {
        max-width: 160px;
    }
    
    .vision-text h3 {
        font-size: 1.8rem;
    }
    
    .vision-text p {
        font-size: 1rem;
    }
    
    .vision-tag {
        font-size: 0.75rem;
        padding: 5px 10px;
    }
    
    .cta-content h3 {
        font-size: 1.8rem;
    }
    
    .cta-content p {
        font-size: 1rem;
    }
}

/* RTL Support */
[dir="rtl"] .service-list li {
    padding-left: 0;
    padding-right: 30px;
}

[dir="rtl"] .service-list li::before {
    left: auto;
    right: 0;
}

[dir="rtl"] .service-list li:hover {
    padding-left: 0;
    padding-right: 35px;
}

[dir="rtl"] .services-header .section-title::after {
    left: 50%;
    right: auto;
}

/* Animations */
.about-intro,
.about-mission,
.about-pillars,
.about-cta {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.about-intro.animate,
.about-mission.animate,
.about-pillars.animate,
.about-cta.animate {
    opacity: 1;
    transform: translateY(0);
}

.service-category {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.service-category.animate {
    opacity: 1;
    transform: translateY(0);
}
