/* Variables CSS */
:root {
    --primary-color: #ea8d36;
    --secondary-color: #f6dd79;
    --text-color: #4e4e4e;
    --font-primary: 'Quicksand', sans-serif;
    --font-secondary: 'Poiret One', sans-serif;
}

/* Styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    color: var(--text-color);
    line-height: 1.6;
}

p {
    font-family: 'Quicksand', sans-serif;
    color: var(--text-color);
}

/* Optimisation des images */
img {
    max-width: 100%;
    height: auto;
    will-change: transform;
}

/* ********** Centre le logo ********** */
.logoli {
    padding-top: 3em;
    padding-bottom: 2em;
}

.logoli img.logo {
    margin: 0 auto;
    max-width: 250px;
    opacity: 0;
    animation: fadeIn 3s forwards;
}

h1.olivia {
    font-family: 'Poiret One', sans-serif;
    font-size: 2.2em;
    letter-spacing: 0.2em;
    color: #4e4e4e;
    margin-bottom: 1em;
}

button.navbar-toggler {
    border: none;
}

a.navbar-brand img {
    position: absolute;
    bottom: -50px;
    max-height: 100px;
}

nav a {
    font-family: 'Poiret one', sans-serif;
    font-size: larger !important;
}

.navbar {
    background-color: #ea8d36;
    position: sticky !important;
    top: 0;
    z-index: 10;
    text-align: center;
}

.navbar-nav > li > .dropdown-custom { 
    background: #ea8d36;
    border: none;
    text-align: center;
}

div.name {
    padding-top: 2em;
    text-align: center;
    animation: slideInBottom 2s forwards;
    transform: translateY(100%);
}

/* ********** CHEFFE ********** */
div.scroll-container {
    overflow: auto;
    white-space: nowrap;
    padding: 10px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    position: relative;
}

div.scroll-container::-webkit-scrollbar {
    display: none;
}
  
div.scroll-container img {
    max-height: 500px;
    transition: .2s linear;
    position: relative;
}

.scroll-indicator {
    position: absolute;
    right: 1em;
    top: 10%;
    color: #ffffff;
    font-size: 2rem;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    z-index: 2;
    pointer-events: none;
}

/* ********** Galerie photos pop up ********** */
.gallery {
    --s: 130px;
    --g: 5px;
    display: grid;
    margin: 13rem 8rem;
}
  
.gallery-item {
    grid-area: 1/1;
    width: var(--s);
    aspect-ratio: 1.15;
    transform: translate(var(--_x,0),var(--_y,0)) scale(var(--_t,1));
    cursor: pointer;
    transition: .2s linear;
}

.gallery-item:hover {
    z-index: 1;
    --_t: 2.2;
}

.gallery-item picture {
    width: 100%;
    height: 100%;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%,75% 100%,25% 100%,0 50%);
}
  
.gallery-item:nth-child(1) {--_y: calc(-100% - var(--g))}
.gallery-item:nth-child(7) {--_y: calc( 100% + var(--g))}
.gallery-item:nth-child(3),
.gallery-item:nth-child(5) {--_x: calc(-75% - .87*var(--g))}
.gallery-item:nth-child(4),
.gallery-item:nth-child(6) {--_x: calc( 75% + .87*var(--g))}
.gallery-item:nth-child(3),
.gallery-item:nth-child(4) {--_y: calc(-50% - .5*var(--g))}
.gallery-item:nth-child(5), 
.gallery-item:nth-child(6) {--_y: calc( 50% + .5*var(--g))}

p.left {
    text-align: left;
}

p.right {
    text-align: right;
}

/* ********** Parallax Section ********** */
.parallax, .parallax2, .parallax3 {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.parallax-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.parallax .parallax-background {
    background-image: url('img/parallax1.jpg');
}

.parallax2 .parallax-background {
    background-image: url('img/stjacques.jpg');
}

.parallax3 .parallax-background {
    background-image: url('img/parallax3.jpg');
}

section h1, h2, h3 {
    font-family: 'Poiret One', sans-serif;
    color: #ea8d36;
    font-size: 2em;
    letter-spacing: 0.1em;
    text-align: center;
    margin: 2rem 0;
}

section a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

section a:hover {
    color: var(--primary-color);
}

section#consulting p {
    text-align: center;
    max-width: 1000px;
    margin: 0 auto 2em auto;
}

