/*
Theme Name: Communes
Theme URI: https://exemple.com
Author: Francky
Description: Thème WordPress léger pour petites communes
Version: 1.0
*/

/* Reset de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Corps du site */
body {
    font-family: Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    background-color: #f9f9f9;
    color: #333;
    padding: 0;
}

/* ========================= */
/*        HEADER             */
/* ========================= */

.site-header {
    background-color: transparent;
    margin-bottom: 20px;
}

/* Conteneur du bandeau */
.header-conteneur {
    background: linear-gradient(to bottom, #e6f2ff, #005580);
    border-radius: 8px;
    overflow: hidden;
    padding: 20px;
}

/* Logo + titre + slogan */
.logo-titre-wrapper {
    display: flex;
    align-items: center; /* aligne verticalement logo + texte */
    gap: 20px;
}

/* Bloc titre + slogan */
.titre-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.2;
}

/* Titre + slogan fusionnés */
.site-title {
    font-size: 2em;
    margin: 0;
    font-weight: 700;
    text-align: left;
    display: flex;
    flex-wrap: wrap; /* permet de passer à la ligne sur mobile */
    gap: 6px;
}

/* Slogan dans le <span> */
.site-title .site-slogan {
    font-weight: 400;
    font-size: 1.2rem;
    opacity: 0.85;
}

/* Navigation */
.menu-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 15px;
}

.menu-principal {
    list-style: none;
    display: flex;
    gap: 20px;
    padding: 0;
    margin: 0;
}

.menu-principal li a {
    text-decoration: none;
    color: white;
    font-weight: bold;
}

.menu-principal li a:hover {
    text-decoration: underline;
}

/* Logo */
.communes-header-image img {
    max-height: 100px;
    height: auto;
    width: auto;
}

/* nouveau code alignement vertical slogan */

.site-title {
    font-size: 2em;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: baseline; /* aligne le slogan sur la ligne de base du titre */
    gap: 6px;
    flex-wrap: wrap;
}

.site-title .site-slogan {
    font-size: 1.2rem;
    font-weight: 400;
    opacity: 0.85;
    position: relative;
    top: 0.2em; /* descend légèrement le slogan pour l’aligner visuellement */
}





/* ========================= */
/*          MAIN             */
/* ========================= */

main {
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
    margin: 0 auto 20px auto;
    max-width: 1200px;
}

/* ========================= */
/*         FOOTER            */
/* ========================= */

footer {
    text-align: center;
    font-size: 0.9em;
    color: #666;
    padding: 10px;
    border-top: 1px solid #ccc;
}

footer a {
    color: #005580;
    text-decoration: none;
    margin: 0 5px;
}

footer a:hover {
    text-decoration: underline;
}

/* ========================= */
/*     IMAGE D'EN-TÊTE       */
/* ========================= */

.hero img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 20px;
}

/* ========================= */
/*     PRÉSENTATION          */
/* ========================= */

.intro {
    background-color: #eef6f9;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 30px;
}

.intro h2 {
    color: #005580;
    margin-bottom: 10px;
}

/* ========================= */
/*     BLOCS ILLUSTRÉS       */
/* ========================= */

.grid-blocs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.bloc {
    background-color: #ffffff;
    border: 1px solid #ccc;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 0 5px rgba(0,0,0,0.05);
}

.bloc h3 {
    color: #005580;
    margin-bottom: 10px;
}

.bloc i {
    display: block;
    margin-bottom: 10px;
    color: #005580;
}

/* ========================= */
/*     CONTENEUR GLOBAL      */
/* ========================= */

.conteneur {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================= */
/*         IMAGES            */
/* ========================= */

img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

img.hero {
    max-width: 960px;
}

/* Le conteneur du header : tout en colonne, centré */
.header-conteneur {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Bloc logo + titre : côte à côte, centré */
.logo-titre-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Logo */
.communes-header-image img {
    max-height: 70px;
    width: auto;
    display: block;
}

/* Menu centré sous le titre */
.menu-wrapper {
    margin-top: 10px;
}

.menu-principal {
    display: flex;
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0;
    justify-content: center;
}

/* nouveau code */

.site-title {
    margin: 0;
    line-height: 1.2;
    display: flex;
    align-items: center;
    height: 150px; /* même hauteur que le logo */
}

/* police de caractère */

body {
    font-family: 'Poppins', sans-serif;
}
