/* Reset et styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a365d;
    --secondary-color: #2c5282;
    --accent-color: #c53030;
    --text-color: #2d3748;
    --light-color: #f7fafc;
    --white: #ffffff;
    --gray-100: #edf2f7;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e0;
    --gray-600: #718096;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 150px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
    background-image:
        radial-gradient(ellipse 900px 500px at 85% -5%, rgba(26, 54, 93, 0.06), transparent),
        radial-gradient(ellipse 700px 400px at 0% 45%, rgba(197, 48, 48, 0.03), transparent),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cpath d='M28 4 L52 28 L28 52 L4 28 Z' fill='none' stroke='rgba(26,54,93,0.045)' stroke-width='1.2'/%3E%3C/svg%3E");
    background-attachment: fixed;
}

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

/* Header */
.header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 20px 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    height: 95px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
}

.logo-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.site-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}

.site-subtitle {
    font-size: 12px;
    opacity: 0.9;
}

.main-nav {
    display: flex;
    order: 2;
    margin-left: auto;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 4px;
    transition: background 0.3s;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 3px;
    height: 2px;
    border-radius: 2px;
    background: var(--white);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255, 255, 255, 0.2);
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

/* Sélecteur de langue */
.lang-switch {
    display: flex;
    gap: 4px;
    padding: 4px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.3);
    order: 3;
    flex-shrink: 0;
}

.lang-link {
    color: var(--white);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 50px;
    transition: background 0.3s, color 0.3s;
}

.lang-link:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lang-link.active {
    background: var(--white);
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    background:
        linear-gradient(135deg, rgba(26, 54, 93, 0.94) 0%, rgba(44, 82, 130, 0.88) 100%),
        url('./assets/hero-bg.jpg') center / cover no-repeat;
    color: var(--white);
    padding: 80px 0;
    margin-bottom: 60px;
}

.hero .container {
    display: flex;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
}

.hero-content {
    flex: 1;
    min-width: 300px;
}

.hero-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.95;
}

.slogan-carousel {
    margin: 50px 0;
    overflow: hidden;
    position: relative;
    /* Hauteur = proportions de l'affiche (3:1), avec un minimum pour les slogans */
    aspect-ratio: 3 / 1;
    min-height: clamp(220px, 42vw, 320px);
    width: 100%;
    min-width: 0;
    background: linear-gradient(135deg, rgba(0, 51, 102, 0.35), rgba(0, 102, 204, 0.25));
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.slogan-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    opacity: 0;
    transform: translateX(100%) scale(0.9);
    transition: opacity 0.6s ease-in-out, transform 0.6s ease-in-out;
}

.slogan-slide.active {
    opacity: 1;
    transform: translateX(0) scale(1);
}

.slogan-slide.prev {
    opacity: 0;
    transform: translateX(-100%) scale(0.9);
}

/* Diapositive affiche : image entière (jamais rognée) sur fond flou de la même image */
.slogan-slide-image {
    overflow: hidden;
    background: #0d2240;
}

.slide-backdrop {
    position: absolute;
    inset: -20px;
    width: calc(100% + 40px);
    height: calc(100% + 40px);
    object-fit: cover;
    filter: blur(18px) brightness(0.7);
}

.slide-poster {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.slogan-line {
    font-size: clamp(20px, 4.5vw, 40px);
    font-weight: 800;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: clamp(1px, 0.6vw, 5px);
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 255, 255, 0.3);
    text-align: center;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 255, 255, 0.3);
    }
    to {
        text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5), 0 0 30px rgba(255, 255, 255, 0.5);
    }
}

.carousel-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.6);
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: scale(1.2);
}

.indicator.active {
    background: var(--white);
    border-color: var(--white);
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}


.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.btn:hover {
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.3);
}

.btn-primary {
    background: var(--accent-color);
    color: var(--white);
}

.btn-primary:hover {
    background: #9b2c2c;
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary-color);
}

.btn-secondary:hover {
    background: var(--gray-100);
    transform: translateY(-2px);
}

.hero-image {
    flex: 1;
    min-width: 300px;
}

.hero-placeholder {
    width: 100%;
    height: 300px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed rgba(255, 255, 255, 0.3);
}

.placeholder-text {
    color: var(--white);
    font-size: 18px;
    font-weight: 500;
}

