/* ==========================================================
   LES MAGICIENS DE CORDES
   Feuille de style principale
   ========================================================== */


/* ----------------------------------------------------------
   VARIABLES
   ---------------------------------------------------------- */

:root {
    --fond: #100d10;
    --fond-2: #181217;
    --fond-3: #211820;

    --texte: #eee9df;
    --texte-doux: #cfc5b7;

    --or: #d6b267;
    --or-clair: #f0d99a;
    --or-sombre: #9e7b3b;

    --bordeaux: #681f2d;
    --bordeaux-clair: #8c293d;

    --bordure: rgba(214, 178, 103, 0.24);

    --largeur: 1120px;

    --ombre:
        0 12px 35px rgba(0, 0, 0, 0.35);

    --rayon: 12px;
}


/* ----------------------------------------------------------
   RESET / BASE
   ---------------------------------------------------------- */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;

    background:
        radial-gradient(
            circle at top,
            #291920 0,
            var(--fond) 620px
        );

    color: var(--texte);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 18px;
    line-height: 1.7;
}


/* Liens */

a {
    color: var(--or-clair);
    text-decoration-color: rgba(240, 217, 154, 0.45);
    text-underline-offset: 4px;

    transition:
        color 0.2s ease,
        text-decoration-color 0.2s ease;
}

a:hover,
a:focus-visible {
    color: #fff4c9;
    text-decoration-color: currentColor;
}


/* ----------------------------------------------------------
   TYPOGRAPHIE
   ---------------------------------------------------------- */

h1,
h2,
h3 {
    line-height: 1.18;
    font-weight: normal;
}

h1 {
    margin: 0 0 1.3rem;
    color: var(--or-clair);

    font-size: clamp(1.7rem, 4.7vw, 3.3rem);

    text-align: center;
    text-wrap: balance;

    text-shadow:
        0 2px 2px rgba(0, 0, 0, 0.8),
        0 0 25px rgba(214, 178, 103, 0.18);
}

h2 {
    position: relative;

    margin: 0 0 2.2rem;

    color: var(--or-clair);

    font-size: clamp(2rem, 4vw, 3rem);
    text-align: center;

    text-wrap: balance;
}


/* Petit ornement sous chaque H2 */

h2::after {
    content: "✦";

    display: block;

    margin-top: 0.6rem;

    color: var(--or);
    font-size: 0.65em;
    line-height: 1;
}

h3 {
    margin-top: 0;

    color: var(--or);

    font-size: 1.55rem;
}

p {
    margin: 0 0 1.25rem;
}

strong {
    color: #fff8e9;
}

.align-centre {
	text-align: center;
}

/* ----------------------------------------------------------
   HEADER ET NAVIGATION
   ---------------------------------------------------------- */

header {
    position: sticky;
    top: 0;
    z-index: 100;

    background:
        rgba(15, 11, 14, 0.94);

    border-bottom: 1px solid var(--bordure);

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

nav {
    width: min(var(--largeur), calc(90% - 32px));
    margin: auto;

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

    gap: 0.3rem;

    padding: 0.7rem 0;
}

nav a {
    padding: 0.55rem 0.85rem;

    color: var(--texte);
    text-decoration: none;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 0.93rem;
    letter-spacing: 0.03em;

    border-radius: 5px;

    transition:
        color 0.2s ease,
        background-color 0.2s ease;
}

nav a:hover,
nav a:focus-visible {
    color: var(--or-clair);

    background:
        rgba(214, 178, 103, 0.08);
}

nav a[aria-current="page"] {
    color: var(--or-clair);

    border-bottom:
        1px solid var(--or);
}


/* ----------------------------------------------------------
   STRUCTURE PRINCIPALE
   ---------------------------------------------------------- */

main {
    overflow: hidden;
}

section {
    width: min(var(--largeur), calc(100% - 40px));

    margin: 0 auto;
    padding: 5.5rem 0;
}


/* Séparation discrète entre sections */

section + section {
    border-top:
        1px solid var(--bordure);
}


/* Texte courant moins large que les grandes sections */

section > p,
section > blockquote,
section > ul {
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
}


/* ----------------------------------------------------------
   HERO / ACCUEIL
   ---------------------------------------------------------- */

#accueil {
    position: relative;

    min-height: 78vh;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    padding-top: 2rem;
    padding-bottom: 7rem;

    text-align: center;
}


