/* =============================== */
/* FONDU PAGE                      */
/* =============================== */

html, body {
    background: #f7f7f7;
}

body {
    opacity: 0;
    transition: opacity 0.6s ease;
}

body.visible {
    opacity: 1;
}

body.fadeout {
    opacity: 0;
}

/* =============================== */
/* POLICES INTER                   */
/* =============================== */

@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-Thin.woff2') format('woff2');
  font-weight: 100;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-ExtraLight.woff2') format('woff2');
  font-weight: 200;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-Regular.woff2') format('woff2');
  font-weight: 400;
}

/* =============================== */
/* BASE GÉNÉRALE                   */
/* =============================== */

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
}

html {
  scroll-behavior: auto;
}

body {
  color: #333;
  font-family: 'Inter', sans-serif;
  background: #f7f7f7;
  position: relative;
  overflow-x: hidden;
}

/* Neutraliser le padding du main pour cette page */
body.plages-du-nord main {
    padding: 0;
}

/* =============================== */
/* TITRES & TEXTES                 */
/* =============================== */

h1, h2, h3, h4 {
  font-weight: 200;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.08em;
  text-align:left;
}



h2 {
    font-size: 36px;
    color: #333;
}

h3 {
    font-size: 32px;
    color: #333;
}

p {
  font-size: 17px;
  line-height: 1.6;
}

/* =============================== */
/* TITRE PRINCIPAL STYLE RENIE     */
/* =============================== */

.titre-section {
    width: 100%;
    padding-top: 150px;
    padding-bottom: 80px;
}

.titre-section .inner {
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 40px;
    box-sizing: border-box;
}

.titre-section h1 {
    font-size: 46px;
    font-weight: 200;
    letter-spacing: 0.02em;
    line-height: 1;
    color: #398717;
    margin: 0;
    text-align: left;
}

/* =============================== */
/* Bottom de la galerie            */
/* =============================== */

.section-bottom {
    padding: 60px 0 80px 0;
}

.titre-section-bottom {
    width: 100%;
    padding-top: 40px;
    padding-bottom: 40px;
}

.titre-section-bottom .inner {
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 40px;
    box-sizing: border-box;
}

.titre-section-bottom h1 {
    font-size: 36px;
    font-weight: 200;
    letter-spacing: 0.02em;
    line-height: 1;
    color: #333;
    margin: 0;
    text-align: left;
}

.resume p {
    max-width: 1600px;
    text-align: justify;
    margin: 0 auto;
    padding: 0 40px;
    font-size: 18px;
    line-height: 1.7;
    font-weight: 200;
    margin-bottom: 18px;
    color: #333;
}

.retour {
    max-width: 1600px;
    margin: 60px auto 0 auto;
    padding: 0 40px;
    text-align: right;
}

.retour-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    gap: 6px;
    font-size: 1.3rem;
    color: rgba(0,0,0,0.65);
    background: rgba(255,255,255,0.95);
    border: none;
    padding: 0.25rem 1.2rem;
    border-radius: 5px;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.retour-nav:hover {
    background: rgba(255,255,255,1);
    color: rgba(0,0,0,1);
}

.retour-nav .arrow {
    font-size: 1.8rem;
    line-height: 1;
}

.retour-nav .label {
    font-size: 0.95rem;
    letter-spacing: 0.4px;
}

/* =============================== */
/* PORTFOLIO — 3 COLONNES FIXES    */
/* =============================== */

.portfolio .inner {
    max-width: 1600px;
    margin: 0 auto 50px auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 120px;
    row-gap: 140px;
    align-items: start;
}

.portfolio .col {
    display: flex;
    justify-content: center;
    align-items: center;
    height: fit-content;
}

.portfolio .col img {
    width: 300px;
    height: auto;
    display: block;
}

/* =============================== */
/* VOILE RENIE                     */
/* =============================== */

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(200, 200, 200, 0.85);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease-out;
    z-index: 10000;
}

body.veil-on::before {
    opacity: 1;
}

.portfolio .col {
    position: relative;
    z-index: 1;
}

.portfolio .col img {
    transform: translateY(0) scale(1);
    opacity: 1;
    filter: none;
    transform-origin: center center;
    box-shadow: 0 0 0 rgba(0,0,0,0);
    transition:
        transform 1.6s cubic-bezier(0.16, 1, 0.3, 1),
        opacity 0.4s ease-out,
        filter 0.4s ease-out,
        box-shadow 0.6s ease-out;
}