/* Sections */
.section {
    padding: 80px 0;
    margin-bottom: 40px;
    position: relative;
}

/* Liseré de brillance en haut des sections claires */
.about::before,
.missions::before,
.offre::before,
.piliers::before,
.raisons::before,
.projets::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(26, 54, 93, 0.25), transparent);
}

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

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
    padding-bottom: 14px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 64px;
    height: 4px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.section-subtitle {
    font-size: 18px;
    color: var(--gray-600);
    max-width: 800px;
    line-height: 1.6;
    font-weight: 500;
    padding: 15px 20px;
    background: linear-gradient(135deg, var(--light-color), var(--white));
    border-left: 4px solid var(--primary-color);
    border-radius: 8px;
    margin-top: 10px;
    margin: 0 auto;
}

/* Missions Section */
.missions {
    background: linear-gradient(180deg, var(--white), #f2f6fb);
}

.missions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: 30px;
}

.mission-card {
    background: linear-gradient(180deg, var(--white), var(--light-color));
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    position: relative;
    overflow: hidden;
}

/* Barre d'accent qui se déploie au survol */
.mission-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 4px;
    width: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.45s ease;
}

.mission-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.mission-card:hover::before {
    transform: scaleX(1);
}

.card-icon {
    font-size: 48px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 84px;
    height: 84px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 50%;
    background: rgba(26, 54, 93, 0.07);
    transition: background 0.35s ease, transform 0.35s ease;
}

.icon-svg {
    width: 44px;
    height: 44px;
    color: var(--primary-color);
    transition: transform 0.35s ease, color 0.35s ease;
}

.mission-card:hover .card-icon {
    background: rgba(197, 48, 48, 0.1);
    transform: scale(1.06);
}

.mission-card:hover .icon-svg {
    transform: scale(1.15) rotate(-8deg);
    color: var(--accent-color);
}

.card-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.card-description {
    color: var(--gray-600);
    line-height: 1.6;
}

/* Projects Section */
.projects {
    background: linear-gradient(180deg, #eef2f7, var(--light-color));
}

.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
    gap: 40px;
}

.project-item {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

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

.project-image {
    height: 200px;
}

.map-embed {
    width: 100%;
    height: 100%;
    border: none;
}

.project-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--gray-200), var(--gray-300));
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-info {
    padding: 25px;
}

.project-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.project-description {
    color: var(--gray-600);
    margin-bottom: 20px;
    line-height: 1.6;
}

.project-features {
    list-style: none;
    padding-left: 0;
}

.project-features li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: var(--text-color);
}

.project-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

/* Partners Section */
.partners {
    background: var(--white);
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: 40px;
}

.partner-card {
    text-align: center;
    padding: 30px;
    background: var(--light-color);
    border-radius: 12px;
    transition: transform 0.3s;
}

.partner-card:hover {
    transform: translateY(-5px);
}

.partner-logo {
    margin-bottom: 20px;
}

.partner-placeholder {
    width: 120px;
    height: 80px;
    background: var(--white);
    border-radius: 8px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--primary-color);
    box-shadow: var(--shadow);
}

.partner-name {
    font-size: 22px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.partner-description {
    color: var(--gray-600);
}

/* Contact Section */
.contact {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    position: relative;
    overflow: hidden;
}

.contact::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 100 100"><circle cx="50" cy="50" r="40" fill="rgba(255,255,255,0.04)"/></svg>');
    background-size: 180px;
}

.contact .section-title {
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 25px;
    position: relative;
    z-index: 1;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(255, 255, 255, 0.95);
    padding: 25px 30px;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
    border-top: 4px solid var(--accent-color);
}

.contact-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
}

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    min-width: 56px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    color: var(--white);
}

.contact-icon svg {
    width: 28px;
    height: 28px;
}

.contact-details h4 {
    font-size: 17px;
    color: var(--primary-color);
    margin-bottom: 5px;
    font-weight: 700;
}

.contact-details p {
    color: var(--gray-600);
    font-size: 15px;
    font-weight: 500;
}

.contact-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.contact-form {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: var(--text-color);
}

