:root {
    --bg: #f7f7f0;
    /* fond ivoire très clair */
    --ink: #0e0e0e;
    /* texte principal */
    --muted: #5a5a5a;
    /* texte secondaire */
    --niche: white;
    /* niche grise */
    --stroke: #e9e9e2;
    /* léger trait éventuel */
}

.grain-canvas {
    position: fixed;
    inset: 0;
    /* ou position:absolute; inset:0; dans .niche */
    pointer-events: none;
    z-index: 1;
    opacity: 0.2;
    /* intensité du grain */
}

* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    font-family: "Outfit", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.bloc-home{
    background: var(--bg);
    height: 100vh;
}

.mobile{
    display: none;
}

/* ============ Header ============ */
.site-header {
    position: relative;
    display: flex;
    justify-content: space-between;
    /* logo / nav centré / espace droit */
    align-items: center;
    padding: 40px 160px 0 160px;
}

.brand-mark img {
    height: 34px;
    /* ajuste à ton SVG */
    display: block;
}

.main-nav {
    display: flex;
    gap: 56px;
    justify-content: center;
    align-items: center;
    font-family: "Italiana", serif;
    font-size: 28px;
    line-height: 1;
    padding: 0 80px;
}

.main-nav a {
    color: var(--ink);
    text-decoration: none;
    position: relative;
    padding-bottom: 6px;
}

.main-nav a.is-active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    margin-inline: auto;
    width: 100%;
    height: 2px;
    background: var(--ink);
}

/* ============ Hero ============ */
.hero {
    min-height: calc(100vh - 88px);
    display: flex;
    justify-content: space-between;
    /* gauche / droite */
    gap: 60px;
    align-items: center;
    width: 80%;
    margin: auto;
}

/* Bloc gauche : niche + signature */
.hero-left {
    position: relative;
    height: min(800px, 80vh);
    display: flex;
    align-items: center;
}

/* la niche (forme en U arrondi) */
.niche {

    width: 500px;
    height: 92%;
    background: var(--niche);
    border-top-left-radius: 220px;
    border-top-right-radius: 220px;

    background-image: url('../assets/gradient1.jpg');
        /* chemin vers ton image */
        background-size: cover;
        background-position: center;
}

#particles-js {
position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;

    /* plus de fond bleu */
}
/* grande signature par-dessus */
.signature {
    position: absolute;
    z-index: 1;
    max-width: min(325px, 60vw);
    height: auto;
    transform: translate(90%, -85%);
    /* superposition comme sur ton modèle */
    pointer-events: none;
}

/* Bloc droit : titre + texte */
.hero-right{
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 170px;
}
.hero-right h1 {
    font-weight: 600;
    font-size: clamp(22px, 2.2vw, 28px);
    margin: 0;
}

.hero-right p {
    color: var(--muted);
    font-weight: 400;
    line-height: 1.6;
    font-size: clamp(14px, 1.3vw, 16px);
    max-width: 56ch;
    margin: 0;
}

/* ============ Bloc Portfolio ============ */

.bloc-portfolio {
    display: flex;
    align-items: center;
    flex-direction: column;
    padding: 60px 0;
    z-index: 2;
}

.bloc-portfolio h2{
    margin-top: 0;
    margin-bottom: 45px;
    font-size: 45px;
    font-weight: 400;
}

