﻿/*
 * =============================================
 * MADAME E-BUREAU - Feuille de styles principale
 * Date : 12 février 2026
 * =============================================
 */

/* =============================================
   RESET
   ============================================= */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    height: 100%;
    background-color: #143F2A;
}

/* =============================================
   HEADER
   ============================================= */
header {
    position: relative;
    background-color: #1B6233;
    padding: 12px 20px;
    flex-wrap: wrap;
}

/* =============================================
   BANNIÈRE
   ============================================= */
#banniere {
    height: 80px;
    margin-top: 0px;
    display: inline-block;
    vertical-align: middle;
    margin-right: auto;
    flex: 0 0 auto;
}

#banniere img {
    display: block;
    height: auto;
    width: auto;
    max-height: 80px;
    max-width: none;
}

.banniere-texte {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: max-content;
    z-index: 2;
}

.banniere {
    font-size: 18px;
    font-family: sans-serif;
    color: #FFFFF1;
    margin-top: 5px;
    margin-bottom: 5px;
    text-align: center;
}

.banniere-texte h2:first-child {
    font-size: 23px;
}

/* =============================================
   MENU
   ============================================= */
.menu-deroulant {
    position: absolute;
    top: 12px;
    right: 20px;
    z-index: 1000;
    display: inline-block;
    margin: 0px;
}

#menuBtn {
    background-color: transparent;
    color: #FFFFF1;
    padding: 12px 24px;
    font-size: 18px;
    border: none;
    cursor: pointer;
    border-radius: 4px;
    font-family: sans-serif;
}

#menuBtn:focus {
    outline: none;
}

/* Sous-menu : styles de base et positionnement */
.sous-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: auto;
    transform: none;
    min-width: 160px;
    background: #1B6233;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    border-radius: 6px;
    padding: 6px 0;
    z-index: 1;
}

.sous-menu a {
    color: #FFFFF1;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-family: sans-serif;
}

.sous-menu a:hover {
    background-color: rgba(255,255,255,0.1);
}

/* Sous-menu aligné sous le bouton menu */
header .menu-deroulant .sous-menu {
    left: auto;
    right: 0;
    transform: none;
}

/* Classe pour afficher le menu (via JS) */
.menu-deroulant.open .sous-menu {
    display: block;
}

/* =============================================
   BODY
   ============================================= */
body {
    background-color: #FFFFF1;
    background-attachment: fixed;
    background-position: center center;
    font-family: sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* =============================================
   TITRES
   ============================================= */
h1 {
    font-family: sans-serif;
    height: auto;
    margin-top: 30px;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    font-size: 35px;
    text-align: center;
    color: #1B6233;
}

h2 {
    font-size: 25px;
    font-family: sans-serif;
    text-align: center;
    color: #1B6233;
    margin-top: 40px;
}

h3 {
    color: #1B6233;
    font-family: sans-serif;
}

/* =============================================
   PARAGRAPHES
   ============================================= */
p {
    font-size: 18px;
    font-family: sans-serif;
    text-align: left;
    color: #1B6233;
    margin: 20px 150px 20px 150px;
    display: block;
}

a {
    text-decoration: none;
}

/* =============================================
   BOUTONS
   ============================================= */
.cta-btn {
    background-color: #1B6233;
    color: #FFFFF1;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    display: block;
    margin: 0 auto;
    transition: background-color 0.2s;
}

.cta-btn:hover {
    background-color: #145026;
}
.cta-btn-accompagnements {
    background-color: #1B6233;
    color: #FFFFF1;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    display: block;
    margin: 0 auto;
    transition: background-color 0.2s;
    text-align: center;
    margin-top: 1em;
    margin-bottom: 3em;
}
/* =============================================
   LIENS SPÉCIFIQUES
   ============================================= */
#Accompagnements {
    font-size: 18px;
    font-family: sans-serif;
    text-decoration: underline;
    color: #1B6233;
}

