/* Couleurs */
:root {
    --color1: #756f65;
    /*taupe*/
    --color2: #bc9f9c;
    /*saumon*/
    --color3: #423c39;
    /*marron*/
    --color4: #858398;
    /*viilet*/
    --color5: #383c67;
    /*bleu*/
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: sans-serif;
    line-height: 1.5;
    color: var(--color3);
}

a,.a {
    color: #383c67;
    font-weight: bold;
    cursor: pointer;
}

.hide {
    display: none
}

.flex {
    display: flex
}

.flex_center {
    justify-content: center
}

.align_items_center {
    align-items: center
}

.flex_column {
    flex-direction: column
}

.smalli {
    font-size: 14px;
    color: #555;
    font-style: italic
}

.flex_height_auto {
    align-items: flex-start !important;
}

.petit_input {
    width: 110px
}

ul,
ol {
    list-style-position: inside;
    margin-bottom: 30px;
}

li {
    margin-top: 20px;
}

li li {
    margin-left: 20px
}

h1:nth-child(1), h2:nth-child(1), h3:nth-child(1), .h1:nth-child(1) {
    margin-top: 0
}

.h1 {
    font-size: 28px;
    display: block;
    margin-bottom: 20px;
}

h1:last-child {
    margin-bottom: 0
}

h1, h2 {
    margin: 40px 0 30px
}

h3, h4 {
    margin: 30px 0 30px
}

h1,
h2,
.h2 {
    margin-top: 50px;
    margin-bottom: 23px;
}

h3 {
    font-size: 22px
}

h4 {
    font-size: 20px
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 30px;
    margin-top: 60px
}

h1:nth-child(1),
h2:nth-child(1),
h3:nth-child(1),
h4:nth-child(1),
h5:nth-child(1),
h6:nth-child(1) {
    margin-top: 10px
}

.text_center {
    text-align: center !important
}

.text_right {
    text-align: right !important
}

textarea, input {
    border-radius: 14px;
    border: 3px solid #756f65;
    padding: 7px 17px;
    width: 100%;
    margin: 5px;
    box-shadow: 5px 5px 0px #5d5d5d;
    font-size: 17px;
}

textarea {
    height: 150px;
    resize: vertical
}

input[type=submit] {
    background-color: #bc9cb6;
    color: #fff;
    font-size: 20px;
}

.loader {
    position: relative;
    width: 100px;
    height: 100px;
}

.loader:before, .loader:after {
    content: '';
    border-radius: 50%;
    position: absolute;
    inset: 0;
    box-shadow: 0 0 10px 2px rgba(0, 0, 0, 0.3) inset;
}

.loader:after {
    box-shadow: 0 2px 0 #ff9676 inset;
    animation: rotate 2s linear infinite;
}
#global_loader {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #0005;
  }
@keyframes rotate {
    0% {
        transform: rotate(0)
    }

    100% {
        transform: rotate(360deg)
    }
}
#alerte-fixed{z-index:100}
#flex_alerte {
  display:flex;
  position:fixed;
  top:50%;
  right:0;
  left:0;
  justify-content:center;
  align-items:center;
  background:rgba(0,0,0,0.1);
  z-index:111112;
  transform: translateY(-50%);
  bottom: 0;
}
.alert-fixed{overflow-y:auto;word-wrap:anywhere;max-width:500px;position:relative}
.alert {
  transition:.5s;
  animation:.5s animer_alert;
  padding:35px 24px 15px;
  border:1px solid;
  border-radius:16px;
  box-shadow:4px 5px 1px #0005;
  background-color:#fff;
  max-height:100%
}

