/* =======================================================================================
    GLOBAL DESIGN SYSTEM — PICT'ELLE
    Couleurs, typographie, Structure pro, scalable, optimisée pour portfolio moderne
======================================================================================= */
/**
* @license
*
* Font Family: General Sans
* Designed by: Frode Helland
* URL: https://www.fontshare.com/fonts/general-sans
* © 2026 Indian Type Foundry
*
*/
@font-face {
    font-family: "General Sans";
    src: url("../fonts/GeneralSans-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "General Sans";
    src: url("../fonts/GeneralSans-Light.woff2") format("woff2");
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "General Sans";
    src: url("../fonts/GeneralSans-Italic.woff2") format("woff2");
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: "General Sans";
    src: url("../fonts/GeneralSans-Medium.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "General Sans";
    src: url("../fonts/GeneralSans-Semibold.woff2") format("woff2");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "General Sans";
    src: url("../fonts/GeneralSans-Bold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
/* =======================================
    GLOBAL VARIABLES
========================================== */

:root {
    /* ===== Colors ===== */
    --color-dark: #2B2B2B;
    --color-white: #FFFFFF;
    --color-light: #EBECED;
    --color-primary: #A2AAB0;
    --color-secondary: #CBC5C1;
    --color-accent: #4C586F;
    --color-alert: #f95858;

    --color-card-light: #A2AAB0;
    --color-primary-light: #dcdfdf;

    --color-hover: opacity: .85;
    --color-text: #3E3E3B;
    --color-text-muted: #6c6c6a;
    --color-border: #3D3935;
    --color-input-bg: #2F2D2D;


    /* Transparency */
    --transparent-light-90: rgba(255 255 255 0.9);
    --transparent-light-70: rgba(255 255 255 0.7);
    --transparent-light-50: rgba(255 255 255 0.5);
    --transparent-light-30: rgba(255 255 255 0.3);

    --transparent-dark-90: rgba(0 0 0 0.9);
    --transparent-dark-70: rgba(0 0 0 0.7);
    --transparent-dark-50: rgba(0 0 0 0.5);
    --transparent-dark-30: rgba(0 0 0 0.3);

    /* ===== Spacing variables ===== */
    --spacing-0: 0rem;
    --spacing-xxs: 0.125rem;   /* 2px */
    --spacing-xs: 0.25rem;     /* 4px */
    --spacing-sm: 0.5rem;      /* 8px */
    --spacing-md: 1rem;        /* 16px */
    --spacing-lg: 1.5rem;      /* 24px */
    --spacing-xl: 2rem;        /* 32px */
    --spacing-xxl: 5rem;       /* 80px */
    --spacing-xxxl: 10rem;     /* 160px */

    /* ===== Radius ===== */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 20px;

    /* ===== Shadows ===== */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.08);
    --shadow-md: 0 6px 12px rgba(0,0,0,0.10);
    --shadow-lg: rgba(50, 50, 93, 0.25) 0px 50px 100px -20px, rgba(0, 0, 0, 0.3) 0px 30px 60px -30px;

    /* ===== Breakpoints ===== */
    --bp-sm: 480px;
    --bp-md: 768px;
    --bp-lg: 1024px;
    --bp-xl: 1440px;

    /* ===== Typography ===== */
    --font-main: 'Inter', Sans-serif;
    --font-title: 'General Sans',sans-serif; font-weight:700;
    --font-brand :  "Instrument Serif", serif;

    /* Font sizes (fluid for H titles) */
    --font-xs: 0.85rem;     /* 14px */
    --font-sm: 1rem;        /* 16px */
    --font-md: 1.25rem;     /* 20px */
    --font-lg: 1.5rem;      /* 24px */
    --font-xl: 2rem;        /* 32px */
    --font-xxl: clamp(2.5rem, 5vw, 7rem);   /* 40px max, scales down on smaller screens */

    --line-body: 1.6;
    --line-tight: 1.2;
}

/* =======================================
    GLOBAL RESET
========================================== */

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

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

body {
    background: var(--color-light);
    color: var(--color-dark);
    font-family: var(--font-main);
    font-size: var(--font-sm);
    line-height: var(--line-body);
    transition: background-color .3s ease, color .3s ease;

    /* preserves the words intact and the punctuation linked*/
    word-break: keep-all;       /* prevents words from being cut off */
    overflow-wrap: break-word;  /* allows line breaks if needed */
    }

    
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible{
    outline:2px solid var(--color-accent);
    outline-offset:4px;
}

/* ======================================
    SELECTION COLORS
====================================== */
::selection{
    background: var(--color-primary);
    color: var(--color-white);
}

::-moz-selection{
    background: var(--color-primary);
    color: var(--color-white);
}

/* =======================================
    FOCUS STYLES
========================================== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible{
    outline:2px solid var(--color-accent);
    outline-offset:4px;
}

/* =======================================
    TYPOGRAPHY & LINKS
========================================== */

/* Paragraphs */
p {
    font-size: var(--font-md);
    line-height: 1.4;
    font-weight: 400;
    font-family: var(--font-main);
}

/* Links */
a {
    color: var(--color-accent);
    font-weight: 300;
    text-decoration: none;
    transition: opacity .2s ease;
}

a:hover {opacity: .85; }

nav ul,
nav li {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* ==============================
    HEADINGS – TITRES
============================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    margin-top: 2rem;
    font-family: var(--font-title);
}

/* h1 {font-size: var(--font-xxl);} */
h2 {font-size: var(--font-xl);}
h3 {font-size: var(--font-lg);}
h4 {font-size: var(--font-md);}
h5 {font-size: var(--font-sm);}
h6 {font-size: var(--font-xs);}

.section-title {
    font-family: var(--font-title);
    font-size: var(--font-xxl);
    line-height: 2;
    font-weight: 200;
    text-transform: uppercase;
    color: var(--color-accent);
    padding-top: var(--spacing-lg);
    padding-bottom: var(--spacing-xl);
}

.section-subtitle {
    font-size: var(--font-xl);
    color: var(--color-text-muted);
    margin: var(--spacing-xl) 0;
}

.align-right { text-align: right; }
.align-left { text-align: left; }

/* Responsive adjustments */
@media (max-width: 768px) {
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    .section-title { font-size: 2rem; }
}

/* =======================================
    CONTAINERS
======================================= */
/* Main wrapper */
.main {
    display: flex;
    flex-direction: column;
    max-width: 100%;
    flex: 1;
}

@media (max-width: 768px) {
    .main {
        width: 100%;
    }
}

.container {
    width: 100%;
    max-width: 100%;
    padding: 0 1rem; /* Internal padding for content */
    box-sizing: border-box; /* Include padding in width calculation */
}

.content, .content-90, .content-80, .content-60 {
    margin: auto;
    padding: var(--spacing-md) var(--spacing-md) var(--spacing-xl) var(--spacing-md);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

.content {max-width: 100%;}
.content-90 {max-width: 90%;}
.content-80 {max-width: 80%;}
.content-60 {max-width: 60%;}

.article {
    max-width: 31.25rem; /* 500px */
    padding: var(--spacing-md) var(--spacing-md) var(--spacing-xl) var(--spacing-md);
    margin: auto;
}

/* =======================================
    USEFULL CLASSES
========================================== */
/* Text colors */
.text-light { color: var(--color-light); }
.text-dark { color: var(--color-dark); }

/* Background modes */
.dark {
    background-color: var(--color-dark);
    color: var(--color-light);
}

.light {
    background-color: var(--color-light);
    color: var(--color-dark);
}

/* Accent helpers */
.accent, span.accent, p.accent { color: var(--color-accent);}

i.lightbulb {color: #FFC64C; font-size: 1;}

/* Text transform utilities */
.capitalize { text-transform: capitalize; }
.uppercase { text-transform: uppercase; }
.lowercase { text-transform: lowercase; }

.text-small { 
    font-size: var(--font-xs) !important;
    font-weight: 500;
    color: var(--color-primary)!important;
}

/* Typography helpers */
.catchy { 
    font-size: var(--font-sm) !important;
    font-weight: 700; 
    color: var(--color-primary);
    padding: var(--spacing-sm) var(--spacing-sm) var(--spacing-lg) var(--spacing-sm);
}

.highlight {
    opacity: 0.6;
}

.highlight:hover {
    opacity: 1;
}

/* =========================
    MEDIA / IMAGES / ICONS
============================ */
/* General images */
img {
    max-width: 100%;
    width: 100%;
    height: auto; /* maintain aspect ratio */
    object-fit: cover;
    display: block;
}

/* ==========================
    SVG Icons
========================== */

.icon {
    width: 1.3rem;
    height: 1.3rem;
    display: inline-block;
    flex-shrink: 0;
    stroke: currentColor !important;
    fill: none;
    vertical-align: -0.25em;
}

.icon-lg {
    width: 4rem;
    height: 4rem;
}

/* Responsive: smaller icons on mobile */
@media (max-width: 768px) {
    .icon {
        width: 24px;
        height: 24px;
    }
}

/* Section-specific images (optional) */
.section img {
    border-radius: 0;
}

/* ======================================
    GLOBAL GRID SYSTEM
====================================== */

/* ----- 5 colons (workflow en 5 steps) ----- */
.grid-5 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--spacing-md);
    align-items: stretch;
}

@media (max-width: 1024px) {
    .grid-5 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .grid-5 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .grid-5 {
        grid-template-columns: 1fr;
    }
}

/* ----- 4 colons ----- */
.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-md);
    align-items: stretch;
}

/* Responsive */
@media (max-width: 1200px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .grid-4 {
        grid-template-columns: 1fr;
    }
}

/* ----- 3 colons ----- */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    align-items: stretch;
    justify-items: center;
}