section#consulting p.hidden {
    opacity: 0;
    transform: translateY(30px);
}

section#consulting p.slide-in-bottom {
    animation: slideInBottom 1s ease forwards;
}

section#consulting p:nth-child(2).slide-in-bottom {
    animation-delay: 0.3s;
}

section#consulting p:nth-child(3).slide-in-bottom {
    animation-delay: 0.6s;
}

section#popup h1 {
    margin: 3rem 0;
}

section#qui-suis-je {
    background-color: #f6dd79;
    padding: 1em 0;
}

section#qui-suis-je h1 {
    margin-bottom: 1em;
}

section#qui-suis-je .qui-suis-je-wrapper {
    position: relative;
    overflow: hidden;
}

section#qui-suis-je img {
    width: 35%;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    float: right;
    margin: 0 0 1em 2em;
    shape-outside: circle(50% at 50% 50%);
    shape-margin: 1em;
    /*border: 0.5rem #ea8d36 solid ;*/
}

section#qui-suis-je p {
    margin-bottom: 1.5em;
    line-height: 1.8;
    text-align: left;
    font-family: 'Poiret One', sans-serif;
    font-size: 1.1rem;
}

section#contact .container .contact {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

section#contact .contact .text {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.2rem;
    margin: 0;
}

section#contact .contact .text i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

section#contact .contact .text a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

section#contact .contact .text a:hover {
    color: var(--primary-color);
}

section#contact p {
    font-size: 2.2em;
    font-family: 'Poiret One', sans-serif;
}

section#contact a {
    text-decoration: none !important;
    color: #ea8d36;
}

section#contact a:hover {
    color: #f6dd79;
}

/* ******** Back to top button ******** */
#btn-back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;
    border-radius: 50%;
}

#btn-back-to-top:hover {
    color: #ea8d36;
    background-color: #f6dd79;
}

/* ********** FOOTER ********** */
footer {
    background: #ea8d36;
    font-family: 'Poiret One', sans-serif;
    font-size: 1.3em;
    letter-spacing: 0.1em;
}

/* ********** Animations ********** */
@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes slideInLeft {
    0% {
        opacity: 0;
        transform: translateX(-100%);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    0% {
        opacity: 0;
        transform: translateX(100%);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInBottom {
    0% {
        opacity: 0;
        transform: translateY(100%);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Classes pour appliquer les animations */
.slide-in-left {
    animation: slideInLeft 1s ease-out forwards;
}

.slide-in-right {
    animation: slideInRight 1s ease-out forwards;
}

.slide-in-bottom {
    animation: slideInBottom 1s ease-out forwards;
}

/* Masquer les paragraphes initialement */
.hidden {
    opacity: 0;
}

@media (max-width: 768px) {
    section.logoli {
        margin-top: 3em;
    }
    section.parallax, section.parallax2, section.parallax3 {
        height: 130px;
    }
    section.parallax2, section.parallax3 {
        display: none;
    }
    .parallax-background {
        background-attachment: scroll;
    }
    .gallery {
        justify-content: center;
        --s: 130px;
        --g: 5px;
        display: grid;
        margin: 10rem 8rem;
    }
    section#consulting p {
        text-align: justify;
        margin: 0 auto 2em auto;
    }
    section#qui-suis-je img {
        width: 80%;
        float: none;
        margin: 2em auto;
        display: block;
    }
    section#qui-suis-je p {
        text-align: center;
    }
    #btn-back-to-top {
        bottom: 60px;
    }
    section#contact .container .contact {
        flex-direction: column;
        gap: 1rem;
    }
    section#contact .contact .text {
        font-size: 1rem;
    }
    section#contact .contact .text i {
        font-size: 1.2rem;
    }
    .scroll-indicator {
        font-size: 1.5rem;
        right: 1em;
        top: 50%;
        transform: translateY(-50%);
        opacity: 0.8;
    }
}

/* Suppression de l'ancien style */
div.scroll-container::after {
    display: none;
}

div.scroll-container:hover::after {
    display: none;
}
