
/* ------------------------------------ */
/* Essentiels */
/* ------------------------------------ */
body {
    font-family: var(--ma-police);
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

header {
    background-color: #f6f6f6;
    color: #000;
    text-align: center;
    padding: 30px 10px;
}

.logo {
    height: 60px;
    margin-bottom: 10px;
}

.container{
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ------------------------------------ */
/* Styles de colonnes et autres */
/* ------------------------------------ */

.hero {
    background: url('img2_fond.jpg') center/cover no-repeat;
    color: white;
    padding: 60px 20px;
    margin-bottom: 30px;
    min-height:400px;
}

.style0 {
    padding: 20px;
}

.style1 {
    background: white;
    color:#000;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.style2 {
    background: var(--main-color);
    color:#fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.50);
    transition: transform 0.3s ease;
}

/* Liste sans puces */
.ul-icons { list-style: none; margin: 0; padding: 0; }

.ul-icons li{
  position: relative;
  padding-left: 44px;          /* place pour l’icône */
  margin: 10px 0;
}

.ul-icons{
  --icon: "check";             /* ex: "check", "star", "done" … */
  --bg: var(--main-color);
  --fg: #fff;
}

/* Icône custom en pseudo-élément */
.ul-icons li::before{
  content: var(--icon);
  font-family: "Material Icons Round";  /* <-- variante arrondie */
  font-style: normal;
  font-weight: normal;
  font-feature-settings: "liga" 1;      /* ligatures ON */
  font-size: 20px;
  line-height: 1;

  display: grid; place-items: center;
  width: 28px; height: 28px;
  border-radius: 50%;                   /* rond */
  background: var(--bg);
  color: var(--fg);

  position: absolute; left: 0; top: 2px;
  box-shadow: 0 1px 2px rgba(0,0,0,.06);
}



/* ------------------------------------ */
/* Containeurs, Rows et Colonnes Responsives  */
/* ------------------------------------ */

/* Conteneur centré */
.container{
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Lignes & colonnes */
.row{
  display: flex;
  flex-wrap: wrap;
  gap: 16px;          /* gutter */
}
.col{
  flex: 0 0 100%;
  max-width: 100%;
}

/* Fractions (actives à partir de 768px) */
@media (min-width: 768px){
  .col-1-1 { flex-basis: 100%; max-width: 100%; }

  .col-1-2 { flex-basis: calc((100% - 16px)/2); max-width: calc((100% - 16px)/2); }

  .col-1-3 { flex-basis: calc((100% - 32px)/3); max-width: calc((100% - 32px)/3); }
  .col-2-3 { flex-basis: calc(2*(100% - 32px)/3 + 16px); max-width: calc(2*(100% - 32px)/3 + 16px); }

  .col-1-4 { flex-basis: calc((100% - 48px)/4); max-width: calc((100% - 48px)/4); }
  .col-3-4 { flex-basis: calc(3*(100% - 48px)/4 + 32px); max-width: calc(3*(100% - 48px)/4 + 32px); }
}

/* ------------------------------------ */
/* Liste des etablissements */
/* ------------------------------------ */

.liste-etablissements {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.etablissement {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.etablissement:hover {
    transform: scale(1.03);
}

.etablissement h3 {
    margin-top: 0;
    font-size: 1.2em;
    color: var(--main-color);
}

.etablissement p {
    margin: 5px 0;
    font-size: 0.95em;
}

.etablissement .categorie {
    font-size: 0.8em;
    color: #888;
}

footer {
    background-color: #1a1a1a;
    color: white;
    text-align: center;
    padding: 20px;
    font-size: 0.9em;
    margin-top: 40px;
}

/* ------------------------------------ */
/* Liens et Boutons */
/* ------------------------------------ */

a {
    color: var(--main-color);
    text-decoration: none;
}

a.btn {
    display: inline-block;
    background: var(--main-color);
    color: white;
    padding: 10px 16px;
    margin-top: 10px;
    border-radius: 6px;
    font-weight: 600;
}

a.btn:hover {
    background: var(--main-color);
}

/* ------------------------------------ */
/* Fenêtre Modale */
/* ------------------------------------ */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 60px;
    left: 0; top: 0;
    width: 100%; height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: #fff;
    margin: auto;
    padding: 30px;
    border: 1px solid #888;
    width: 90%;
    max-width: 600px;
    border-radius: 10px;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

/* ------------------------------------ */
/* Formulaires & Inputs */
/* ------------------------------------ */

input,
select,
textarea {
  width: 100%;
  max-width: 100%;
  padding: 12px 16px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background-color: white;
  color: #333;
  font-size: 16px;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  appearance: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--main-color);
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2); /* Adapté à main-color */
}

select {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg width='14' height='10' viewBox='0 0 14 10' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%233498db' stroke-width='2' fill='none' fill-rule='evenodd'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 12px;
  padding-right: 2.5rem;
}

input::placeholder,
textarea::placeholder {
  color: #aaa;
}

input:disabled,
select:disabled,
textarea:disabled {
  background-color: #f0f0f0;
  color: #888;
  cursor: not-allowed;
}
