/* ========================================
   BASE.CSS — PRIMSO Design System
   Variables, Reset, Typographie, Conteneur, Boutons
   ======================================== */

/* === CSS Variables (palette maquette PRIMSO) === */
:root {
    --color-primary: #2B75BB;
    --color-primary-dark: #1e5a94;
    --color-secondary: #0C241F;
    --color-dark-green: #0C241F;
    --color-light-green: #C9E391;
    --color-accent-yellow: #F4D35E;
    --color-accent-green: #E1FB9F;
    --color-text-dark: #0C241F;
    --color-text-gray: #6B7280;
    --color-anthracite: #2D2D2D;
    --color-bg-light: #F5F6FB;
    --color-bg-white: #ffffff;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.15);
    --transition-base: all 0.3s ease;
    --transition-smooth: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 9999px;
}

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

html, body {
    margin: 0;
    padding: 0;
}

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

body {
    font-family: 'Nunito', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text-dark);
    background: var(--color-bg-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

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

ul, ol {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* === Container === */
.primso-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 50px;
}

/* === Typographie === */
.section-title {
    font-size: 42px;
    font-weight: 900;
    font-family: 'Nunito', sans-serif;
    color: var(--color-text-dark);
    line-height: 1.2;
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 18px;
    font-weight: 400;
    font-family: 'Nunito', sans-serif;
    color: var(--color-text-gray);
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
}

.brand-name {
    font-weight: 700;
    color: var(--color-primary);
}

.shelby {
    font-family: 'shelby', sans-serif;
    font-weight: 400;
    font-style: normal;
}

/* === Boutons === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 30px;
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 700;
    font-family: 'Nunito', sans-serif;
    text-decoration: none;
    transition: var(--transition-base);
    cursor: pointer;
    border: none;
    line-height: 1.4;
    white-space: nowrap;
}

.btn svg {
    width: 18px;
    height: 18px;
}

.btn-primary {
    background: var(--color-primary);
    color: white;
    box-shadow: 6px 6px 12px rgba(43, 117, 187, 0.3);
    margin-top: 0px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 8px 8px 16px rgba(43, 117, 187, 0.4);
    color: white;
}

.btn-secondary {
    background: var(--color-dark-green);
    color: white;
    border: 2px solid #999;
    box-shadow: 6px 6px 12px rgba(12, 36, 31, 0.25);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(12, 36, 31, 0.4);
    color: white;
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
    box-shadow: none;
}

.btn-outline:hover {
    background: white;
    color: var(--color-primary);
    transform: translateY(-2px);
}

.btn-large {
    padding: 16px 35px;
    font-size: 18px;
}

/* === Badges === */
.badges-container {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
    align-items: center;
    padding: 0 2px;
    margin-bottom: 80px;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding-top: 5px;
    padding-bottom: 5px;
    padding-right: 8px;
    padding-left: 8px;
    border-radius: var(--radius-full);
    font-size: 15px;
    font-weight: 700;
    font-family: 'Nunito', sans-serif;
    background: white;
    color: var(--color-text-dark);
    box-shadow: var(--shadow-sm);
    animation: popIn 0.5s ease forwards;
    opacity: 0;
}

.badge:nth-child(1) { animation-delay: 0.1s; }
.badge:nth-child(2) { animation-delay: 0.2s; }
.badge:nth-child(3) { animation-delay: 0.3s; }
.badge:nth-child(4) { animation-delay: 0.4s; }
.badge:nth-child(5) { animation-delay: 0.5s; }
.badge:nth-child(6) { animation-delay: 0.6s; }
.badge:nth-child(7) { animation-delay: 0.7s; }
.badge:nth-child(8) { animation-delay: 0.8s; }
.badge:nth-child(9) { animation-delay: 0.9s; }
.badge:nth-child(10) { animation-delay: 1.0s; }
.badge:nth-child(11) { animation-delay: 1.1s; }

.badge-green {
    background: var(--color-accent-green);
    color: var(--color-text-dark);
    font-weight: 800;
}

.badge-icon {
    font-size: 16px;
}

/* === Formulaires (commun) === */
.form-hp {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    overflow: hidden;
}

/* === Pages communes === */
.page-section {
    padding: 80px 20px;
    background: white;
    width: 100%;
}

.page-section.bg-light {
    background: var(--color-bg-light);
}

.page-header {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 60px;
}

.page-header h1 {
    font-size: 42px;
    font-weight: 900;
    font-family: 'Nunito', sans-serif;
    color: var(--color-text-dark);
    margin-bottom: 20px;
    line-height: 1.3;
}

.page-header p {
    font-size: 16px;
    font-weight: 400;
    font-family: 'Nunito', sans-serif;
    color: var(--color-text-gray);
    line-height: 1.7;
}

/* Cards generiques */
.card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 35px 25px;
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Grille generique */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Alert messages */
.alert {
    padding: 15px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-weight: 600;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Form controls */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    font-size: 14px;
    color: var(--color-text-dark);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: var(--radius-sm);
    font-family: 'Nunito', sans-serif;
    font-size: 15px;
    transition: var(--transition-base);
    background: white;
}

.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(43, 117, 187, 0.15);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* Contact form container */
.contact-form-container {
    max-width: 700px;
    margin: 0 auto;
}
