:root {
    --color-1: #fbd9be;
    --color-2: #F4AAB7;
    --color-3: #ED5104;
    --color-3-30: rgba(237, 81, 4, 0.3);
}

body {
    background: var(--color-1);
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

a {
    color: var(--color-3);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.main-nav a {
    font-size: 18px;
}

/* Supprime le fond de sélection sur mobile */
button,
a,
input,
textarea, span {
    -webkit-tap-highlight-color: transparent; /* iOS/Chrome */
    -moz-tap-highlight-color: transparent;    /* Firefox */
    tap-highlight-color: transparent;         /* future standard */
}

body:not(.home) article {
    padding: 50px;
}

button, .btn-red, .carte-bouton, .submit-btn {
    background: var(--color-3);
    color: white;
    font-size: 16px;
    padding: 15px 30px;
    border-radius: 99px;
    cursor: pointer;
    border: none; 
    box-shadow: inset 0 0 0 2px var(--color-3); 
}

button:hover, .btn-red:hover, .carte-bouton:hover, .submit-btn:hover {
    background-color: white !important;
    color: var(--color-3);
}

 .btn-red.disabled,
        .btn-red[disabled], .btn-red.disabled:hover,
        .btn-red[disabled]:hover {
            background-color: #ccc !important;
            border-color: black !important;
            cursor: not-allowed;
            color: black !important;
            box-shadow: inset 0 0 0 2px black;
        }
       

html{
    margin: 0;
    padding: 0;
}


.site-logo img {
    height: 60px;
    width: auto;
}

.site-main {
    padding-top: 100px; 
    position: relative;
}

/* Header */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    display: flex;
    align-items: center; /* centre verticalement logo et nav */
    justify-content: space-between;
    background: white;
    color: var(--color-3);
    padding: 0 50px;
    border-bottom: 1px solid var(--color-3-30);
    z-index: 1000;
    box-sizing: border-box;
}

.header-container {
    display: flex;
    align-items: center;
    gap : 50px;
}

.header-buttons {
    display: flex;
    gap: 1rem;
}

/* Menu desktop */
.main-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.main-nav li {
    margin: 0 10px;
}

/* Burger menu (desktop hidden) */
#menu-toggle {
    display: none;
}

.cartes-soirees {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.carte-soiree {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  border: 1px solid #ddd;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.carte-image {
  flex: 1;
  min-width: 200px;
  min-height: 200px;
  background-size: cover;
  background-position: center;
}

.carte-contenu {
  flex: 2;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.carte-titre {
  margin: 0 0 10px;
}

.carte-date {
  font-size: 0.9em;
  color: #666;
  margin: 0 0 15px;
}

.carte-extrait {
  flex-grow: 1;
  margin-bottom: 15px;
}

.places {
  display: inline-block;
  font-weight: bold;
  color: #1d3557;
}

.places.complet {
  color: #e63946;
}


/* Mobile */
@media screen and (max-width: 768px) {
.carte-soiree {
  
  flex-direction: column;
 
}
body:not(.home) article {
    padding: 30px 15px;
}
    #header {
        padding: 0 10px;
    }

    .header-buttons {
        flex-direction: row;
    }

    /* Burger visible sur mobile */
    #menu-toggle {
        display: flex;
        position: absolute;
        top: 50%;
        right: 15px;
        transform: translateY(-50%);
        background: white;
        color: var(--color-3);
        font-size: 1.8rem;
        border: 2px solid var(--color-3);
        border-radius: 50%;
        width: 50px;
        height: 50px;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 1100;
    }

    /* Masquer le bouton Contact dans le header */
    .btn-contact {
        display: none;
    }

    /* Menu plein écran */
    .main-nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: white;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 0;
        margin: 0;
        transition: left 0.3s ease;
        z-index: 1000;
    }

    .main-nav.active {
        left: 0;
    }

    .main-nav ul {
        flex-direction: column;
        width: 100%;
        text-align: center;
    }

    .main-nav li {
        margin: 1.5rem 0;
    }
}

/* Détecter barre admin */
body.admin-bar #header {
    top: 32px;
}

body.admin-bar .main-nav {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar #header { top: 46px; }
    body.admin-bar .main-nav { top: 46px; }
}