/* Halo magique derrière le titre */

#accueil::before {
    content: "";

    position: absolute;

    width: min(700px, 85vw);
    aspect-ratio: 1;

    top: 45%;
    left: 50%;

    transform: translate(-50%, -50%);

    background:
        radial-gradient(
            circle,
            rgba(128, 39, 57, 0.22) 0,
            rgba(128, 39, 57, 0.08) 35%,
            transparent 70%
        );

    pointer-events: none;
    z-index: -1;
}

#accueil > p {
    max-width: 820px;
}

#accueil > p:first-of-type {
    font-size: clamp(1.25rem, 2.2vw, 1.55rem);
    line-height: 1.6;
}


/* Boutons de l'introduction */

#accueil p:last-child {
    margin-top: 1rem;
}

#accueil p:last-child a {
    display: inline-block;

    margin: 0.35rem;

    padding: 0.75rem 1.25rem;

    color: #17100c;
    background:
        linear-gradient(
            135deg,
            var(--or-clair),
            var(--or)
        );

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 0.95rem;
    font-weight: bold;

    text-decoration: none;

    border-radius: 5px;

    box-shadow:
        0 5px 18px rgba(0, 0, 0, 0.28);

    transition:
        transform 0.2s ease,
        filter 0.2s ease;
}

#accueil p:last-child a:hover {
    color: #17100c;

    transform: translateY(-2px);

    filter: brightness(1.08);
}


/* ----------------------------------------------------------
   CORDES-SUR-CIEL
   ---------------------------------------------------------- */

#cordes-sur-ciel {
    text-align: center;
}

blockquote {
    position: relative;

    margin-top: 3rem !important;
    margin-bottom: 3rem !important;

    padding: 2rem 3rem;

    color: var(--or-clair);

    font-size: clamp(1.3rem, 3vw, 1.8rem);
    font-style: italic;
    line-height: 1.6;
}

blockquote::before,
blockquote::after {
    position: absolute;

    color: var(--or-sombre);

    font-family: Georgia, serif;
    font-size: 5rem;
    line-height: 1;
}

blockquote::before {
    content: "“";

    top: 0;
    left: 0;
}

blockquote::after {
    content: "”";

    right: 0;
    bottom: -1rem;
}


/* ----------------------------------------------------------
   SPECTACLES : CARTES
   ---------------------------------------------------------- */

#spectacles {
    max-width: 1050px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
}

#spectacles > h2,
#spectacles > p {
    grid-column: 1 / -1;
}


/*
   Les trois <article> deviennent naturellement
   trois cartes.
*/

#spectacles article {
    position: relative;

    display: block;
    width: auto;
    min-height: 430px;

    margin: 0;
    padding: 2rem;

    background:
        linear-gradient(
            150deg,
            rgba(45, 30, 38, 0.88),
            rgba(22, 16, 21, 0.96)
        );

    border: 1px solid var(--bordure);
    border-radius: var(--rayon);
    box-shadow: var(--ombre);

    transition:
        transform 0.25s ease,
        border-color 0.25s ease;
}

#spectacles article:hover {
    transform: translateY(-5px);

    border-color:
        rgba(214, 178, 103, 0.52);
}

.image-spectacle {
    display: block;

    width: 100%;
    height: 190px;

    margin: 1rem 0 1.5rem;

    object-fit: cover;
    object-position: center;

    border-radius: 8px;

    border: 1px solid rgba(214, 178, 103, 0.25);

    box-shadow:
        0 6px 18px rgba(0, 0, 0, 0.35);
}

/* petit filet décoratif */

#spectacles article::before {
    content: "";

    position: absolute;

    top: 0;
    left: 20%;

    width: 60%;
    height: 2px;

    background:
        linear-gradient(
            90deg,
            transparent,
            var(--or),
            transparent
        );
}


/* ----------------------------------------------------------
   MAGIE ASTRONOMIQUE
   ---------------------------------------------------------- */

