/* =========================================================
   DAMAG Design — clean / professional / mobile first
   ========================================================= */

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

:root {
    --bg:#eef2f6;
    --card:#ffffff;

    --text-main:#0f172a;
    --text-secondary:#475569;
    --text-muted:#64748b;

    --line:#e2e8f0;

    --shadow-lg:0 18px 45px rgba(15,23,42,0.10);
    --shadow-sm:0 6px 20px rgba(15,23,42,0.08);

    --radius-xl:22px;
    --radius-lg:16px;
    --radius-md:12px;

    /* Group */
    --blue:#334155;
    --blue-hover:#1e293b;
    --blue-soft:#e7edf3;

    /* Consulting */
    --gold:#d6b86c;
    --gold-soft:#f5ecd2;

    /* Design */
    --green:#3E7F5A;
    --green-hover:#2f6848;
    --green-soft:#e6f0eb;
    --green-border:#c9ddd3;

    /* Immo */
    --terracotta:#7A4E34;
    --terracotta-soft:#f1e3dc;
}

/* ---------- Reset ---------- */

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

html{
    -webkit-text-size-adjust:100%;
}

body{
    margin:0;
    min-height:100vh;
    font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
    background:
        radial-gradient(circle at top left,#f8fafc 0%,#eef2f6 38%,#e8edf3 100%);
    color:var(--text-main);
    display:flex;
    justify-content:center;
    padding:28px;
}

/* ---------- Container ---------- */

.box{
    width:100%;
    max-width:760px;
    background:var(--card);
    border-radius:var(--radius-xl);
    box-shadow:var(--shadow-lg);
    padding:32px;
}

/* ---------- Header ---------- */

header{
    text-align:center;
    margin-bottom:28px;
}

header img{
    height:110px;
    width:auto;
    display:block;
    margin:0 auto;
}

nav{
    margin-top:14px;
    font-size:0.92rem;
}

nav a{
    text-decoration:none;
    color:inherit;
    margin:0 10px;
    transition:0.2s ease;
}

nav a:hover{
    color:var(--green);
}

/* ---------- Typography ---------- */

h1,h2,h3{
    color:var(--text-main);
}

p{
    line-height:1.65;
    color:var(--text-secondary);
    margin:0;
}

/* ---------- Generic sections ---------- */

.section{
    margin-top:28px;
    padding:24px;
    border-radius:var(--radius-lg);
    border:1px solid var(--line);
    background:#fff;
}

.section h2{
    margin:0 0 12px;
    font-size:1.4rem;
}

.section p + p{
    margin-top:12px;
}

/* =========================================================
   THEMES
   ========================================================= */

.theme-design{
    background:var(--green-soft);
    border:1px solid var(--green-border);
}

.theme-design h2{
    color:var(--green);
}

.theme-design strong{
    color:var(--green);
}

.theme-consulting{
    background:var(--gold-soft);
    border:1px solid #ead9a6;
}

.theme-consulting h2{
    color:#b89b52;
}

.theme-consulting strong{
    color:#b89b52;
}

.theme-group{
    background:var(--blue-soft);
    border:1px solid #cfd8e3;
}

.theme-group h2{
    color:var(--blue);
}

.theme-group strong{
    color:var(--blue);
}

.theme-immo{
    background:var(--terracotta-soft);
    border:1px solid #e2cfc4;
}

.theme-immo h2{
    color:var(--terracotta);
}

.theme-immo strong{
    color:var(--terracotta);
}

/* ---------- Badges ---------- */

.badge{
    display:inline-block;
    padding:6px 10px;
    margin-bottom:12px;
    font-size:0.7rem;
    font-weight:700;
    letter-spacing:0.06em;
    text-transform:uppercase;
    border-radius:999px;
}

.badge.design{
    background:#dbeadf;
    color:var(--green);
}

.badge.consulting{
    background:var(--gold-soft);
    color:#b89b52;
}

.badge.group{
    background:var(--blue-soft);
    color:var(--blue);
}

.badge.immo{
    background:var(--terracotta-soft);
    color:var(--terracotta);
}

/* ---------- CTA ---------- */

.cta{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:50px;
    padding:0 18px;
    border-radius:var(--radius-md);
    font-weight:700;
    text-decoration:none;
    transition:0.2s ease;
}

.cta.design{
    background:var(--green);
    color:#fff;
}

.cta.design:hover{
    background:var(--green-hover);
    transform:translateY(-1px);
}

.cta.group{
    background:var(--blue);
    color:#fff;
}

.cta.group:hover{
    background:var(--blue-hover);
    transform:translateY(-1px);
}

.cta.consulting{
    background:var(--gold);
    color:#fff;
}

.cta.consulting:hover{
    filter:brightness(0.96);
    transform:translateY(-1px);
}

.cta.immo{
    background:var(--terracotta);
    color:#fff;
}

.cta.immo:hover{
    filter:brightness(0.96);
    transform:translateY(-1px);
}

/* ---------- Highlight ---------- */

.highlight{
    margin-top:16px;
    padding:16px;
    border-radius:var(--radius-md);
    background:#fff;
    box-shadow:var(--shadow-sm);
}

.highlight.design{
    border-left:4px solid var(--green);
}

.highlight.group{
    border-left:4px solid var(--blue);
}

.highlight.consulting{
    border-left:4px solid var(--gold);
}

.highlight.immo{
    border-left:4px solid var(--terracotta);
}

/* ---------- Design cards ---------- */

.design-cards{
    margin-top:18px;
    display:grid;
    gap:14px;
}

.design-card{
    background:#ffffff;
    border:1px solid var(--green-border);
    border-radius:12px;
    padding:16px;
    box-shadow:var(--shadow-sm);
    transition:0.2s ease;
}

.design-card:hover{
    transform:translateY(-2px);
    box-shadow:0 10px 25px rgba(15,23,42,0.10);
}

.design-card strong{
    display:block;
    font-size:0.95rem;
    margin-bottom:6px;
    color:var(--green);
}

.design-card span{
    display:block;
    font-size:0.92rem;
    color:var(--text-secondary);
    line-height:1.5;
}

/* ---------- Lists ---------- */

.list{
    padding-left:18px;
    margin:0;
}

.list li + li{
    margin-top:10px;
}

.list li span{
    display:block;
    margin-top:6px;
    color:var(--text-secondary);
}

/* ---------- Footer ---------- */

footer,
.site-footer{
    margin-top:34px;
    padding-top:20px;
    border-top:1px solid var(--line);
    text-align:center;
    font-size:0.85rem;
    color:var(--text-muted);
}

footer a,
.site-footer a{
    text-decoration:none;
    color:inherit;
    margin:0 10px;
}

footer a:hover,
.site-footer a:hover{
    color:var(--green);
}

footer p,
.site-footer p{
    margin:8px 0 0;
    color:var(--text-muted);
}

/* ---------- Responsive ---------- */

@media (min-width:640px){
    .design-cards{
        grid-template-columns:1fr 1fr 1fr;
    }
}

@media (max-width:760px){

    body{
        padding:16px;
    }

    .box{
        padding:22px;
    }

    header img{
        height:90px;
    }

    nav{
        display:flex;
        justify-content:center;
        flex-wrap:wrap;
        gap:6px;
    }

    nav a{
        margin:0 8px;
    }

    .section{
        padding:18px;
    }
}

.portfolio-grid{
    display:grid;
    gap:20px;
}

.portfolio-card h3{
    margin:0 0 12px;
}

.portfolio-card p{
    margin-top:10px;
}

.portfolio-trigger{
    display:block;
    width:100%;
    padding:0;
    margin:0;
    border:none;
    background:none;
    cursor:pointer;
    text-align:left;
}

.portfolio-image{
    width:100%;
    max-width:130px;   /* ← taille petite dans la page */
    height:90px;      /* ← hauteur fixe pour homogénéité */
    object-fit:cover;
    border-radius:12px;
    display:block;
}

.lightbox[hidden]{
    display:none;
}

.lightbox{
    position:fixed;
    inset:0;
    z-index:9999;
}

.lightbox-backdrop{
    position:absolute;
    inset:0;
    background:rgba(15,23,42,0.82);
}

.lightbox-dialog{
    position:relative;
    z-index:1;
    width:min(92vw, 1100px);
    height:min(88vh, 900px);
    margin:6vh auto;
    display:grid;
    grid-template-columns:70px 1fr 70px;
    align-items:center;
}

.lightbox-figure{
    margin:0;
    text-align:center;
}

.lightbox-figure img{
    max-width:100%;
    max-height:88vh;
    width:auto;
    height:auto;
    border-radius:14px;
    box-shadow:0 18px 45px rgba(0,0,0,0.28);
    background:#fff;
}

.lightbox-figure figcaption{
    margin-top:14px;
    color:#fff;
    font-size:0.95rem;
}

.lightbox-close,
.lightbox-nav{
    width:52px;
    height:52px;
    font-size:2rem;
    margin:auto;
}

.lightbox-prev{
    left:20px;
}

.lightbox-next{
    right:20px;
}

.lightbox-close{
    position:absolute;
    top:-8px;
    right:0;
    width:44px;
    height:44px;
    font-size:1.8rem;
    line-height:1;
}

.lightbox-nav{
    width:52px;
    height:52px;
    font-size:2rem;
    margin:auto;
}

.lightbox-close:hover,
.lightbox-nav:hover{
    background:rgba(255,255,255,0.2);
}

@media (max-width:760px){
    .lightbox-dialog{
        width:min(94vw, 1100px);
        grid-template-columns:52px 1fr 52px;
    }

    .lightbox-nav{
        width:44px;
        height:44px;
        font-size:1.6rem;
    }
}
.portfolio-trigger:hover .portfolio-image{
    transform:scale(1.03);
    transition:0.2s ease;
}