*, *::before, *::after { box-sizing: border-box; }
html, body { width: 100%; overflow-x: hidden; }
img, video, svg { max-width: 100%; height: auto; display: block; }


/*fonts importés */
@font-face {
  font-family: 'CormorantUpright';
  src: url('/asset/fonts/Cormorant_Upright/CormorantUpright-SemiBold.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'CormorantUpright';
  src: url('/asset/fonts/Cormorant_Upright/CormorantUpright-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: bold;
  font-display: swap;
}

@font-face {
  font-family: 'CormorantUpright';
  src: url('/asset/fonts/Cormorant_Upright/CormorantUpright-Medium.ttf') format('truetype');
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg: linear-gradient(120deg, #ad6a4d 0%, #c47d55 40%, #8e4f2d 100%);
  --accent-soft: #FAB12F;
  --accent: #FA812F;
  --danger: #DD0303;
  --text: #ffffff;
  --muted: #8a6f5a;
  --card: #FEF3E2;
  --radius: 1.25rem;
  --btn:linear-gradient(180deg, #f6d3b1 0%, #f2b98e 40%, #e79b6a 100%);
  /*contact style dégradé */
  --ct: linear-gradient(135deg, rgba(5, 5, 5, 0), rgba(27, 14, 8, 0.699));
}

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


/* Grille principale de la page */

html {
    background: var(--bg);
    scroll-behavior: smooth;
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: CormorantUpright, Tahoma, sans-serif;
    font-size: 18px;
    line-height: 1.3;
    margin:0;
    padding-inline:0;
    box-sizing: border-box;
    background: var(--bg);
    color: var(--text);
    width: 100%;
    overflow-x: hidden;
}

.case-study main {
    display: grid;
    grid-template-columns: 1fr;
}

img,
video,
svg {
    max-width: 100%;
    height: auto;
    display: block;
}

main {
    display: grid;
    grid-template-columns: 1fr;
    /* 1 seule colonne pour empiler les sections*/
    grid-template-rows: auto auto auto auto auto auto;
    /* 5 lignes: header/A propos/projet/contact/ footer*/
    grid-template-areas:
        "header"
        "hero"
        "about"
        "projects"
        "educations"
        "contact"
        "footer";
    gap: 4px;
    padding: 80px 0 0;
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    background: transparent;
}

body.home main {
    padding: 0;
}

main > section {
    padding-block-start: clamp(40px, 6vw, 60px);
    padding-block-end: calc(clamp(24px, 4vw, 52px) + 20px);
    padding-inline: clamp(16px, 5vw, 64px);
    margin-bottom: 0;
    width: 100%;
    margin-inline: 0;
    background: transparent;
    position: relative;
    border-radius: 0;
    isolation: isolate;
    z-index: 0;
}

main > section:not(.hero) {
    scroll-margin-top: clamp(150px, 14vw, 220px);
}

main > section:not(.hero)::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 0;
    opacity: 0.85;
    z-index: -1;
    pointer-events: none;
}

main > section:not(.hero)::after {
    content: "";
    position: absolute;
    left: 8%;
    right: 8%;
    bottom: -48px;
    height: 100px;
    background: radial-gradient(circle at 50% 0%, rgba(14, 7, 3, 0.35), transparent 65%);
    filter: blur(28px);
    opacity: 0.6;
    z-index: -1;
    pointer-events: none;
}

main > section.hero {
    width: 100%;
    margin-inline: 0;
    padding-inline: clamp(24px, 6vw, 96px);
    padding-block-start: clamp(20px, 8vw, 120px);
    padding-block-end: calc(clamp(32px, 4vw, 48px) + 20px);
    margin-bottom: 0;
    border-radius: 0;
}

main > section:last-of-type {
    margin-bottom: 0;
}

/*zone principales de la page */ 
.about {grid-area: about;}
.projects {grid-area: projects;}
.educations {grid-area: educations;}
.contact {grid-area: contact;}
footer {grid-area: footer;}

/* Header: menu à gauche, titre à droite */
header {
    grid-area: header;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px clamp(16px, 5vw, 64px);
    z-index: 10;
    color: #fff;
    }

body.home header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

header .titre {
    font-size: 28px;
    font-weight: 500;
    margin:0;
    color: rgba(255,255,255,0.85);
}

.titre a {
    opacity: 0.8;
}

.menu-edc {
   margin-left: auto;   /* pousse le menu à droite */
   position: relative;  /* pour que le sous-menu se place bien */
}

.case-study #site-menu {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 18px 22px;
}

.menu-edc ul {
    list-style: none;
    display: flex;
    gap: 16px;
    flex-wrap: nowrap;
    align-items: center;
    margin: 0;
    padding: 0;
}

.menu-edc a {
    text-decoration: none;
    color: rgba(255,255,255,0.92);
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-shadow: 0 1px 6px rgba(119, 30, 3, 0.47);
    font-weight: 600;
}

.menu-edc .menu__toggle {
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
    text-decoration: none;
    color: rgba(255,255,255,0.92);
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-shadow: 0 1px 6px rgba(119, 30, 3, 0.47);
    font-weight: 600;
    cursor: pointer;
}

.menu-edc a:hover {
    cursor: pointer;
    color:#311200;
}

.menu-edc .menu__toggle:hover,
.menu-edc .menu__toggle:focus-visible {
    color:#311200;
}

.menu ul {
    list-style: none;
    display: flex;
    gap: clamp(12px, 4vw, 24px);
    flex-wrap: wrap;
    justify-content: flex-end;
    position: relative;
    align-items: center;
}

.menu a {
    text-decoration: none;
    color: rgba(255,255,255,0.92);
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-shadow: 0 1px 6px rgba(119, 30, 3, 0.47);
    font-weight: 600;
}

.menu a:hover {
    cursor: pointer;
    color:#311200;
}

.menu ul {
    align-items: center;
}

@media (max-width: 640px) {
    body {
        overflow-x: hidden;
        font-size: 16px;
    }

    header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 18px 16px;
    }

    .menu-edc {
        width: 100%;
        margin-left: 0;
    }

    .menu-edc ul {
        flex-wrap: wrap;
        gap: 8px;
        justify-content: flex-start;
    }

    main > section,
    main > section.hero {
        padding-inline: 16px;
    }

    main > section:not(.hero)::after {
        left: 0;
        right: 0;
    }

    body.case-study .panel {
        padding: 24px 18px;
    }

    body.case-study .panel .grid {
        gap: 16px;
    }

    body.case-study .panel .grid .card {
        padding: 16px;
    }

    body.case-study .resource-carousel .carousel-slide {
        padding: 12px 8px;
    }
}

@media (max-width: 420px) {
    .hero-background img {
        object-fit: cover;
        object-position: center;
    }

    main > section,
    main > section.hero {
        padding-inline: 12px;
    }

    .menu {
        width: 100%;
    }

    .menu-edc ul {
        flex-direction: column;
        align-items: flex-start;
    }

    body.case-study .panel {
        border-radius: 20px;
    }

    body.case-study .panel .grid .card {
        border-radius: 18px;
    }
}

@media (max-width: 720px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 24px;
        text-align: center;
    }

    .hero-container--centered {
        max-width: 100%;
        padding-inline: 20px;
    }

    .hero-image {
        justify-content: center;
        align-items: center;
    }

    .hero-text {
        align-items: center;
    }

    .hero-text h1 {
        font-size: clamp(2rem, 6vw, 2.8rem);
    }

    .hero-text h2 {
        font-size: clamp(2.2rem, 6vw, 3.2rem);
    }
}

