/* SESAM INFORMATICS - Feuille de style principale */
/* Charte graphique complète définie et validée */

/* Import Google Fonts - Poppins */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #444444;
    background-color: #F9F9F9;
}

/* Couleurs principales */
:root {
    --vert-principal: #6AB023;
    --vert-hover: #5a9a1e;
    --gris-titres: #58585A;
    --gris-texte: #444444;
    --gris-secondaire: #888888;
    --fond-page: #F9F9F9;
    --fond-section-alt: #FFFFFF;
    
    --fond-footer: #2B2B2B;
    --texte-footer: #CCCCCC;
    --separateur: #E8E8E8;
}

/* Typographie */
h1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--gris-titres);
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

h2 {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--gris-titres);
    margin-bottom: 1.2rem;
    margin-top: 2rem;
    text-decoration: underline;
    text-underline-offset: 2px; 
    text-decoration-thickness: 1px;
}

h3 {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--vert-principal);
    margin-bottom: 0.8rem;
    margin-top: 1.5rem;
}

p {
    font-size: 1rem;
    font-weight: 400;
    color: var(--gris-texte);
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

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

/* HEADER ET NAVIGATION */
header {
    background-color: #FFFFFF;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

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

.nav-menu>li {
    position: relative;
}

.nav-menu>li>a {
    color: var(--gris-titres);
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.5rem 0;
    display: block;
}

.nav-menu>li>a:hover,
.nav-menu>li>a.active {
    color: var(--vert-principal);
}


/* Ligne décorative sous logo */
.logo-line {
    height: 3px;
    background-color: var(--vert-principal);
    width: 100%;
    margin-bottom: 0;
}

/* Dropdown menu */
.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-width: 280px;
    padding: 0.8rem 0;
    list-style: none;
    border-top: 3px solid var(--vert-principal);
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li {
    display: block;
    padding-left: 0;
}

.dropdown-menu li a {
    display: block;
    padding: 0.6rem 2.5rem;
    color: var(--gris-texte);
    font-size: 0.9rem;
    white-space: nowrap;
}

.dropdown-menu li a:hover {
    /* background-color: var(--fond-page);
    color: var(--vert-principal); */
    background-color: var(--vert-principal);
    color: #FFFFFF;
}

/* Menu burger pour mobile */
.menu-burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
}

.menu-burger span {
    width: 28px;
    height: 3px;
    background-color: var(--gris-titres);
    transition: all 0.3s;
}

.menu-burger.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-burger.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.menu-burger.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* HERO SECTION - Visuel haut pleine largeur */
.hero {
    width: 100%;
    height: 500px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.2));
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #FFFFFF;
    max-width: 900px;
    padding: 0 20px;
}

.hero h1 {
    color: #FFFFFF;
    font-size: 2.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
    color: #FFFFFF;
    font-size: 1.1rem;
    font-style: italic;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

/* SECTIONS DE CONTENU */
section {
    padding: 4rem 0;
}

section:nth-child(even) {
    background-color: var(--fond-section-alt);
}

.content-section {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Visuel dans le corps */
.content-image {
    width: 100%;
    max-width: 900px;
    height: 500px;
    object-fit: cover;
    margin: 2.5rem auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

/* Séparateurs */
.separator {
    height: 1px;
    background-color: var(--separateur);
    margin: 3rem auto;
    max-width: 1000px;
}

/* Encadrés et cartes */
.card {
    background-color: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    padding: 2rem;
    border-left: 4px solid var(--vert-principal);
    margin-bottom: 2rem;
}

/* Grille de cartes services/solutions */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.service-card {
    background-color: #FFFFFF;
    border-radius: 8px;
    padding: 1.8rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s, box-shadow 0.3s;
    border-top: 4px solid var(--vert-principal);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.service-card h3 {
    color: var(--gris-titres);
    margin-top: 0;
}

/* Listes personnalisées */
ul {
    list-style: none;
    padding-left: 0;
}

ul li {
    padding-left: 1.2rem;
    position: relative;
    margin-bottom: 0.6rem;
}

.content-section ul li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding-left: 0;
    
}

.content-section ul li::before {
    content: '■';
    color: var(--vert-principal);
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 0.05em;
}

/* Boutons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--vert-principal);
    color: #FFFFFF;
}

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

.btn-secondary {
    background-color: transparent;
    border: 1px solid var(--vert-principal);
    color: var(--vert-principal);
}

.btn-secondary:hover {
    background-color: var(--vert-principal);
    color: #FFFFFF;
}

/* Formulaire de contact */
.contact-form {
    max-width: 700px;
    margin: 2rem auto;
}

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #DDDDDD;
    border-radius: 4px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--vert-principal);
}

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

/* FOOTER */
footer {
    background-color: var(--fond-footer);
    color: var(--texte-footer);
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    margin-bottom: 2rem;
}

.footer-column h3 {
    color: #FFFFFF;
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
}

.footer-column p,
.footer-column a {
    color: var(--texte-footer);
    font-size: 0.9rem;
    line-height: 1.8;
}

.footer-column a:hover {
    color: var(--vert-principal);
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column ul li {
    padding-left: 0;
    margin-bottom: 0.6rem;
}

.footer-column ul li::before {
    display: none;
}

.footer-logo img {
    max-width: 180px;
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: inline-block;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.social-links a:hover {
    background-color: var(--vert-hover);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--gris-secondaire);
    font-size: 0.85rem;
}

.footer-bottom p {
    color: var(--gris-secondaire) !important;
}

/* RESPONSIVE */


@media (max-width: 950px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        width: 100%;
        background-color: #FFFFFF;
        flex-direction: column;
        gap: 0;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu>li {
        width: 100%;
        border-bottom: 1px solid var(--separateur);
    }

    .nav-menu>li>a {
        padding: 1rem 1.5rem;
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        border-top: none;
        background-color: var(--fond-page);
        border-left: 3px solid var(--vert-principal);
    }

    .dropdown:hover .dropdown-menu {
        display: none;
    }

    .dropdown.active .dropdown-menu {
        display: block;
    }

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

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

    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.3rem;
    }

    section {
        padding: 3rem 0;
    }

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

    .content-image {
        height: 350px;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 400px;
    }

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

    h1 {
        font-size: 1.6rem;
    }

    .content-image {
        height: 280px;
    }
}

@media (max-width: 950px) {
    .hero--contact {
        background-position: right center;
    }
}

/* MODAL */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal {
    background: #fff;
    border-radius: 8px;
    padding: 2rem 2.5rem;
    max-width: 420px;
    width: 90%;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.modal--success .modal__text { color: #222; }
.modal--error   .modal__text { color: #222; }

.modal__text {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.modal__btn {
    min-width: 100px;
}