/* ==================================================
   LE THÉÂTRE D'AZAY
   Feuille de style générale
   ================================================== */

* {
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

body {
    margin: 0;
    padding: 0 0 50px;
    background-color: #ffffff;
    color: #4a4038;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 17px;
    line-height: 1.6;
    text-align: center;
}

h1 {
    margin: 35px auto 15px;
    padding: 0 20px;
    text-align: center;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 38px;
    color: #6b1f2a;
}

h2 {
    margin: 40px auto 20px;
    text-align: center;
    font-family: Georgia, "Times New Roman", serif;
    color: #6b1f2a;
}

p {
    margin-left: auto;
    margin-right: auto;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}


/* ==================================================
   MENU
   ================================================== */

nav {
    width: 100%;
    margin: 0 0 30px;
    padding: 13px 15px;
    text-align: center;
    background-color: #6b1f2a;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 17px;
    line-height: 1.8;
}

nav a {
    color: #fffaf2;
    text-decoration: none;
    font-weight: bold;
    white-space: nowrap;
}

nav a:hover {
    text-decoration: underline;
}


/* ==================================================
   PAGE D'ACCUEIL
   ================================================== */

.bienvenue {
    margin: 10px auto 25px;
    padding: 0 20px;
    text-align: center;
    font-family: "Monotype Corsiva", "Segoe Script", cursive;
    font-size: 27px;
    color: #6b1f2a;
}

.photo-container {
    position: relative;
    width: 90%;
    max-width: 1000px;
    margin: 30px auto;
}

.photo-container > img:not(.logo) {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

.photo-container .logo {
    position: absolute;
    width: 140px;
    height: auto;
    top: 20px;
    left: 20px;
    margin: 0;
}

.image-accueil-texte {
    width: 75%;
    max-width: 850px;
    height: auto;
    margin: 35px auto;
}


/* ==================================================
   LA VIE DU THÉÂTRE
   ================================================== */

.intro-vie {
    max-width: 750px;
    margin: 25px auto;
    padding: 0 20px;
    text-align: center;
}

.vie-photo {
    width: 500px;
    max-width: 90%;
    height: auto;
    margin: 30px auto 12px;
}

.photos-cote-a-cote {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 900px;
    margin: 30px auto;
}

.photos-cote-a-cote .vie-photo {
    width: 330px;
    margin: 0;
}

.presentation {
    max-width: 900px;
    margin: 30px auto;
    padding: 25px 35px;
    border: 1px solid #6b1f2a;
    border-radius: 10px;
    background-color: #fffaf7;
    line-height: 1.7;
    background-image: url("cadre-theatre-vide.png");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
}


/* ==================================================
   ANCIENNES PETITES GALERIES
   ================================================== */

.mini-photo {
    width: 180px;
    height: auto;
    margin: 25px auto;
    cursor: pointer;
    border-radius: 8px;
}

.galerie-mini {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    width: 100%;
    margin: 25px auto 40px;
}

.galerie-mini a {
    display: block;
    margin: 0;
}

.galerie-mini .mini-photo {
    width: 180px;
    height: 120px;
    object-fit: cover;
    margin: 0;
}


/* ==================================================
   NOS SPECTACLES
   ================================================== */

.spectacle {
    max-width: 1000px;
    margin: 50px auto;
    padding: 0 20px;
}

.affiche-spectacle {
    width: 400px;
    max-width: 90%;
    height: auto;
    margin: 25px auto;
}

.galerie-spectacle,
.galerie-echanges,
.galerie-haute-tension {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 15px;
    max-width: 900px;
    margin: 30px auto;
}

.galerie-spectacle a,
.galerie-echanges a,
.galerie-haute-tension a {
    display: block;
}

.galerie-spectacle img,
.galerie-echanges img,
.galerie-haute-tension img {
    width: 180px;
    height: 135px;
    object-fit: cover;
    margin: 0;
    border-radius: 8px;
}


/* ==================================================
   ÉVÉNEMENTS
   ================================================== */

.evenement {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    max-width: 1000px;
    margin: 30px auto;
}

.affiche-evenement {
    width: 300px;
    max-width: 90%;
    margin: 30px auto;
}

.synopsis {
    max-width: 900px;
    margin: 35px auto;
    padding: 25px 35px;
    background-color: #fffaf2;
    border: 1px solid #6b1f2a;
    border-radius: 12px;
}

.synopsis h3 {
    margin-top: 0;
    font-family: "Monotype Corsiva", "Segoe Script", cursive;
    font-size: 38px;
    color: #6b1f2a;
    text-align: center;
}

.synopsis p {
    font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
    font-size: 20px;
    line-height: 1.7;
    text-align: left;
}

.intro-magie {
    max-width: 950px;
    margin: 40px auto;
    padding: 30px 40px;
    border: 5px solid #9a6a24;
    box-shadow: 0 4px 10px rgba(80, 50, 20, 0.25),
                inset 0 0 0 4px #ead3a3;
    outline: 3px solid #c49a52;
    outline-offset: 3px;
    border-radius: 12px;
    background-color: #fffaf2;
}

.intro-magie::before {
    content: "✦ ───── ✦";
    display: block;
    text-align: center;
    color: #b08d57;
    font-size: 22px;
}

.cadre-hermann {
    width: 80%;
    max-width: 950px;
    height: auto;
    margin: 30px auto;
}


/* ==================================================
   PAGE NOTRE ÉQUIPE
   ================================================== */

.page-equipe {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 25px 50px;
}

.entete-equipe {
    max-width: 850px;
    margin: 20px auto 45px;
    text-align: center;
}

.petit-titre-equipe {
    margin: 0 auto 8px;
    color: #9a6a24;
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 2px;
    text-align: center;
}

.entete-equipe h1 {
    margin: 10px auto 20px;
    text-align: center;
}

.intro-equipe {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.titre-groupe {
    margin: 50px auto 25px;
}

.grille-equipe {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    align-items: stretch;
    width: 100%;
    margin: 30px auto;
}
.carte-centree {
    grid-column: 1 / -1;
    width: calc((100% - 56px) / 3);
    justify-self: center;
}

}

.carte-equipe {
    background-color: #fffaf2;
    border: 1px solid #d8c5a5;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(80, 50, 20, 0.12);
}

.carte-equipe img {
    width: auto;
    max-width: calc(100% - 30px);
    height: 220px;
    margin: 15px auto;
    object-fit: contain;
    object-position: center;
    background-color: #f4efe6;
}

.texte-equipe {
    padding: 18px 20px 22px;
}

.texte-equipe h3 {
    margin: 0 0 7px;
    text-align: center;
    font-family: Georgia, serif;
    font-size: 26px;
    color: #6b1f2a;
}

.texte-equipe p {
    margin: 8px 0;
    font-size: 16px;
    line-height: 1.5;
    text-align: center;
}

.texte-equipe .fonction-equipe {
    color: #9a6a24;
    font-weight: bold;
    font-size: 17px;
}

.merci-equipe {
    max-width: 800px;
    margin: 60px auto 0;
    padding: 30px;
    text-align: center;
    background-color: #fffaf2;
    border: 1px solid #9a6a24;
    border-radius: 12px;
}

.merci-equipe p {
    font-size: 18px;
    line-height: 1.6;
}

.signature-equipe {
    font-style: italic;
    color: #6b1f2a;
}

.ornement-equipe {
    color: #9a6a24;
    font-size: 25px;
}


/* ==================================================
   GALERIE PHOTOS
   ================================================== */

.page-galerie {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 25px 50px;
}

.intro-galerie {
    max-width: 850px;
    margin: 20px auto 50px;
    text-align: center;
}

.intro-galerie h1,
.intro-galerie p {
    text-align: center;
}

.petit-titre-galerie {
    color: #9a6a24;
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 2px;
}

.rubrique-galerie {
    max-width: 1050px;
    margin: 50px auto;
    text-align: center;
}

.rubrique-galerie > p {
    max-width: 800px;
}

.spectacle-galerie {
    margin: 40px auto;
}

.spectacle-galerie h3 {
    text-align: center;
    font-family: Georgia, serif;
    font-size: 28px;
    color: #6b1f2a;
    margin: 30px 0 20px;
}

.photos-galerie {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 15px;
    max-width: 1000px;
    margin: 25px auto 45px;
}

.photos-galerie a {
    display: block;
}

.photos-galerie img {
    width: 210px;
    height: 150px;
    object-fit: cover;
    margin: 0;
    border-radius: 8px;
    border: 1px solid #d8c5a5;
    box-shadow: 0 3px 8px rgba(80, 50, 20, 0.12);
}


/* ==================================================
   CONTACT
   ================================================== */

.contact-image {
    width: 90%;
    max-width: 900px;
    height: auto;
    margin: 40px auto;
}


/* ==================================================
   ADAPTATION TABLETTE
   ================================================== */

@media (max-width: 900px) {

    .grille-equipe {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .page-equipe,
    .page-galerie {
        padding-left: 20px;
        padding-right: 20px;
    }

    nav {
        font-size: 16px;
    }
}


/* ==================================================
   ADAPTATION TÉLÉPHONE
   ================================================== */

@media (max-width: 600px) {

    body {
        font-size: 16px;
    }

    h1 {
        font-size: 31px;
    }

    nav {
        padding: 10px;
        font-size: 15px;
    }

    nav a {
        white-space: normal;
    }

    .photo-container {
        width: 94%;
    }

    .photo-container .logo {
        width: 90px;
        top: 10px;
        left: 10px;
    }

    .image-accueil-texte {
        width: 92%;
    }

    .grille-equipe {
        grid-template-columns: 1fr;
    }

    .page-equipe,
    .page-galerie {
        padding: 15px;
    }

    .carte-equipe img {
        height: 220px;
    }

    .synopsis {
        margin-left: 15px;
        margin-right: 15px;
        padding: 20px;
    }

    .synopsis p {
        font-size: 18px;
    }

    .photos-galerie img,
    .galerie-spectacle img {
        width: 160px;
        height: 120px;
    }
}