#magie-astronomique {
    position: relative;

    width: 100%;
    max-width: none;

    padding-left:
        max(20px, calc((100vw - var(--largeur)) / 2));
    padding-right:
        max(20px, calc((100vw - var(--largeur)) / 2));

    background:
        radial-gradient(
            ellipse at 50% 30%,
            rgba(39, 50, 83, 0.33),
            transparent 65%
        ),
        linear-gradient(
            180deg,
            #0e0c12,
            #12101a
        );

    border-top:
        1px solid rgba(214, 178, 103, 0.18);

    border-bottom:
        1px solid rgba(214, 178, 103, 0.18);
}


/* champ d'étoiles très discret */

#magie-astronomique::before {
    content:
        "·  ✦        ·       ✧             ·      ✦       ·          ✧";

    position: absolute;

    top: 2rem;
    left: 0;

    width: 100%;

    overflow: hidden;

    color:
        rgba(239, 220, 166, 0.24);

    font-size: 1.8rem;
    letter-spacing: 2.5rem;
    white-space: nowrap;

    pointer-events: none;
}

#magie-astronomique h2 {
    color: #e7d9ae;
}


/* lien SNA */

#magie-astronomique p:last-child {
    margin-top: 2.3rem;
    text-align: center;
}

#magie-astronomique p:last-child a {
    display: inline-block;

    padding: 0.8rem 1.3rem;

    border:
        1px solid var(--or-sombre);

    border-radius: 5px;

    text-decoration: none;
}


/* ----------------------------------------------------------
   SCOLAIRES
   ---------------------------------------------------------- */

#scolaires ul {
    max-width: 680px;

    margin-top: 2rem;
    margin-bottom: 2rem;

    padding: 0;

    list-style: none;
}

#scolaires li {
    position: relative;

    padding:
        0.6rem 0
        0.6rem 2rem;
}

#scolaires li::before {
    content: "✦";

    position: absolute;
    left: 0;

    color: var(--or);
}


/* ----------------------------------------------------------
   ÉCOLE DE MAGIE / VIDÉOS
   ---------------------------------------------------------- */

#ecole-magie,
#videos {
    text-align: center;
}


/* ----------------------------------------------------------
   QUI SOMMES-NOUS
   ---------------------------------------------------------- */

#qui-sommes-nous {
    background:
        linear-gradient(
            135deg,
            rgba(105, 31, 45, 0.12),
            transparent 70%
        );
}


/* ----------------------------------------------------------
   LIENS D'ACTION DANS LES SECTIONS
   ---------------------------------------------------------- */

#spectacles article p:last-child a,
#scolaires p:last-child a,
#ecole-magie p:last-child a,
#videos p:last-child a {
    display: inline-block;

    margin-top: 0.7rem;

    padding: 0.65rem 1rem;

    color: var(--or-clair);

    text-decoration: none;

    border:
        1px solid var(--or-sombre);

    border-radius: 4px;

    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}

#spectacles article p:last-child a:hover,
#scolaires p:last-child a:hover,
#ecole-magie p:last-child a:hover,
#videos p:last-child a:hover {
    color: #150f0c;

    background: var(--or);
}


/* ----------------------------------------------------------
   FAQ
   ---------------------------------------------------------- */

#questions {
    max-width: 900px;
}

#questions details {
    margin-bottom: 0.8rem;

    background:
        rgba(255, 255, 255, 0.025);

    border:
        1px solid var(--bordure);

    border-radius: 7px;

    overflow: hidden;
}

#questions summary {
    position: relative;

    padding:
        1.1rem 3.2rem
        1.1rem 1.3rem;

    color: var(--or-clair);

    font-size: 1.08rem;

    cursor: pointer;

    list-style: none;

    transition:
        background-color 0.2s ease;
}

#questions summary::-webkit-details-marker {
    display: none;
}

#questions summary::after {
    content: "+";

    position: absolute;

    right: 1.25rem;
    top: 50%;

    transform:
        translateY(-50%);

    color: var(--or);

    font-family:
        Arial,
        sans-serif;

    font-size: 1.5rem;
}

#questions details[open] summary::after {
    content: "−";
}

#questions summary:hover {
    background:
        rgba(214, 178, 103, 0.06);
}

#questions details p {
    margin: 0;

    padding:
        0 1.4rem
        1.4rem;

    color: var(--texte-doux);
}


