*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Inter',sans-serif;
}

body{
    background:linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-attachment:fixed;
    color:#1c1c2a;
    min-height:100vh;
}

.navbar{
    padding:24px 60px;
    background:rgba(255,255,255,0.95);
    font-weight:700;
    font-size:20px;
    box-shadow:0 2px 20px rgba(0,0,0,0.1);
    backdrop-filter:blur(10px);
}

.hero-wrapper{
    padding:40px;
}

.hero{
    position:relative;
    border-radius:32px;
    overflow:hidden;
    background:#000;
    box-shadow:0 20px 60px rgba(0,0,0,0.3);
    transition:transform 0.3s ease;
}

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

.hero img{
    width:100%;
    height:520px;
    object-fit:cover;
    filter:brightness(0.7);
}

.hero::before{
    content:'';
    position:absolute;
    top:0;
    left:0;
    right:0;
    bottom:0;
    background:linear-gradient(135deg, rgba(102,126,234,0.3) 0%, rgba(118,75,162,0.3) 100%);
    z-index:1;
}

.hero-text{
    position:absolute;
    top:50%;
    left:50%;
    transform:translate(-50%,-50%);
    color:#fff;
    max-width:900px;
    text-align:center;
    width:90%;
    z-index:2;
    text-shadow:2px 2px 10px rgba(0,0,0,0.5);
}

.hero-text h1{
    font-size:clamp(28px, 5vw, 52px);
    margin-bottom:20px;
    font-weight:700;
    letter-spacing:-0.5px;
    line-height:1.2;
}

.hero-text p{
    font-size:16px;
    line-height:1.6;
    opacity:0.9;
}

.hero-text span{
    display:inline-block;
    margin-top:20px;
    font-weight:600;
    opacity:0.85;
}

.document{
    background:#fff;
    margin:40px auto;
    padding:80px;
    border-radius:32px;
    max-width:1200px;
    box-shadow:0 20px 60px rgba(0,0,0,0.15);
}

/* Responsive - Tablettes */
@media (max-width:1024px){
    .document{
        padding:60px 50px;
    }
    
    .hero img{
        height:450px;
    }
}

/* Responsive - Mobile */
@media (max-width:768px){
    .navbar{
        padding:16px 20px;
        font-size:18px;
    }
    
    .hero-wrapper{
        padding:15px;
    }
    
    .hero{
        border-radius:20px;
    }
    
    .hero img{
        height:350px;
    }
    
    .hero-text{
        width:95%;
        padding:0 10px;
    }
    
    .hero-text h1{
        font-size:20px;
        line-height:1.3;
        margin-bottom:15px;
    }
    
    .document{
        margin:15px;
        padding:30px 20px;
        border-radius:20px;
    }
    
    h2{
        font-size:22px;
        margin-top:30px;
        margin-bottom:15px;
    }
    
    h3{
        font-size:20px;
        margin-top:30px;
        margin-bottom:20px;
    }
    
    h4{
        font-size:18px;
        margin-top:25px;
        margin-bottom:15px;
    }
    
    p{
        font-size:15px;
        line-height:1.7;
        margin-top:12px;
    }
    
    ul, ol{
        margin-left:25px;
        margin-top:12px;
    }
    
    ul ul, ol ol{
        margin-left:20px;
    }
    
    li{
        font-size:15px;
        line-height:1.7;
        margin-top:8px;
    }
    
    .document table{
        display:block;
        overflow-x:auto;
        -webkit-overflow-scrolling:touch;
        margin-top:20px;
        font-size:11px;
        width:100%;
        max-width:100%;
    }
    
    .document th, 
    .document td{
        padding:8px 5px;
        font-size:11px;
        min-width:80px;
        word-break:break-word;
        line-height:1.4;
    }
    
    .document th{
        font-size:10px;
        padding:10px 5px;
        letter-spacing:0.2px;
        text-transform:none;
        font-weight:600;
    }
    
    hr{
        margin:40px 0;
    }
    
    .gallery{
        grid-template-columns:1fr;
        gap:15px;
        margin:20px 0;
    }
    
    .gallery-item img{
        height:220px;
    }
    
    .close{
        top:10px;
        right:15px;
        font-size:28px;
    }
    
    .modal-content{
        width:95%;
        max-height:85vh;
    }
}

