/* === STYLE GLOBAL HAMTHALLA.COM === */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body { 
    font-family: 'Segoe UI', Arial, sans-serif; 
    line-height: 1.6; 
    color: #333; 
    background: #f8f9fa; 
}

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

/* === HEADER & NAV === */
header { 
    background: #1e3a8a; 
    color: white; 
    padding: 1rem 0; 
    position: sticky; 
    top: 0; 
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

nav { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

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

nav a { 
    color: white; 
    text-decoration: none; 
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover, nav a.active { 
    color: #93c5fd; 
}

/* === HERO - VERSION CORRIGEE === */
.hero { 
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%); 
    color: white; 
    padding: 4rem 0; 
    overflow: hidden; /* FIX 1 : empêche les marges de sortir */
}

.hero-content { 
    display: grid; 
    grid-template-columns: 2fr 1fr; 
    gap: 3rem; 
    align-items: start; /* FIX 2 : le texte en haut, plus de vide en dessous */
}

.hero h1 { 
    font-size: 2.5rem; 
    margin-bottom: 1rem; 
}

.hero .subtitle {
    text-align: left; /* FIX 3 : plus de trous blancs dans le texte */
    margin: 0 0 1rem 0;
    line-height: 1.7;
}
.hero .subtitle:last-child {
    margin-bottom: 0;
}

/* Une seule règle pour l'image du hero */
.hero-content img { 
    width: 100%;
    max-width: 320px;
    height: auto;
    aspect-ratio: 1 / 1;
    border-radius: 50%; 
    border: 5px solid white; 
    object-fit: cover; 
    display: block;
    justify-self: center; /* centre l'image dans sa colonne */
}

/* === BOUTONS === */
.btn { 
    display: inline-block; 
    padding: 12px 28px; 
    background: #f59e0b; 
    color: white; 
    text-decoration: none; 
    border-radius: 6px; 
    font-weight: 600; 
    margin: 10px 10px 0 0;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-outline { 
    background: transparent; 
    border: 2px solid white; 
}

.btn:hover { 
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

/* === SECTIONS === */
section { 
    padding: 3rem 0; 
}
section.hero {
    padding: 4rem 0; /* le hero garde son grand padding */
}

.section-title { 
    font-size: 2rem; 
    color: #1e3a8a; 
    margin-bottom: 2rem; 
    text-align: center; 
}

/* === GRILLES === */
.grid-3 { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 2rem; 
}

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

/* === CARTES === */
.card { 
    background: white; 
    padding: 2rem; 
    border-radius: 8px; 
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.card h3 { 
    color: #1e3a8a; 
    margin-bottom: 1rem; 
}

.card ul {
    padding-left: 1.2rem;
}

.card li {
    margin-bottom: 0.5rem;
}

/* === TAGS === */
.tag { 
    display: inline-block; 
    background: #e0e7ff; 
    color: #1e3a8a; 
    padding: 4px 12px; 
    border-radius: 20px; 
    font-size: 0.85rem; 
    margin: 4px; 
}

/* === FORMULAIRES === */
.form-group { 
    margin-bottom: 1.5rem; 
}

.form-group label { 
    display: block; 
    margin-bottom: 0.5rem; 
    font-weight: 600; 
    color: #1e3a8a; 
}

.form-group input, 
.form-group textarea, 
.form-group select { 
    width: 100%; 
    padding: 12px; 
    border: 2px solid #e5e7eb; 
    border-radius: 6px; 
    font-size: 1rem; 
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus, 
.form-group textarea:focus,
.form-group select:focus { 
    border-color: #3b82f6; 
    outline: none; 
}

/* === FOOTER - VERSION CORRIGEE === */
footer { 
    background: #1e293b; 
    color: #cbd5e1; 
    text-align: center; 
    padding: 2rem 0; 
    margin-top: 0; /* FIX 4 : c'est ça qui faisait ta ligne blanche */
}

footer a {
    color: #93c5fd;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* === RESPONSIVE === */
@media (max-width: 768px) { 
    .hero-content { 
        grid-template-columns: 1fr; 
        text-align: center; 
    }
    
    nav ul { 
        gap: 1rem; 
        font-size: 0.9rem; 
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .grid-3, .grid-2 {
        grid-template-columns: 1fr;
    }
}

.img-responsive {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
}
/* Centre la section */
.hero {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 0;
}

/* Style du tableau centré */
.table-centre {
    margin: 0 auto; /* c'est ça qui centre le tableau */
    border-collapse: collapse;
    width: 80%;
    max-width: 900px;
    text-align: center;
}

.table-centre td {
    border: 0px solid #ccc;
    padding: 1px 1px;
}

.table-centre tr:nth-child(even) {
    background-color: #f9f9f9;
}
/* LA RÈGLE MAGIQUE POUR LES IMAGES RESPONSIVE */
.table-centre img {
    max-width: 100%; /* l'image ne dépasse jamais la cellule */
    height: auto; /* garde les proportions */
    display: block; /* enlève l'espace blanc en dessous */
    margin: 0 auto; /* centre l'image dans la cellule */
    border-radius: 8px; /* optionnel, plus joli */
}

/* MENU HAMTHALLA - ne touche à rien d'autre */
.nav-hamthalla {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
}

.nav-dropbtn {
    background-color: #111;
    color: white;
    padding: 10px 18px;
    font-size: 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.nav-dropdown {
    position: relative;
    display: inline-block;
}

.nav-dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background-color: white;
    min-width: 220px;
    box-shadow: 0px 8px 24px rgba(0,0,0,0.12);
    border-radius: 12px;
    border: 1px solid #eee;
    z-index: 9999;
    list-style: none;
    padding: 8px 0;
    margin: 0;
}

.nav-dropdown-content li a {
    color: #111 !important;
    padding: 12px 20px !important;
    text-decoration: none;
    display: block;
}

.nav-dropdown-content li a:hover {
    background-color: #f5f5f5;
}

.nav-dropdown:hover .nav-dropdown-content {
    display: block;
}
}
/* A coller dans ton style.css général */
img {
    max-width: 100%;
    height: auto;
    display: block;
}
/* FIX URGENCE PUBLICATIONS - à mettre tout en bas du CSS */
html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

#publications, .publications, main {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding-left: 15px;
  padding-right: 15px;
}

/* Force toutes les grilles à passer à la ligne sur mobile */
.publications-grid, .livres, .books {
  display: flex;
  flex-wrap: wrap !important;
  gap: 20px;
}

/* Force chaque livre / carte */
.publications-grid > *, .livres > *, .books > * {
  flex: 1 1 280px;
  max-width: 100%;
  min-width: 0; /* très important */
}
.separateur-image {
    display: block;
    width: 80%;
    max-width: 500px;
    height: 5px; /* ton carré blanc va devenir une fine ligne élégante */
    object-fit: cover; /* évite qu'il s'étire moche */
    margin: 50px auto; /* 50px d'espace au-dessus et dessous, centré */
    opacity: 0.6; /* un peu transparent, plus doux */
    border-radius: 2px;
}