/* ///////////////////////////////////////////////////////////////////////////////////////////
                        RESET
/////////////////////////////////////////////////////////////////////////////////////////// */

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
    box-sizing: border-box;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
a,
span {
    position: relative;
    z-index: 1;
}

/* HTML5 display-role reset for older browsers */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
    display: block;
}

body {
    line-height: 1;
    background-color: var(--color-primary);
    position: relative;
}

#grain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* pour que ça ne bloque pas les clics */
    z-index: -1; /* derrière le contenu */
}

ol,
ul {
    list-style: none;
}

blockquote,
q {
    quotes: none;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
    content: "";
    content: none;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

img {
    max-width: 100%;
    height: auto;
}

/* ///////////////////////////////////////////////////////////////////////////////////////////
                        GENERAL
/////////////////////////////////////////////////////////////////////////////////////////// */

/* --------------------------- Typographies --------------------------- */

@font-face {
    font-family: "noiretblanc";
    src: url("/assets/typography/noiretblanc_medium_bold-webfont.woff2") format("woff2");
    font-display: swap;
}

@font-face {
    font-family: "poppins";
    src: url("/assets/typography/Poppins-Regular.woff2") format("woff2");
    font-display: swap;
}

@font-face {
    font-family: "poppins-lightitalic";
    src: url("/assets/typography/Poppins-LightItalic.woff2") format("woff2");
    font-display: swap;
}

/* --------------------------- Variables --------------------------- */

/* Typos */

:root {
    --font-primary: "noiretblanc", serif;
    --font-secondary: "poppins", serif;
    --font-special: "poppins-lightitalic", sans-serif;

    /* Tailles de police */
    --font-size-xs: clamp(0.75rem, 0.25vw, 0.875rem);
    --font-size-sm: clamp(0.875rem, 0.375vw, 1rem);
    --font-size-base: clamp(1rem, 0.5vw, 1.125rem);
    --font-size-lg: clamp(1.125rem, 0.625vw, 1.25rem);
    --font-size-xl: clamp(1.25rem, 1.75vw, 2.2rem);
    --font-size-2xl: clamp(1.5rem, 1vw, 1.875rem);
    --font-size-3xl: clamp(1.875rem, 1.375vw, 2.25rem);
    --font-size-4xl: clamp(2.25rem,  3.5vw, 4rem);
    --font-size-5xl: clamp(3rem, 4.5vw, 5rem);
    --font-size-big: clamp(3rem, 15.5vw, 14rem);
}

/* Couleurs */

:root {
    --color-primary: #202020;
    /* Couleur principale */
    --color-secondary: #d93c30;
    /* Couleur secondaire */
    --color-light: whitesmoke;
    /* Couleur light */
    --color-link: #80d39b;
    /* Couleur light */
    --color-lightdark: #2c2c2d;
    /* Couleur dark light */
}

/* Espacements */

:root {
    --space-xs: clamp(0.25rem, 0.5vw, 0.5rem);
    --space-sm: clamp(0.5rem, 1vw, 1rem);
    --space-md: clamp(1rem, 2vw, 1.5rem);
    --space-lg: clamp(1.5rem, 3vw, 2.5rem);
    --space-xl: clamp(2rem, 4vw, 3.5rem);
    --space-2xl: clamp(2.5rem, 5vw, 5rem);
    --space-3xl: clamp(3rem, 6vw, 6rem);
    --space-4xl: clamp(4rem, 8vw, 8rem);
    --space-5xl: clamp(5rem, 10vw, 12rem);
}

/* -------------------- Titres -------------------- */

h1 {
    font-size: var(--font-size-5xl);
    margin-top: var(--space-md);
    margin-bottom: var(--space-md);
    font-family: var(--font-primary);
    color: var(--color-light);
}

h2 {
    font-size: var(--font-size-5xl);
    margin-top: var(--space-md);
    margin-bottom: var(--space-md);
    font-family: var(--font-primary);
    color: var(--color-light);
}

h3 {
    font-size: var(--font-size-3xl);
    margin-top: var(--space-md);
    margin-bottom: var(--space-sm);
    font-family: var(--font-secondary);
    color: var(--color-light);
}

h4 {
    font-size: var(--font-size-2xl);
    margin-top: var(--space-md);
    margin-bottom: var(--space-sm);
    font-family: var(--font-secondary);
    color: var(--color-light);
}

h5 {
    font-size: var(--font-size-xl);
    margin-top: var(--space-md);
    margin-bottom: var(--space-xs);
    font-family: var(--font-primary);
    color: var(--color-light);
}

h6 {
    font-size: var(--font-size-lg);
    margin-top: var(--space-md);
    margin-bottom: var(--space-xs);
    font-family: var(--font-secondary);
    color: var(--color-light);
}

/* -------------------- Textes -------------------- */

p {
    font-size: var(--font-size-base);
    margin-bottom: var(--space-sm);
    line-height: normal !important;
}

blockquote {
    font-size: var(--font-size-lg);
    font-family: var(--font-special);
    margin-bottom: var(--space-sm);
}

.red-word {
    color: var(--color-secondary);
}

/* -------------------- Liens -------------------- */

a {
    text-decoration: none !important;
    cursor: pointer;
    font-family: var(--font-secondary);
    color: var(--color-light);
    font-size: var(--font-size-base);
    transition: color 0.5s ease-in-out;
    position: relative;
    margin-bottom: var(--space-xs);
    transition: color 0.3s ease, transform 0.3s ease;
}

a:hover {
    color: var(--color-secondary);
}

/* -------------------- Boutons -------------------- */

/* Bouton principal */
a.btn-primary {
    height: 40px;
    border: 1px solid var(--color-light);
    border-radius: 99px;
    margin-top: var(--space-xs);
    margin-bottom: var(--space-xs);
    box-sizing: border-box;
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    color: var(--color-light);
    background-color: transparent;
    line-height: 1.2;
    padding: var(--space-xs) var(--space-sm);
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    display: flex;
    justify-content: center;
    align-items: center;
    column-gap: 20px;
    width: fit-content;
    text-align: center;
    cursor: pointer;
    position: relative;
    transition: background-color 0.3s ease-in-out, border-color 0.3s ease-in-out,
        transform 0.2s ease-in-out;
}

/* Flèche cachée par défaut */
.btn-arrow {
    position: absolute;
    top: 50%;
    right: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    transform: translate(0, -50%) rotate(0deg);
    background-color: var(--color-light);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55),
        /* rebond */
        opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

/* Taille de l’icône SVG */
.btn-arrow svg {
    width: 15px;
}

.st0 {
    stroke-width: 3px;
    stroke: var(--color-primary);
}

/* Hover du bouton */
a.btn-primary:hover {
    background-color: var(--color-secondary);
    border-color: var(--color-secondary);
    transform: scale(1.05);
    /* petit zoom */
}

/* Hover de la flèche */
a.btn-primary:hover .btn-arrow {
    transform: translate(50px, -50%) rotate(180deg);
    /* sortie + rotation */
    opacity: 1;
    visibility: visible;
}

/* ///////////////////////////////////////////////////////////////////////////////////////////
                        HEADER
/////////////////////////////////////////////////////////////////////////////////////////// */

header {
    position: fixed;
    top: 0;
    left: 0;
    padding: 15px;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, auto);
    grid-template-rows: auto;
    grid-column-gap: 20px;
    grid-row-gap: 0px;
    z-index: 100;
}

