section.head {
    margin: 110px 0 0 0;
}
div.head {
    width: 100%;
    height: 25vh;
    background-size: cover;
    background-position: center center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
div.head h1 {
    text-align: center;
    text-align: left;
    color: #fff;
    font-size: 3em;
    margin: 0;
    padding: 10px 50px;
    border-radius: 15px;
    text-shadow: 4px 3px 10px rgba(0, 0, 0, 1);
    position: relative;
}
div.head h1 strong {
    display: block;
    line-height: 100px;
}

main h2 {
    text-align: center;
    color: #209551;
    font-size: 3em;
}
main h3 {
    text-decoration: underline;
}

main div.content {
    width: 100%;
    max-width: 1200px;
    margin: -20px auto 50px;
    background: #fff;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 9;
    padding: 50px;
}
main div.content p {
    text-align: justify;
}
main div.content img.illus {
    float: right;            /* <--- CATASTROPHE POUR LA CARTE */
    max-width: 400px;
    height: auto;
    margin: 0 0 0 20px;      /* <--- DÉCALE TOUTES LES TUILES DE LA CARTE */
}
#open-dechets {
    padding: 10px 16px;
    background: #2a7ae2;
    border: none;
    color: #fff;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}
#open-dechets:hover {
    background: #1f5fb1;
}

main div.content img.dechets {
    display: inline-block;
    float: none;
    clear: both;
    min-width: calc(50% - 22px);
}

iframe.smictom {
    width: 100%; 
    height: 862px;
}

main div.content div.horaires {
    display: inline-block;
    width: calc(50% - 2px);
    margin: 20px 0;
}

div.actions {
    margin: 20px 0;
    display: flex;
    gap: 15px;
}
div.actions a {
    display: block;
    background: #fff;
    color: #209551;
    border: solid 1px #209551;
    padding: 0 15px;
    height: 40px; 
    line-height: 40px; 
    border-radius: 20px;
    text-decoration: none;
    transition: .5s;
}
div.actions a:hover {
    background: #209551;
    color: #fff;
    transition: .5s;
}

ul.liste-numeros {
    list-style: none;
    padding-left: 0;
    margin: 10px 0 20px;
}
ul.liste-numeros li {
    margin: 4px 0;
}

/* Un peu d'air sous les sous-titres éventuels (h4) */
main h4 {
    margin-top: 25px;
    margin-bottom: 10px;
}

main a.utile {
    color:#209551;
}

article {
    width: 100%;
    max-width: 1200px;
    margin: 30px auto;
    display: flex;
    background: #fff;
}

article form#form {
    width: 70%;
    padding: 20px;
}
article form#form input[type="text"] {
	width: 100%;
	height: auto;
	padding: 15px;
    outline: #000;
    border-radius: 5px;
    border: solid 1px #209551;
    font-family: "Merriweather", serif;
}
article form#form textarea {
	width: 100%;
	height: 200px;
	font-size: 1em;
    outline: #000;
	padding: 10px;
    border-radius: 5px;
    border: solid 1px #209551;
    font-family: "Merriweather", serif;
}
article form#form button {
	width: auto;
	height: auto;
	padding: 15px 30px;
	border-radius: 5px;
	color: #fff;
	font-weight: bold;
    border: solid 1px #209551;
	background: #209551;
    font-family: "Merriweather", serif; 
    transition: 0.5s;
}
article form#form button:hover {
	color: #209551;
	background: #fff;
    transition: 0.5s;
}

main div.coordonnees {
    width: 30%;
    background: #209551;
	padding: 20px;
	color: #fff;
    box-shadow: 2px 2px 5px 1px rgba(0,0,0,0.3);
}
main div.coordonnees img {
	display: block;
    width: 100px;
    margin: 0 auto;
    height: auto;
}
div.coordonnees p {
	font-size: 1.2em;
}
div.coordonnees p.image {
	text-align: center;
}
div.coordonnees p.head {
	font-size: 1.5em;
	border-bottom: solid 1px #fff;
}
div.coordonnees p a {
	color: #fff;
	text-decoration: none;
}

@media screen and (max-width: 980px) {
    article {
        width: calc(100% - 100px);
        display: block;
        margin: 50px;
    }    
    form, 
    div.coordonnees {
        width: 100%;
    }    
    div.coordonnees {
        border-radius: 0 0 16px 16px;
    }    
}

/* Salle polyvalente */
.salles-commune {
    width: 100%;                 /* suit le max-width de main div.content */
    margin: 30px 0;
    padding: 30px 30px 40px;
    background: linear-gradient(
        135deg,
        rgba(0, 90, 150, 0.05),
        rgba(0, 149, 81, 0.08)
    );
    border-radius: 16px;
    box-sizing: border-box;
}

.salles-commune-header {
    text-align: center;
    margin-bottom: 25px;
}

