/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

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;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
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;
}






:root {
    --bg: #0e0e0d;
    --bg2: #161614;
    --bg3: #1e1e1b;
    --text: #f0ede6;
    --muted: #888880;
    --subtle: #444440;
    --accent: #c8a96e;
    --accent2: #8fae95;
    --line: rgba(255,255,255,0.07);
    --font-display: 'Cormorant Garamond', serif;
    --font-ui: 'Syne', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-ui);
}

a {
    text-decoration: none;
}

h1 {
    font-family: var(--font-display);
    font-size: 100px;
    font-weight: 300;
    letter-spacing: -2px;
}

[hidden] {
    display: none;
}

.section-title {
    display: flex;
    align-items: baseline;
    gap: 20px;
}

.section-title-label {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.section-title span {
    font-family: var(--font-display);
    font-size: 72px;
    font-weight: 300;
    color: var(--subtle);
    line-height: 1;
    letter-spacing: -2px;
}

.section-title span.portfolio {
    font-family: var(--font-ui);
    color: var(--accent);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
}

h2 {
    font-family: var(--font-display);
    font-size: 40px;
    font-weight: 300;
    letter-spacing: -0.5px;
    line-height: 1.1;
}

.scroll-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border: 1px solid var(--subtle);
    border-radius: 2px;
    background: var(--bg2);
    color: var(--text);
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

.scroll-top.visible {
    opacity: 1;
    pointer-events: auto;
}

.scroll-top:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.hero-cta-primary {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 12px 24px;
    background: var(--accent);
    color: var(--bg);
    border-radius: 2px;
    text-decoration: none;
    transition: opacity 0.2s ease;
    width: fit-content;
}

.hero-cta-primary:hover {
    opacity: 0.85;
}

.hero-cta-secondary {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 12px 24px;
    border: 1px solid var(--subtle);
    color: var(--muted);
    border-radius: 2px;
    text-decoration: none;
    transition: all 0.2s ease;
    width: fit-content;
}

.hero-cta-secondary:hover {
    border-color: var(--text);
    color: var(--text);
}

@media (max-width: 768px) {
    h1 {
        font-size: 52px;
        letter-spacing: -1px;
    }

    .section-title span {
        font-size: 48px;
    }

    .section-title-text {
        font-size: 28px;
    }

    .scroll-top {
        bottom: 10px;
        right: 10px;
    }
}


/* Header */

header {
    padding: 0px 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 10000;
    border-bottom: 1px solid var(--line);
}

header img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

nav {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

nav ul {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-link, header li a {
    color: var(--muted);
    font-family: var(--font-ui);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 1px;
    transition: color 0.3s;
    text-transform: uppercase;
}

.nav-link:hover, header li a:hover {
    color: var(--text);
}

.nav-link.active {
    color: var(--text);
}

.header-social img {
    width: 38px;
    height: 38px;
    transition: filter 0.3s;
}

.header-social img:hover {
    filter: brightness(0) invert(1);
    cursor: pointer;
}

.btn-profs-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-profs-label {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--muted);
}

#btn-profs {
    appearance: none;
    width: 36px;
    height: 20px;
    background: var(--bg3);
    border: 1px solid var(--subtle);
    border-radius: 99px;
    cursor: pointer;
    position: relative;
    transition: background 0.2s;
}

#btn-profs::after {
    content: '';
    position: absolute;
    left: 3px;
    top: 3px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--muted);
    transition: all 0.2s;
}

#btn-profs:checked {
    background: var(--accent2);
    border-color: var(--accent2);
}

#btn-profs:checked::after {
    left: 19px;
    background: var(--bg);
}


.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.burger span {
    display: block;
    width: 24px;
    height: 1.5px;
    background: var(--text);
    transition: all 0.3s ease;
    transform-origin: center;
}

/* Animation croix */
.burger.open span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}
.burger.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.burger.open span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}