.container-portfolio {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80%;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.card {
    display: block;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-decoration: none;
    color: inherit;
    padding: 10px 10px 16px 10px;
}

.card-scroll {
    display: block;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    padding: 10px 10px 16px 10px;
    border: 1px solid rgb(218, 218, 218);
}

.card-image {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    width: 100%;
    max-height: 200px;
    
    /* contour gris clair */
}

.card-image img {
    width: 100%;
    display: block;
    margin: auto;
    object-fit: contain;
        /* ou contain selon ton besoin */
    object-position: center;
}

.card-content {
    width: 80%;
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.card-desc {
    font-size: 14px;
    color: #555;
}

.card-etat{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin: 16px 0 8px;
}

.en-cours{
    font-size: 14px;
    margin: 0;
    background-color: #FFF48E;
    border-radius: 50px;
    padding: 6px 15px;
    white-space: nowrap;
    text-transform: lowercase;
}

.termine {
    font-size: 14px;
    margin: 0;
    background-color: #D4EDBC;
    border-radius: 50px;
    padding: 6px 15px;
    white-space: nowrap;
    text-transform: lowercase;
}

/* ============ Bloc Contact ============ */

/* --- Layout global --- */
.contact-section {
    padding: 60px 0;
    position: relative;
}

.contact-wrap {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 40px;
    align-items: center;
    margin: auto;
            width: 80%;
}

/* --- Carte texte gauche --- */
.contact-card {
    padding: 48px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-title {
    font-family: "Outfit", sans-serif;
    font-size: clamp(34px, 4.2vw, 56px);
    line-height: 1.05;
    margin: 0;
}

.contact-title .italiana {
    font-family: "Italiana", serif;
    font-weight: 400;
}

.contact-text {
    color: #6b6b6b;
    max-width: 42ch;
    line-height: 1.7;
    margin: 0;
}

/* --- Carte formulaire droite --- */
.form-card {
    position: relative;
    background: #f5f3e9;
    /* ivoire doux */
    z-index: 2;
    border: 1px solid rgba(0, 0, 0, .06);
    border-radius: 32px;
    padding: 28px 28px 34px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, .10);
    overflow: visible;
}

.form-title {
    text-align: center;
    margin: 6px 0 22px;
    font-weight: 600;
    font-size: clamp(26px, 3vw, 32px);
}

.form-title .italiana {
    font-family: "Italiana", serif;
    font-weight: 400;
}

form label {
    display: block;
    font-size: 13px;
    color: #6b6b6b;
    margin-bottom: 16px;
}

form input,
form select,
form textarea {
    width: 100%;
    margin-top: 6px;
    padding: 14px 12px;
    font: inherit;
    color: #0e0e0e;
    background: #f7f6ef;
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, .12);
    border-radius: 10px;
    /* léger arrondi (textarea plus marqué via wrapper) */
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

form textarea {
    background: #f7f6ef;
    border: 1px solid rgba(0, 0, 0, .12);
}

form input:focus,
form select:focus {
    border-color: rgba(0, 0, 0, .35);
    box-shadow: 0 1px 0 rgba(0, 0, 0, .08);
    background: #fff;
}

form textarea:focus {
    border-color: rgba(0, 0, 0, .35);
    background: #fff;
}

.btn-submit {
    display: inline-block;
    margin: 18px auto 0;
    padding: 12px 26px;
    border: 0;
    border-radius: 999px;
    background: #0e0e0e;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.btn-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, .18);
}

form{
    position: relative;
    z-index: 6;
}
/* --- Dégradé décor arrondi --- */
.contact-decor {
    position: absolute;
    right: 50px;
    bottom: 80px;
    width: clamp(160px, 22vw, 360px);
    height: 500px;
    border-radius: 28px;
    border-bottom-left-radius: 0;
    background-image: url('../assets/gradient2.jpg');
    /* ton image */
    background-size: cover;
    background-position: center;
    z-index: 1;
    box-shadow: 0 25px 60px rgba(0, 0, 0, .15);
    pointer-events: none;
}

/* FOOOTER */

.site-footer {
    color: black;
    padding: 0 160px 40px 160px;
    font-family: "Outfit", sans-serif;
    font-size: 14px;
}

.footer-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding-top: 30px;
    border-top: 1px solid rgba(0, 0, 0, 0.103);
}
.footer-left{
        width: 33%;
        display: flex;
        gap: 28px;
        align-items: center;
}
.footer-left p {
    margin: 0;
    line-height: 1.6;
}

.footer-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 28px;
    flex-wrap: wrap;
    width: 33%;
}
.footer-logo{
    width: 33%;
    display: flex;
    margin: auto;
}
.footer-logo img{
        display: block;
        height: 40px;
}
.footer-nav {
    display: flex;
    gap: 20px;
}

.footer-nav a {
    color: black;
    text-decoration: none;
    transition: opacity .2s ease;
}

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

.footer-mail,
.footer-cv {
    color: black;
    text-decoration: none;
    font-weight: 500;
    transition: opacity .2s ease;
}

.footer-mail:hover,
.footer-cv:hover {
    opacity: 0.7;
}

/* LAYER */

#mentionsLegales {
    text-align: center;
    cursor: pointer;
    text-decoration: none;
}

/* Overlay YOUTUBE */

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.overlay-content {
    position: relative;
    width: 90%;
    max-width: 800px;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 30px;
    color: white;
    cursor: pointer;
    z-index: 10000;
}

iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Overlay (caché par défaut) */
#mentionsLayer {
    display: none;
    position: fixed;
    inset: 0;
    /* top:0; right:0; bottom:0; left:0 */
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    color: var(--ink);
    overflow-y: auto;
    padding: 40px;
}

/* Contenu du layer */
.mentions-content {
    max-width: 1000px;
    margin: 60px auto;
    background: white;
    padding: 40px;
    border-radius: 12px;
}

.inner-content {
    width: 70%;
    margin: auto;
}

.titre-mention {
    font-size: 32px;
    margin: 0;
    font-weight: bold;
}

.sous-titre-mention {
    font-size: 24px;
    margin: 20px 0 8px 0;
    font-weight: bold;
}

/* Bouton de fermeture */
.close-layer {
    position: relative;
    left: -100px;
    width: 52px;
    cursor: pointer;
    color: #fff;

}

.close-layer:hover {
    color: #ff5555;
}

/* BOUTON VIDEO */

/* From Uiverse.io by cssbuttons-io */
.learn-more {
    position: relative;
    display: inline-block;
    cursor: pointer;
    outline: none;
    border: 0;
    vertical-align: middle;
    text-decoration: none;
    background: transparent;
    padding: 0;
    font-size: inherit;
    font-family: inherit;
}

button.learn-more {
    width: 20rem;
    height: auto;
}

button.learn-more .circle {
    transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
    position: relative;
    display: block;
    margin: 0;
    width: 3rem;
    height: 3rem;
    background: var(--ink);
    border-radius: 1.625rem;
}

button.learn-more .circle .icon {
    transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
    position: absolute;
    top: 0;
    bottom: 0;
    margin: auto;
    background: #fff;
}

button.learn-more .circle .icon.arrow {
    transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
    left: 0.625rem;
    width: 1.125rem;
    height: 0.125rem;
    background: none;
}

button.learn-more .circle .icon.arrow::before {
    position: absolute;
    content: "";
    top: -0.29rem;
    right: 0.0625rem;
    width: 0.625rem;
    height: 0.625rem;
    border-top: 0.125rem solid #fff;
    border-right: 0.125rem solid #fff;
    transform: rotate(45deg);
}

button.learn-more .button-text {
    transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0.75rem 0;
    margin: 0 0 0 1.85rem;
    color: var(--ink);
    font-weight: 700;
    line-height: 1.6;
    text-align: center;
    text-transform: uppercase;
}

.learn-more:hover .circle {
    width: 100%;
}

.learn-more:hover .circle .icon.arrow {
    background: #fff;
    transform: translate(1rem, 0);
}

.learn-more:hover .button-text {
    color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
    .desktop{
        display: none;
    }
        .mobile {
            display: block;
        }
        .site-header {
            display: flex;
            justify-content: center;
            flex-direction: column;
            padding: 20px 0 30px 0;
            gap: 20px;
        }
    
        .signature {
            width: 66%;
            transform: translate(50%, -50%);
        }
    
        .main-nav {
            gap: 28px;
            font-size: 25px;
            padding: 0;
        }
    
        .hero-left {
            height: 260px;
        }
    
        .niche {
            width: 78%;
            left: 6%;
        }
    
        .bloc-portfolio h2 {
            margin: auto auto 45px auto;
            font-size: 34px;
            font-weight: 400;
            width: 80%;
            text-align: center;
        }
    
        .cards-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 24px;
        }
    
        .contact-card {
            padding: 0;
        }
    
        .site-footer {
            width: 80%;
            margin: auto;
            padding: 0;
        }

        .footer-wrap {
                            flex-direction: column;
                            align-items: center;
                            gap: 16px;
                            padding: 30px 0 30px 0;
                        }
            
                        .footer-right {
                            flex-direction: column;
                            align-items: flex-start;
                            gap: 10px;
                        }
        .footer-left{
            width: 100%;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .footer-logo img{
            width: 70px;
        }
        .inner-content{
        width: 100%;
        }
        .close-layer{
            left: 0;
        }
        .mention-layer{
            padding: 20px !important;
        }
}

@media (max-width: 1000px) {
        .contact-wrap {
                grid-template-columns: 1fr;
            }
        
            .form-card {
                margin-top: 8px;
            }
    .hero {
        display: block;
    }


    .hero-right {
        margin-top: 20px;
    }
}