.logo {
    grid-area: 1 / 1 / 2 / 2;
    font-family: var(--font-primary);
    text-transform: uppercase;
    color: var(--color-light);
    font-size: var(--font-size-xl);
}

.logo-desktop {
    display: none;
}

.language {
    grid-area: 1 / 2 / 2 / 3;
    justify-self: center;
}

.nav {
    font-family: var(--font-secondary);
    grid-area: 1 / 3 / 2 / 4;
    justify-self: end;
}

.nav a:first-child {
    margin-right: 15px;
}

.wrapper {
    padding: 0 20px;
}


/* ///////////////////////////////////////////////////////////////////////////////////////////
                        HERO
/////////////////////////////////////////////////////////////////////////////////////////// */

.hero-box {
    position: relative;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero-text {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
}

.hero-text span.hero-baseline {
    font-family: var(--font-primary);
    color: var(--color-light);
    font-size: var(--font-size-2xl);
    margin-bottom: var(--space-xs);
}

.hero-box h1 {
    font-size: var(--font-size-big);
}

.hero-img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateY(-50%);
}

/* Cercle rouge */

.red-circle {
    position: fixed;
    z-index: -1;
    top: 50%;
    left: 0%;
    transform: translate(-65%, -50%);
    width: 40vw;
    height: 40vw;
    border-radius: 50%;
    background-color: var(--color-secondary);
}

