/* Import de la police Geomanist locale */
@font-face {
    font-family: 'Geomanist';
    src: url('/Geomanist/Geomanist-Light.woff2') format('woff2'),
         url('/Geomanist/Geomanist-Light.woff') format('woff');
    font-weight: 300;
    font-style: normal;
}
@font-face {
    font-family: 'Geomanist';
    src: url('/Geomanist/Geomanist-Book.woff2') format('woff2'),
         url('/Geomanist/Geomanist-Book.woff') format('woff');
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'Geomanist';
    src: url('/Geomanist/Geomanist-Medium.woff2') format('woff2'),
         url('/Geomanist/Geomanist-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
}
@font-face {
    font-family: 'Geomanist';
    src: url('/Geomanist/Geomanist-Bold.woff2') format('woff2'),
         url('/Geomanist/Geomanist-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
}
@font-face {
    font-family: 'Geomanist';
    src: url('/Geomanist/Geomanist-Black.woff2') format('woff2'),
         url('/Geomanist/Geomanist-Black.woff') format('woff');
    font-weight: 900;
    font-style: normal;
}

:root {
    /* Brand Colors (New Palette) */
    --color-orange: #fc6b3d;
    --color-green: #8cfaab;
    --color-blue: #0069f0;
    
    --color-primary: var(--color-blue);
    --color-secondary: #001C30;
    --color-accent: var(--color-orange);
    --color-accent-light: var(--color-green);
    --color-accent-red: #f43f5e;
    
    /* Neutral Colors / Architectural Scale */
    --color-bg: #f8fafc;
    --color-surface: #ffffff;
    --color-text: #001C30;
    --color-border: rgba(0, 28, 48, 0.1);     /* Gris bleuté pour les bordures */
    
    /* Variables Typographiques Archi */
    --font-heading: 'Geomanist', sans-serif;
    --font-body: 'Geomanist', sans-serif;

    /* Spacing & Sizes (Style architectural = bordures nettes) */
    --container-max: 1200px;
    --radius-sm: 0px;  /* Angles droits "carrés" type plan technique */
    --radius-md: 2px;
    --radius-lg: 4px;
    --transition: all 0.2s ease-in-out;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.7;
    font-weight: 400;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    /* Un fond "blueprint" subtil */
    background-image: 
        linear-gradient(rgba(0, 105, 240, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 105, 240, 0.08) 1px, transparent 1px),
        linear-gradient(rgba(0, 105, 240, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 105, 240, 0.03) 1px, transparent 1px);
    background-size: 100px 100px, 100px 100px, 20px 20px, 20px 20px;
    background-position: -1px -1px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); display: block; }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }

p {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
    font-weight: 400;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

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

/* Utilitaires Layout */
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.grid { display: grid; }
.gap-4 { gap: 1rem; }
.gap-8 { gap: 2rem; }

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}
.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }

/* Buttons Architectural (Sharp, brutalist edges) */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-primary {
    background-color: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

.btn-primary:hover {
    background-color: var(--color-text);
    border-color: var(--color-text);
    color: #fff;
}

.btn-dark {
    background-color: var(--color-text);
    color: var(--color-bg);
    border-color: var(--color-text);
}

.btn-dark:hover {
    background-color: transparent;
    color: var(--color-text);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--color-text);
    color: var(--color-text);
}

.btn-outline:hover {
    background-color: var(--color-text);
    color: var(--color-bg);
}

/* Nouvelles cartes style "Plan technique" */
.glass-card, .card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    padding: 2rem;
    transition: var(--transition);
    position: relative;
}

/* Image Card Hover Effect */
.img-card {
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    transition: var(--transition);
}
.img-card .bg-layer {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    z-index: 1;
}
.img-card .overlay-layer {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 28, 48, 0.6);
    transition: background 0.4s ease;
    z-index: 2;
}
.img-card:hover .bg-layer {
    transform: scale(1.1);
}
.img-card:hover .overlay-layer {
    background: rgba(0, 28, 48, 0.4);
}
.img-card > * {
    position: relative;
    z-index: 3;
}

/* Ajout d'une croix dans les coins pour le style plan archi */
.glass-card::before, .glass-card::after {
    content: "";
    position: absolute;
    width: 10px;
    height: 10px;
}
.glass-card::before {
    top: 5px; left: 5px;
    border-top: 1px solid var(--color-border);
    border-left: 1px solid var(--color-border);
}

.glass-card:hover {
    box-shadow: 8px 8px 0px 0px var(--color-accent-light);
    transform: translate(-2px, -2px);
    border-color: var(--color-primary);
}