@media (max-width: 480px) {
    header {
        padding: 16px;
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .menu ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }
    
    nav ul { 
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero-container {
        text-align: center;
    }

    .hero-text {
        align-items: center;
        text-align: center;
    }

    .hero-text h1 {
        font-size: clamp(1.8rem, 7vw, 2.6rem);
    }

    .hero-text h2 {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .hero-value {
        font-size: clamp(1rem, 4.5vw, 1.2rem);
    }

    .hero-cta {
        width: 100%;
        flex-direction: column;
        gap: 12px;
        align-items: center;
        justify-content: center;
    }

    .hero-cta .btn {
        width: 100%;
    }

    body.case-study .resource-carousel .carousel-control {
        inline-size: 28px;
        block-size: 28px;
    }

    body.case-study .resource-carousel figcaption {
        font-size: 0.95rem;
    }
}

.menu__item {
    position: relative;
}

.menu__item--has-submenu > a::after,
.menu__item--has-submenu > .menu__toggle::after {
    content: "▾";
    margin-left: 6px;
    font-size: 0.7em;
}

.submenu {
    list-style: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    background: #99592fa4;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 280px;
    z-index: 20;
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.35);
    opacity: 0;
    pointer-events: visible;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.submenu li {
    width: 100%;
}

.submenu a {
    color: #ffffff;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-shadow: none;
    display: block;
    padding: 8px 10px;
    border-radius: 8px;
    transition: background 0.2s ease, color 0.2s ease;
}

.submenu a:hover,
.submenu a:focus-visible {
    background: #ffffff4f;
    color: black;
}

.menu__item--has-submenu:hover .submenu,
.menu__item--has-submenu:focus-within .submenu {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}



.titre a {
    color: inherit;
    text-decoration: none;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3.2rem);
    margin: 0 0 1.5rem;
    color: #ffffff;
}


.titre a:visited,
.titre a:hover,
.titre a:focus {
    color: inherit;
    text-decoration: none;
}

#about {
  scroll-margin-top: 0.4vh; /* ou 120px selon ton layout */
}

#projects {
  scroll-margin-top: 0.4vh; /* ou 120px selon ton layout */
}

#education {
  scroll-margin-top: 0.4vh; /* ou 120px selon ton layout */
}

#contact {
  scroll-margin-top: 0.4vh; /* ou 120px selon ton layout */
}

/* Hero section */
.hero {
    grid-area: hero;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    border-radius: 0;
    background: transparent;
    color: #f7f4ef;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    isolation: isolate;
}


.hero-container {
    display: grid;
    grid-template-columns: 1fr;
    column-gap: clamp(40px, 5vw, 56px);
    row-gap: clamp(24px, 5vw, 32px);
    align-items: center;
    padding-block: clamp(24px, 5vw, 40px);
    position: relative;
    z-index: 1;
}

.hero-container--centered {
    max-width: 1180px;
    margin: 0 auto;
    padding-inline: clamp(24px, 6vw, 48px);
}