/* Médias sociaux */

.social-media {
    position: fixed;
    /* reste collé à l’écran */
    top: 50%;
    /* centré verticalement */
    right: 15px;
    /* à 15px du bord droit */
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: translateY(-50%);
    /* recentre parfaitement */
    gap: 20px;
    /* espace entre les éléments */
    z-index: 1000;
    /* au-dessus du contenu */
}

.social-media a {
    writing-mode: vertical-rl;
    /* écriture verticale (rotation) */
    transform: rotate(180deg);
    /* remet le texte lisible du bas vers le haut */
    font-family: var(--font-secondary);
    font-size: 14px;
    color: var(--color-light, #fff);
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-media a:hover {
    color: var(--color-secondary, #ff4081);
    transform: rotate(180deg);
    /* zoom léger au hover */
}

.line-ms {
    display: block;
    width: 1px;
    height: 60px;
    background-color: var(--color-secondary);
    margin-top: 10px;
}

/* ==================================================================================================================================
=====================================================================================================================================
ACCUEIL
=====================================================================================================================================
================================================================================================================================== */

/* ///////////////////////////////////////////////////////////////////////////////////////////
                        INTRODUCTION
/////////////////////////////////////////////////////////////////////////////////////////// */

.intro {
    display: flex;
    flex-direction: column;
    margin-bottom: var(--space-4xl);
}

.intro-scroll {
    display: block;
    font-family: var(--font-primary);
    font-size: var(--font-size-4xl);
    color: var(--color-secondary);
    max-width: 65%;
    margin: auto;
    text-align: center;
    line-height: 1.2;
    margin-bottom: var(--space-4xl);
}


.intro-text {
    color: var(--color-light);
    font-family: var(--font-special);
}

.section-flex {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    column-gap: 50px;
}



/* ///////////////////////////////////////////////////////////////////////////////////////////
                        PROJETS
/////////////////////////////////////////////////////////////////////////////////////////// */

.title-line-box {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    column-gap: 20px;
    margin-bottom: var(--space-2xl);
}

.title-line-box h2 {
    padding: 0 20px 0 40px;
    line-height: 0;
}

.title-line {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-secondary);
}

/* ///////////////////////////////////////////////////////////////////////////////////////////
                        SLIDESHOW
/////////////////////////////////////////////////////////////////////////////////////////// */

.projets {
    margin-bottom: var(--space-3xl);
}

.slideshow-box {
    max-width: 85%;
    margin: 0 0 0 auto;
}

.slideshow-container {
    margin-top: 4vw;
    overflow: hidden;
    min-height: 60vmin;
    cursor: grab;
    position: relative;
    margin-right: -20px;
}

.slideshow-container:active {
    cursor: grabbing;
}

.slideshow {
    position: absolute;
    height: 100%;
    display: flex;
    pointer-events: none;
}

.slide {
    flex-shrink: 0;
    height: 100%;
    width: 40vmin;
    color: var(--color-light);
    background-size: contain;
    background-position: center;
    position: relative;
}

.slide:not(:nth-child(1)) {
    margin-left: 10px;
}

.overlay {
    position: absolute;
    inset: 0;
    background: #202020;
    background: linear-gradient(0deg, rgba(32, 32, 32, 1) 0%, rgba(32, 32, 32, 0) 50%);
}

.slide h3 {
    position: absolute;
    bottom: clamp(10px, 2vw, 20px);
    right: clamp(10px, 2vw, 20px);
    font-size: clamp(16px, 3vw, 20px);
    font-weight: 300;
    color: var(--color-light);
    pointer-events: auto;
}

.slide a {
    position: absolute;
    bottom: clamp(10px, 2vw, 20px);
    right: clamp(10px, 2vw, 20px);
    font-size: clamp(13px, 3vw, 20px);
    font-weight: 300;
    color: var(--color-light);
    pointer-events: auto;
}

.slide p {
    position: absolute;
    bottom: clamp(10px, 2vw, 20px);
    left: clamp(10px, 2vw, 20px);
    font-size: clamp(16px, 3vw, 20px);
    font-weight: 300;
    color: var(--color-light);
}

.s1 {
    background-image: url(/assets/img/shad-cafe.jpg);
}

.s2 {
    background-image: url(/assets/img/ciro.jpg);
}

.s3 {
    background-image: url(/assets/img/nature-fibres.jpg);
}

.s4 {
    background-image: url(/assets/img/soleva.jpg);
}

.s5 {
    background-image: url(/assets/img/yanon.jpg);
}


/* ==================================================================================================================================
=====================================================================================================================================
PROJETS
=====================================================================================================================================
================================================================================================================================== */

.stacked-images {
    width: 15px;
    height: auto;
    overflow: visible;
}

.stacked-images img {
    position: absolute;
    top: 50%;
    left: 50%;
    object-fit: cover;
    transform-origin: center center;
    pointer-events: none;
}



.filters {
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    column-gap: 20px;
}

.filters button {
    height: 40px;
    border: 1px solid var(--color-light);
    border-radius: 99px;
    margin-top: var(--space-xs);
    margin-bottom: var(--space-xs);
    box-sizing: border-box;
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    color: var(--color-light);
    background-color: transparent;
    line-height: 1.2;
    padding: var(--space-xs) var(--space-sm);
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    display: flex;
    justify-content: center;
    align-items: center;
    column-gap: 20px;
    width: fit-content;
    text-align: center;
    cursor: pointer;
    position: relative;
    transition: background-color 0.3s ease-in-out, border-color 0.3s ease-in-out,
        transform 0.2s ease-in-out;
}

.filters button.active {
    background-color: var(--color-lightdark);
    border-color: var(--color-secondary);
}

.filters button:hover {
    background-color: var(--color-secondary);
    border-color: var(--color-secondary);
    transform: scale(1.05);
}

.gallery {
    column-count: 3;
    column-gap: 15px;
}

.item {
    position: relative;
    break-inside: avoid;
    margin-bottom: 15px;
}


.item img {
    width: 100%;
    display: block;
}

.item a {
    position: absolute;
    z-index: 2;
    bottom: 10px;
    right: 10px;
}

.item .item-logo {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.item .item-logo.square-logo {
    max-width: 130px;
}

.item .item-overlay {
    position: absolute;
    inset: 0;
    background: #202020;
    background: linear-gradient(0deg, rgba(32, 32, 32, 1) 0%, rgba(32, 32, 32, 0.24) 100%);
}

/* Responsive */
@media (max-width: 900px) {
    .gallery { column-count: 2; }
}
@media (max-width: 600px) {
    .gallery { column-count: 1; }
}


.modal {
    position: fixed;
    inset: 0;
    background: rgba(32,32,32,0.8);
    z-index: 1000;

    /* scroll possible */
    overflow-y: auto;

    /* animation */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.modal-content img {
    max-width: 90%;
    max-height: 90vh; /* jamais plus grand que la hauteur de l’écran */
    width: auto;
    height: auto;
    border-radius: 10px;
    display: block;
    margin: auto;
}

.modal-close {
    position: fixed;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    background: var(--color-light);
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-close img {
    width: 15px;
    height: auto;
}



/* ///////////////////////////////////////////////////////////////////////////////////////////
                        FOOTER
/////////////////////////////////////////////////////////////////////////////////////////// */

footer {
    position: relative;
}

.bottom-red-circle {
    line-height: 0;
    max-width: 50%;
    margin: auto;
}

.box-contact {
    display: flex;
    justify-content: center;
    align-items: center;
    column-gap: 20px;
    transform: translateY(3vw);
}

.footer-baseline {
    font-size: clamp(2.5rem, 7vw, 9rem);
    color: var(--color-light);
}

.box-get {
    display: flex;
    flex-direction: column;
}

.box-get .phone {
    font-size: var(--font-size-xl);
    margin-top: 20px;
}


/* //////////////////////////////////////////////////////////////////////////////
                    TABLET
////////////////////////////////////////////////////////////////////////////// */

@media screen and (width >= 510px) {
    .logo-desktop {
        display: block;
    }

    .logo-mobile {
        display: none;
    }
}

@media screen and (width >= 800px) {


/* Wrapper */

    .wrapper {
        padding: 0 40px;
    }

/* Hero */
    
    .hero-img {
        width: 20%;
    }

/* Intro */

    .intro-text {
        width: 40%;
    }

    .section-flex {
        flex-direction: row;
    }

/* Slider */

    .slideshow-container {
        margin-right: -40px;
    }

/* footer */    

    .box-contact { 
        column-gap: 40px;
    }

/* Empilement d'image */     


     .stacked-images {
        width: 400px;
        height: auto;
        overflow: visible;
    }


}

    
