*,
*::before,
*::after {
    box-sizing: border-box;
}

/*
html {
    scroll-behavior: smooth;
} Demander à Gaëlle si c'est nécessaire pour mes animations car je ne vois pas de changement*/

/*:root ciblera l'élément <html> et aura le même comportement que le sélecteur html mais sa spécificité sera plus forte */

:root {
    --header-height: 69px;
    --header-gap: 50px;
    --header-items-number: 4;
}

/*variable en CSS */

header {
    padding-top: var(--header-height);
}

body {
    margin: 0;
    font-optical-sizing: auto;
    font-family: "Manrope", Arial, Helvetica, sans-serif;
    color: #1A1A1A;
    background-color: #FDFCFB;
}

.oranienbaum-regular {
    font-family: "Oranienbaum", 'Times New Roman', Times, serif;
    font-weight: 400;
    font-style: normal;
}

.manrope-body {
    font-family: "Manrope", Arial, Helvetica, sans-serif;
    font-optical-sizing: auto;
    font-weight: 200;
    font-style: normal;
}

/* Debut Navigation */

/*Code récupéré sur Codepen https://codepen.io/singhimalaya/pen/OKOLEe puis amélioré avec l'aide de mon tuteur de stage */

nav {
    position: fixed;
    top: 0%;
    right: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background-color: #FDFCFB;
    padding: 10px 40px; 
    display: flex;
    align-items: center;
    justify-content: space-between; 
}

.nav-logo {
    width: 70px; 
    height: auto;
}

.nav-logo img {
    width: 100%;
    height: auto;
    display: block;
}
.nav {
    position: relative;
    display: grid;
    grid-template-columns: repeat(var(--header-items-number), 1fr);
    gap: var(--header-gap);
    padding: 0;
    margin: 0 auto; 
}

ul {
    list-style-type: none;
    padding-left: 0;
    margin-top: 0;
    padding-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 92px;
    justify-content: center;
}

nav a {
    letter-spacing: 1px;
    font-size: 1.2rem;
    position: relative;
    text-align: center;
    color: #4A443F;
    text-decoration: none;
    font-weight: bold;
    padding: 10px 0;
    display: block;
    transition: 0.2s ease color;
}

nav a:before,
nav a:after {
    content: "";
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    transition: 0.2s ease transform;
}

nav a:before {
    top: 5px;
    left: -12px;
    width: 6px;
    height: 6px;
}

nav a:after {
    top: 7px;
    left: -2px;
    width: 4px;
    height: 4px;
}

nav li:nth-child(1) a:before {
    background-color: #093C5D;
}

nav li:nth-child(1) a:after {
    background-color: #3B7597;
}

nav li:nth-child(2) a:before {
    background-color: #093C5D;
}

nav li:nth-child(2) a:after {
    background-color: #3B7597;
}

nav li:nth-child(3) a:before {
    background-color: #093C5D;
}

nav li:nth-child(3) a:after {
    background-color: #3B7597;
}

nav li:nth-child(4) a:before {
    background-color: #093C5D;
}

nav li:nth-child(4) a:after {
    background-color: #3B7597;
}

#indicator {
    position: absolute;
    left: 0%;
    bottom: 0;
    width: 30px;
    height: 3px;
    background-color: #093C5D;
    border-radius: 5px;
    transition: 0.2s ease left;
}

nav a:hover {
    color: #2E5AA7;
}

nav li:hover a:before,
nav li:hover a:after {
    transform: scale(1);
}

nav li:nth-child(1):hover~#indicator {
    background: linear-gradient(130deg, #3B7597, #093C5D);
}

nav li:nth-child(2):hover~#indicator {
    left: calc(100% / var(--header-items-number) + var(--header-gap) / var(--header-items-number));
    background: linear-gradient(130deg,  #3B7597, #093C5D);
}

nav li:nth-child(3):hover~#indicator {
    left: calc(100% / var(--header-items-number) * 2 + var(--header-gap) / var(--header-items-number) * 2);
    background: linear-gradient(130deg, #3B7597, #093C5D);
}

nav li:nth-child(4):hover~#indicator {
    left: calc(100% / var(--header-items-number) * 3 + var(--header-gap) / var(--header-items-number) * 3);
    background: linear-gradient(130deg,  #3B7597, #093C5D);
}



/* End */

/* Debut Search bar */

header form {
    display: flex;
    justify-content: center;
    padding: 50px 20px;
    margin-top: 20px;
}


.fr-search-bar {
    display: flex;
    align-items: center;
    position: relative;
    width: 100%;
    max-width: 650px;
}

/* L'input de texte */
.fr-input {
    width: 100%;
    height: 50px;
    border-radius: 0;
    background-color: #FDFCFB;
    padding-left: 20px;
    padding-right: 140px;
    border: 1px solid #4A443F;
    font-family: "Manrope", Arial, Helvetica, sans-serif;
    font-size: 0.9rem;
    color: #4A443F;
    transition: all 0.3s ease;
}

