/*TEST*/
/* Font Imports */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;700&family=Playfair+Display:wght@400;700&family=Overlock:wght@400;700&display=swap');

/* Styles généraux */
body {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #E5D291;
    font-family: 'Open Sans', sans-serif;
    color: #333;
    font-size: 16px;
}

/* Nouvelle barre d'en-tête avec logo et navigation */
#site-header {
    background-color: #EFE3BA;
    padding: 1rem 20px;
    border-bottom: 1px solid #dcd7d0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.header-content {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 1000px;
    position: relative;
    justify-content: center;
    margin-bottom: 1rem;
}

.site-logo {
    height: 100%;
    width: auto;
    border-radius: 5px;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

.site-main-title {
    font-size: clamp(1.8rem, 7vw, 5rem);
    color: #9D521A;
    white-space: nowrap;
    text-align: center;
    width: 100%;
}

.site-main-title .font-higuen {
    font-family: 'Overlock', cursive;
    font-weight: 400;
}

.site-main-title .font-colo {
    font-family: 'Overlock', cursive;
    font-weight: 700;
}

/* Navigation principale */
#main-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    width: 100%;
    max-width: 960px;
}

#main-nav button {
    padding: 0.5rem 1rem;
    color: #bd813d;
    background-color: transparent;
    border: 0px solid #dcd7d0;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
}

#main-nav button:hover {
    color: #e0c19f;
    background-color: #bd813d;
}

/* Bannière principale */
.main-banner {
    width: 100%;
    margin-bottom: 2px;
    overflow: hidden;
}

.main-banner img {
    width: 100%;
    height: clamp(150px, 40vw, 450px);
    object-fit: cover;
    object-position: center bot;
    display: block;
}

/* Contenu principal de la page */
#page-main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
    max-width: 1200px;
    margin: 5px auto;
    background-color: #EFE3BA;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    width: 100%;
}

/* Styles pour le texte de présentation */
.presentation-text {
    color: #9D521A;
    font-size: 1.15rem;
    line-height: 1.6;
    max-width: 1100px;
    text-align: justify;
    padding: 0 15px;
    margin-bottom: 40px;
}

.presentation-text p {
    margin-bottom: 1em;
    font-size: 1.15rem;
    line-height: 1.6;
}

.presentation-text h2 {
    font-family: 'Playfair Display', serif;
    color: #9D521A;
    font-size: 1.75rem;
    text-align: center;
    margin-bottom: 1.5em;
    margin-top: auto;
}

.presentation-text .sutra {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    text-align: center;
    margin-top: 2em;
    margin-bottom: 0;
    font-size: 1.1em;
    color: #CB7B3F;
    line-height: 1.4;
}

.page-main img {
    width: 100%;
    height: auto;
    display: block;
}			
/* Styles spécifiques à contact.html */
#page-main h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    margin-bottom: 25px;
    text-align: center;
}

.contact-info-section,
.contact-map-section,
.contact-form-section {
    width: 100%;
    max-width: 1100px;
    margin-bottom: 40px;
    text-align: center;
}

.contact-info-section p {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.contact-info-section a {
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
}

.contact-info-section a:hover {
    text-decoration: underline;
}

.contact-map-section p{
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.contact-map-section a{
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
}

.contact-map-section a:hover{
    text-decoration: underline
}

#page-main .contact-map-section img{
    width: 100%;
    max-width: 700px;
    height: auto;
    display: block;
    margin: auto;
}

.contact-form-section form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form-section label {
    font-weight: bold;
    color: #555;
    margin-bottom: 5px;
    display: block;
}

.contact-form-section input[type="email"],
.contact-form-section input[type="text"],
.contact-form-section textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #dcd7d0;
    border-radius: 5px;
    font-size: 1rem;
    font-family: 'Open Sans', sans-serif;
    box-sizing: border-box;
}

.contact-form-section textarea {
    min-height: 120px;
    resize: vertical;
}

.contact-form-section button#send-mail-btn {
    padding: 12px 25px;
    background-color: #b89c7d;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: bold;
    transition: background-color 0.3s ease;
    align-self: flex-end;
}

.contact-form-section button#send-mail-btn:hover {
    background-color: #a08a6e;
}

#form-message {
    margin-top: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1.1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: none;
}

#form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

#form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

#form-message .close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: inherit;
    margin-left: 15px;
    padding: 0;
}

#form-message .close-btn:hover {
    opacity: 0.7;
}

/* Styles pour les sections légales (utilisé par mentions-legale.html) */
.legal-section {
    width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
    margin-bottom: 20px;
}

.legal-section h3 {
    font-family: 'Playfair Display', serif;
    color: #333;
    font-size: 1.5rem;
    margin-bottom: 1em;
    text-align: left;
}

.legal-section p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 0.8em;
    text-align: left;
}

/* Pied de page */
#page-footer {
    text-align: center;
    padding: 1rem 0;
    background-color: #e8e3dc;
    color: #555;
    font-size: 0.8rem;
    border-top: 1px solid #dcd7d0;
}

#page-footer a {
    color: #007bff;
    text-decoration: none;
}

