/* Variables CSS */
:root {
    --sbs-blue: #004B80;
    --sbs-blue-light: #008ED6;
    --sbs-gray-light: #F5F7FA;
    --sbs-text-dark: #1A1A1A;
    --white: #FFFFFF;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--sbs-text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    border: none;
    cursor: pointer;
    font-family: inherit;
}

ul {
    list-style: none;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
#header {
    background: var(--white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: transparent;
    transition: var(--transition);
}

.logo:hover {
    opacity: 0.8;
}

.logo-icon {
    width: 2.5rem;
    height: 2.5rem;
    background: var(--sbs-blue);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--sbs-blue);
    line-height: 1.2;
}

.logo-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.875rem;
    color: var(--sbs-blue-light);
    line-height: 1.2;
}

/* Navigation */
#nav ul {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-size: 1rem;
    color: var(--sbs-text-dark);
    transition: var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--sbs-blue-light);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--sbs-blue);
}

/* Menu Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 0.25rem;
    background: transparent;
    padding: 0.5rem;
    z-index: 1001;
}

.hamburger span {
    width: 1.5rem;
    height: 2px;
    background: var(--sbs-blue);
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Pages */
.page {
    display: none;
    animation: fadeIn 0.5s ease;
}

.page.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Section */
.hero {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    background-image: url(background.jpg);
    background-size: cover;
    background-position: center;
    animation: zoomIn 20s ease-in-out infinite alternate;
}

@keyframes zoomIn {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.05);
    }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(18, 87, 137, 0.9), rgba(0, 75, 128, 0.7));
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-text {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--sbs-blue-light);
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 142, 214, 0.3);
}

/* Experience Section */
.experience-section {
    padding: 5rem 0;
    background: var(--white);
}

.experience-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: justify; /* Alignement général */
}

.experience-text {
    font-size: clamp(1rem, 2vw, 1.125rem);
    line-height: 1.8;
    color: var(--sbs-text-dark);
    font-style: italic;     
    font-weight: 600;      
    text-align: justify;   
}

/* Domaines Section */
.domaines-section {
    padding: 5rem 0;
    background: var(--sbs-gray-light);
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 600;
    color: var(--sbs-blue);
    text-align: center;
    margin-bottom: 3rem;
}

.domaines-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.domaine-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: var(--transition);
}

.domaine-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0, 75, 128, 0.15);
}

.domaine-icon {
    width: 4rem;
    height: 4rem;
    background: var(--sbs-blue-light);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--white);
}

.domaine-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--sbs-blue);
    line-height: 1.4;
}

/* CTA Section */
.cta-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--sbs-blue) 0%, var(--sbs-blue-light) 100%);
    text-align: center;
}

.cta-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 600;
    color: var(--white);
    margin-bottom: 1rem;
}

.cta-text {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.95);
}

/* About Page */
.about-section {
    padding: 5rem 0;
    min-height: calc(100vh - 200px);
    position: relative;
}

.about-background {
    position: absolute;
    inset: 0;
    background-image: url('https://images.unsplash.com/photo-1639430257115-f63af9eab97d?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3w3Nzg4Nzd8MHwxfHNlYXJjaHwxfHxpbmR1c3RyaWFsJTIwYmFja2');
    background-size: cover;
    background-position: center;
    opacity: 0.05;
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.page-header h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--sbs-blue);
    margin-bottom: 1rem;
}

.page-divider {
    width: 6rem;
    height: 4px;
    background: var(--sbs-blue-light);
    margin: 0 auto;
}

.page-subtitle {
    margin-top: 1.5rem;
    font-size: clamp(1rem, 2vw, 1.125rem);
    color: var(--sbs-text-dark);
}

.about-content {
    max-width: 1000px;
    margin: 0 auto;
    font-size: clamp(1rem, 2vw, 1.125rem);
    line-height: 1.8;
    color: var(--sbs-text-dark);
    font-style: italic;     
    font-weight: 600;      
    text-align: justify;   

}

.about-card {
    background: var(--white);
    padding: 3rem;
    border-radius: 1.5rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
     
    text-align: justify;   
}

.about-card h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
    color: var(--sbs-blue);
    margin-bottom: 1.5rem;
}

.about-card h3 {
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    font-weight: 600;
    color: var(--sbs-blue);
    margin: 2rem 0 1rem;
}