.hero-text {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    align-items: flex-start;
    justify-content: flex-start;
    max-width: 880px;
    margin: 0 auto;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border: 1px solid rgba(255,255,255,0.4);
    color: #f7f4ef;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* reduce hero text for more image focus */

.hero-text h1 {
    margin: 0;
    font-size: clamp(2rem, 3.5vw, 3rem);
    line-height: 1.2;
    color: rgba(255,255,255,0.9);
    font-weight: 600;
}

.hero-text h2 {
    margin: 0;
    font-size: clamp(2.2rem, 4.5vw, 4rem);
    line-height: 1.1;
    color: #ffffff;
    font-weight: 700;
}

.hero-subtitle {
    margin: 0;
    font-size: 1rem;
    line-height: 1.5;
    color: rgba(255,255,255,0.85);
    max-width: 480px;
}

.hero-role {
    margin: 0;
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.hero-value {
    margin: 0;
    font-size: clamp(1.05rem, 1.9vw, 1.3rem);
    line-height: 1.85;
    color: rgba(255,255,255,0.95);
    max-width: 660px;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.6rem;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn-primary {
    background: linear-gradient(180deg, #f6d3b1 0%, #f2b98e 40%, #e79b6a 100%);
    color: #000000;
    box-shadow: 0 15px 30px rgba(250, 129, 47, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(250, 129, 47, 0.4);
}

.btn-secondary {
    border: 1px solid rgba(250, 129, 47, 0.4);
    color: #fefefe;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
}

.hero-image {
    align-self: flex-start;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
}

.hero-image img {
    width: min(200px, 100%);
    max-width: 100%;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    object-fit: cover;
    object-position: center top;
    display: block;
    background: transparent;
    filter: saturate(0.7) contrast(0.9) brightness(0.95);
}

.hero-cta {
    margin-top: clamp(28px, 4vw, 36px);
}


.photo-frame {
    position: relative;
    display: inline-block;
  
}

.photo-frame img {
    display: block;
    width: 354px;
    height: 428px;
    border-radius: 4px;
    z-index: 1;
    position: relative;
    object-fit: cover;
}

/* Cadre ébène texturé + effet verni */
.photo-frame::before,
.photo-frame::after,
.photo-frame .bar-top,
.photo-frame .bar-bottom {
    background: linear-gradient(145deg, #12100d 0%, #2a1d16 45%, #3a271e 100%),
                repeating-linear-gradient(40deg, rgba(255,255,255,0.12) 0px, rgba(255,255,255,0.12) 1px, transparent 1px, transparent 5px),
                radial-gradient(circle at 20% 30%, rgba(255, 237, 220, 0.35), transparent 55%),
                radial-gradient(circle at 80% 70%, rgba(247, 226, 208, 0.25), transparent 60%),
                linear-gradient(to bottom, rgba(255,255,255,0.38) 0%, rgba(255,255,255,0.05) 40%);
    background-blend-mode: overlay, overlay, screen;
    box-shadow: 0 0 8px rgba(0,0,0,0.5);
    border-radius: 3px;
    z-index: 2;
    position: relative;
}
/* Bordures principales gauche et droite */
.photo-frame::before,
.photo-frame::after {
    content: "";
    position: absolute;
    width: 12px;
}

  /* Bordure gauche reliée avec le bas (hauteur réduite de moitié) */
.photo-frame::before {
    bottom: -10px;
    left: -10px;
    height: 35%;
}

    /* Bordure droite reliée avec le haut (hauteur réduite de moitié) */
.photo-frame::after {
    top: -10px;
    right: -10px;
    height: 35%;
}

    /* Barres horizontales pour créer les jonctions perpendiculaires */
.photo-frame .bar-bottom,
.photo-frame .bar-top {
      position: absolute;
      height: 12px;
}

    /* Bas relié à la gauche */
.photo-frame .bar-bottom {
    bottom: -10px;
    left: -10px;
    width: 70%;
    box-shadow: 0 3px 6px rgba(0,0,0,0.5);
}

    /* Haut relié à la droite */
.photo-frame .bar-top {
    top: -10px;
    right: -10px;
    width: 70%;
    box-shadow: 0 -3px 6px rgba(0,0,0,0.5);
}

    /* Légère brillance de surface simulant le vernis */
.photo-frame::after, .photo-frame::before, .photo-frame .bar-top, .photo-frame .bar-bottom {
    background-blend-mode: multiply, overlay, screen;
}

.hero-sides {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
    z-index: 2;
}

.hero-sides--left {
    left: clamp(8px, 2vw, 32px);
    pointer-events: none;
}

.hero-sides--right {
    right: clamp(8px, 2vw, 32px);
}

.hero-sides--right a {
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    font-weight: 600;
    padding: 0.2rem 0;
}

.hero-sides--right a:hover {
    color: #4deccd;
}

/*PAGE: Etude de cas */

/* Variante Etude de cas */
body.case-study .hero--case {
    position: relative;
    inline-size: 100%;
    max-inline-size: 100vw;
    margin-inline: 0;
    margin-top: 1rem;
    min-block-size: 520px;
    overflow: hidden;
    background-color: #000;
}

body.case-study .hero--case .hero-background {
    position: absolute;
    inset: 0;
    z-index: 0;
}

body.case-study .hero--case .hero-background::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #000000c9, #42250062);
    z-index: 1;
}

body.case-study .hero--case .hero-background img {
    inline-size: 100%;
    block-size: 100%;
    object-fit: cover;
    display: block;
    position: relative;
    z-index: 0;
}

body.case-study .hero-container--case {
    position: relative;
    z-index: 2;
    max-inline-size: 1280px;
    margin-inline: auto;
    inline-size: 100%;
    padding: 120px clamp(24px, 6vw, 240px);
    padding-bottom: 80px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

body.case-study .hero-overlay {
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: rgba(254, 243, 226, 0.92);
    color: #2f2f2f;
    padding: 28px 32px;
    border-radius: 12px;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.2);
    max-inline-size: 550px;
}

body.case-study .hero--case .hero-card-text,
body.case-study .hero--case .hero-card-speciality {
    position: static;
    inset: auto;
    transform: none;
    text-align: left;
    align-items: flex-start;
    padding: 0;
    color: inherit;
}

body.case-study .hero--case .hero-card-text h2 {
    margin: 0;
    color: #9B3922;
}

body.case-study .hero--case .hero-card-speciality p {
    margin: 0;
    color: #313131;
}

/* Tabs navigation (dock + sticky) */
body.case-study .tabs-dock {
    position: relative;
    inset: auto;
    display: flex;
    justify-content: center;
    pointer-events: auto;
    z-index: 3;
    padding-inline: clamp(16px, 4vw, 48px);
    margin-block: clamp(-72px, -8vw, -40px) clamp(20px, 3vw, 48px);
}

body.case-study .tabs {
    display: inline-flex;
    gap: 18px;
    padding: 14px 22px;
    background: #fef4e6;
    border-radius: 40px;
    box-shadow: 0 18px 42px rgba(155, 57, 34, 0.18);
    pointer-events: auto;
    backdrop-filter: blur(4px);
    align-items: center;
    inline-size: fit-content;
    max-inline-size: min(1000px, calc(100vw - 32px));
    flex-wrap: nowrap;
    white-space: nowrap;
}

body.case-study .tab-btn {
    appearance: none;
    border: 0;
    border-radius: 999px;
    padding: 10px 20px;
    font-family: inherit;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 0.3px;
    background: transparent;
    color: #2f1f13;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

body.case-study .tab-btn:hover,
body.case-study .tab-btn:focus-visible {
    background: rgba(155, 57, 34, 0.12);
    outline: none;
}

body.case-study .tab-btn.is-active {
    background: linear-gradient(135deg, #2f1f13, #5b3725);
    color: #fef4e6;
    transform: translateY(-3px);
    box-shadow: 0 18px 26px rgba(32, 26, 26, 0.32);
}

body.case-study .sticky-sentinel {
    inline-size: 100%;
    block-size: 1px;
}

body.case-study .tabs-sticky {
    position: sticky;
    inset-block-start: 0;
    z-index: 1000;
    display: flex;
    justify-content: center;
    padding: 12px 16px;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

body.case-study .tabs-sticky.is-visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

body.case-study .tabs-sticky .tabs {
    box-shadow: none;
    justify-content: center;
}

body.case-study .tabs-sticky.is-visible .tabs {
    gap: 10px;
    padding: 8px 16px;
}

body.case-study .tabs-sticky.is-visible .tab-btn {
    padding: 6px 14px;
    font-size: 0.95rem;
}

body.case-study .panel {
    text-align: center;
    scroll-margin-top: 140px;
}

body.case-study .case-study-content {
    padding: 40px clamp(24px, 6vw, 72px) 50px;
    position: relative;
    z-index: auto;
    margin-block-start: 0;
}

body.case-study .case-study-content::before {
    content: "";
    position: absolute;
    inset-inline: 0;
    inset-block-start: 0;
    block-size: 180px;
    pointer-events: none;
    z-index: -1;
}

body.case-study .panel {
    max-inline-size: 920px;
    margin-inline: auto;
    margin-block: 0 64px;
    padding: clamp(28px, 4vw, 40px) clamp(24px, 4vw, 40px);
    border-radius: 28px;
    box-shadow: 0 32px 58px rgba(66, 37, 0, 0.18);
    border: 1px solid rgb(0, 0, 0);
    background-image:
        linear-gradient(135deg, rgba(5, 5, 5, 0.651), rgba(27, 14, 8, 0.788)),
        var(--case-panel-image, none);
    background-size: auto, cover;
    background-position: center;
    background-repeat: no-repeat;
    background-blend-mode: normal;
    position: relative;
    overflow: hidden;
    z-index: 0;
    color: #ffffff;
}

body.case-study .panel > * {
    position: relative;
    z-index: 1;
}

body.case-study .panel::after {
    content: "";
    position: absolute;
    inset-inline: clamp(18px, 4vw, 32px);
    inset-block-end: -18px;
    block-size: 32px;
    border-radius: 999px;
    background: rgba(50, 34, 24, 0.08);
    filter: blur(12px);
    opacity: 0.8;
    z-index: -2;
}

body.case-study .panel + .panel {
    margin-block-start: -24px;
}

body.case-study .panel > h2 {
    margin-block: 0 clamp(24px, 3vw, 32px);
    font-size: clamp(28px, 4vw, 34px);
    color: #ffffff;
}

body.case-study .panel .grid {
    display: grid;
    gap: clamp(16px, 3vw, 20px);
    justify-content: center;
    max-width: 1100px;
    margin: 0 auto;
}

body.case-study .panel .grid .card {
    background: rgba(255, 225, 200, 0.82);
    border-radius: 24px;
    padding: clamp(20px, 3vw, 26px);
    box-shadow: 0 20px 32px rgba(155, 57, 34, 0.12);
    border: 1px solid rgba(155, 57, 34, 0.15);
}

body.case-study .panel .grid .card h3 {
    margin: 0 0 10px;
    color: #9B3922;
    font-size: clamp(20px, 3vw, 24px);
}

body.case-study .panel .grid .card p {
    margin: 0;
    color: #000000;
    line-height: 1.6;
}

body.case-study .resource-carousel {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    inline-size: 100%;
    max-inline-size: 100%;
    margin-inline: 0;
}

body.case-study .resource-carousel .carousel-viewport {
    overflow: hidden;
    border-radius: 20px;
    background: #000;
    inline-size: 100%;
}

body.case-study .resource-carousel .carousel-track {
    display: flex;
    gap: 0;
    inline-size: 100%;
    transform: translateX(var(--carousel-offset, 0%));
    transition: transform 0.6s ease;
}

body.case-study .resource-carousel .carousel-slide {
    min-inline-size: 100%;
    flex: 0 0 100%;
    margin: 0;
    padding: clamp(12px, 3vw, 16px);
    display: flex;
    flex-direction: column;
    gap: 12px;
    opacity: 0.3;
    transition: opacity 0.3s ease;
}

body.case-study .resource-carousel .carousel-slide.is-active {
    opacity: 1;
}

body.case-study .resource-carousel .resource-media {
    position: relative;
    inline-size: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 18px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.86);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: clamp(10px, 2vw, 16px);
    color: #ffffff;
}

body.case-study .resource-carousel .resource-media video,
body.case-study .resource-carousel .resource-media iframe,
body.case-study .resource-carousel .carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-width: none;
    margin: 0;
    border: 0;
    background: #000;
}

body.case-study .resource-carousel .carousel-slide img.carousel-image--contain {
    object-fit: contain;
}

body.case-study .resource-carousel .carousel-slide img.carousel-image--scaled {
    max-height: 80%;
    max-width: 80%;
    margin: auto;
}

body.case-study .resource-lookerstudio {
    inline-size: 100%;
    max-inline-size: min(720px, 100%);
    margin-inline: auto;
    border-radius: 18px;
    overflow: hidden;
    background: #000;
}

body.case-study .resource-lookerstudio iframe {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
}

body.case-study .resource-carousel .carousel-slide--no-crop img {
    width: auto;
    max-width: 100%;
    height: 100%;
    object-fit: contain;
    margin-inline: auto;
    background: #000;
}

body.case-study .resource-carousel .resource-media--video p {
    margin: 0;
    font-size: clamp(16px, 2vw, 18px);
    line-height: 1.4;
}

body.case-study .resource-carousel figcaption {
    font-size: 1rem;
    color: #4B1F0E;
    text-align: left;
}

body.case-study .resource-carousel .carousel-control {
    position: absolute;
    inset-block-start: 50%;
    transform: translateY(-50%);
    inline-size: 40px;
    block-size: 40px;
    border-radius: 999px;
    border: none;
    background: rgba(24, 12, 4, 0.75);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

body.case-study .resource-carousel .carousel-control:hover,
body.case-study .resource-carousel .carousel-control:focus-visible {
    background: rgba(250, 129, 47, 0.88);
    outline: none;
}

body.case-study .resource-carousel [data-carousel-prev] {
    inset-inline-start: 16px;
}

body.case-study .resource-carousel [data-carousel-next] {
    inset-inline-end: 16px;
}

body.case-study .resource-carousel .carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
}

body.case-study .resource-carousel .carousel-dot {
    inline-size: 12px;
    block-size: 12px;
    border-radius: 999px;
    border: none;
    background: rgba(75, 31, 14, 0.35);
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

body.case-study .resource-carousel .carousel-dot.is-active {
    background: #FA812F;
    transform: scale(1.05);
}

@media (max-width: 768px) {
    body.case-study .resource-carousel {
        max-inline-size: 100%;
    }
    body.case-study .resource-carousel .carousel-control {
        inline-size: 34px;
        block-size: 34px;
    }
}

body.case-study .panel:last-of-type {
    margin-block-end: 0;
}

/* Cube navigation overlay */
/* Tables dans Résutlat/preuve EDC1: style simple avec bordures noires et fond blanc */

table {
  width: 100%;
  border-collapse: collapse;
  background-color: #ffffff; /* fond blanc */
  font-family: inherit
 
}

th, td {
  border: 1px solid #000000; /* bordures noires */
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  color:#000000; /* texte noir */
}

th {
  background-color: #f5f5f5; /* léger contraste pour l’en-tête */
  font-weight: 600;
}

tr:nth-child(even) {
  background-color: var(--bg); /* fond blanc même pour les lignes paires */
}

tr:nth-child(odd) {
  background-color: var(--bg); /* toutes les lignes blanches pour ton souhait */
}

table caption {
  caption-side: top;
  font-weight: bold;
  margin-bottom: 8px;
}

body.case-study:has(.case-study-content[style*="GTM-pexels-jack-sparrow-5918400.webp"]) .table-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 12px;
  padding-bottom: 4px;
}

body.case-study:has(.case-study-content[style*="GTM-pexels-jack-sparrow-5918400.webp"]) .table-scroll table {
  width: 100%;
  min-width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}

body.case-study:has(.case-study-content[style*="GTM-pexels-jack-sparrow-5918400.webp"]) .table-scroll th,
body.case-study:has(.case-study-content[style*="GTM-pexels-jack-sparrow-5918400.webp"]) .table-scroll td {
  padding: 10px 12px;
  font-size: 1rem;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

@media (max-width: 680px) {
  body.case-study:has(.case-study-content[style*="GTM-pexels-jack-sparrow-5918400.webp"]) .table-scroll th,
  body.case-study:has(.case-study-content[style*="GTM-pexels-jack-sparrow-5918400.webp"]) .table-scroll td {
    padding: 8px 10px;
    font-size: 0.95rem;
  }

  body.case-study:has(.case-study-content[style*="GTM-pexels-jack-sparrow-5918400.webp"]) .table-scroll table,
  body.case-study:has(.case-study-content[style*="GTM-pexels-jack-sparrow-5918400.webp"]) .table-scroll thead,
  body.case-study:has(.case-study-content[style*="GTM-pexels-jack-sparrow-5918400.webp"]) .table-scroll tbody,
  body.case-study:has(.case-study-content[style*="GTM-pexels-jack-sparrow-5918400.webp"]) .table-scroll tr {
    display: block;
    width: 100%;
  }

  body.case-study:has(.case-study-content[style*="GTM-pexels-jack-sparrow-5918400.webp"]) .table-scroll thead {
    display: none;
  }

  body.case-study:has(.case-study-content[style*="GTM-pexels-jack-sparrow-5918400.webp"]) .table-scroll tr {
    margin-bottom: 10px;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 8px 18px rgba(0,0,0,0.2);
    background: rgba(255,255,255,0.08);
  }

  body.case-study:has(.case-study-content[style*="GTM-pexels-jack-sparrow-5918400.webp"]) .table-scroll td {
    display: block;
    border: none;
    padding: 6px 0;
    line-height: 1.35;
  }

  body.case-study:has(.case-study-content[style*="GTM-pexels-jack-sparrow-5918400.webp"]) .table-scroll td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 2px;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(20,20,20,0.75);
    font-weight: 600;
  }
}

@media (max-width: 900px) and (orientation: landscape) {
  body.case-study:has(.case-study-content[style*="GTM-pexels-jack-sparrow-5918400.webp"]) .table-scroll table,
  body.case-study:has(.case-study-content[style*="GTM-pexels-jack-sparrow-5918400.webp"]) .table-scroll thead,
  body.case-study:has(.case-study-content[style*="GTM-pexels-jack-sparrow-5918400.webp"]) .table-scroll tbody,
  body.case-study:has(.case-study-content[style*="GTM-pexels-jack-sparrow-5918400.webp"]) .table-scroll tr {
    display: block;
    width: 100%;
  }

  body.case-study:has(.case-study-content[style*="GTM-pexels-jack-sparrow-5918400.webp"]) .table-scroll thead {
    display: none;
  }

  body.case-study:has(.case-study-content[style*="GTM-pexels-jack-sparrow-5918400.webp"]) .table-scroll tr {
    margin-bottom: 10px;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 8px 18px rgba(0,0,0,0.2);
    background: rgba(255,255,255,0.08);
  }

  body.case-study:has(.case-study-content[style*="GTM-pexels-jack-sparrow-5918400.webp"]) .table-scroll td {
    display: block;
    border: none;
    padding: 6px 0;
    line-height: 1.4;
  }

  body.case-study:has(.case-study-content[style*="GTM-pexels-jack-sparrow-5918400.webp"]) .table-scroll td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 2px;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(20,20,20,0.75);
    font-weight: 600;
  }
}

@media (min-width: 901px) {
  body.case-study:has(.case-study-content[style*="GTM-pexels-jack-sparrow-5918400.webp"]) .table-scroll {
    max-width: min(760px, 100%);
    margin-inline: auto;
  }
  body.case-study:has(.case-study-content[style*="GTM-pexels-jack-sparrow-5918400.webp"]) .table-scroll table {
    min-width: 640px;
    table-layout: auto;
  }
  body.case-study:has(.case-study-content[style*="GTM-pexels-jack-sparrow-5918400.webp"]) .table-scroll th,
  body.case-study:has(.case-study-content[style*="GTM-pexels-jack-sparrow-5918400.webp"]) .table-scroll td {
    font-size: 1.05rem;
    letter-spacing: 0.02em;
  }

  body.case-study:has(.case-study-content[style*="GTM-pexels-jack-sparrow-5918400.webp"]) .table-scroll table tr > *:nth-child(1) {
    width: 25%;
  }

  body.case-study:has(.case-study-content[style*="GTM-pexels-jack-sparrow-5918400.webp"]) .table-scroll table tr > *:nth-child(2) {
    width: 23%;
  }
}

.maquette-fonctionnelle-image {
  display: block;
  width: min(720px, 100%);
  max-width: min(720px, 100%);
  max-height: min(90vh, 1000px);
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  margin: 24px auto;
  border-radius: 16px;
  box-shadow: 0 20px 32px rgba(66, 37, 0, 0.25);
  filter: none;
}

.card img.maquette-fonctionnelle-image {
  width: min(720px, 100%);
  max-width: min(720px, 100%);
  max-height: min(90vh, 1000px);
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  margin-inline: auto;
  filter: none;
}

/* Vignettes dans le contenu des études de cas */
body.case-study .case-study-content img:not(.maquette-fonctionnelle-image) {
  display: block;
  width: 100%;
  max-width: 860px;
  height: auto;
  margin: 20px auto;
  border-radius: 12px;
  box-shadow: 0 10px 18px rgba(50, 34, 24, 0.18);
}

/*about: grid */
.about {
    background: transparent;
    color: rgba(255,255,255,0.85);
}

.about-intro {
    text-align: center;
    margin-bottom: 2rem;
}

.about-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.6);
    margin: 0 0 0.5rem;
}

.about-intro h2 {
    margin: 0;
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    color: #fff;
}

.about-profile {
    display: grid;
    grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
    gap: clamp(24px, 5vw, 48px);
    align-items: start;
    padding: clamp(24px, 5vw, 48px);
    width: 100%;
    max-width: 100%;
    border: 0.5px solid rgba(255,255,255,0.08);
    border-radius: 0.5rem;
    background: linear-gradient(135deg, rgba(5, 5, 5, 0), rgba(27, 14, 8, 0.699));
   
        
}

.about-photo-block {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

.about-photo {
    width: 200px;
    max-width: 100%;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    object-fit: cover;
    object-position: center top;
}

.about-profile-meta {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
    font-size: 0.95rem;
    color: rgba(255,255,255,0.85);
}

.about-profile-meta span {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.5);
}

.about-label {
    text-transform: uppercase;
    color: #ffa886;
    letter-spacing: 0.1em;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.about-summary,
.about-summary p {
    margin: 0;
    line-height: 1.6;
    color: rgba(255,255,255,0.85);
}

.about-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 32px;
}

.about-meta,
.about-meta--compact,
.about-meta--compact li,
.about-meta span {
    display: none;
}

/* Education section */

.education-card-header {
    text-align: center;
    text-align: center;
    max-width: 1100px;
    margin-inline: auto;
}

.education-card-header p {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
    margin: 0;
}

.education-card-header h2 {
    margin: 0.5rem 0 1.5rem;
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    color: #fff;
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: clamp(16px, 3vw, 28px);
    max-width: 1100px;
    margin-inline: auto;
    justify-content: center;
    grid-auto-rows: minmax(200px, auto);
}

.education-card {
    background: linear-gradient(120deg, rgba(11,11,11,0.92), rgba(11,11,11,0.55));
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 1rem;
    padding: 1.5rem;
    color: rgba(255,255,255,0.85);
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    height: 100%;
}

.education-card h4 {
    margin: 0;
    color: #31f3c2;
    font-size: 1rem;
}

.education-timeline {
    position: relative;
    margin-top: 32px;
    padding-left: clamp(24px, 5vw, 48px);
    border-left: 2px solid rgba(255, 255, 255, 0.15);
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.timeline-item {
    position: relative;
    display: flex;
    gap: 24px;
}

.timeline-marker {
    position: absolute;
    left: calc(-1 * clamp(30px, 6vw, 60px));
    top: 10px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent-soft);
    border: 3px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 0 4px rgba(250, 129, 47, 0.2);
}

.timeline-content {
    background: rgba(5, 5, 5, 0.35);
    border: 1px solid rgba(0, 0, 0, 0.45);
    border-radius: 18px;
    padding: clamp(16px, 3vw, 24px);
    color: #fff;
    width: 100%;
}

.timeline-year {
    margin: 0 0 6px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: rgba(255, 255, 255, 0.65);
}

.timeline-content h4 {
    margin: 0 0 8px;
    font-size: 1.1rem;
    color: var(--accent-soft);
}

.timeline-content p {
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
}

@media (max-width: 600px) {
    .education-timeline {
        padding-left: 0;
    }
    .timeline-item {
        padding-left: 0;
        flex-direction: column;
        gap: 12px;
    }
    .timeline-marker {
        position: relative;
        left: 0;
        margin-bottom: 8px;
    }
}

.tool-panel {
    background: transparent;
    border: none;
    padding: clamp(20px, 4vw, 32px);
    display: flex;
    flex-direction: column;
    gap: 18px;
    color: #fff;
}

.tool-panel__eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 6px;
}

.tool-panel__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.tool-category {
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.45);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tool-category__title {
    margin: 0;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-soft);
}

.tool-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tool-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 0.85rem;
    color: #fff;
}