.form-group input,
.form-group textarea {
    padding: 12px;
    border: 1px solid var(--gray-300);
    border-radius: 6px;
    font-size: 16px;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 54, 93, 0.1);
}

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

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    height: 80px;
    width: auto;
    margin-bottom: 15px;
    display: block;
}

.footer-section h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--white);
}

.footer-text {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.footer-links {
    list-style: none;
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--white);
}

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

/* About Section */
.about {
    background: linear-gradient(180deg, var(--white), #f2f6fb);
}

.about-layout {
    display: flex;
    align-items: stretch;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.about-image {
    flex: 0 0 42%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

.about-content {
    flex: 1;
    padding: 40px;
    background: linear-gradient(135deg, var(--light-color), var(--white));
    border-radius: 12px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary-color);
}

.about-text {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 20px;
    text-align: justify;
    text-justify: inter-word;
}

.about-text:last-child {
    margin-bottom: 0;
}

/* Business Model Section */
.business-model {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.business-model::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 100 100"><circle cx="50" cy="50" r="40" fill="rgba(255,255,255,0.05)"/></svg>');
    background-size: 200px;
    animation: float 20s linear infinite;
}

@keyframes float {
    0% { background-position: 0 0; }
    100% { background-position: 200px 200px; }
}

.business-model .section-title {
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.business-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    position: relative;
    z-index: 1;
}

@property --trace-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

.step-item {
    background: rgba(255, 255, 255, 0.95);
    padding: 35px 25px;
    border-radius: 16px;
    text-align: center;
    min-width: 180px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    flex: 1;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.step-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

/* Trait lumineux qui fait le tour de la carte */
.step-item::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 2px;
    background: conic-gradient(
        from var(--trace-angle),
        transparent 0deg,
        transparent 300deg,
        var(--accent-color) 330deg,
        #f0b45a 345deg,
        transparent 360deg
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    animation: border-trace 4.5s linear infinite;
    pointer-events: none;
}

.step-item:nth-child(3)::after { animation-delay: 0.9s; }
.step-item:nth-child(5)::after { animation-delay: 1.8s; }
.step-item:nth-child(7)::after { animation-delay: 2.7s; }
.step-item:nth-child(9)::after { animation-delay: 3.6s; }

@keyframes border-trace {
    to { --trace-angle: 360deg; }
}

.step-item:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.step-number {
    font-size: 48px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.step-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
    overflow-wrap: break-word;
    hyphens: auto;
}

.step-arrow {
    font-size: 32px;
    color: var(--white);
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

/* Offre Section */
.offre {
    background: linear-gradient(180deg, var(--white), #f2f6fb);
}

.offre-banner {
    max-width: 1200px;
    margin: 0 auto 40px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    height: 320px;
}

.offre-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.offre-banner:hover img {
    transform: scale(1.04);
}

.offre-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 25px;
}

.offre-item {
    background: linear-gradient(180deg, var(--white), var(--light-color));
    padding: 25px;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    position: relative;
    overflow: hidden;
}

/* Balayage lumineux au survol */
.offre-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: -80%;
    width: 55%;
    height: 100%;
    background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.55), transparent);
    transform: skewX(-20deg);
    transition: left 0.6s ease;
    pointer-events: none;
}

.offre-item:hover {
    transform: translateX(8px);
    border-left-color: var(--accent-color);
    box-shadow: var(--shadow-lg);
}

.offre-item:hover::after {
    left: 130%;
}

.offre-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.offre-description {
    color: var(--gray-600);
    line-height: 1.6;
}

/* Piliers Section */
.piliers {
    background: linear-gradient(180deg, #eef2f7, var(--light-color));
}

.piliers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 30px;
}

.pilier-card {
    background: linear-gradient(180deg, var(--white), #f4f7fb);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

/* Barre d'accent qui se déploie au survol */
.pilier-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 4px;
    width: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.45s ease;
}

.pilier-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.pilier-card:hover::before {
    transform: scaleX(1);
}

.pilier-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.pilier-list {
    list-style: none;
    padding-left: 0;
}

.pilier-list li {
    padding: 10px 0;
    padding-left: 25px;
    position: relative;
    color: var(--text-color);
    line-height: 1.6;
}

.pilier-list li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
    font-size: 20px;
}

/* Card List */
.card-list {
    list-style: none;
    padding-left: 0;
    text-align: left;
}

.card-list li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: var(--text-color);
    line-height: 1.5;
}