@media (max-width: 768px) {
    .grid-3 {
        grid-template-columns: 1fr;
    }
}

/* ----- 2 colons ----- */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
    align-items: stretch;
}

@media (max-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }
}

/* ----- Items ----- */
.grid-item {
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.grid-item h5 {
    font-size: var(--font-lg);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.grid-item p {
    font-size: var(--font-md);
    line-height: 1.6;
    opacity: 0.85;
}

.grid-item .icon {
    color: var(--color-accent);
}

/* For horizontal alignment */
.grid-row {
    height: 100%;
    display: flex;
    text-align: center;
    justify-content: center;
    align-items: center;
    border-radius: var(--radius-lg);
    gap: 1rem;
}

/* =======================================
    UTILITIES – FLEX & SPACING
======================================= */

/* ===== Flex utilities ===== */
.flex { display: flex; }

.row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-xl);
}

.col { 
    display: flex; 
    flex-direction: column;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

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

.flex-between { 
    justify-content: space-between; 
    align-items: center; 
}

.flex-start {
    justify-content: flex-start;
}

.flex-end {
    justify-content: flex-end;
}

/* Spacer for pushing content or maintaining gaps in flex containers */
.spacer { flex-grow: 1; }

/* ===== Text alignment ===== */
.center { text-align: center; }
.left { text-align: left; }
.right { text-align: right; }
.justify { text-align: justify; }

/* ===== Positioning ===== */
.relative { position: relative; }
.absolute { position: absolute; }

/* ===== Utility margin/padding shortcuts (optional) ===== */
.h-100 {min-height: 100vh;}

.m-0 { margin: 0 !important; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.ml-0 { margin-left: 0 !important; }
.mr-0 { margin-right: 0 !important; }

.p-0 { padding: 0 !important; }
.pt-0 { padding-top: 0 !important; }
.pb-0 { padding-bottom: 0 !important; }
.pl-0 { padding-left: 0 !important; }
.pr-0 { padding-right: 0 !important; }

/* ===== Animation utilities ===== */
@keyframes zoomInOut {
    0% { background-size: 100% 100%; }
    50% { background-size: 110% 110%; }
    100% { background-size: 100% 100%; }
}

@keyframes zoom {
    0% { transform: scale(1); }
    50% { transform: scale(1.12); }
    100% { transform: scale(1); }
}

/* Shimmer effect on "Elle" */
@keyframes shimmer {
    0% { background-position: -120% 0; }
    100% { background-position: 120% 0; }
}

/* Animation background luxury */
@keyframes luxuryBG {
    0% { background-position: 0% 50%;}
    100% { background-position: 100% 50%;}
}

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
        filter: blur(0);
    }
}
@keyframes slideInRight {
    to {
        opacity: 1;
        transform: translateX(0);
        filter: blur(0);
    }
}