#a_propos {
    font-size: 18px;
    font-family: sans-serif;
    text-decoration: underline;
    color: #1B6233;
}
/* style pour photo de Dorothée dans à propos */
.photo-dorothee {
    display: block;
    margin: 30px auto 20px auto;
    border-radius: 50%;
    width: 150px;
    height: 150px;
    object-fit: cover;
}
/* =============================================
   MENTIONS LÉGALES
   ============================================= */

/* Style spécifique pour les liens mailto */
body.mentions-legale a[href^="mailto:"] {
    color: #1B6233;
    text-decoration: underline;
}

/* Style spécifique pour les h2 */
body.mentions-legale h2 {
    text-decoration: underline;
}

body.mentions-legale header h2 {
    text-decoration: none !important;
}

.center-accompagnement {
    text-align: center;
    margin-top: 1em;
    margin-bottom: 3em;
}

.center-apropos {
    text-align: center;
    margin-top: 1em;
    margin-bottom: 3em;
}

/* =============================================
   FORMULAIRE
   ============================================= */
.form-contact {
    max-width: 500px;
    margin: 2em auto;
    display: flex;
    flex-direction: column;
    gap: 1em;
    background: #E6DCCF;
    padding: 2em;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

.form-contact label {
    font-weight: bold;
    margin-bottom: 0.3em;
    color: #1B6233;
}

.form-contact input,
.form-contact textarea {
    padding: 0.7em;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
    background-color: #FFFFF1;
    color: #1B6233;
}

.form-contact textarea {
    text-transform: capitalize;
}

.form-contact input[type="text"] {
    text-transform: capitalize;
}

.form-contact button[type="submit"] {
    background: #1B6233;
    color: white;
    padding: 0.7em 1.5em;
    border: none;
    border-radius: 4px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background 0.2s;
}

.form-contact button[type="submit"]:hover {
    background: #145026;
}

/* =============================================
   FOOTER
   ============================================= */
.pre_footer {
    height: 80px;
    background-color: #1B6233;
    margin-top: auto;
    margin-bottom: 0px;
    overflow: hidden;
}

footer {
    background-color: #143F2A;
    color: #FFFFF1;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin: 0;
    padding: 16px 20px;
}

footer > span.footer {
    margin-right: 24px;
    margin-left: 0;
}

footer #audric {
    margin-left: 24px;
    margin-right: 24px;
}

footer a[href="mentions_legale.html"] {
    margin-left: 15px;
    margin-right: 24px;
}

footer #linkedin {
    margin-left: 15px;
    margin-right: 0;
}

footer * {
    margin: 0 2px;
    margin-top: 0;
    font-size: 16px;
}

.footer {
    color: #FFFFF1;
    text-decoration: none;
}

#pre_footer {
    font-weight: normal;
    font-size: 15px;
    font-family: sans-serif;
    text-align: center;
    color: #FFFFF1;
    margin-top: 30px;
    margin-bottom: 25px;
    text-decoration: none;
}

#linkedin {
    height: 30px;
    display: flex;
    justify-content: center;
    margin-top: 0px;
}

#signature {
    height: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
}

#description {
    color: #FFFFF1;
    flex: 1;
}

#audric {
    display: flex;
    align-items: center;
    margin-left: 24px;
    margin-right: 24px;
    gap: 0;
}

#audric #description,
#audric #description p {
    margin: 0;
    padding: 0;
}

#audric a {
    display: inline-block;
    margin: 0;
    padding: 0;
}

#audric img#signature {
    display: block;
    height: auto;
    max-height: 48px;
}

ul, ol, li {
    color: #1B6233;
}

h3, ul, ol {
    margin-left: 150px;
    margin-right: 150px;
}

/* =============================================
   RESPONSIVE
   ============================================= */