@media (max-width: 768px) {
    header {
        padding: 10px 20px;
    }

    header img {
        width: 55px;
        height: 55px;
    }

    nav ul {
        gap: 20px;
    }

    .nav-link {
        font-size: 10px;
        letter-spacing: 0.5px;
    }

    .header-responsive {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 10px;
    }

    .burger {
        display: flex;
    }

    header nav {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--bg);
        z-index: 999;
        align-items: center;
        justify-content: center;
    }

    header nav.open {
        display: flex;
    }

    header nav ul {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }

    header nav ul li a {
        font-size: 32px;
        font-family: var(--font-display);
        font-weight: 300;
        letter-spacing: 2px;
        color: var(--text);
    }

    .burger {
        z-index: 1000;
    }
}



/* Hero */

#hero {
    padding: 0px 80px;
    display: grid;
    height: 100vh;
    grid-template-rows: 1fr auto;
    border-bottom: 1px solid var(--line);
    overflow: hidden;
}

.hero-content {
    z-index: 1000;
    align-self: center;
}

.hero-sae {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-sae span {
    color: var(--accent);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero-line {
    width: 40px;
    height: 1px;
    background: var(--accent);
}

.hero-title {
    padding-top: 40px;
}

.hero-title-italic {
    font-style: italic;
    color: var(--accent);
}

.hero-sub {
    padding-top: 30px;
    display: flex;
    gap: 100px;
}

.hero-desc, .hero-skills {
    max-width: 450px;
    font-size: 14px;
    color: var(--muted);
    line-height: 1.7;
}

.hero-skills li {
    list-style: circle;
}

.hero-cta {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
    padding: 40px 0px;
}

.hero-grid-bg {
    position: absolute;
    inset: 0;
    background-image:
      linear-gradient(var(--line) 1px, transparent 1px),
      linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 80px 80px;
    pointer-events: none;
}

.hero-grid-fade {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 60% at 80% 50%, transparent 0%, var(--bg) 70%);
    pointer-events: none;
}

.hero-scroll { 
    display: flex; 
    align-items: center; 
    gap: 20px; 
    padding: 40px 0; 
    font-size: 11px; 
    letter-spacing: 1.5px; 
    text-transform: uppercase; 
    color: var(--subtle); 
    border-top: 1px solid var(--line); 
    position: relative; 
}

.hero-scroll a {
    display: flex; 
    align-items: center; 
    gap: 20px; 
    text-decoration: none;
    color: var(--subtle);
}

.scroll-line { 
    width: 60px; 
    height: 1px; 
    background: var(--subtle); 
    animation: scrollAnim 2s ease-in-out infinite; 
}

@keyframes scrollAnim { 
    0%,100% { 
        width: 60px;
        opacity: 1 
    }
    50% {
        width: 30px;
        opacity: 0.4
    } 
}

@media (max-width: 768px) {
    #hero {
        padding: 0 20px;
        height: auto;
        position: relative;
    }

    .hero-content {
        padding: 40px 0 30px;
    }

    .hero-title {
        padding-top: 20px;
    }

    .hero-sub {
        flex-direction: column;
        gap: 24px;
        padding: 20px 0;
    }

    .hero-desc, .hero-skills {
        max-width: 100%;
        font-size: 13px;
    }

    .hero-skills li {
        margin-left: 20px;
    }

    .hero-scroll {
        padding: 25px 0;
        font-size: 10px;
    }

    .hero-grid-fade {
        background: radial-gradient(ellipse 100% 50% at 50% 20%, transparent 0%, var(--bg) 75%);
    }
}



/* Profil section */

#profil {
    padding: 60px 80px;
    border-bottom: 1px solid var(--line);
}

.a-propos {
    margin-top: 60px;
    display: flex;
    align-items: start;
    gap: 120px;
}

.profil-photo img {
    width: 200px; 
    height: 200px; 
    border-radius: 50%;
}

.profil-texte-name {
    font-family: var(--font-display);
    font-size: 40px;
    font-weight: 300;
    letter-spacing: -0.5px;
    line-height: 1.1;
    margin-bottom: 6px;
}