/* ========== Global styles for flash messages ========== */
.flash-message {
    padding: 1em 2em;
    margin: 1em auto;
    max-width: 500px;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
    box-shadow: 0 2px 8px #0001;
}
.flash-message.success { background: #e0ffe0; color: #228b22; border: 1px solid #b2e2b2; }
.flash-message.error   { background: #ffe0e0; color: #c00;    border: 1px solid #e2b2b2; }
.flash-message.info    { background: #e0eaff; color: #2255aa; border: 1px solid #b2bde2; }
.flash-message.warning { background: #fffbe0; color: #b59f00; border: 1px solid #e2deb2; }

/* =============== BACK TO TOP BUTTON =================== */
#backToTop {
    position: fixed;
    bottom: 100px;
    right: 20px;
    display: none; /* Hidden by default */
    border: none;
    font-size: 20px;
    font-weight: bold;
    border-radius: 50%;
    cursor: pointer;
    background-color: transparent;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: opacity 0.3s ease;
}

.arrow .icon {
    width: 3rem;
    height: 3rem;
    color: var(--color-secondary);
}

/* =========================================================
    CARDS STRUCTURE
   ========================================================= */

.card {
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Generic hover effect */
.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

/* Colors */
.card-light {
    background: var(--color-card-light);
    color: var(--color-dark);
}

.card-dark {
    background: var(--color-dark);
    color: var(--color-light);
}

/* Image inside cards */
.card img,
.service-img {
    max-width: 60px;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Titles & texts */
.card h5 {
    font-size: var(--font-lg);
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
    text-align: center;
}

.card p {
    font-size: var(--font-md);
    line-height: var(--line-body);
    text-align: center;
    opacity: 0.85;
}

/* Responsive tweaks */
@media (max-width: 768px) {
    .card h5 { font-size: var(--font-md); }
    .card p { font-size: var(--font-sm); }
}

/* =====================================
    UI Components
    TABS
===================================== */

.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

/* Base */
.tab {
    display: flex;
    padding: var(--spacing-sm) var(--spacing-md);
    background-color: var(--color-light);
    color: var(--color-dark);
    border: 1px solid var(--color-accent);
    box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
    border-radius: var(--radius-sm);
    font-family: var(--font-main);
    font-size: var(--font-sm);
    cursor: pointer;
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.tab::before,
.tab::after {
    pointer-events: none;
}

/* Hover */
.tab:hover {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-light);
}

/* Active */
.tab.active {
    background-color: var(--color-accent);
    color: var(--color-light);
    border-color: var(--color-accent);
    font-weight: 600;
}

@media (max-width: 600px) {
    .tabs {
        gap: var(--spacing-sm);
        margin-bottom: var(--spacing-lg);
        justify-content: center;
    }

    .tab {
        padding: var(--spacing-sm) var(--spacing-md);
    }
}

/* ============
    HEADERS 
=============== */

/* =========================================================
    ADMIN BAR – Shown on all pages when admin is logged in
   ========================================================= */
.admin-bar {
    top: 0 !important;
    position: fixed !important;
    width: 100%;
    z-index: 99999 !important;
    background-color: var(--color-alert) !important;
    color: var(--color-light);
    font-family: var(--font-main), sans-serif;
    font-size: 0.9rem;
    padding: 0 2rem;
    height: 40px;
    display: flex;
    align-items: center; 
    justify-content: space-between; 
}

.admin-bar .left-group,
.admin-bar .right-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-bar p.username {
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    text-align: left;
}

.admin-bar a.alert-link {
    display: flex;
    align-items: center;
    color: var(--color-light);
    margin-left: 1rem;
    transition: opacity 0.2s ease;
}

.alert-link.alert-text {
    text-decoration: underline;
    color: var(--color-light);
}

.admin-bar a.alert-link:hover {
    text-decoration: none;
    opacity: 0.8;
}

/* Push the main header down when admin bar is present */
body.public.admin-connected .main-header {
    margin-top: 40px;
}

/* ===========================
    PUBLIC-BAR
=========================== */
.public-bar {
    position: relative;
    width: 100%;
    height: 40px;
    z-index: 1000;
    background: var(--color-dark);
    color: var(--color-light);
    font-family: var(--font-main), sans-serif;
    font-size: 0.9rem;
    padding: 0.5rem 2rem;
    display: flex;
    align-items: center;
}

.public-bar a {
    color: var(--color-light);
    text-decoration: none;
    font-size: 1rem;
}

.public-bar i {
    margin-right: 8px;
    font-size: var(--font-md);
}

@media (max-width: 768px) {
    .admin-bar,
    .public-bar {
        height: 40px;
        padding: 0 1rem;
        font-size: 0.8rem;
    }
}

.pe-contact {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%; /* necessary, to make space-between work */
}

.header-socials,
.header-contact {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-socials i { color: var(--color-accent); }
.header-contact i { color: var(--color-accent);}

.header-socials a .icon {
    color: var(--color-light);
}

/* ===========================
    HEADER – Main navigation
============================== */
/* Initial header */
.main-header {
    position: relative;
    width: 100%;
    height: 50px;
    z-index: 9000;
    transition: background .35s ease,
        color .35s ease,
        box-shadow .35s ease,
        backdrop-filter .35s ease;
}

/* Sticky state */
.main-header.sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    backdrop-filter: blur(10px);
    z-index: 9999;
}

/* Responsive */
@media (max-width: 768px) {
    body.public .main-header,
    body.admin .main-header {
        position: fixed;
    }
}

/* Navbar wrapper */
.wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 100%;
    margin: 0 auto;
    padding: 0.5rem 2rem;
}

/* ========================
    HOME PAGE SPECIFIC
=========================== */
body.home .main-header {
    background: var(--color-white);
    backdrop-filter: blur(10px);
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}

body.home .main-header.sticky {
    background: var(--color-dark);
}

body.home .menu a {
    color: var(--color-dark);
    font-weight: 300;
    transition: color 0.3s ease;
}

body.home .main-header.sticky .menu a {
    color: var(--color-light);
}

/* ================
    OTHER PAGES
   ================ */
body.public:not(.home) .main-header {
    background: var(--color-white);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

body.public:not(.home) .main-header.sticky {
    background: var(--color-dark);
    color: var(--color-light);
}

body.public:not(.home) .menu a {
    color: var(--color-dark);
    transition: color 0.3s ease;
}

body.public:not(.home) .main-header.sticky .menu a {
    color: var(--color-light);
}

/* ===========================
   HEADER — BRAND
=========================== */
.pe-name .logo-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    text-decoration: none;
}

.pe-name .logo-img {
    height: 24px;
    width: auto;
    display: block;
}

/* Hover state */
.pe-name .logo-link:hover .brand-title,
.pe-name .logo-link:hover img {
    opacity: 0.85;
    cursor: pointer;
}

/* Mobile logo positioning */
@media (max-width: 768px) {
    .pe-name {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.2rem;
    }

    .logo-link {
        display: flex;
        align-items: flex-start;
    }

    .logo {
        position: relative;
        top: auto;
        left: auto;
    }

    .brand-title {
        font-size: var(--font-md);
        line-height: 1.2;
    }
}

/* Brand title typography */
h1.brand-title {
    margin: 0;
    padding: 2px 0 0 0;
    display: inline-block;
    position: relative;
    font-size: var(--font-lg);
    font-family: var(--font-brand);
    text-transform: uppercase;
}
/* headers brand color transition for HOME page */
a.logo-link {
    color: var(--color-dark);
    transition: color .3s ease;
}
.main-header.sticky h1.brand-title {
    color: var(--color-light);
}


/* elle */
/* body.public:not(.home) .brand-title__elle {
    color: var(--color-dark);
}
body.public:not(.home) .main-header.sticky .brand-title__elle {
    color: var(--color-light);
} */


/* ========================
    DESKTOP MENU
   ======================== */
@media (min-width: 868px) {

    #menu-icon {
        display: none;
    }

    .navbar {
        max-height: none;
    }

    .navbar .menu {
        display: flex;
        gap: 2rem;
        box-shadow: none;
    }

    .navbar .menu li a {
        border: none;
        padding: 1rem 0;
        line-height: 50px;
    }

    /* Hover & sticky state for menu links */
    .home .menu a:hover {
        box-shadow: 
            inset 0 3px 0 var(--color-light),   /* Bottom line */
            inset 0 -3px 0 var(--color-light);  /* Top line */
    }

    body.home .main-header.sticky .menu a:hover {
        box-shadow: 
            inset 0 3px 0 var(--color-accent),   /* Bottom line */
            inset 0 -3px 0 var(--color-accent);  /* Top line */
    }

    body:not(.home) .menu a:hover {
        box-shadow: 
            inset 0 3px 0 var(--color-accent),   /* Bottom line */
            inset 0 -3px 0 var(--color-accent);  /* Top line */
    }

    body:not(.home) .main-header.sticky .menu a:hover {
        box-shadow: 
            inset 0 3px 0 var(--color-light),   /* Bottom line */
            inset 0 -3px 0 var(--color-light);  /* Top line */
    }
}

/* Avoid collision with top bars */
body.public #navbar,
body.admin #navbar {
    margin-top: 0;
}

/* ==================
    MOBILE MENU
   ================== */
@media (max-width: 880px) {
    #menu-icon {
        display: block;
        color: var(--color-dark);
        font-size: var(--font-xl);
        font-weight: 600;
        cursor: pointer;
        background: none;
        border: none;
        z-index: 999999;
        position: relative;  /* ← necessary */
    }

    .main-header.sticky #menu-icon {
        color: var(--color-light);
    }

    /* NAV LIST */
    .navbar {
        max-height: 0;
        overflow: hidden;
        transition: max-height .4s;
    }

    .navbar {
        position: absolute;
        top: 55px; /* under topbar */
        left: 0;
        width: 100%;
        background: var(--color-dark);
        z-index: 9999;
        max-height: 0;
        overflow: hidden;
        transition: max-height .4s ease;
    }

    .navbar.expand {
        max-height: 25em;
    }

    .navbar .menu {
        list-style: none;
    }

    .navbar .menu li a {
        display: block;
        border-bottom: 1px solid rgba(255,255,255,0.2);
        padding: 1rem;
        text-align: center;
        color:var(--color-light);
    }
}