/* Nouveaux styles pour la page Equipe */
.team-members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    max-width: 1100px;
    width: 100%;
    margin-top: 40px;
    justify-content: center;
}

.team-member-card {
    background-color: #E5D291;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    color: #4a3a2e;
    height: 100%;
}

.team-member-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    background-color: #bd813d;
    color: #fdfaf5;
}

.team-member-card img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #bd813d;
    margin-bottom: 10px;
    transition: border-color 0.3s ease;
}

.team-member-card:hover img {
    border-color: #fdfaf5;
}

.team-member-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: inherit;
    margin-bottom: 5px;
    flex-grow: 0;
}

.team-member-card p {
    font-size: 0.9rem;
    color: inherit;
    line-height: 1.4;
    margin-bottom: 0;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Styles pour la zone d'affichage de la biographie (non-modal) */
.bio-display-area {
    background-color: #E5D291;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    padding: 30px;
    margin-top: 40px;
    width: 100%;
    max-width: 1000px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease, visibility 0.5s ease;
}

.bio-display-area.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.bio-content-wrapper {
    width: 100%;
    max-width: 700px;
    text-align: justify;
}

.bio-display-area img {
    max-width: 400px;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #CB7B3F;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.bio-display-area h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: #9D521A;
    margin-bottom: 15px;
    text-align: center;
}

.bio-display-area #bio-display-text p {
    font-size: 1.05rem;
    color: #9D521A;
    line-height: 1.6;
    margin-bottom: 1em;
    text-align: justify;
}

.bio-display-area #bio-display-text .sutra {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    text-align: center;
    margin-top: 1.5em;
    margin-bottom: 1.5em;
    font-size: 1.1em;
    color: #CB7B3F;
    line-height: 1.4;
    display: block;
}

.close-bio-button {
    color: #aaa;
    font-size: 36px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 20px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-bio-button:hover,
.close-bio-button:focus {
    color: #9D521A;
    text-decoration: none;
}


/* Media queries pour les appareils mobiles (moins de 768px de large) */
@media (max-width: 767px) {
    #site-header {
        padding: 0.8rem 10px;
    }
    .header-content {
        flex-direction: column;
        position: static;
        margin-bottom: 0.5rem;
    }
    .site-logo {
        height: 60px;
        position: static;
        transform: none;
        margin-bottom: 10px;
    }
    .site-main-title {
        font-size: clamp(1.5rem, 7vw, 2.5rem);
        text-align: center;
        width: auto;
    }
    #main-nav {
        flex-direction: column;
        gap: 0.5rem;
    }
    #main-nav button {
        font-size: 1rem;
        padding: 0.6rem 1.2rem;
    }
    .main-banner {
        min-height: 150px;
    }
    .main-banner img {
        height: clamp(100px, 30vw, 200px);
    }
    #page-main {
        padding: 20px 10px;
        margin: 10px auto;
        max-width: 100%;
    }
    .presentation-text {
        font-size: 1.05rem;
        line-height: 1.5;
        padding: 0 5px;
    }
    .presentation-text p {
        font-size: 1.05rem;
        line-height: 1.5;
    }
    .presentation-text h2 {
        font-size: 1.4rem;
        margin-bottom: 1em;
    }
    .presentation-text .sutra {
        font-size: 0.95rem;
        line-height: 1.3;
        margin-top: 1.5em;
    }
    #page-main h2 {
        font-size: 2rem;
    }
    .contact-info-section p {
        font-size: 1.05rem;
    }
    .contact-form-section {
        padding: 0 10px;
    }
    .contact-form-section input,
    .contact-form-section textarea,
    .contact-form-section button {
        font-size: 1rem;
        padding: 10px;
    }
    #form-message {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px;
    }
    #form-message .close-btn {
        align-self: flex-end;
        margin-left: 0;
    }
    #page-footer button {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }
    #page-footer {
        font-size: 0.75rem;
    }

    /* Ajustements spécifiques pour les mentions légales sur mobile */
    .legal-section {
        padding: 0 10px;
    }
    .legal-section p {
        font-size: 1.05rem;
        text-align: left;
    }
    .legal-section h3 {
        font-size: 1.5rem;
    }

    /* Ajustements pour la grille d'équipe sur mobile */
    .team-members-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
    }

    .team-member-card {
        padding: 15px;
    }

    .team-member-card img {
        width: 120px;
        height: 120px;
        margin-bottom: 10px;
    }

    .team-member-card h3 {
        font-size: 1.3rem;
    }

    .bio-display-area {
        padding: 20px;
        margin-top: 30px;
    }
    .bio-display-area img {
        width: 120px;
        height: 120px;
    }
    .bio-display-area h3 {
        font-size: 1.8rem;
    }
    .bio-display-area #bio-display-text p {
        font-size: 1rem;
    }
    .close-bio-button {
        font-size: 30px;
        top: 5px;
        right: 15px;
    }
}

/* Styles pour les iframes (cartes Google Maps) */
iframe {
    width: 100%;
    max-width: 700px;
    height: 450px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-top: 20px;
    margin-bottom: 20px;
}

@media (max-width: 767px) {
    iframe {
        height: 300px;
    }
}