/* --- Tablette et petits écrans --- */
@media (max-width: 720px) {
    /* Header : passer en colonne */
    header {
        flex-direction: column;
        align-items: center;
        padding: 10px 15px;
    }

    /* Bannière texte : ne plus utiliser position absolute */
    .banniere-texte {
        position: static;
        transform: none;
        width: 100%;
        margin-top: 5px;
    }

    .banniere {
        font-size: 15px;
    }

    .banniere-texte h2:first-child {
        font-size: 18px;
    }

    /* Menu : largeur complète */
    .menu-deroulant {
        position: static;
        width: 100%;
        margin-top: 8px;
        display: block;
        text-align: center;
    }

    .menu-deroulant .sous-menu {
        position: static;
        box-shadow: none;
        border-radius: 0;
        padding: 0;
        width: 100%;
        transform: none;
    }

    header .menu-deroulant {
        position: static;
        width: 100%;
        margin-top: 8px;
    }

    header .menu-deroulant .sous-menu {
        position: static;
        width: 100%;
        box-shadow: none;
    }

    /* Titres */
    h1 {
        font-size: 26px;
        margin-top: 20px;
        margin-bottom: 15px;
    }

    h2 {
        font-size: 18px;
        margin-top: 40px;
    }

    /* Paragraphes : réduire les marges latérales */
    p {
        margin: 15px 30px;
        font-size: 16px;
    }

    /* Mentions légales responsive tablette */
    h3, ul, ol {
        margin-left: 30px;
        margin-right: 30px;
    }

    .legal-privacy {
        padding: 0 10px;
    }

    .legal-privacy h1 {
        font-size: 22px;
        text-align: center;
        padding: 0 10px;
    }

    .legal-privacy h2 {
        font-size: 18px;
    }

    .legal-privacy h3 {
        font-size: 16px;
    }

    /* Footer : passer en colonne */
    .footer {
        color: #FFFFF1;
        text-decoration: none;
        font-size: 16px;
        padding: 15px 10px;
        text-align: center;
    }

    #audric {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 10px;
    }
}

/* --- Mobile petit écran --- */
@media (max-width: 420px) {
    .pre_footer {
        height: auto;
        min-height: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0;
        padding: 8px 0;
        background: #1B6233;
        width: 100vw;
        box-sizing: border-box;
    }
    #pre_footer {
        font-size: 16px;
        margin: 0;
        padding: 0;
        width: 100%;
        text-align: center;
        word-break: break-word;
    }

    p {
        margin: 10px 15px;
        font-size: 15px;
    }

    .banniere {
        font-size: 13px;
    }

    .banniere-texte h2:first-child {
        font-size: 15px;
    }

    #banniere {
        height: 60px;
    }

    #banniere img {
        max-height: 60px;
    }

    .form-contact {
        padding: 1em;
        margin: 1em;
    }

    /* Mentions légales responsive mobile */
    h3, ul, ol {
        margin-left: 15px;
        margin-right: 15px;
    }

    .legal-privacy {
        padding: 0 5px;
    }

    .legal-privacy h1 {
        font-size: 19px;
        text-align: center;
        padding: 0 5px;
        word-break: break-word;
    }

    .legal-privacy h2 {
        font-size: 17px;
        margin-left: 15px;
        margin-right: 15px;
    }

    .legal-privacy h3 {
        font-size: 15px;
    }

    .legal-privacy p {
        word-break: break-word;
        overflow-wrap: break-word;
    }

    .legal-privacy ul {
        padding-left: 20px;
    }
    
    footer {
        flex-direction: column;
        align-items: center;
        padding: 10px 5px;
        gap: 8px;
        text-align: center;
    }

    footer > span.footer,
    footer #audric,
    footer a[href="mentions_legale.html"],
    footer #linkedin {
        margin: 4px 0;
    }

    .footer {
        font-size: 15px;
        padding: 8px 0;
    }
}

/* =============================================
   UTILITAIRES
   ============================================= */

/* Classe utilitaire pour masquer un élément */
.hidden {
    display: none;
}