/* ===================== */
/* FOOTER
/* ===================== */
.footer {
    background-color: var(--color-dark);
    color: var(--color-light);
    font-size: var(--font-sm);
    margin: auto;
}

.contact {
    padding: var(--spacing-xxl) var(--spacing-xl) var(--spacing-xl) var(--spacing-xl);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 3fr 1fr;
    gap: 1rem;
}

.contact h3 {
    color: var(--color-light);
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom:1rem;
    line-height: 1.2;
}

/* Responsive */
@media (max-width: 320px) {
    .contact {
        padding: var(--spacing-xl);

    }
    .contact h3 {
        font-size: var(--font-md);
    }
}

/* ---- Footer brand ----- */
h3.footer-title {
    font-size: var(--font-lg);
    font-weight: 200;
    color: var(--color-light);
    margin-bottom: var(--spacing-sm);
}

.footer-brand h3 {
    font-size: 2.5rem;
    font-weight: 200;
    text-align: center;
    color: var(--color-light);
    font-family: var(--font-brand);
    text-transform: uppercase;
}

.footer-brand {
    align-items: center;
    padding-left: 3rem;
}

.pict {
    color: var(--color-accent);
}

.elle {
    color: var(--color-secondary);
}

@media (max-width: 768px) {
    .footer-brand {
        padding-left: 0;
    }

    .contact-detail {
        padding-left: 3rem;
    }
}