.tool-panel__note {
    margin: 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.section-return {
    margin-top: 16px;
    text-align: right;
}

.section-return a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #ffffff;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease, background 0.2s ease;
}

.section-return a:hover,
.section-return a:focus-visible {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}


/*Projects: 2 colonnes, 3 lignes (cartes alignées deux par deux) */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    grid-auto-flow: row;
    gap: clamp(12px, 3vw, 24px);
}

/* Cartes de projets et vignette: style simple */
.card {
    border-radius: 8px;
    padding-inline: 2px;
    padding-block: 2px;
    box-shadow: 2px 2px 6px #272727;
        background-color: #000000;
    text-align:left;
    color:black;
}

.card figure { margin: 0; position: relative; }
.card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;        /* format vignette; change si besoin */
  object-fit: cover;           /* recadre sans déformer */
  border-radius: 8px;
  filter: brightness(0.95) contrast(1.05) sepia(0.25) saturate(1.2) hue-rotate(-10deg);
  transition: filter 0.3s ease;
}

/* Titre en surimpression */
.card figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 10px 14px;
  color: #fff;
  font-weight: 600;
  background: linear-gradient(transparent, #00000099);
  
}
.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(252, 252, 252, 0.404);
  border: 1px solid #442b1f;
  border-radius: 999px;
  padding-inline: .35rem .6rem;
  font-size: .9rem;
  color:#000000;
}