.profil-texte-role {
    font-size: 11px; 
    font-weight: 500; 
    letter-spacing: 1.5px; 
    text-transform: uppercase; 
    color: var(--muted); 
    margin-bottom: 25px;
}

.profil-texte-desc {
    font-size: 14px; 
    color: var(--muted); 
    line-height: 1.8; 
    max-width: 560px; 
    margin-bottom: 40px;
}

.stack-technique {
    border: 1px solid var(--line);
    border-radius: 25px;
    padding: 0px 30px;
    padding-top: 30px;
}

.stack-technique-title {
    font-family: var(--font-display);
    font-size: 30px;
    font-weight: 300;
    letter-spacing: -0.5px;
    line-height: 1.1;
    margin-bottom: 30px;
}

.stack-technique-technos {
    display: flex;
    flex-direction: column;
    margin-bottom: 40px;
}

.stack-technique-subtitle {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 25px;
    padding-left: 10px;
    border-left: 2px solid var(--accent)
}

.stack-technique-logos {
    padding-left: 15px;
    display: flex;
    gap: 60px;
}

.stack-technique-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.stack-technique-logo img {
    width: 60px;
    height: 60px;
    transition: transform 0.3s ease-in-out;
}

.stack-technique-logo img:hover {
    transform: scale(1.2);
}

.stack-technique-logo span {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--muted);
}

@media (max-width: 1024px) {
    #profil {
        padding: 60px 40px;
    }

    .a-propos {
        gap: 60px;
    }

    .stack-technique-logos {
        gap: 30px;
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    #profil {
        padding: 40px 20px;
    }

    .a-propos {
        flex-direction: column;
        gap: 30px;
    }

    .profil-photo {
        display: flex;
        align-items: center;
        gap: 1.5rem;
    }

    .profil-photo img {
        width: 80px;
        height: 80px;
    }

    .profil-texte-name {
        font-size: 28px;
    }

    .stack-technique {
        padding: 20px;
        border-radius: 12px;
    }

    .stack-technique-logos {
        gap: 20px;
        flex-wrap: wrap;
    }

    .stack-technique-logo img {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .stack-technique-logos {
        gap: 16px;
    }

    .stack-technique-logo img {
        width: 32px;
        height: 32px;
    }

    .stack-technique-logo span {
        font-size: 9px;
    }
}



/* Structures section */

#structures {
    padding: 60px 80px;
    border-bottom: 1px solid var(--line);
}

.structure {
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
}
 
.structure-top {
    grid-column: 1 / -1;
    background: var(--bg2);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    padding: 40px;
}

.structure-img {
    display: flex;
    align-items: center;
    justify-content: center;
}

.structure-img img {
    width: 100%;
    max-width: 400px;
    max-height: 200px;
    object-fit: contain;
    display: block;
    border-radius: 4px;
}


.structure-down {
    background: var(--bg);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 40px;
}

.structure-down-desc ul{
    list-style: circle;
}
 
.structure-down-role, .structure-down-duree {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 10px;
}

.structure-top-type {
    color: var(--accent);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 25px;
}

.structure-top-type span {
    border: 1px solid var(--accent);
    padding: 7px 14px;
}

.structure-btns {
    display: flex;
    gap: 15px;
    width: fit-content;
}
 
.structure-top-nom, .structure-down-nom, .structure-down-temps {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 8px;
}
 
.structure-top-desc, .structure-down-desc, .structure-down-date {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.6;
}

.structure-down-desc {
    padding-left: 20px;
    min-width: 400px;
}

.structure-top-desc {
    padding-bottom: 20px;
}