.footer-brand p {
    font-size: var(--font-sm);
    color: var(--color-light);
    margin-top: 0;
    margin-bottom: 0;
    line-height: 1.4;
}

.footer-brand p.artisan {
    margin-top: -1rem;
    margin-bottom: var(--spacing-sm);
    color: var(--color-secondary);
}

.footer-brand p.sites {

    text-decoration: none;
    font-weight: 600;
}

.footer-logo {
        display: block;
        max-width: 200px;
        padding: 1.4rem;
    }

/* Responsive */
@media (max-width: 320px) {
    .footer-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-logo {
        max-width: 180px;
        padding: 1rem;
    }
}

/* Footer menu */
.footer-menu {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.footer-menu li {
    list-style: none;
}

.footer-menu a {
    color: var(--color-secondary);
}

/* Social icons */
.footer-socials {
    display: flex;
    gap: 0.7rem;
}

.footer-socials a {
    color: var(--color-light);
    font-size: 1.2rem;
    transition: opacity .2s;
}

.footer-socials a:hover {
    opacity: 0.7;
}

.contact-detail p {
    font-size: var(--font-sm);
}

.contact-detail .icon {
    color: var(--color-white) !important;
}

/* ----- Form -----*/
.form p,
.form a {
    font-weight:400;
    line-height: 1.3;
    font-size: var(--font-sm);
    opacity: 0.85;
}

.form a:hover {
    opacity:1;
}

.form i {
    margin-right: 0.5rem;
}

/* -------- CONTACT FORM -------- */
#contact-form {
    background: var(--color-dark);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width:520px;
    margin:auto;
    padding: 1rem;
    border-radius: 8px;
}

