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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Évite que le titre soit caché par la navbar fixe */
}

:root {
    --primary-color: #1e3a5f;
    --secondary-color: #0d1f3a;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f5f5f7;
    --white: #ffffff;
    --accent-gray: #4a5568;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
}

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

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

.navbar {
    background: var(--white);
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.logo img {
    height: 50px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s;
    font-size: 1.1rem;
}

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

.nav-menu a[aria-current="page"] {
    color: var(--primary-color);
    font-weight: 700;
    border-bottom: 2px solid var(--primary-color);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 8px;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

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

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

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    transition: 0.3s;
}

.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 70px 0 40px;
    text-align: center;
    margin-top: 60px;
}

.hero-content h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.15rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.section-title {
    font-family: 'Montserrat', sans-serif;
    text-align: center;
    font-size: 1.6rem;
    margin-bottom: 1.2rem;
    color: var(--text-dark);
}

.services {
    padding: 40px 0;
    background: var(--bg-light);
}

.services .section-title {
    margin-top: 2.5rem;
    margin-bottom: 1.2rem;
}

.services .section-title:first-of-type {
    margin-top: 0;
}

.service-benefits,
.service-conditions {
    background: var(--white);
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.service-benefits h3,
.service-conditions h3 {
    font-size: 1rem;
    color: var(--primary-color);
    margin-bottom: 0.8rem;
}

.service-benefits ul,
.service-conditions ul {
    list-style: none;
    padding-left: 0;
}

.service-benefits li,
.service-conditions li {
    padding: 0.3rem 0;
    color: var(--text-light);
    line-height: 1.5;
    font-size: 1rem;
}

.service-benefits li strong {
    color: var(--text-dark);
}

.about {
    padding: 50px 0;
}

.about-text img,
.about-text picture,
.about-text picture img {
    max-width: 100%;
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 1.5rem 0;
    display: block;
    box-sizing: border-box;
}

.about-text h3 {
    font-size: 1.1rem;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    color: var(--text-dark);
}

.about-text h4 {
    font-size: 1rem;
    margin-top: 1rem;
    margin-bottom: 0.4rem;
    color: var(--text-dark);
}

.about-text p {
    margin-bottom: 0.8rem;
    color: var(--text-light);
    line-height: 1.6;
    font-size: 1rem;
}

.about-features {
    list-style: none;
    margin-top: 1.5rem;
}

.about-features li {
    padding: 0.4rem 0;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
}

.contact {
    padding: 60px 0;
    background: var(--bg-light);
}

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

.contact-info {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 2rem;
}

.info-item h3 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.info-item h4 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.info-item p {
    color: var(--text-light);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.contact-form label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-dark);
    margin-top: 0.6rem;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}


.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.service-selector {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin: 0 0 1rem 0;
    border: none;
    outline: none;
    padding: 0;
    min-width: 0;
}

.service-selector-label {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    width: 100%;
}

.service-tag {
    display: inline-block;
    padding: 10px 14px;
    border: 2px solid #d1d5db;
    border-radius: 20px;
    font-size: 0.875rem;
    cursor: pointer;
    color: var(--text-dark);
    transition: all 0.2s;
    user-select: none;
    white-space: nowrap;
    background: var(--white);
    min-height: 44px;
    line-height: 1.4;
    box-sizing: border-box;
}

.service-tag:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.service-tag.active {
    background: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: var(--white) !important;
}

footer {
    background: var(--text-dark);
    color: var(--white);
    text-align: center;
    padding: 2rem 0;
}

.promise {
    padding: 40px 0;
    background: var(--white);
    text-align: center;
}

.promise h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.6rem;
    margin-bottom: 0.8rem;
    color: var(--text-dark);
}

.promise-subtitle {
    font-size: 1.2rem;
    font-style: italic;
    color: var(--primary-color);
    margin-bottom: 1.2rem;
    font-weight: 600;
}

.promise p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.8;
}

.pillars {
    padding: 40px 0;
    background: var(--bg-light);
}

.pillars .container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.2rem;
}

.pillars .section-title {
    grid-column: 1 / -1;
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.2rem;
    grid-column: 1 / -1;
}

.opensource {
    padding: 40px 0;
    background: var(--white);
}

.opensource .container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.2rem;
}

.opensource .section-title {
    grid-column: 1 / -1;
}

.opensource-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.2rem;
    grid-column: 1 / -1;
}

.reviews-section {
    padding: 50px 0;
    background: var(--bg-light);
}

.reviews-section .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.reviews-section .section-title {
    width: 100%;
    text-align: center;
}

.review-form {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 3rem;
    width: 100%;
    max-width: 800px;
    box-sizing: border-box;
}

.review-form label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-dark);
    margin-bottom: 0.3rem;
}

.review-form input,
.review-form textarea {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    box-sizing: border-box;
}

.review-form textarea {
    resize: vertical;
}