@media (max-width: 768px) {
    #structures {
        padding: 20px;
        overflow: hidden;
    }

    .structure {
        grid-template-columns: 1fr;
        overflow: hidden;
    }

    .structure-top, .structure-down {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
        box-sizing: border-box;
        width: 100%;
        overflow: hidden;
    }

    .structure-btns {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .structure-img {
        order: -1;
    }

    .structure-img img {
        max-width: 100%;
    }

    .structure-top-nom, .structure-down-nom, .structure-down-temps {
        font-size: 22px;
    }

    .structure-top-desc, .structure-down-desc, .structure-down-date {
        font-size: 14px;
        min-width: 0;
    }

    .structure-down-desc {
        padding-left: 0;
    }

    .structure-down-desc li {
        margin-left: 20px;
    }
}



/* Réalisations */

#realisations {
    padding: 60px 80px;
    border-bottom: 1px solid var(--line);
}

.realisations-title-text {
    font-family: var(--font-display);
    font-size: 40px;
    font-weight: 300;
    letter-spacing: -0.5px;
    line-height: 1.1;
    color: var(--accent);
    margin-left: 20px;
    margin-top: 60px;
    padding-left: 20px;
    border-left: 3px solid var(--accent);
}

.realisations-filtres {
    margin-top: 30px;
    display: flex;
    gap: 20px;
}

.realisations-filtres .filtre {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 6px 12px;
    border: 1px solid var(--subtle);
    border-radius: 2px;
    background: none;
    font-family: var(--font-ui);
    color: var(--muted);
    cursor: pointer;
    transition: all ease-in-out 0.3s;
}

.realisations-filtres .filtre.active {
    background: var(--text);
    color: var(--bg);
    border: 1px solid var(--text);
}

.realisations-filtres .filtre:hover {
    color: var(--text);
    border: 1px solid var(--text);
}

.realisations-filtres .filtre.active:hover {
    background: var(--text);
    color: var(--bg);
    border: 1px solid var(--text);
}


.realisations-all {
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.realisation {
    display: flex;
    flex-direction: column;
    background: var(--line);
    border: 1px solid var(--line);
    cursor: pointer;
    transition: ease-in-out 0.3s;
}

.realisation:hover {
    transform: translateY(-5px);
    background-color: var(--bg);
}

.realisation.hide {
    display: none;
}

.realisation.visible {
    display: flex;
}

.realisation img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

.popup-img img, .popup-img video {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: contain;
    display: block;
}

.realisation-content {
    padding: 25px 30px; 
}

.realisation-content-titre {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 15px;
}

.realisation-content-desc {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.6;
    max-width: 600px;
    margin-bottom: 20px;
}

.realisation-content-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.realisation-content-tags span {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 1px;
    padding: 3px 8px;
    border: 1px solid var(--subtle);
    border-radius: 2px;
    color: var(--muted);
}

.realisation-content-tags span.color {
    border: 1px solid var(--accent);
    color: var(--accent);
}

.realisation-button {
    text-align: right;
    color: var(--accent);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    transition: all ease-in-out 0.3s;
}

.realisation-button span {
    background: none;
    border: none;
    font-family: var(--font-ui);
    color: var(--accent);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all ease-in-out 0.3s;
}

.realisation-button span:hover {
    text-decoration: underline;
}

.voir-plus-wrap {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.voir-plus {
    font-family: var(--font-ui);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 12px 28px;
    border: 1px solid var(--subtle);
    border-radius: 2px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    transition: all 0.2s;
}

.voir-plus:hover, .voir-plus.ouvert:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.voir-plus.ouvert {
    border-color: var(--subtle);
    color: var(--muted);
}

.popup-rea {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000000;
    background: rgba(0, 0, 0, 0.85);
    justify-content: center;
    padding: 40px;
}

@media (max-width: 768px) {
    .popup-rea {
        padding: 20px;
    }
}

.popup-rea.open {
    display: flex;
}

.popup-content {
    background: var(--bg2);
    border: 1px solid var(--line);
    border-radius: 4px;
    width: 100%;
    max-width: 1300px;
    max-height: 700px;
    overflow-y: auto;
    animation: popIn 0.25s ease;
}

@keyframes popIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 30px;
    border-bottom: 1px solid var(--line);
}

#label {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 4px;
}