/*Style de la section diplômes et certifications */
    .title {
      text-align: center;
      font-size: 1.8rem;
      font-weight: 700;
      margin-bottom: 0.4rem;
      color: #FA812F;
    }
    .subtitle {
      text-align: center;
      color: var(--muted);
      margin-bottom: 2.4rem;
      font-size: 0.9rem;
    }
    .levels {
      display: grid;
      grid-template-columns: 1fr;
      width: min(1100px, 100%);
      margin-inline: auto;
    }
    .levels-academic {
      display: flex;
      flex-direction: column;
      gap: 1.5rem;
    }
    @media (max-width: 980px) {
      .levels {
        grid-template-columns: 1fr;
      }
      .tools-panel {
        margin-top: 1.25rem;
      }
      .tool-grid {
        grid-template-columns: 1fr;
      }
      .tool-section {
        border-top: 1px solid rgba(0, 0, 0, 0.08);
        padding-top: 0.75rem;
      }
    }
    @media (min-width: 981px) {
      .tool-section:nth-child(-n + 2) {
        border-top: none;
        padding-top: 0;
      }
    }

/* Contact section */
.contact {
    background: transparent;
    color: rgba(255,255,255,0.9);
}

.contact-shell {
    width: min(1100px, 100%);
    margin-inline: auto;
    padding-inline: clamp(16px, 5vw, 64px);
    display: flex;
    flex-direction: column;
    gap: clamp(24px, 4vw, 48px);
}

