diff --git a/css/styles.css b/css/styles.css index fe4837a..8078cb9 100644 --- a/css/styles.css +++ b/css/styles.css @@ -303,6 +303,7 @@ body:has(.nav-toggle:checked) .nav-burger::after { overflow: hidden; width: 100vw; margin-left: calc(50% - 50vw); + padding-bottom: 3.5rem; } .hero #photo, @@ -553,9 +554,60 @@ section { height: 240px; object-fit: cover; display: block; + cursor: zoom-in; transition: transform 0.5s ease; } +/* ========================================================================== + Lightbox + ========================================================================== */ +.lightbox { + position: fixed; + inset: 0; + z-index: 200; + display: none; + align-items: center; + justify-content: center; + padding: 2rem; + background: rgba(0, 0, 0, 0.9); + cursor: zoom-out; +} + +.lightbox.is-open { + display: flex; +} + +.lightbox img { + max-width: 100%; + max-height: 100%; + border-radius: var(--rayon); + box-shadow: var(--ombre-forte); + cursor: default; +} + +.lightbox-close { + position: absolute; + top: 1.2rem; + right: 1.5rem; + width: 44px; + height: 44px; + display: flex; + align-items: center; + justify-content: center; + border: none; + border-radius: 50%; + background: rgba(255, 255, 255, 0.1); + color: var(--blanc); + font-size: 1.3rem; + cursor: pointer; + transition: background var(--transition), transform var(--transition); +} + +.lightbox-close:hover { + background: rgba(255, 255, 255, 0.2); + transform: scale(1.05); +} + /* ========================================================================== Bande CTA ========================================================================== */ diff --git a/index.html b/index.html index ec94f0c..be8613b 100644 --- a/index.html +++ b/index.html @@ -258,6 +258,11 @@ +