#title {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 300;
    line-height: 1.2;
    color: var(--text);
}

#popup-close {
    width: 28px;
    height: 28px;
    border: 1px solid var(--subtle);
    border-radius: 2px;
    background: none;
    color: var(--muted);
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.15s;
    font-family: var(--font-ui);
}

#popup-close:hover {
    border-color: var(--text);
    color: var(--text);
}

.popup-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.popup-col {
    padding: 30px;
}

.popup-col:first-child {
    border-right: 1px solid var(--line);
}

.popup-field {
    margin-bottom: 20px;
}

.popup-field-label {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 5px;
}

.popup-field-value {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.7;
}

.popup-apport {
    padding: 20px 20px;
    background: var(--bg);
    border-left: 2px solid var(--accent2);
    border-radius: 0 4px 4px 0;
    margin-top: auto;
}

.popup-apport .popup-field-label {
    color: var(--accent2);
}

.popup-bouton {
    margin-top: 25px;
}

.popup-link-bouton {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 7px 14px;
    border: 1px solid var(--accent);
    border-radius: 2px;
    color: var(--accent);
    text-decoration: none;
    transition: all ease-in-out 0.3s; 
    width: fit-content;
}

.popup-link-bouton:hover {
    background: var(--accent);
    color: var(--bg);
}

.popup-img img, .popup-img video {
    margin-bottom: 40px;
}

.popup-img video {
    display: none;
}

.carousel {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.carousel img {
    width: 50%;
    flex: 1;
    object-fit: contain;
    border-radius: 4px;
}

.carousel-prev, .carousel-next {
    background: var(--bg);
    color: white;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 1rem;
    transition: all ease-in-out 0.3s;
}

.carousel-prev:hover, .carousel-next:hover {
    background: var(--line);
}

.carousel-dots {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
}

.carousel-dot.active {
    background: white;
}

.carousel-desc {
    position: absolute;
    bottom: 25px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 11px;
    color: var(--muted);
    letter-spacing: 0.5px;
    padding: 0 40px;
    pointer-events: none;
}

#tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.popup-tool {
    font-size: 11px;
    font-weight: 500;
    padding: 4px 10px;
    border: 1px solid var(--subtle);
    border-radius: 2px;
    color: var(--muted);
}

@media (max-width: 1024px) {
    #realisations {
        padding: 60px 40px;
    }

    .realisations-all {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    #realisations {
        padding: 40px 20px;
    }

    .realisations-filtres {
        gap: 10px;
        flex-wrap: wrap;
    }

    .realisations-title-text {
        font-size: 28px;
        margin-left: 0;
        padding-left: 14px;
        margin-top: 40px;
    }

    .realisations-all {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-top: 24px;
    }

    .realisation-content {
        padding: 20px;
    }

    .realisation-content-titre {
        font-size: 22px;
    }

    .popup-rea {
        padding: 1rem;
        align-items: flex-end;
    }

    .popup-content {
        max-height: 90svh;
        border-radius: 4px 4px 0 0;
    }

    .popup-body {
        grid-template-columns: 1fr;
    }

    .popup-col:first-child {
        border-right: none;
        border-bottom: 1px solid var(--line);
    }

    .popup-header {
        padding: 20px;
    }

    .popup-col {
        padding: 20px;
    }

    #title {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .realisations-filtres .filtre {
        font-size: 10px;
        padding: 5px 10px;
    }

    .realisation-content-titre {
        font-size: 20px;
    }
}


/* Bilan section */

#bilan {
    padding: 60px 80px;
}