#contact-form input:not([type="checkbox"]),
#contact-form textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--color-text-muted);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.9rem;
    line-height: 1.2;
}

#contact-form textarea {
    resize: vertical;
}
    
#contact-form ::placeholder {
    color: var(--color-light);
    opacity: 0.5;
}

/* Label captcha */
#contact-form label {
    font-size: 0.85rem;
    opacity: 0.8;
    font-weight: 300;
}

/* Submit button */
#contact-form .btn {
    background: var(--color-accent);
    color: white;
    padding: 0.9rem 1.2rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: .5rem;
    transition: opacity .2s;
}

#contact-form .btn:hover {
    opacity: .85;
}

.consent-label {
    display: inline-flex;
    align-items: flex-start;
    gap: 0.5rem;
    cursor: pointer;
}

.consent-label input {
    margin-top: 3px;
}

input#captcha {
    max-width: 3rem;
    max-height: 3rem;
}

#form-message{
    margin-top:1rem;
    padding:12px 16px;
    border-radius:6px;
    opacity:0;
    transition:.3s;
}

#form-message.success{
    opacity:1;
    color:#2e5d45;
    background:#edf8f1;
    border:1px solid #8fc8a7;
}

#form-message.error{
    opacity:1;
    color:#8d1f1f;
    background:#fff1f1;
    border:1px solid #d88;
}

