/* =========================================================
   REGLAGES GENERAUX
========================================================= */

:root {
    --vert: #2F6B3A;
    --vert-fonce: #1d4a2c;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background-color: rgb(247, 247, 247);
    font-family: "mulish_extra_light", sans-serif;
}

h1 {
    position: relative;
    top: 15px;
    margin-bottom: 30px;
}

h2 {
    margin-top: 0;
}

/* =========================================================
   FONTS
========================================================= */

@font-face {
    font-family: "museo_700_regular";
    src: url("../fonts/museo_700_regular.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: "dancing_script";
    src: url("../fonts/dancing_script.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: "mulish_extra_light";
    src: url("../fonts/mulish_extra_light.woff2") format("woff2");
    font-weight: 275;
    font-style: normal;
}

/* =========================================================
   HEADER
========================================================= */

.bandeau-entete {
    width: 100%;
    height: 200px;
    background-color: rgb(255, 255, 255);
}

.entete {
    width: 980px;
    max-width: 100%;
    height: 200px;
    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: center;
}

.centre-entete {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.logo-site {
    width: 110px;
    height: 110px;
    object-fit: contain;
    display: block;
}

.trait-separation {
    width: 100%;
    height: 1px;
    background-color: #767676;
    position: relative;
    top: -6px;
}

.menu {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 22px;
}

.menu a {
    color: #444444;
    text-decoration: none;
    font-family: Arial, sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 30px;
    white-space: nowrap;
    padding: 5px 10px;
    transition: background-color 0.2s ease;
}

.menu a:hover,
.menu a.active {
    background-color: #e8f0e5;
    text-decoration: none;
}

/* =========================================================
   CONTENU COMMUN
========================================================= */

.contenu-accueil {
    width: 980px;
    max-width: 100%;
    margin: 40px auto;
    padding: 0 10px;
}

.contenu-informations {
    width: 980px;
    max-width: 100%;
    margin: 40px auto;
    padding: 0 10px;
    text-align: justify;
}

.contenu-informations h1 {
    font-family: "museo_700_regular", Georgia, serif;
    font-size: 60px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    color: #000000;
    margin-bottom: 61px;
}

.texte-informations {
    width: 950px;
    max-width: 100%;
    margin: 0 auto;
    font-family: "mulish_extra_light", sans-serif;
    font-size: 19px;
    line-height: 32px;
    color: #000000;
}

.texte-informations p {
    margin: 0;
}

.texte-mentions {
    width: 780px;
    font-family: "mulish_extra_light", sans-serif;
    font-size: 19px;
    line-height: 32px;
    color: #000000;
}

.texte-mentions h2 {
    font-family: "mulish_extra_light", sans-serif;
    font-size: 23px;
    font-weight: 700;
    line-height: 1.4;
    margin: 38px 0 12px;
}

.texte-mentions h2:first-child {
    margin-top: 0;
}

.texte-mentions p {
    margin-bottom: 12px;
}

.texte-mentions ul {
    margin: 8px 0 18px;
    padding-left: 25px;
}

.texte-mentions li {
    margin-bottom: 6px;
}

.texte-mentions a {
    color: #2F6B3A;
}

.jarres-genese {
    text-decoration: underline;
}

.chapeau {
    text-align: justify;
    max-width: 680px;
    margin: 60px auto;
}

/* =========================================================
   TITRES DE LA PAGE D'ACCUEIL
========================================================= */

.titres-accueil {
    text-align: center;
    margin: 35px auto 25px auto;
}

.titres-accueil h1 {
    font-family: "museo_700_regular", Georgia, serif;
    font-size: 60px;
    font-weight: 700;
    line-height: 1.2;
    color: #000000;
}

.titres-accueil h2 {
    font-family: "dancing_script", cursive;
    font-size: 23px;
    font-weight: 400;
    line-height: 27.5px;
    color: #000000;
    margin-top: 0;
}

/* =========================================================
   BLOCS DE CITATION ET ELEMENTS THEMATIQUES
========================================================= */

.citation {
    margin: 34px auto 60px;
    padding: 26px 34px;
    max-width: 780px;
    background: #fff;
    border-left: 4px solid var(--vert);
    font-family: "mulish_extra_light";
    font-size: 20px;
    line-height: 1.5;
    text-align: center;
}

.citation cite {
    display: block;
    margin-top: 50px;
    font: normal 13px Arial, sans-serif;
    color: #555;
    text-align: right;
}

.hadith {
    margin: 34px auto;
    padding: 26px 34px;
    max-width: 780px;
    background: #fff;
    border-left: 4px solid var(--vert);
    font-family: "mulish_extra_light";
    font-size: 19px;
    line-height: 1.5;
    text-align: justify;
}

.hadith cite {
    display: block;
    margin-top: 50px;
    font: normal 13px Arial, sans-serif;
    color: #555;
    text-align: right;
}

.divinites {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px 50px;
    margin: 14px 0 44px;
}

.divinite {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.divinite svg {
    flex: 0 0 56px;
    width: 56px;
    height: 62px;
}

.divinite h3 {
    margin: 0;
    font-family: "museo_700_regular", Georgia, serif;
    font-size: 21px;
    font-weight: 700;
}

.texte-mentions .divinite p {
    margin: 4px 0 0;
    font-size: 16px;
    line-height: 26px;
}

.centre {
    text-align: center;
}

/* =========================================================
   GALERIE DE PHOTOGRAPHIES
========================================================= */

.collection {
    display: flex;
    flex-direction: column;
    gap: 35px;
    max-width: 950px;
    margin: 0 auto;
}

.jarre {
    display: flex;
    align-items: center;
    gap: 100px;
    margin: 0;
}

.photo-jarre {
    flex: 0 0 320px;
    width: 320px;
    margin: 0;
}

.photo-jarre img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.ecriteau-jarre {
    flex: 1;
    padding: 18px;
    border: 1px solid #ccc;
    border-radius: 5px;
    text-align: left;
}

.ecriteau-jarre h2 {
    margin-top: 0;
}

.ecriteau-jarre p {
    margin-bottom: 18px;
}

.ecriteau-jarre p:last-child {
    margin-bottom: 0;
}

/* Apparition progressive des photos et écriteaux */
.photo-jarre,
.ecriteau-jarre {
    opacity: 1;
    transform: translateY(0);
}

.photo-jarre.animation-active,
.ecriteau-jarre.animation-active {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.photo-jarre.animation-active.visible,
.ecriteau-jarre.animation-active.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================================
   PAGE JARRADAN ET JARREME
========================================================= */

.texte-jarradan p + p {
    margin-top: 20px;
}

.parodie {
    margin-top: 200px !important;
    font-size: 15px;
    font-style: italic;
    color: #555;
}

.soumission {
    text-align: center;
    margin-top: 50px !important;
}

/* =========================================================
   PAGE MEMBRES
========================================================= */

.texte-membres p + p,
.texte-membres p + ul,
.texte-membres ul + p {
    margin-top: 20px;
}

.texte-membres h2 {
    text-decoration: underline;
    font-size : 20px;
}

/* =========================================================
   PAGE CONTACT
========================================================= */

.champ-piege {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.formulaire-contact {
    width: 650px;
    max-width: 100%;
    margin: 40px auto 0;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.champ-contact {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.champ-contact label {
    font-family: "mulish_extra_light", sans-serif;
    font-size: 19px;
    color: #444444;
}

.champ-contact input,
.champ-contact textarea {
    width: 100%;
    padding: 13px 15px;
    border: 1px solid #cccccc;
    border-radius: 2px;
    background-color: #ffffff;
    font-family: "mulish_extra_light", sans-serif;
    font-size: 15px;
    color: #000000;
    outline: none;
}

.champ-contact input {
    height: 48px;
}

.champ-contact textarea {
    min-height: 180px;
    resize: vertical;
    line-height: 1.6;
}

.champ-contact input:focus,
.champ-contact textarea:focus {
    border-color: #2F6B3A;
}

.champ-contact input:focus-visible,
.champ-contact textarea:focus-visible,
.bouton-envoi:focus-visible {
    outline: 0.5px solid #2F6B3A;
    outline-offset: 0;
}

.champ-contact input::placeholder,
.champ-contact textarea::placeholder {
    color: #999999;
    opacity: 1;
}

.bouton-envoi {
    align-self: center;
    min-width: 160px;
    padding: 12px 30px;
    border: none;
    border-radius: 2px;
    background-color: #2F6B3A;
    color: #ffffff;
    font-family: Arial, sans-serif;
    font-size: 15px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.bouton-envoi:hover {
    background-color: #2F6B3A;
}

.message-succes {
    display: none;
    color: #2F6B3A;
    font-family: "mulish_extra_light", sans-serif;
    font-size: 17px;
    font-weight: bold;
    text-align: center;
    margin: 20px auto;
    padding: 14px 20px;
    background-color: #E8F5F2;
    border: 1px solid #A5D6CB;
    border-radius: 3px;
}

.message-erreur {
    display: none;
    color: #a12626;
    font-family: "mulish_extra_light", sans-serif;
    font-size: 17px;
    font-weight: bold;
    text-align: center;
    margin: 20px auto;
    padding: 14px 20px;
    background-color: #fbeaea;
    border: 1px solid #e5b3b3;
    border-radius: 3px;
}

.message-succes[data-fs-active],
.message-erreur[data-fs-active] {
    display: block;
}

/* =========================================================
   FOOTER
========================================================= */

.pied-page {
    width: 100%;
    background-color: rgb(255, 255, 255);
    padding: 25px 20px;
    margin-top: 50px;
}

.coordonnees {
    max-width: 980px;
    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.element-pied {
    display: flex;
    align-items: center;
    gap: 10px;

    color: #444444;
    text-decoration: none;
    font-family: Arial, sans-serif;
    font-size: 14px;
}

.element-pied img {
    width: 25px;
    height: 25px;
    object-fit: contain;
}

.element-pied:hover {
    text-decoration: underline;
}

/* =========================================================
   TRANSITIONS ENTRE LES PAGES
========================================================= */

@view-transition {
    navigation: auto;
}

::view-transition-old(root) {
    animation: fondu-sortie 0.75s ease both;
}

::view-transition-new(root) {
    animation: fondu-entree 0.75s ease both;
}

@keyframes fondu-sortie {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@keyframes fondu-entree {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* =========================================================
   ADAPTATIONS RESPONSIVES
========================================================= */

/* Tablettes */
@media (min-width: 601px) and (max-width: 800px) {
    .contenu-accueil,
    .contenu-informations {
        padding-left: 60px;
        padding-right: 60px;
    }
}

/* Smartphones */
@media (max-width: 600px) {

    /* Contenu général */
    .contenu-accueil,
    .contenu-informations {
        padding-left: 20px;
        padding-right: 20px;
    }

    .contenu-accueil h1,
    .contenu-informations h1 {
        font-size: 27px !important;
        line-height: 1.2;
        white-space: normal;
    }

    .titres-accueil h2 {
        font-size: 15px !important;
        line-height: 1.3;
    }

    .texte-informations {
        font-size: 14px;
        line-height: 26px;
    }

    .texte-mentions h2 {
        font-size: 17px;
    }

    /* En-tête et navigation */
    .bandeau-entete {
        height: 200px;
    }

    .logo-site {
        width: 80px;
        height: 80px;
    }

    .entete {
        height: auto;
        min-height: 200px;
        padding: 15px 10px;
    }

    .menu {
        width: 100%;
        flex-wrap: wrap;
        gap: 4px;
    }

    .menu a {
        white-space: normal;
        text-align: center;
        font-size: 13px;
        line-height: 22px;
        padding: 4px 7px;
    }

    /* Pied de page */
    .coordonnees {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        width: fit-content;
        margin: 0 auto;
        gap: 15px;
    }

    .element-pied {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 10px;
        white-space: nowrap;
        font-size: 10px;
    }

    .element-pied img {
        width: 17px;
        height: 17px;
        flex-shrink: 0;
    }

    /* Composants spécifiques */
    .divinites {
        grid-template-columns: 1fr;
    }

    .citation {
        font-size: 15px;
        padding: 20px;
    }

    .citation cite {
        font-size: 10px;
    }

    .hadith {
        font-size: 14px;
    }

    .hadith cite {
        font-size: 10px;
    }

    .collection {
        gap: 30px;
        width: 100%;
    }

    .jarre {
    flex-direction: column;
    gap: 12px;
    width: 100%;
    }

    .photo-jarre {
        flex: none;
        width: 100%;
        max-width: 350px;
        height: auto;
    }

    .ecriteau-jarre {
        box-sizing: border-box;
        width: 100%;
        max-width: 350px;
    }

    .jarre svg {
        width: 100px;
        height: 110px;
    }

    .texte-mentions .divinite p {
        font-size: 14px;
        line-height: 22px;
    }

    .parodie {
        font-size: 10px;
    }

    /* Paragraphe introductif */
    .chapeau {
        width: 100%;
        max-width: 680px;
        padding: 0;
        overflow-wrap: break-word;
    }

    .champ-contact label {
        font-size: 16px;
    }

    /* Page Contact */
    .champ-contact input,
    .champ-contact textarea {
        font-size: 14px;
    }
}

/* Très petits smartphones */
@media (max-width: 350px) {
    .contenu-accueil h1,
    .contenu-informations h1 {
        font-size: 24px !important;
    }
}

/* Respect des préférences de réduction des animations */
@media (prefers-reduced-motion: reduce) {
    ::view-transition-old(root),
    ::view-transition-new(root) {
        animation: none;
    }
}