input.fr-input:focus {
    outline: green;
    background-color: #ffffff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-color: #777e44;
}


.fr-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    height: 40px;
    padding: 0 15px;
    border-radius: 0;
    background-color: #3B7597;
    border: 1px solid #3B7597;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}


.fr-btn span {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    /* demander à Gaelle*/
    letter-spacing: 1px;
    color: white;
}


.fr-btn svg {
    width: 16px;
    height: 16px;
}


.fr-btn:hover {
    background-color: transparent;
    color: #3B7597;
}

.fr-btn:hover svg circle,
.fr-btn:hover svg path {
    stroke: #3B7597;
}

.fr-btn:hover span {
    color: #3B7597;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
}

/* End */

/* Hero section*/
.hero-section {
    background: #EFE9E3;
    /*background: linear-gradient(135deg, #f5f2d5 0%, #ffffff 100%);*/
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 40px;
    height: 720px;
    position: relative;
    overflow: hidden;
}

#canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    /* Le fond */
}

.hero-content,
.hero-img {
    position: relative;
    z-index: 2;
    pointer-events: none;
}

.hero-content button {
    pointer-events: auto;
}

.hero-content {
    max-width: 60%;
    padding-left: 20px;
    padding-right: 20px;
}

h1 {
    font-size: 5.5rem;
    line-height: 1;
    color: #1A1A1A;
}

.hero-content p {
    line-height: 1.8;
    color: #555;
    font-size: 1.25rem;
    padding: 20px;
    background: linear-gradient(145deg,
            rgba(255, 255, 255, 0.9) 0%,
            rgba(244, 241, 234, 0.7) 100%);
    border-radius: 15px;
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.05),
        inset 0 0 15px rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.hero-img {
    width: 477px;
    height: 641px;
    border-radius: 300px;
    object-fit: cover;
    border: 8px solid white;
}

button {
  
    width: fit-content;       
    height: auto;            
    border-radius: 0;          
    background-color: #3B7597;
    color: white;
    border: 1px solid #3B7597;
    padding: 12px 30px;        
    font-family: "Manrope", Arial, Helvetica, sans-serif;
    font-size: 0.8rem;         
    font-weight: 700;
    text-transform: uppercase; 
    letter-spacing: 2px;  /*demander à Gaelle si c'est ok en px*/
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

button:hover {
    background-color: transparent; 
    color: #3B7597;              
}

/* End */

/* Debut "How it works" */

.how-it-works {

    /*background-image: url(images-ephemeres/MOTIF-JEAN2.jpg);*/
    background-color: #edf1dd;

    height: 562px;
}

.sous-titres {
    font-size: 3rem;
    padding-top: 70px;
    text-align: center;
    padding-bottom: 20px;
}

.card-title {
    font-family: "Oranienbaum", 'Times New Roman', Times, serif;
    font-size: 2rem;
    margin-bottom: 20px;
}

.cards-container {
    display: flex;
    justify-content: center;
    gap: 100px;
    flex-wrap: wrap;
}

.card p {
    color: #4A443F;
    line-height: 1.6;
    font-size: 1rem;
}

.card {
    background-color: #FFFFFF;
    padding: 30px;
    width: 280px;
    min-height: 300px;
    border: 4px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.4s ease-in-out;
}

.card:hover {
    transform: translateY(-10px) rotate(2deg);
    box-shadow:
        5px 5px 0px 0px #777e44,
        10px 10px 0px 0px rgba(119, 126, 68, 0.5),
        15px 15px 0px 0px rgba(119, 126, 68, 0.2);

    border-color: #777e44;
}

/* Debut Recent items */
/*.recent-items {
    padding: 0px 20px;
}*/

/* Début Section Articles récemments ajoutés */

.recent-items {
    padding: 60px 20px;
    background-color: #FDFCFB;
    width: 100%;
    box-sizing: border-box;/
}

.recent-items h2 {
    margin: 0 0 50px 0;
    text-align: center;
}

.img-cards-container {
    display: flex;
    justify-content: center;
    gap: 100px;
    margin: 0 auto;
    padding: 0;
    max-width: 1200px;
}

.img-cards {
    flex: 0 1 350px;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
}

.img-cards img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 0;
    transition: transform 0.6s cubic-bezier(0.2, 1, 0.3, 1);
}

.img-cards:hover img {
    transform: scale(1.05);
}

.img-cards h3 {
    font-family: "Oranienbaum", 'Times New Roman', Times, serif;
    font-size: 1.5rem;
    margin: 0 0 10px 0;
    text-transform: uppercase;
}