.contact-heading {
    text-align: center;
    max-width: 720px;
    margin-inline: auto;
}

.contact-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.25em;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.55);
    margin: 0 0 0.75rem;
}

.contact-lede {
    margin: 0;
    color: rgba(255,255,255,0.75);
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(320px, 1.2fr) minmax(240px, 0.8fr);
    gap: clamp(24px, 4vw, 48px);
    background: linear-gradient(135deg, rgba(5, 5, 5, 0), rgba(27, 14, 8, 0.699));
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 1.25rem;
    padding: clamp(24px, 4vw, 48px);
    box-shadow: 0 28px 60px rgba(3,0,0,0.35);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact-form label {
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
    margin-bottom: 0.35rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 0.85rem;
    padding: 0.5rem 0.5rem;
    background: rgba(255,255,255,0.04);
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: 2px solid rgba(77, 236, 205, 0.35);
    border-color: rgba(77, 236, 205, 0.7);
}

.contact-form textarea {
    resize: vertical;
    min-height: 140px;
}

.contact-form ::placeholder {
    color: rgba(255,255,255,0.4);
}

.form-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.2rem;
    border-radius: 1rem;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.08);
}

.contact-info h3 {
    margin: 0;
    font-size: 1.4rem;
    color: #fff;
}

.contact-info p {
    margin: 0;
    color: rgba(255,255,255,0.75);
}

