:root{
  --max: 1500px;
  --text: #111;
  --muted: #6b7280;
  --line: rgba(0,0,0,.10);
  --bg: #fafafa;
  --card: #fff;
  --accent: #1877f2;
}

/* Base */
*{ box-sizing:border-box; }
html, body{ margin:0; padding:0; }
body{
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 18px;
  color: var(--text);
  background: var(--bg);
  line-height: 1.45;
}

/* ===== Header ===== */
.site-header{
  background: #2f5d50;/*teal */
}

.header-top{
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.5rem;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.header-top img{
  width: 200px;
}

.title .titlename{
  display:inline-block;
  font-weight: 800;
  line-height: 1.15;
  font-style: oblique;
  font-size: 2.5rem;
  color: white;
}

/* Menu horizontal light */
.menuH{
  color:blue;
  max-width: var(--max);
  margin: 20px 0px 0px 0px;
  /*padding: .35rem 1rem .75rem;*/
  display:flex;
  align-items:center;
  justify-content:center;
  gap: .35rem;
  flex-wrap: wrap;
}

.menuH a{
  text-decoration:none;
  background-color: white;
  color:black;
  font-weight: 650;
  font-size: .95rem;
  padding: .42rem .72rem;
  border-radius: 999px;
  transition: background .15s ease, transform .15s ease;
}

.menuH a:hover{
  background: darkgray;
  transform: translateY(-1px);
}

.site-header hr{
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0;
}

/* ===== Layout 2 colonnes ===== */
.layout{
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem;
  display:flex;
  gap: 1.2rem;
  align-items:flex-start;
}

.leftSide{
  width: 250px;
  flex: 0 0 280px;
}

.main{
  flex: 1 1 auto;
  min-width: 0;
  border-style: none none none solid;
  border-width: 1px;
  border-color: #aaa;
}

/* Responsive : 1 colonne */
@media (max-width: 900px){
  .menuH{ justify-content:flex-start; }
  .layout{ flex-direction:column; }
  .menu{ width: 100%; flex: none; }
}

/* ===== Ressources / Social ===== */
.social-links{
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-bottom: .6rem;
}

.social-links a{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.6em;
  height: 1.6em;
  font-size: 1.8rem;
  padding: 0;
  text-decoration: none;
}

.social-links .fa-facebook{ color:#1877f2; }
.social-links .fa-instagram{ color:#e4405f; }

/* Titres (simple & propre) */
h1, h2, h3, h4{ margin: 0.9rem 0 0.4rem; }
h1{ font-size: 1.6rem; }
h2{ font-size: 1.25rem; }
h3{ font-size: 1.05rem; font-style: italic; }
h4{ font-size: 1rem; }

/* ===== SweetAlert form ===== */
.swal2-popup .form{
  display:flex;
  flex-direction:column;
  gap:.7rem;
}

.swal2-popup .input,
.swal2-popup textarea{
  width:100%;
  padding:.55rem .7rem;
  font-size:.95rem;
  border-radius:10px;
  border:1px solid rgba(0,0,0,.20);
  font:inherit;
}

.swal2-popup textarea{
  min-height:110px;
  resize:vertical;
}

.swal2-popup #contactBtn{
  width: fit-content;
  padding: .55rem 1.2rem;
  border-radius: 999px;
  border: none;
  background: var(--accent);
  color: #fff;
  font-weight: 650;
  cursor: pointer;
}

.swal2-popup #contactStatus{
  display:block !important;
  min-height: 1.2em !important;
  margin: .4rem 0 0 !important;
  color: #111 !important;
  font-size: .95rem !important;
  background: transparent !important;
}

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

.intro-quartiers {
    max-width: 900px;
    margin: 0 auto 30px auto;
}

.intro-quartiers h1 {
    text-align: center;
    margin-bottom: 25px;
}

.intro-quartiers p {
    line-height: 1.6;
    margin-bottom: 15px;
}

.carte-section {
    margin: 30px 0;
}

.carte-section h2 {
    text-align: center;
    margin-bottom: 20px;
}

.carte-quartiers {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 auto;
}

.contact-quartier {
    text-align: center;
    margin: 35px 0;
}

.contact-quartier p {
    margin-bottom: 20px;
}

.bouton-contact {
    display: inline-block;
    padding: 12px 22px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
}

.bouton-contact i {
    margin-right: 8px;
}
.correspondants-quartiers {
    max-width: 1000px;
    margin: 40px auto;
}

.correspondants-quartiers h2 {
    text-align: center;
    margin-bottom: 10px;
}

.intro-correspondants {
    text-align: center;
    margin: 0 auto 25px;
}

.liste-correspondants {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.correspondant {
    position: relative;
    overflow: hidden;

    padding: 25px 15px 20px;
    text-align: center;

    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;

    box-shadow: 0 2px 7px rgba(0, 0, 0, 0.08);
}

/* Bande colorée */
.correspondant::before {
    content: "";
    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 7px;

    background: var(--couleur-quartier);
}

/* Couleurs reprises de la carte des quartiers */

.quartier-benoit {
    --couleur-quartier: #f8f878;
}

.quartier-centre {
    --couleur-quartier: #f88098;
}

.quartier-floralies {
    --couleur-quartier: #b8b8b8;
}

.quartier-escoublac {
    --couleur-quartier: #b8f878;
}

.quartier-pins {
    --couleur-quartier: #c078f8;
}

.quartier-guezy {
    --couleur-quartier: #78f8f8;
}

.nom-quartier {
    min-height: 44px;
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 14px;
}

.correspondant a {
    display: inline-block;

    padding: 9px 14px;
    border-radius: 6px;

    text-decoration: none;
    font-weight: 600;

    background: #eee;
    color: #333;

    transition: background 0.2s, transform 0.2s;
}

.correspondant a:hover {
    background: #ddd;
    transform: translateY(-1px);
}

.correspondant a i {
    margin-right: 7px;
}


/* Tablette */

@media (max-width: 800px) {
    .liste-correspondants {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* Téléphone */

@media (max-width: 550px) {
    .liste-correspondants {
        grid-template-columns: 1fr;
    }

    .nom-quartier {
        min-height: auto;
    }
}
footer{
  text-align:center;
  padding:30px 20px;
  border-top:1px solid #ddd;
  background:#f6f2e9;
  color:#6b7280;
  font-size:14px;
}