.star-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-direction: row-reverse;
    justify-content: center;
    border: none;
    padding: 0;
}

.star-rating legend {
    float: left;
    font-size: 1rem;
    color: var(--text-dark);
    margin-right: 0.5rem;
    padding: 0;
}

.star-rating input {
    display: none;
}

.star-rating label {
    font-size: 2rem;
    color: #ddd;
    cursor: pointer;
    transition: color 0.2s;
}

.star-rating input:checked ~ label,
.star-rating label:hover,
.star-rating label:hover ~ label {
    color: #ffd700;
}

.reviews-list {
    max-width: 900px;
    margin: 0 auto;
    max-height: 500px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 1rem;
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    width: 100%;
    box-sizing: border-box;
}

.reviews-list::-webkit-scrollbar {
    width: 10px;
}

.reviews-list::-webkit-scrollbar-track {
    background: var(--bg-light);
    border-radius: 10px;
}

.reviews-list::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

.reviews-list::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

.review-item {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.review-item:last-child {
    margin-bottom: 0;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.review-header strong {
    font-size: 1.1rem;
    color: var(--text-dark);
}

.review-company {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-left: 0.5rem;
}

.review-stars {
    color: #ffd700;
    font-size: 1.2rem;
}

.review-comment {
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 0.5rem;
    overflow-wrap: break-word;
    word-break: break-word;
}

.review-date {
    color: var(--text-light);
    font-size: 0.85rem;
}

.cta-footer {
    padding: 40px 0;
    background: var(--primary-color);
    color: var(--white);
    text-align: center;
}

.cta-footer h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.cta-footer p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.ubuntu-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 100px 0 60px;
    text-align: center;
    margin-top: 60px;
}

.ubuntu-hero h1,
.ubuntu-hero h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.ubuntu-hero p {
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 900px;
    margin: 0 auto;
    opacity: 0.95;
}

.ubuntu-why {
    padding: 50px 0;
    background: var(--bg-light);
}

.ubuntu-feature {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: var(--white);
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.ubuntu-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.ubuntu-content h3 {
    font-size: 1rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.ubuntu-content p {
    color: var(--text-light);
    line-height: 1.5;
    font-size: 1rem;
}

.ubuntu-expertise {
    padding: 50px 0;
    background: var(--white);
}

.ubuntu-difference {
    padding: 50px 0;
    background: var(--primary-color);
    color: var(--white);
    text-align: center;
}

.ubuntu-difference h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.ubuntu-difference p {
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 900px;
    margin: 0 auto;
    opacity: 0.95;
}

.architecture-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 100px 0 60px;
    text-align: center;
    margin-top: 60px;
}

.architecture-hero h1,
.architecture-hero h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
}

.architecture-hero p {
    font-size: 1.2rem;
    margin: 0;
    opacity: 0.9;
}

.architecture-title {
    font-size: 2rem;
}

.architecture-phases {
    padding: 50px 0;
    background: var(--bg-light);
}

.phase-block {
    background: var(--white);
    padding: 0.8rem;
    margin-bottom: 0.8rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.phase-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid var(--bg-light);
}

.phase-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
}

.phase-header h3 {
    font-size: 1rem;
    color: var(--primary-color);
    margin: 0;
}

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

.phase-list li {
    padding: 0.5rem 0;
    color: var(--text-light);
    line-height: 1.4;
    border-bottom: 1px solid var(--bg-light);
    font-size: 1rem;
}

.ssl-certification {
    padding: 40px 0;
    background: var(--white);
}

.privacy-banner {
    padding: 25px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
}

.privacy-content {
    text-align: center !important;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

.privacy-content h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 0.4rem;
    color: var(--white);
}

.privacy-content p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.privacy-contact {
    background: var(--white);
}

.btn-contact {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 10px 20px;
    background: var(--primary-color);
    color: var(--white) !important;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background 0.3s;
    overflow-wrap: break-word;
    word-break: break-word;
}

.btn-contact:hover {
    background: var(--secondary-color);
}

.privacy-contact .privacy-content {
    text-align: center !important;
}

.privacy-contact h3 {
    color: var(--text-dark);
}

.privacy-contact p {
    color: var(--text-light);
}

.ssl-badge {
    display: flex !important;
    align-items: center !important;
    gap: 2rem;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%) !important;
    padding: 2rem;
    border-radius: 10px;
    border-left: 5px solid #4caf50;
    box-shadow: var(--shadow);
    max-width: 900px;
    margin: 0 auto;
    box-sizing: border-box;
}

.ssl-icon {
    font-size: 4rem;
    flex-shrink: 0;
    line-height: 1;
}

.ssl-content {
    flex: 1;
}

.ssl-content h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4rem;
    color: var(--text-dark);
    margin-bottom: 0.8rem;
}

.ssl-content p {
    color: var(--text-dark);
    line-height: 1.6;
    font-size: 0.95rem;
    margin-bottom: 0;
}