.contact-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.contact-list li {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.contact-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.contact-list span {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(255,255,255,0.5);
}

.contact-list strong {
    font-size: 1.05rem;
    color: #fff;
}

@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .contact-info {
        padding: 0.8rem 0.6rem;
    }
}

/*responsive */

/* 1) Large → tablette */
@media (max-width: 1024px) {
  main {
    width: min(100%, calc(100% - 1.5rem));
  }

}

/* 2) Hero “étude de cas” + tabs regroupés */
@media (max-width: 900px) {
  main {
    padding-top: 20px;
  }
  body.home main {
    padding-top: 20px;
  }
  .hero-container {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .hero-image {
    order: -1;
  }

  /* variante hero case */
  body.case-study .hero--case .hero-container--case {
    padding: 72px 16px;
    justify-content: center;
  }
  body.case-study .hero--case .hero-overlay {
    align-items: center;
    text-align: center;
  }
  body.case-study .hero--case .hero-card-text,
  body.case-study .hero--case .hero-card-speciality {
    align-items: center;
    text-align: center;
  }

  /* tabs */
  body.case-study .tabs {
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 14px;
    white-space: normal;
    inline-size: 100%;
  }
  body.case-study .tab-btn {
    flex: 1 1 calc(50% - 8px);
    justify-content: center;
    padding: 10px 12px;
    font-size: 0.95rem;
  }
  body.case-study .tabs-dock {
    position: static;
    inset-block-end: auto;
    padding-inline: 12px;
    margin-block: 12px;
    pointer-events: auto;
  }
  body.case-study .tabs-sticky {
    padding-block: 8px;
  }
  body.case-study .tabs-sticky.is-visible .tabs {
    gap: 6px;
    padding: 8px 12px;
  }
  body.case-study .tabs-sticky.is-visible .tab-btn {
    padding: 8px 10px;
    font-size: 0.9rem;
  }
}

@media (min-width: 901px) {
  body.case-study .tabs {
    gap: clamp(10px, 1.4vw, 18px);
    padding: clamp(10px, 1.8vw, 14px) clamp(16px, 2vw, 22px);
  }
  body.case-study .tab-btn {
    padding: clamp(6px, 1.2vw, 10px) clamp(12px, 1.5vw, 18px);
    font-size: clamp(0.9rem, 1vw, 1rem);
  }
}

/* 3) Header seulement (et sticky) */
@media (max-width: 800px) {
  header {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(0,0,0,.04);
    display: grid;
    grid-template-columns: 1fr;
    text-align: center;
    gap: .5rem;
    padding-block: .5rem;
  }

  .menu ul {
    justify-content: center;
    flex-wrap: wrap;
  }
}


/* 4) Mobile pur (fusion de tes deux 680 + ex-768) */
@media (max-width: 680px) {
  body {
    padding-inline: 16px;
    overflow-x: hidden;
  }

  .hero-container {
    padding: 32px 16px;
  }
  .hero-text {
    text-align: center;
    align-items: center;
  }

  .about-profile {
    grid-template-columns: 1fr;
    padding: 24px 18px;
    text-align: center;
  }

  .about-photo-block {
    align-items: center;
  }

  .about-actions {
    justify-content: center;
  }

  .about-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .projects-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  /* compléments mobile pour hero case + tabs */
  body.case-study .hero--case .hero-container--case {
    padding: 64px 16px;
  }
  body.case-study .hero--case .hero-overlay {
    max-inline-size: none;
  }
  body.case-study .tab-btn {
    flex: 1 1 100%;
  }
  body.case-study .tabs,
  body.case-study .tabs-sticky .tabs {
    width: 100%;
  }
}

@media (max-width: 680px) and (orientation: portrait) {
  body.case-study header {
    grid-template-columns: 1fr;
    text-align: center;
  }
  body.case-study .menu ul {
    justify-content: center;
  }
}
.menu {
    position: relative;
}

.menu__item {
    position: relative;
}
@media (max-width: 1024px) {
  header {
    gap: 0.75rem;
    flex-direction: column;
    align-items: flex-start;
  }

  .menu {
    position: static;
    top: auto;
    right: auto;
    left: auto;
    background: transparent;
    transform: none;
    transition: none;
    padding: 0;
    min-height: auto;
    display: flex;
    justify-content: flex-start;
    width: 100%;
  }

  .menu ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .nav-toggle {
    display: none;
  }
}