.card-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

/* Raisons Section */
.raisons {
    background: linear-gradient(180deg, var(--white), #f2f6fb);
}

.raisons-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 350px), 1fr));
    gap: 20px;
}

.raison-item {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    background: linear-gradient(180deg, var(--white), var(--light-color));
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.raison-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.raison-number {
    width: 52px;
    height: 52px;
    min-width: 52px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 800;
    flex-shrink: 0;
    position: relative;
    box-shadow: 0 4px 12px rgba(26, 54, 93, 0.35);
    transition: transform 0.3s ease;
}

/* Anneau externe animé au survol */
.raison-number::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid var(--accent-color);
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.raison-item:hover .raison-number {
    transform: scale(1.08) rotate(-6deg);
    background: linear-gradient(135deg, var(--accent-color), #e05a4e);
}

.raison-item:hover .raison-number::after {
    opacity: 1;
    transform: scale(1);
}

.raison-text {
    color: var(--text-color);
    line-height: 1.5;
}

/* Chiffres Section */
.chiffres {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
}

.chiffres .section-title {
    color: var(--white);
}

.chiffres-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
    gap: 30px;
}

.chiffre-card {
    text-align: center;
    padding: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.chiffre-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 15px;
}

.chiffre-label {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
}

/* Projets Section (updated) */
.projets {
    background: linear-gradient(180deg, #eef2f7, var(--light-color));
}

.map-banner {
    max-width: 1100px;
    margin: 0 auto 45px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: #061124;
}

.map-banner img {
    width: 100%;
    display: block;
    transition: transform 0.6s ease;
}

.map-banner:hover img {
    transform: scale(1.02);
}

.project-item {
    border-top: 4px solid var(--accent-color);
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 5px;
}

.project-tag {
    background: var(--gray-100);
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 50px;
    border: 1px solid var(--gray-200);
}

.piliers-carousel {
    max-width: 1100px;
    margin: 0 auto 45px;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: var(--white);
}

.piliers-track {
    position: relative;
    aspect-ratio: 16 / 9;
    min-height: 280px;
    background: #101b2c;
}

.piliers-slide {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: scale(1.02);
    transition: opacity 0.5s ease, transform 0.5s ease, visibility 0.5s;
}

.piliers-slide.active {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.piliers-slide img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    background: #101b2c;
}

.piliers-slide figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 14px 58px 12px;
    color: var(--white);
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.78));
    font-size: 15px;
    font-weight: 600;
    text-align: center;
}