.btn-ssl {
    display: inline-block;
    margin-top: 1rem;
    padding: 12px 28px;
    background: #4caf50;
    color: #ffffff !important;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: background 0.3s;
    white-space: normal;
    overflow-wrap: break-word;
}

.btn-ssl:hover {
    background: #388e3c;
}

@media (max-width: 768px) {
    .ssl-badge {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 1rem;
    }
    
    .ssl-icon {
        font-size: 3rem;
    }
}

.phase-list li:last-child {
    border-bottom: none;
}

.phase-list li strong {
    color: var(--text-dark);
}

.architecture-engagement {
    padding: 50px 0;
    background: var(--white);
}

.architecture-engagement h2 {
    font-family: 'Montserrat', sans-serif;
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.technologies-header {
    padding: 50px 0 60px;
    background: var(--bg-light);
}

.technologies {
    padding: 0 0 50px;
    background: var(--bg-light);
}

.technologies-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-light);
    margin: 0 auto;
    max-width: 800px;
    line-height: 1.6;
}

.technologies .container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.technologies .section-title {
    grid-column: 1 / -1;
}

.technologies .ubuntu-feature {
    display: block;
}

@media (min-width: 769px) {
    .technologies .container {
        display: flex;
        flex-wrap: wrap;
        gap: 1.5rem;
        align-items: flex-start;
    }
    
    .technologies .ubuntu-feature {
        flex: 0 1 calc(33.333% - 1rem);
    }
}

@media (min-width: 1200px) {
    .technologies .ubuntu-feature {
        flex: 0 1 calc(25% - 1.125rem);
    }
}

.page-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 100px 0 60px;
    text-align: center;
    margin-top: 60px;
}

.page-hero h1,
.page-hero h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    margin: 0 0 1rem 0;
}

.page-hero p {
    font-size: 1.2rem;
    margin: 0;
    opacity: 0.9;
}

@media (max-width: 1024px) and (min-width: 769px) {
    .logo img {
        height: 45px;
        width: auto;
    }

    .hero {
        padding: 100px 0 70px;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .page-hero {
        padding: 100px 0 70px;
    }

    .page-hero h1,
    .page-hero h2 {
        font-size: 2rem;
    }

    .page-hero p {
        font-size: 1.1rem;
    }

    .ubuntu-hero,
    .architecture-hero {
        padding: 100px 0 70px;
    }

    .ubuntu-hero h1,
    .ubuntu-hero h2,
    .architecture-hero h1,
    .architecture-hero h2 {
        font-size: 1.8rem;
    }

    .ubuntu-hero p {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .promise h2,
    .cta-footer h2 {
        font-size: 1.5rem;
    }

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

}

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

    .contact-info h2 {
        text-align: center;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 0;
        padding-top: 70px;
        flex-direction: column;
        background: var(--white);
        width: 100%;
        height: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow);
        overflow-y: auto;
    }

    .nav-menu.active {
        left: 0;
        display: flex !important;
    }

    .logo img {
        height: 40px;
        width: auto;
    }

    .hero {
        padding: 80px 0 60px;
    }

    .hero-content h1 {
        font-size: 1.5rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .page-hero {
        padding: 80px 0 60px;
    }

    .page-hero h1,
    .page-hero h2 {
        font-size: 1.8rem;
    }

    .page-hero p {
        font-size: 1rem;
    }

    .ubuntu-hero,
    .architecture-hero {
        padding: 80px 0 60px;
    }

    .ubuntu-hero h1,
    .ubuntu-hero h2,
    .architecture-hero h1,
    .architecture-hero h2 {
        font-size: 1.5rem;
    }

    .ubuntu-hero p {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .promise h2,
    .cta-footer h2 {
        font-size: 1.4rem;
    }

    .service-benefits h3,
    .service-conditions h3,
    .about-text h3,
    .ubuntu-content h3,
    .phase-header h3 {
        font-size: 1.1rem;
    }

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

    .ubuntu-feature {
        flex-direction: column;
        gap: 1rem;
    }

    .ubuntu-icon,
    .phase-icon {
        font-size: 2rem;
    }

    .phase-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .contact-form input,
    .contact-form textarea {
        font-size: 16px;
    }

    .review-form input,
    .review-form textarea {
        font-size: 16px;
    }

    .btn[type="submit"],
    button.btn {
        width: 100%;
        display: block;
        text-align: center;
        box-sizing: border-box;
    }

    .star-rating {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.3rem;
    }

    .star-rating legend {
        float: none;
        width: 100%;
        text-align: center;
        margin-right: 0;
        margin-bottom: 0.3rem;
    }

    .star-rating label {
        font-size: 2.2rem;
    }

    .architecture-engagement {
        padding: 40px 0;
    }

    .ssl-badge {
        padding: 1rem;
    }
}

/* Screen-reader only utility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