.forces-faiblesses {
    margin-top: 60px;
    margin-bottom: 60px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.forces, .faiblesses {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.forces-titre, .faiblesses-titre {
    display: flex;
    align-items: center;
    gap: 10px;
}

.forces-titre span, .faiblesses-titre span {
    color: var(--accent);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.forces-titre-line, .faiblesses-titre-line {
    width: 100%;
    height: 1px;
    background: var(--line);
}

.forces-content, .faiblesses-content {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.7;
}

.forces-content li, .faiblesses-content li {
    list-style: circle;
    margin-left: 15px;
    padding: 15px 0px;
    border-bottom: 1px solid var(--line);
}



.projets-apres-mmi {
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    border-left: 1px solid var(--line);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background-color: var(--line);
}

.projet-apres-mmi, .projet-apres-mmi-color {
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--subtle);
    padding: 40px;
    transition: background-color ease 0.3s;
}

.projet-apres-mmi-color {
    background-color: var(--bg);
}


.projet-apres-mmi-fleche {
    width: 36px; 
    height: 36px; 
    border: 1px solid var(--subtle); 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 14px; 
    margin-bottom: 40px;
}

.projet-apres-mmi-sous-titre {
    color: var(--accent);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.projet-apres-mmi-titre {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 15px;
}

.projet-apres-mmi-desc {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.6;
}

@media (max-width: 768px) {
    #bilan {
        padding: 40px 20px;
    }

    .forces-faiblesses {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-top: 40px;
        margin-bottom: 40px;
    }

    .projets-apres-mmi {
        grid-template-columns: 1fr;
    }

    .projet-apres-mmi {
        padding: 30px 20px;
        border-right: none;
        border-bottom: 1px solid var(--subtle);
    }

    .projet-apres-mmi:last-child {
        border-bottom: none;
    }

    .projet-apres-mmi-titre {
        font-size: 22px;
    }
}



/* Contact */

#contact {
    padding: 60px 80px;
    border-top: 1px solid var(--line);
}

.contact {
    margin-top: 40px;
    display: flex;
    gap: 180px;
}

.contact-desc {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.contact-texte {
    max-width: 450px;
    font-size: 14px;
    color: var(--muted);
    line-height: 1.7;
}

.contact-boutons {
    display: flex;
    gap: 20px;
}

.contact-infos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
}

.contact-info {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: var(--bg2);
    transition: background 0.2s, transform 0.2s;
    text-decoration: none;
    color: var(--text);
}

.contact-info:hover {
    background: var(--bg3);
}

.contact-info:hover .contact-info-lien {
    text-decoration: underline;
}

.contact-info-img {
    width: 36px; 
    height: 36px; 
    border: 1px solid var(--subtle); 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 14px;
}

.contact-info-img img {
    width: 24px;
    height: 24px;
}

.contact-info-titre {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 15px;
}

.contact-info-lien {
    font-size: 14px;
    color: var(--accent);
    line-height: 1.7;
    transition: text-decoration 0.2s;
}

@media (max-width: 1024px) {
    #contact {
        padding: 60px 40px;
    }

    .contact {
        gap: 60px;
    }
}

@media (max-width: 768px) {
    #contact {
        padding: 40px 20px;
    }

    .contact {
        flex-direction: column;
        gap: 40px;
    }

    .contact-infos {
        grid-template-columns: 1fr;
    }

    .contact-boutons {
        flex-direction: column;
        gap: 12px;
    }

    .contact-info-titre {
        font-size: 20px;
        margin-bottom: 6px;
    }
}


/* Footer */

footer {
    padding: 30px 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--line);
}
 
.footer-logo {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 300;
    color: var(--text);
}
 
.footer-info {
    text-align: center;
    font-size: 12px;
    color: var(--subtle);
    line-height: 1.8;
}

.footer-info a {
    color: var(--subtle);
    transition: color 0.3s;
}

.footer-info a:hover {
    color: var(--text);
    text-decoration: underline;
}

.footer-social img {
    width: 38px;
    height: 38px;
    transition: all 0.3s;
}

.footer-social img:hover {
    filter: brightness(0) invert(1);
    cursor: pointer;
}

@media (max-width: 768px) {
    footer {
        padding: 30px 20px;
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .footer-logo {
        font-size: 20px;
    }

    .footer-info {
        text-align: center;
    }

    .footer-social img {
        width: 28px;
        height: 28px;
    }
}