@keyframes animer_alert {
0%{transform:translateY(-100%);opacity:0}
100%{transform:translateY(0%);opacity:1}
}
.alert .close{background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAB90lEQVRYhe3XzUocQRQF4E/XMQz+rGPcBUEXEnGR6GSCC90FIe9jQAMyi+yEiC9hBhLIPmCWkfgC5neC4CNkcauDDN1T3TOTnQeKGervnOLee6qaO4yGWWxgN7WN1PdfsYRDXOIan/AOZ+n/Nb7iAIuTJF7AKX4lASsV86awitdp7gnmxyV/ju9p03sN1s3gCN/QHpX8ZSJ/MuoG2MIP7DVdWJz80RjkBZaTiHbdBQtpwTgnH0RbhGOuzuRTEfNJo4u3uUlLIoPLEu6jiGkOHbwv6b+PvkyJHqZWhi38zojopDlV4TvCq2ECLlXXeSGirzyhcuSwhouqwVnhZjm0S0QU5E8za6dxg1bZ4Iaw1Dp4hj/pt5ME5cgLnGO9bGBXeHtddJKIPjYbrOthp0rAWUMBffnErC2gSQiKmG+qVx238VlFCIoknKpJfjvmdUUMTULiPl9tSN5ExGN8GabwQLUN16nznIgu9ocJeCiseKZk7EOG/LaIXkl/S1TNg9wGJ8IyJ403OK4zcV5cnU1KK4dtXGnwcG2LN8HyBMhX8FN9p/yHPQ1fMiXYTuQvRt2gLcLRFfd5XbREzK+McPJBzImXTF8k55owlEFMizrvimw/NuGPlUXxmLgQbnYuyq0n7PVGmMy+GqU2LlrCz3dSWzfEXu8wDH8BLpZuQoWM0oYAAAAASUVORK5CYII=) 0 0 no-repeat;width:32px;height:32px;position:absolute;top:2px;right:2px;cursor:pointer;display:block}
.alert-success{border-color:#6ec83a}
.alert-error{border-color:#ff5b5b}
.alert-orange{border-color:orange}
.alert-info{border-color:#c7f5ff}
.alert.alert-error.alert-fixed::before{background:red;position:absolute;top:0;line-height:11px;font-size:11px;color:#fff;border-radius:0 0 3px 3px;padding:1px 2px 3px;left:16px}
#captcha {
    border-radius: 8px;
    border: 3px solid #756f65;
    margin: 5px;
    box-shadow: 5px 5px 0px #5d5d5d;
}

.btn_afficher_plus {
    color: var(--color5);
    font-weight: bold;
    cursor: pointer;
}

/* Header */
header {
    background: var(--color3);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .container {
    padding: 12px 0;
}

.header_right {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.logo {
    display: flex;
    flex-direction: column;
    color: white;
}

.logo_marque {
    font-size: 26px;
    font-weight: bold;
    line-height: 1.1;
    color: white;
    letter-spacing: 0.5px;
}

.logo_nom {
    font-size: 22px;
    font-weight: bold;
    line-height: 1.2;
    color: white;
}

.logo_titre {
    font-size: 12px;
    font-weight: 400;
    opacity: 0.8;
    color: white;
}

/* Menu desktop */
#nav_menu ul {
    list-style: none;
    display: flex;
    gap: 30px;
    align-items: center;
}

#nav_menu ul li span.a {
    text-decoration: none;
    color: white;
    font-weight: 600;
    transition: color 0.3s;
    font-size: 15px;
    letter-spacing: 0.5px;
}

#nav_menu ul li span.a:hover {
    color: var(--color2);
}

/* Burger */
.burger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    flex-direction: column;
    gap: 5px;
}

.burger span {
    display: block;
    width: 26px;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

.burger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.burger.active span:nth-child(2) {
    opacity: 0;
}

.burger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.tampon {
    color: #ff4500;
    font-weight: bold;
    padding: 5px 10px;
    border: 3px solid #ff4500;
    display: inline-block;
    border-radius: 10px;
    transform: rotate(-9deg);
    text-align: center;
}

.etiquette h3 {
    margin-bottom: 27px;
    margin-top: 0;
}

.etiquette_un {
    background-color: #ecffca;
}

.etiquette_deux {
    background-color: #ffddc5;
}

.etiquette_trois {
    background-color: #ffe0e0;
}

.etiquette {
    /* background-color: #a3c636; */
    padding: 5px;
    border-radius: 25px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    background-image: url(images/bg1.png);
    width: 30%;
    background-size: 50px;
}

.etiquette_bordure {
    padding: 11px;
    border: dashed #867979 2px;
    border-radius: 27px;
}

.etiquette_ecriture {
    background: repeating-linear-gradient(white 0px,
            white 24px,
            #d1d1d1 25px
            /* Ligne grise tous les 25px */
        );
    border-radius: 14px;
    padding: 29px 20px 20px 30px;
    width: 80%;
    position: relative;
}

.etiquette_ecriture::before {
    content: "";
    position: absolute;
    left: 15px;
    top: 0;
    width: 1px;
    height: 100%;
    background: #ffa2a2;
}

.etiquette_ecriture * {
    line-height: 25px;
}

.etiquette_ecriture p {
    margin-bottom: 25px;
}

.banner {
    background-color: var(--color2) !important;
    padding: 100px 0;
    background-image: url(images/abstract-blanc.png);
    background-size: cover;
    background-attachment: fixed;
    background-position: 0 140px;
    background-repeat: no-repeat;
}

#carte_visite {
    display: flex;
    align-items: center;
    gap: 8px;
}

#carte_visite a {
    display: block;
    line-height: 0;
}

#carte_visite img {
    border-radius: 6px;
    width: 150px;
    display: block;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
    transition: transform 0.2s ease;
}

#carte_visite a:hover img {
    transform: translateY(-3px);
}

.carte-visite {
    background: white;
    padding: 30px 40px;
    display: inline-block;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    margin-bottom: 30px;
}