.img-cards p {
    font-size: 1rem;
    margin: 0 0 20px 0;
    line-height: 1.5;
    color: #4A443F;
}



.discovery-btn {

    background-color: #3B7597;
    color: white;
    border: 1px solid #3B7597;
    padding: 12px 25px;
    font-size: 0.8rem;
    text-transform: uppercase;
    /*demander à Gaelle si c'est ok niveau accessibilité */
    letter-spacing: 2px;
    transition: all 0.3s ease;
    width: fit-content;
    text-decoration: none;
}

.discovery-btn:hover {
    background-color: transparent;
    color: #3B7597;
}

/* End*/


/* Debut Author part */

.author-part {
    background-color: #edf1dd;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 600px;
    margin-top: 100px;
    padding: 0 50px;
}

.author-content {
    max-width: 50%;
    order: 2;
}

.author-content p {
    font-size: 1.5rem;
    padding-bottom: 20px;
}

.author-content h2 {
    font-size: 3rem;
    padding-top: 70px;
    text-align: left;

}

.polaroid {
    background-color: white;
    width: 376px;
    height: 463px;
    margin-left: 60px;
    transform: rotate(-2deg);
    transition: transform 0.3s ease;
    box-shadow: 5px 10px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.img-polaroid {
    width: 333px;
    height: 316px;
    object-fit: cover;
    margin: 20px;

}

.caption {
    font-family: 'Comic Sans MS', cursive, sans-serif;
    color: #333;
    font-size: 1.5rem;
    margin: 10px;
    text-align: center;
}

.polaroid:hover {
    transform: rotate(0deg) scale(1.05);
}


/*End*/

/*  Debut Slogan */
.slogan-part {
    padding: 120px 20px;
    background-color: #FDFCFB;
    text-align: center;
}

.wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.decoration {
    color: #484c29;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.slide-up {
    height: 50px;
    overflow: hidden;
    position: relative;
}

.slide-up-list {
    display: flex;
    flex-direction: column;
    animation: slideUpLoop 12s cubic-bezier(0.8, 0, 0.2, 1) infinite;
}

.slide-up-list p {
    font-family: "Oranienbaum", 'Times New Roman', Times, serif;
    font-size: 2.2rem;
    line-height: 50px;
    height: 50px;
    margin: 0;
    color: #1A1A1A;
    letter-spacing: 0.5px;
    font-weight: 400;
}


.highlight {
    color: #777e44;
    font-style: italic;
}


@keyframes slideUpLoop {

    0%,
    20% {
        transform: translateY(0);
    }

    25%,
    45% {
        transform: translateY(-50px);
    }

    50%,
    70% {
        transform: translateY(-100px);
    }

    75%,
    95% {
        transform: translateY(-150px);
    }

    100% {
        transform: translateY(-200px);
    }
}

/*End*/



/* Text and cards animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content,
.card,
.img-cards {
    animation: fadeInUp 0.8s ease-out;
}

.card:nth-child(2) {
    animation-delay: 0.2s;
}

.card:nth-child(3) {
    animation-delay: 0.4s;
}


/* Debut Footer*/

.main-footer {
    background-color: #093C5D;
    color: #FFFFFF;
    padding: 80px 0 40px 0;
}


.footer-layout {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    gap: 100px;
}

.footer-brand {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo-placeholder {
    width: 170px;  
    height: auto; 
    margin-bottom: 10px; 
}

.logo-placeholder img {
    width: 100%; 
    height: auto;
    display: block;
    border-radius: 15px;
}

.website-name {
    font-size: 5rem;
    margin: 0 0 20px 0;
    color: #FFFFFF;
}


.footer-socials {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.footer-socials a {
    color: #FFFFFF;
}




/* Zone de droite (Les textes) */
.footer-legal-content {
    flex: 2;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.legal-section p {
    font-size: 0.85rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
}

.subtitle-footer {
    font-family: "Oranienbaum", 'Times New Roman', Times, serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #a3a87b;
    margin-bottom: 10px;
    font-size: 1rem;
}

ul.host-list {
    display: block;
    text-align: left;
    /* Aligne le texte à gauche */
    margin-top: 20px;
}

ul.host-list li {
    font-size: 0.85rem;
    margin: 0 0 10px 0;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
}

.author-mail {
    color: white;
}

.author-mail:hover {
    color: #777E44;
}

/* End */

/* Debut Espace Administratrice */
.admin-link {
    margin-top: 40px;
    color: #e0dedb;
    font-size: 1.1rem;
}

.admin-link:hover {
    color: #777E44;
}

/*End*/



/* Responsive : On empile tout sur téléphone 
@media (max-width: 850px) {
    .footer-layout {
        flex-direction: column;
        gap: 40px;
        padding: 0 20px;
    }
    
    .footer-legal-content {
        text-align: left;
    }
}*/