.portfolio .col.hovered img {
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 12px 28px rgba(0,0,0,0.3);
}

.portfolio .col.hovered {
    z-index: 10001;
}

.portfolio .col.hovered img {
    transform: scale(1.04);
    opacity: 1;
    filter: none;
}

.portfolio.veil-active .col:not(.hovered) img {
    opacity: 0.55;
    filter: grayscale(100%);
}




#hover-caption {
    display: none !important;
}


/* =============================== */
/* LIGHTBOX                        */
/* =============================== */

#lightbox {
    position: fixed;
    inset: 0;
    background: rgba(247, 247, 247, 1);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 99999;
}

#lightbox.visible {
    opacity: 1;
    pointer-events: auto;
}

#lightbox img {
    max-width: 80vw;
    max-height: 80vh;
    position: relative;
    z-index: 100000;
}

#lightbox-img {
    opacity: 1;
    transition: opacity 0.4s ease;
}

#lightbox-img.fade-out {
    opacity: 0;
}

#lightbox-img.fade-in {
    opacity: 1;
}

/* =============================== */
/* BOUTONS LIGHTBOX — STYLE EXACT  */
/* =============================== */

.lightbox-nav {
    position: absolute;
    bottom: 20px; /* ALIGNEMENT UNIFORME */
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 1.3rem;
    color: rgba(0,0,0,0.45);
    background: rgba(255,255,255,0.95);
    border: none;
    padding: 0.25rem 1.2rem;
    border-radius: 5px;
    cursor: pointer;
    z-index: 400002;
    user-select: none;
    transition: background 0.2s ease, color 0.2s ease;
}

#lightbox-prev {
    left: 85px;
}

#lightbox-next {
    right: 85px;
}

.lightbox-nav:hover {
    background: rgba(255,255,255,1);
    color: rgba(0,0,0,1);
}

.lightbox-nav .arrow {
    font-size: 1.8rem;
    line-height: 1;
}

.lightbox-nav .label {
    font-size: 0.95rem;
    letter-spacing: 0.4px;
}

/* BOUTON PLEIN ÉCRAN — ALIGNÉ */

#lightbox-fullscreen {
    position: absolute;
    bottom: 20px; /* ← CORRECTION ICI */
    right: 210px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 1.3rem;
    color: rgba(0,0,0,0.45);
    background: rgba(255,255,255,0.95);
    border: none;
    padding: 0.25rem 1.2rem;
    border-radius: 5px;
    cursor: pointer;
    z-index: 400002;
    user-select: none;
    transition: background 0.2s ease, color 0.2s ease;
}

#lightbox-fullscreen:hover {
    background: rgba(255,255,255,1);
    color: rgba(0,0,0,1);
}




/* =============================== */
/* SMARTPHONES (≤600px)            */
/* =============================== */

@media (max-width: 600px) {
    .portfolio .inner {
        grid-template-columns: 1fr;
        padding: 0 ;
        row-gap: 80px;
    }
	.titre-section {
    width: 100%;
    padding-top: 100px;
    padding-bottom: 60px;
}
	.titre-section .inner {
    max-width: 100%;
    margin: 0 ;
    padding: 0 20px;
    box-sizing: border-box;
}
	.titre-section h1 {
        font-size: 36px;
        letter-spacing: 0.02em;
        line-height: 1.1;
        color: #398717;
        text-align: left;
    }
}

/* =============================== */
/* TABLETTES PETITES (601–900px)   */
/* =============================== */

@media (min-width: 601px) and (max-width: 900px) {
    .portfolio .inner {
        grid-template-columns: repeat(2, 1fr);
        column-gap: 30px;
        row-gap: 80px;
        padding: 0 50px;
    }
	
}

/* =============================== */
/* TABLETTES MOYENNES (901–1180px) */
/* =============================== */

@media (min-width: 901px) and (max-width: 1180px) {
    .portfolio .inner {
        grid-template-columns: repeat(2, 1fr);
        column-gap: 40px;
        row-gap: 80px;
        padding: 0 60px;
    }
}

/* =============================== */
/* TABLETTES GRANDES (1181–1300px) */
/* =============================== */

@media (min-width: 1181px) and (max-width: 1300px) {
    .portfolio .inner {
        grid-template-columns: repeat(3, 1fr);
        column-gap: 50px;
        row-gap: 100px;
        padding: 0 80px;
    }
}
/* Réactiver le lightbox sur toutes les tablettes */
@media (min-width: 601px) {
    #lightbox {
        display: flex !important;
    }
}