/* ----------------------------------------------------------
   CONTACT FINAL
   ---------------------------------------------------------- */

#contact {
    max-width: 850px;

    text-align: center;

    margin-bottom: 5rem;

    padding: 4rem;

    background:
        linear-gradient(
            135deg,
            rgba(105, 31, 45, 0.38),
            rgba(31, 20, 27, 0.8)
        );

    border:
        1px solid var(--bordure);

    border-radius:
        var(--rayon);

    box-shadow:
        var(--ombre);
}

#contact h2 {
    margin-bottom: 1.5rem;
}

#contact a {
    display: inline-block;

    margin-top: 1rem;

    padding:
        0.8rem 1.4rem;

    color: #18100d;

    background:
        linear-gradient(
            135deg,
            var(--or-clair),
            var(--or)
        );

    border-radius: 5px;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-weight: bold;

    text-decoration: none;
}

#contact a:hover {
    filter: brightness(1.08);
}

#pierrot-josie {
    position: relative;
    width: 60%;
    margin: 20px auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* halo bleu flou derrière */
#pierrot-josie::before {
    content: "";
    position: absolute;
    z-index: 0;

    width: 165%;
    height: 150%;

    left: 50%;
    top: 36%;
    transform: translate(-50%, -50%);

    background: radial-gradient(
        ellipse at center,
        rgba(80, 140, 255, 0.55) 0%,
        rgba(50, 110, 230, 0.35) 35%,
        rgba(20, 60, 160, 0.18) 55%,
        rgba(0, 0, 0, 0) 75%
    );

    filter: blur(22px);
    border-radius: 50%;
}

.magicienssombres {
    position: relative;
    z-index: 2;
    width: 70%;
    height: auto;
    display: block;
}

.etoiles {
    position: absolute;
    z-index: 3;

    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);

    width: 20%;
    height: auto;
    pointer-events: none;
}



/* ----------------------------------------------------------
   FOOTER
   ---------------------------------------------------------- */

footer {
    padding:
        3rem 20px;

    color: #aa9f92;

    background: #090708;

    border-top:
        1px solid var(--bordure);

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 0.82rem;
    line-height: 1.7;

    text-align: center;
}

footer p {
    max-width: 850px;

    margin:
        0 auto 1rem;
}

footer strong {
    color: #d5c9b9;
}

footer a {
    color: #caae70;
}


/* ----------------------------------------------------------
   SÉLECTION DE TEXTE
   ---------------------------------------------------------- */

::selection {
    color: white;
    background: var(--bordeaux);
}


/* ----------------------------------------------------------
   ACCESSIBILITÉ CLAVIER
   ---------------------------------------------------------- */

:focus-visible {
    outline:
        2px solid var(--or-clair);

    outline-offset: 4px;
}


/* ----------------------------------------------------------
   TABLETTE
   ---------------------------------------------------------- */

@media (max-width: 900px) {

    section {
        padding:
            4.5rem 0;
    }

    #spectacles {
        grid-template-columns: repeat(2, 1fr);
    }

}


/* ----------------------------------------------------------
   MOBILE
   ---------------------------------------------------------- */

@media (max-width: 650px) {

    body {
        font-size: 17px;
    }

    header {
        position: relative;
    }

    nav {
        gap: 0;
    }

    nav a {
        padding:
            0.5rem 0.65rem;

        font-size: 0.82rem;
    }

    section {
        width:
            min(100% - 30px, var(--largeur));

        padding:
            3.8rem 0;
    }

    #accueil {
        min-height: auto;

        padding-top:
            5rem;

        padding-bottom:
            5rem;
    }

    h1 {
        font-size: clamp(1.7rem, 8vw, 2.4rem);
    }

    h2 {
        font-size:
            2rem;
    }

    #spectacles {
        grid-template-columns: 1fr;
    }

    blockquote {
        padding:
            1.6rem 1.8rem;

        font-size:
            1.25rem;
    }

    #contact {
        width:
            calc(100% - 30px);

        padding:
            2.5rem 1.5rem;
    }

}


/* ----------------------------------------------------------
   PRÉFÉRENCE UTILISATEUR :
   RÉDUIRE LES ANIMATIONS
   ---------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition: none !important;
    }

}