.about-card p {
    font-size: clamp(1rem, 2vw, 1.125rem);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.about-list {
    list-style: disc;
    margin-left: 2rem;
    margin-top: 1rem;
}

.about-list li {
    font-size: clamp(1rem, 2vw, 1.125rem);
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.values-card {
    background: linear-gradient(135deg, var(--sbs-blue) 0%, var(--sbs-blue-light) 100%);
    padding: 3rem;
    border-radius: 1.5rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    color: var(--white);
}

.values-card h3 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 600;
    text-align: center;
    margin-bottom: 1rem;
}

.priority-text {
    font-size: clamp(1rem, 2vw, 1.125rem);
    text-align: center;
    margin-bottom: 2.5rem;
    opacity: 0.95;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
}

.value-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.value-icon {
    width: 5rem;
    height: 5rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: var(--white);
}

.value-item span {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.125rem, 2.5vw, 1.25rem);
    font-weight: 600;
}

/* Services Page */
.services-section {
    padding: 5rem 0;
    background: var(--sbs-gray-light);
    min-height: calc(100vh - 200px);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-8px);
    background: var(--sbs-blue);
    color: var(--white);
}

.service-icon {
    width: 4rem;
    height: 4rem;
    background: var(--sbs-blue-light);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--white);
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--white);
    color: var(--sbs-blue);
}

.service-card h3 {
    font-size: clamp(1.125rem, 2.5vw, 1.25rem);
    font-weight: 600;
    color: var(--sbs-blue);
    margin-bottom: 1rem;
    line-height: 1.4;
    transition: var(--transition);
}

.service-card:hover h3 {
    color: var(--white);
}

.service-card p {
    font-size: clamp(0.875rem, 1.5vw, 1rem);
    line-height: 1.6;
    color: var(--sbs-text-dark);
    transition: var(--transition);
}

.service-card:hover p {
    color: var(--white);
}

/* Contact Page */
.contact-section {
    padding: 5rem 0;
    background: var(--sbs-gray-light);
    min-height: calc(100vh - 200px);
}

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

.contact-form-wrapper {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 1.5rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.contact-form-wrapper h2 {
    font-size: clamp(1.5rem, 3vw, 1.75rem);
    font-weight: 600;
    color: var(--sbs-blue);
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--sbs-text-dark);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid rgba(0, 75, 128, 0.2);
    border-radius: 0.5rem;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--sbs-blue-light);
    box-shadow: 0 0 0 3px rgba(0, 142, 214, 0.1);
}

.form-group textarea {
    resize: none;
}

.btn-submit {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--sbs-blue-light);
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 142, 214, 0.3);
}

.contact-info {
    display: flex;
    flex-direction: column;
}

.info-card {
    background: linear-gradient(135deg, var(--sbs-blue) 0%, var(--sbs-blue-light) 100%);
    padding: 2.5rem;
    border-radius: 1.5rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    color: var(--white);
    height: 100%;
}

.info-card h2 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 600;
    margin-bottom: 2rem;
}

.info-items {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-item {
    display: flex;
    gap: 1rem;
}

.info-icon {
    width: 3rem;
    height: 3rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-content {
    flex: 1;
}

.info-label {
    font-size: 0.875rem;
    opacity: 0.9;
    margin-bottom: 0.25rem;
}

.info-content a,
.info-content p {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: clamp(0.875rem, 2vw, 1rem);
    transition: var(--transition);
}

.info-content a:hover {
    opacity: 0.8;
}

/* Footer */
#footer {
    background: var(--sbs-blue);
    color: var(--white);
    padding: 2rem 0;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-contacts {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-contact {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.footer-contact a {
    transition: var(--transition);
}

.footer-contact a:hover {
    color: var(--sbs-blue-light);
}

.footer-copyright {
    font-size: 0.875rem;
    opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    /* Header Mobile */
    .hamburger {
        display: flex;
    }

    #nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--white);
        box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        padding: 5rem 2rem 2rem;
    }

    #nav.active {
        right: 0;
    }

    #nav ul {
        flex-direction: column;
        gap: 0;
    }

    .nav-link {
        display: block;
        padding: 1rem;
        border-radius: 0.5rem;
        transition: var(--transition);
    }

    .nav-link:hover,
    .nav-link.active {
        background: var(--sbs-gray-light);
        color: var(--sbs-blue);
    }

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

    /* Hero adjustments */
    .hero {
        height: 500px;
    }

    /* Sections padding */
    .experience-section,
    .domaines-section,
    .cta-section,
    .about-section,
    .services-section,
    .contact-section {
        padding: 3rem 0;
    }

    /* Grid adjustments */
    .domaines-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    /* Footer */
    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-contacts {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .logo-icon {
        width: 2rem;
        height: 2rem;
    }

    .logo-title {
        font-size: 1rem;
    }

    .logo-subtitle {
        font-size: 0.75rem;
    }

    .hero {
        height: 400px;
    }

    .about-card,
    .values-card,
    .contact-form-wrapper {
        padding: 1.5rem;
    }

    .domaine-card,
    .service-card {
        padding: 1.5rem;
    }
}