.banner .carte-visite {
    display: block;
    width: fit-content;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

/* Cartes avec animations */
.services {
    padding: 50px 0;
    background: var(--color4);
}

.a_propos .etiquette {
    width: unset;
    max-width: 50%;
    margin: 10px;
}

.form_contact {
    max-width: 500px;
}

.services .container {
    display: flex;
    justify-content: space-between;
    align-items: start;
}

.card {
    background: white;
    padding: 20px;
    text-align: center;
    width: 30%;
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
}

.section_un {
    padding: 50px;
    background-color: var(--color3);
}

.section_un h1 {
    color: var(--color4);
    font-size: 37px;
}

/* .section_un *, .section_deux *{
    color: #e3e3e3;
} */
.section_deux {
    padding: 50px;
    background-color: var(--color4);
}

.section_deux h1 {
    color: var(--color3);
    font-size: 37px;
}

/* Contenu caché */
.hidden-content {
    display: none;
    margin-top: 10px;
    padding: 10px;
    background: var(--color1);
    color: white;
    border-radius: 5px;
}

.parcours-section {
    max-width: 1000px;
    margin: 50px auto;
    text-align: center;
}

.parcours-section h2 {
    font-size: 2em;
    margin-bottom: 20px;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Conteneur des cartes */
.parcours-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Cartes */
.parcours-card {
    background: #ffffff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    flex: 1;
    min-width: 280px;
    max-width: 320px;
    text-align: left;
    transition: transform 0.3s ease-in-out;
}

.parcours-card:hover {
    transform: translateY(-5px);
    box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.15);
}

.parcours-card h3 {
    font-size: 1.5em;
    color: var(--color1);
    margin-bottom: 10px;
    border-bottom: 2px solid var(--color1);
}

.parcours-card p {
    font-size: 0.95em;
    color: #555;
    line-height: 1.6;
}

/* Footer */
footer {
    background: var(--color3);
    text-align: center;
    padding: 15px;
    margin-top: 1px;
}

footer p {
    color: white;
}

footer a {
    color: var(--color2);
    text-decoration: none;
}

/* Responsive */
@media (max-width: 1150px) {
    #carte_visite {
        gap: 6px;
    }

    #carte_visite img {
        width: 120px;
    }
}

@media (max-width: 900px) {
    header .container {
        flex-wrap: wrap;
    }

    .logo {
        min-width: 0;
        flex-shrink: 1;
        overflow: hidden;
        white-space: nowrap;
    }

    .logo_marque {
        font-size: 17px;
    }

    .logo_nom {
        font-size: 16px;
    }

    .logo_titre {
        font-size: 10px;
    }

    .header_right {
        gap: 10px;
        flex-shrink: 0;
    }

    #carte_visite {
        gap: 6px;
    }

    #carte_visite img {
        width: 80px;
    }

    #nav_menu {
        order: 3;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        background: var(--color3);
    }

    #nav_menu.show {
        max-height: 300px;
    }

    #nav_menu ul {
        flex-direction: column;
        align-items: center;
        gap: 0;
        padding: 10px 0;
    }

    #nav_menu ul li {
        width: 100%;
        text-align: center;
    }

    #nav_menu ul li span.a {
        display: block;
        padding: 12px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    }

    .burger {
        display: flex;
    }

    .banner {
        padding: 40px 0;
        background-attachment: scroll;
    }

    .banner .container {
        flex-direction: column;
        align-items: center !important;
    }

    .banner .container .etiquette {
        margin-left: auto;
        margin-right: auto;
    }

    .banner .carte-visite {
        display: block;
        width: 90%;
        margin: 0 auto;
        padding: 20px;
    }

    .services {
        padding: 30px 0;
    }

    .services .container {
        flex-direction: column;
        align-items: center;
    }

    .etiquette {
        width: 90%;
        margin-bottom: 20px;
    }

    .etiquette_ecriture {
        width: 100%;
        padding: 25px 15px 15px 25px;
    }

    .a_propos .etiquette {
        max-width: 90%;
    }

    .section_un {
        padding: 30px 15px;
    }

    .section_un h1 {
        font-size: 26px;
        text-align: center;
    }

    .form_contact {
        width: 100%;
    }

    textarea {
        height: 120px;
    }

    .parcours-container {
        flex-direction: column;
        align-items: center;
    }

    .parcours-card {
        min-width: unset;
        width: 90%;
        max-width: unset;
    }

    .parcours-card h3 {
        font-size: 1.2em;
    }

    .tampon {
        font-size: 12px;
        padding: 3px 8px;
        transform: rotate(-5deg);
    }
}

@media (max-width: 400px) {
    #carte_visite {
        gap: 4px;
    }

    #carte_visite img {
        width: 50px;
        height: auto;
    }

    .logo_marque {
        font-size: 13px;
    }

    .logo_nom {
        font-size: 14px;
    }

    .logo_titre {
        font-size: 9px;
    }

    .section_un {
        padding: 20px 10px;
    }

    .section_un h1 {
        font-size: 22px;
    }

    h1 {
        margin-top: 20px;
        margin-bottom: 15px;
    }

    h2 {
        margin-top: 20px;
        margin-bottom: 15px;
    }

    h3 {
        margin-top: 15px;
        margin-bottom: 10px;
        font-size: 18px;
    }

    .carte-visite {
        padding: 15px;
    }

    .carte-visite h2 {
        font-size: 20px;
    }

    input, textarea {
        font-size: 16px;
    }
}

/* Effet de rotation sur les sections */
.section {
    opacity: 0;
    transform: rotateX(90deg) rotateY(10deg);
    transition: transform 0.8s ease-out, opacity 0.8s ease-out;
}

/* Classe ajoutée par Intersection Observer */
.section.visible {
    opacity: 1;
    transform: rotateX(0deg) rotateY(0deg);
}