/* Responsive - Petit mobile */
@media (max-width:480px){
    .navbar{
        padding:12px 15px;
        font-size:16px;
    }
    
    .hero-wrapper{
        padding:10px;
    }
    
    .hero{
        border-radius:16px;
    }
    
    .hero img{
        height:280px;
    }
    
    .hero-text h1{
        font-size:18px;
        line-height:1.4;
    }
    
    .document{
        margin:10px;
        padding:25px 15px;
        border-radius:16px;
    }
    
    h2{
        font-size:20px;
        margin-top:25px;
        margin-bottom:12px;
    }
    
    h3{
        font-size:18px;
        margin-top:25px;
        margin-bottom:15px;
    }
    
    h4{
        font-size:16px;
        margin-top:20px;
        margin-bottom:12px;
    }
    
    p{
        font-size:14px;
        line-height:1.6;
    }
    
    ul, ol{
        margin-left:20px;
    }
    
    li{
        font-size:14px;
        margin-top:6px;
    }
    
    .document table{
        font-size:10px;
    }
    
    .document th, 
    .document td{
        padding:6px 4px;
        font-size:10px;
        min-width:70px;
        word-break:break-word;
        line-height:1.3;
    }
    
    .document th{
        font-size:9px;
        padding:8px 4px;
        letter-spacing:0.1px;
        text-transform:none;
        font-weight:600;
    }
    
    hr{
        margin:30px 0;
    }
    
    .gallery-item img{
        height:180px;
    }
    
    .close{
        top:5px;
        right:10px;
        font-size:24px;
    }
    
    .modal-content{
        width:98%;
        max-height:80vh;
    }
}

.document table{
    margin:30px 0;
    box-shadow:0 4px 15px rgba(0,0,0,0.1);
    border-radius:12px;
    overflow:hidden;
}

h2,h3,h4{
    margin-top:40px;
    color:#2d3748;
}

h2{
    font-size:32px;
    font-weight:700;
    margin-bottom:20px;
}

h3{
    font-size:26px;
    font-weight:600;
    color:#667eea;
    margin-bottom:25px;
}

h4{
    font-size:22px;
    font-weight:600;
    color:#764ba2;
    margin-bottom:20px;
}

h2 a{
    color:#667eea;
    text-decoration:none;
    transition:all 0.3s ease;
    border-bottom:2px solid transparent;
}

h2 a:hover{
    color:#764ba2;
    border-bottom-color:#764ba2;
}

p{
    margin-top:15px;
    line-height:1.8;
    font-size:16px;
    color:#4a5568;
}

p strong{
    color:#2d3748;
    font-weight:600;
}

ul{
    margin-left:40px;
    margin-top:15px;
}

ul ul{
    margin-left:30px;
    margin-top:8px;
}

ol{
    margin-left:40px;
    margin-top:15px;
}

ol li{
    margin-top:10px;
    padding-left:10px;
}

li{
    margin-top:10px;
    line-height:1.8;
    font-size:16px;
    color:#4a5568;
}

table{
    width:100%;
    margin-top:30px;
    border-collapse:collapse;
    table-layout:auto;
}

/* Pour les tableaux à 3 colonnes ou plus sur mobile */
@media (max-width:768px){
    table th:nth-child(3),
    table td:nth-child(3),
    table th:nth-child(n+4),
    table td:nth-child(n+4){
        font-size:10px !important;
        padding:6px 4px !important;
    }
}

th,td{
    border:1px solid #e2e8f0;
    padding:16px;
    text-align:left;
}

th{
    background:linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color:#fff;
    font-weight:600;
    text-transform:uppercase;
    font-size:14px;
    letter-spacing:0.5px;
}

tr:nth-child(even){
    background:#f7fafc;
}

tr:hover{
    background:#edf2f7;
    transition:background 0.2s ease;
}

hr{
    margin:60px 0;
    border:none;
    height:2px;
    background:linear-gradient(90deg, transparent, #667eea, transparent);
}

/* Galerie d'images identité visuelle */
.gallery{
    display:grid;
    grid-template-columns:repeat(2, 1fr);
    gap:20px;
    margin:30px 0;
}

.gallery-item{
    position:relative;
    overflow:hidden;
    border-radius:12px;
    box-shadow:0 4px 15px rgba(0,0,0,0.1);
    transition:transform 0.3s ease, box-shadow 0.3s ease;
    cursor:pointer;
    background:#f7fafc;
}

.gallery-item:hover{
    transform:translateY(-5px);
    box-shadow:0 8px 25px rgba(102,126,234,0.3);
}

.gallery-item img{
    width:100%;
    height:300px;
    object-fit:cover;
    display:block;
    transition:transform 0.3s ease;
}

.gallery-item:hover img{
    transform:scale(1.05);
}

/* Modal pour zoom */
.modal{
    display:none;
    position:fixed;
    z-index:1000;
    left:0;
    top:0;
    width:100%;
    height:100%;
    background-color:rgba(0,0,0,0.9);
    animation:fadeIn 0.3s;
    cursor:pointer;
}

.modal-content{
    margin:auto;
    display:block;
    width:90%;
    max-width:1200px;
    max-height:90vh;
    object-fit:contain;
    position:absolute;
    top:50%;
    left:50%;
    transform:translate(-50%,-50%);
    animation:zoomIn 0.3s;
}

.close{
    position:absolute;
    top:20px;
    right:40px;
    color:#fff;
    font-size:40px;
    font-weight:bold;
    cursor:pointer;
    z-index:1001;
    transition:color 0.3s ease;
}

.close:hover{
    color:#667eea;
}

@keyframes fadeIn{
    from{opacity:0;}
    to{opacity:1;}
}

@keyframes zoomIn{
    from{transform:translate(-50%,-50%) scale(0.8);}
    to{transform:translate(-50%,-50%) scale(1);}
}