/* Responsive */
@media (max-width: 900px) {
    #contact {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding-bottom: var(--spacing-xxl);
    }

    .form-row {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    #contact-form .grid-2 {
        grid-template-columns: 1fr;
    }
}

/* --------- CREDITS -------- */
.credits {
    width: 100%;
    font-size: var(--font-sm);
    margin: 0;
    padding: var(--spacing-md);
    background: var(--color-text);
    color: var(--color-secondary);
}

.credits p, .credits a {
    font-family: 'Forum', sans-serif;
    font-size: var(--font-xs);
}

.credits p {
    color: var(--color-secondary);
}

.credits p span a, .credits a {
    color: var(--color-card-light);
    text-decoration: none;
    opacity: 0.75;
    transition: opacity .2s ease;
}

.credits p span a:hover, .credits a:hover { 
    opacity: 1;
}

.footer-legal, .footer-copy  {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.3rem;
}

.footer-copy {
    font-size: var(--font-xs);
    color: var(--color-secondary);
}

.footer-legal a:not(:last-child)::after {
    content: " |";
    margin-left: 0.3rem;
}

.footer-copy {padding: var(--spacing-sm) var(--spacing-lg);}

.footer-legal {padding: 0 var(--spacing-lg) var(--spacing-md) var(--spacing-lg);}

/* Responsive */
@media (max-width: 480px) {
    .footer-legal a:not(:last-child)::after {
        content: ""; /* removes the separator on mobile */
    }
}

@media (max-width: 480px) {
    .footer-legal {
        font-size: 0.75rem;
        text-align: center;
        line-height: 1.4;
    }

    .footer-copy {
        text-align: center;
        margin-bottom: 0.5rem;
    }
}

/* CTAs */
.cta-btn {
    background: var(--color-accent);
}

.contact-btn {
    background: var(--color-secondary);
}

.cta-btn, .contact-btn {
    display: inline-block;
    padding: .9rem 2rem;
    color: var(--color-light);
    font-weight: 700;
    border-radius: 6px;
    transition: background .3s;
    margin-bottom: var(--spacing-xl);
    margin-top: auto;
}

/* ============================
    MODAL
=========================== */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(6px);
    justify-content: center;
    align-items: center;
    text-align: center;
    -webkit-backdrop-filter: blur(2px);
    overflow-y: auto;
}

.modal-content {
    /* background: rgba(255,255,255,0.08); */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.15);
    max-width: 800px;
    width: 90%;
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    color: var(--color-dark);

    transform: scale(0.95);
    opacity: 0;
    animation: modalZoomIn 0.35s forwards;
}