.piliers-arrow {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 42px;
    height: 58px;
    transform: translateY(-50%);
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 10px;
    color: var(--white);
    background: rgba(10, 25, 45, 0.58);
    font-size: 42px;
    line-height: 38px;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.piliers-arrow:hover { background: rgba(10, 25, 45, 0.88); transform: translateY(-50%) scale(1.06); }
.piliers-prev { left: 16px; }
.piliers-next { right: 16px; }

.piliers-dots {
    position: absolute;
    z-index: 3;
    left: 50%;
    bottom: 12px;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.piliers-dots button {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
}

.piliers-dots button.active { background: var(--white); transform: scale(1.25); }

/* Compatibilité avec les styles d'impression existants */
.piliers-banner { display: none; }

/* Reveal on scroll */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .step-item::after {
        animation: none;
    }
}

/* Print Info Banner */
.print-info {
    display: none;
    background: var(--gray-200);
    padding: 15px;
    text-align: center;
    border-top: 2px solid var(--primary-color);
    margin-top: 20px;
}

.print-info p {
    margin: 5px 0;
    color: var(--gray-600);
}

/* Version arabe (RTL) */
[dir="rtl"] body {
    font-family: 'Segoe UI', Tahoma, 'Noto Kufi Arabic', 'Noto Sans Arabic', Arial, sans-serif;
}

[dir="rtl"] .slogan-line,
[dir="rtl"] .step-title {
    letter-spacing: 0;
}

[dir="rtl"] .slogan-slide {
    transform: translateX(-100%) scale(0.9);
}

[dir="rtl"] .slogan-slide.active {
    transform: translateX(0) scale(1);
}

[dir="rtl"] .slogan-slide.prev {
    transform: translateX(100%) scale(0.9);
}

[dir="rtl"] .nav-link::after,
[dir="rtl"] .mission-card::before,
[dir="rtl"] .pilier-card::before {
    transform-origin: right;
}

[dir="rtl"] .section-subtitle,
[dir="rtl"] .about-content,
[dir="rtl"] .offre-item {
    border-left: none;
    border-right: 4px solid var(--primary-color);
}

[dir="rtl"] .offre-item:hover {
    transform: translateX(-8px);
    border-right-color: var(--accent-color);
}

[dir="rtl"] .piliers-prev { left: auto; right: 16px; }
[dir="rtl"] .piliers-next { right: auto; left: 16px; }

[dir="rtl"] .card-list {
    text-align: right;
}

[dir="rtl"] .card-list li,
[dir="rtl"] .pilier-list li,
[dir="rtl"] .project-features li {
    padding-left: 0;
    padding-right: 25px;
}

[dir="rtl"] .card-list li:before,
[dir="rtl"] .pilier-list li:before,
[dir="rtl"] .project-features li:before {
    left: auto;
    right: 0;
}

/* Burger menu button - hidden on desktop */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 8px;
    padding: 10px 12px;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Responsive - tablette */
@media (max-width: 1024px) {
    .container {
        padding: 0 20px;
    }

    .nav-list {
        gap: 10px;
    }

    .nav-link {
        padding: 8px 10px;
        font-size: 15px;
    }

    .section {
        padding: 60px 0;
    }
}

/* Responsive - menu burger */
@media (max-width: 900px) {
    .logo-section {
        flex: 1;
        min-width: 0;
    }

    .site-title {
        font-size: 15px;
    }

    .nav-toggle {
        display: flex;
        order: 2;
        flex-shrink: 0;
    }

    .lang-switch {
        order: 1;
    }

    .main-nav {
        order: 3;
        margin-left: 0;
    }

    [dir="rtl"] .step-arrow {
        transform: rotate(-90deg);
    }

    .main-nav {
        width: 100%;
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        pointer-events: none;
        transition: max-height 0.35s ease, opacity 0.3s ease;
    }

    .main-nav.open {
        max-height: 520px;
        opacity: 1;
        pointer-events: auto;
    }

    .nav-list {
        flex-direction: column;
        gap: 0;
        padding: 10px 0;
    }

    .nav-list li {
        border-top: 1px solid rgba(255, 255, 255, 0.15);
    }

    .nav-link {
        display: block;
        text-align: center;
        padding: 14px 16px;
        border-radius: 0;
    }

    .nav-link::after {
        display: none;
    }

    .business-steps {
        flex-direction: column;
        gap: 15px;
    }

    .step-item {
        width: 100%;
        min-width: 0;
        padding: 20px;
    }

    .step-number {
        font-size: 32px;
        margin-bottom: 5px;
    }

    .step-arrow {
        transform: rotate(90deg);
        animation: none;
        font-size: 24px;
    }
}

/* Responsive - mobile */
@media (max-width: 768px) {
    .hero {
        padding: 50px 0;
        margin-bottom: 40px;
    }

    .slogan-carousel {
        margin: 30px 0;
    }

    .hero-title {
        font-size: 32px;
    }

    .section {
        padding: 50px 0;
        margin-bottom: 20px;
    }

    .section-header {
        margin-bottom: 30px;
    }

    .section-title {
        font-size: 28px;
    }

    .about-layout {
        flex-direction: column;
    }

    .about-image {
        flex: none;
        height: 260px;
    }

    .about-content {
        padding: 25px;
    }

    .offre-banner {
        height: 220px;
    }

    .chiffre-number {
        font-size: 36px;
    }

    .contact-item {
        padding: 20px;
    }

    .footer {
        padding: 40px 0 20px;
    }
}

/* Responsive - petit mobile */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .logo-img {
        height: 64px;
    }

    .site-title {
        font-size: 13px;
    }

    .site-subtitle {
        font-size: 10px;
    }

    .section-title {
        font-size: 24px;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .offre-banner {
        height: 160px;
    }

    .about-image {
        height: 200px;
    }

    .contact-icon {
        width: 44px;
        height: 44px;
        min-width: 44px;
    }
}