.salles-commune-header p {
    margin: 0;
    font-size: 1em;
    opacity: 0.9;
}

.salles-grid {
    display: grid;
    gap: 20px;
}

@media (min-width: 900px) {
    .salles-grid {
        grid-template-columns: 2fr 1.4fr;
    }
}

.salle-card {
    background: #fff;
    border-radius: 14px;
    padding: 20px 22px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.salle-card h3 {
    margin-top: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5em;
}

.salle-emoji {
    font-size: 1.5em;
}

.salle-intro {
    margin: 4px 0 14px;
    font-size: 1em;
    opacity: .9;
}

.tarifs-table-wrapper {
    overflow-x: auto;
    margin-bottom: 14px;
}

/* Desktop: rien de spécial (table normale) */
.tarifs-table {
    width: 100%;
    border-collapse: collapse;
  }
  
  .tarifs-table th,
  .tarifs-table td {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(0,0,0,.12);
  }
  
  .tarifs-table th.center,
  .tarifs-table td.center { text-align: center; }
  
  .tarifs-table thead th {
    background: rgba(0, 90, 150, 0.06);
    font-weight: 600;
}

.tarifs-table tbody tr:nth-child(odd) {
    background: rgba(0, 0, 0, 0.015);
}

.tarifs-intitule {
    font-weight: 600;
}

.tarifs-deposit {
    margin: 6px 0 14px;
    font-size: 1em;
}

.tarifs-deposit strong {
    font-weight: 700;
}

  /* Mobile: tableau -> cartes */
  @media (max-width: 640px) {
    .tarifs-table {
      border: 0;
      padding: 0;
    }
    .tarifs-table thead {
      display: none; /* on cache l'en-tête */
    }
  
    .tarifs-table,
    .tarifs-table tbody,
    .tarifs-table tr,
    .tarifs-table td {
      display: block;
      width: 100%;
    }
  
    .tarifs-table tr {
      border: 1px solid rgba(0,0,0,.12);
      border-radius: 12px;
      padding: 10px 12px;
      margin: 12px 0;
      background: #fff;
    }
  
    .tarifs-table td {
      border: 0;
      padding: 8px 0;
      display: flex;
      align-items: baseline;
      justify-content: space-between;
      gap: 12px;
    }
  
    /* le label à gauche (reprend le data-label) */
    .tarifs-table td::before {
      content: attr(data-label);
      font-weight: 700;
      opacity: .75;
      text-align: right;
      padding-right: 10px;
    }

    .tarifs-table td:not(.tarifs-intitule) {
        justify-content: space-between;
      }
  
    .tarifs-table td.center {
      text-align: right; /* au cas où */
    }
  
    /* Optionnel: mettre le "Type de location" en titre */
    .tarifs-table td.tarifs-intitule {
      font-weight: 700;
    }
    .tarifs-table td.tarifs-intitule::before{
      opacity: .85;
    }
  }

.salle-contact h4,
.clubhouse-infos h4 {
    margin: 12px 0 6px;
    font-size: 1em;
}

.salle-contact p,
.clubhouse-infos p {
    margin: 0 0 6px;
    font-size: 1em;
}

.phone-reveal-btn {
    margin-left: .2rem;
    border: none;
    padding: .25rem .65rem;
    border-radius: 999px;
    font-size: 1em;
    cursor: pointer;
    background: rgba(0, 90, 150, 0.1);
    color: #000;
}

.phone-reveal-btn:hover {
    background: rgba(0, 90, 150, 0.18);
}

.phone-number-link {
    font-weight: 600;
    text-decoration: none;
    color: #209551;
}

.clubhouse-list {
    padding-left: 1.1rem;
    margin: .2rem 0 0;
    font-size: 1em;
}

.clubhouse-list li {
    margin-bottom: .25rem;
}

.salle-note {
    margin-top: .6rem;
    font-size: 1em;
    opacity: .85;
}

@media (max-width: 900px) {
    section.head {
        margin: 60px 0 0 0;
    }
    main div.content {
        padding: 20px;
    }
    .plan-grid {
        gap: 1px;
    }

    article {
        margin: 0;
        padding: 0;
        width: 100%;
    }
    article form#form {
        width: 100%;
    }
    main div.coordonnees {
        width: 100%;
        border-radius: 16px;
    }

    div.actions a {
        height: auto;
        line-height: 20px;
        padding: 10px;
        text-align: center;
    }

    .salle-card {
        margin: 0;
    }

}
@media (max-width: 750px) {
    main div.content img.illus {
        float: none;
        margin: 5px auto;
        display: block;
        width: 100%;
    }
}
@media (max-width: 640px) {
    thead {
        display: table-row-group;
    }

}
@media (max-width: 450px) {
    main div.content {
        padding: 5px;
    }
    div.actions {
        display: block;
    }
    div.actions a {
        margin: 5px 0;
    }
}