#modal-img {
    display: block;
    max-width: 100%;
    max-height: 50vh;
    width: auto;
    height: auto;
    margin: 0 auto  var(--spacing-md) auto;
    object-fit: cover; /* rogne si besoin pour garder un format harmonieux */
    border-radius: var(--radius-md);
    transition: transform 0.3s ease, filter 0.3s ease;
}

#modal-img:hover {
    transform: scale(1.03);
    filter: brightness(1.05);
}

.modal-title,
.modal-content p {
    color: var(--color-dark);
    text-align: center;
}

.modal-links {
    padding-top: var(--spacing-md);
} 

/* Link button for project demo (hover & animation)*/
.modal-links .btn {
    background-color: var(--color-accent);
    color: var(--color-light);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    position: relative;
    overflow: hidden;
}

.modal-links .btn::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.1);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.modal-links .btn:hover::after {
    transform: scaleX(1);
}

.modal-links .btn:hover {
    background-color: var(--color-accent);
    color: var(--color-light);
}

/* Close button */
.close-btn {
    position: absolute;
    top: var(--spacing-sm);
    right: var(--spacing-md);
    font-size: var(--font-xl);
    font-weight: 600;
    color: var(--color-dark);
    cursor: pointer;
}

/* Modal display with zoom */
.modal.show {
    display: flex;
    animation: modalFadeIn 0.35s ease forwards;
}

/* Responsive */
@keyframes modalZoomIn {
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive */
@media (max-width: 768px) {
    .modal-content {
        max-width: 95%;
        padding: var(--spacing-md);
    }

    .modal-links {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .modal-links .btn {
        width: 100%;
        text-align: center;
    }
}

/* ============================
    COOKIE CONSENT BANNER
   ============================ */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: min(90%, 500px);
    padding: 1rem 1.2rem;
    border-radius: 18px;
    backdrop-filter: blur(14px);
    background: var(--color-dark);
    color: var(--color-light);
    z-index: 9999;

    display: flex;
    flex-direction: column;
    gap: 1rem;
    box-shadow: rgba(0, 0, 0, 0.3) 0px 19px 38px, rgba(0, 0, 0, 0.22) 0px 15px 12px;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.cookie-banner.hidden {
    display: none;
}

.cookie-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

.btn-cookie {
    border: none;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    cursor: pointer;
    font-size: 0.9rem;
}

.btn-cookie.secondary {
    background: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-light);
}

/* ============================
    LOGOUT
    =========================== */
.logout {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

/* ============================
    ADMIN LOGIN FORM
    =========================== */
    /* Login page title */
h2.log-title {
    text-align: center;
    font-size: var(--font-xl);
    margin-top: var(--spacing-xxl);
    margin-bottom: var(--spacing-md);
    font-weight: 700;
    line-height: var(--line-tight);
}

/* Login section wrapper */
.log {
    width: 100%;
    padding: var(--spacing-sm);
    color: var(--color-light);
    min-height: 100vh; 
    justify-content: center;
}

/* Responsive */
@media (max-width: 768px) {
    .log {
        padding: var(--spacing-lg);
        gap: var(--spacing-lg);
    }
}

/* Login form box */
.login-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    background-color: var(--color-dark);
    color: var(--color-light);
    box-shadow: var(--shadow-md);
    max-width: 400px; /* limit form width */
    width: 100%;
    margin: auto;
}

/* Inputs inside login-form */
.login-form input,
.login-form button {
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-sm);
    border: none;
    font-size: var(--font-md);
}

/* Button specific */
.login-form button {
    background-color: var(--color-accent);
    color: var(--color-light);
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.3s ease, transform 0.2s ease;
}

.login-form button:hover {
    opacity: 0.85;
    transform: translateY(-2px);
}

/* =============================================
ADMIN-SHORTCUT SECTION
============================================= */
.admin-shortcut {
    padding: var(--spacing-lg);
    background-color: var(--color-dark);
    color: var(--color-light);
}

.admin-shortcut p {
    display: inline-block;
    font-weight: 600;
}

.admin-menu {
    display: flex;
    gap: 1.5rem;
}

.admin-menu li {
    display: inline-block;
    margin-right: 1rem;
    list-style: none;
}

