/*  BODY */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #0d1b2a;
    color: #fff;
    overflow-x: hidden;
}

.grain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.03;
    z-index: 1;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' /%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' /%3E%3C/svg%3E");
}

/*  FOOTER */

footer {
    padding: 4rem 6%;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

footer p {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
    margin: 0.5rem 0;
}

/*  UTILITAIRES - COMMUNS */

.section-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 1rem;
    font-weight: 600;
}

/* PAGE ACCUEIL */

#banniere {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at 50% 50%, rgba(26, 58, 92, 0.15) 0%, transparent 50%),
                radial-gradient(ellipse at 80% 20%, rgba(201,169,110, 0.15) 0%, transparent 50%);
}

.hero-content {
    text-align: center;
    z-index: 2;
    padding: 2rem;
}

.hero-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 2rem;
    font-weight: 600;
}

.hero-content h2 {
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -3px;
    line-height: 1.1;
    padding-bottom: 0.1em;
    background: linear-gradient(135deg, #fff 0%, rgba(255, 255, 255, 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content .tagline {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 3rem;
    font-weight: 400;
    line-height: 1.6;
    margin-left: auto;
    margin-right: auto;
}

.hero-stats {
    display: flex;
    gap: 4rem;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #1a3a5c, #c9a96e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-group {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button {
    padding: 1.2rem 3rem;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
}

.cta-primary {
    color: #fff;
}

.cta-primary:hover {
    transform: translateY(-2px);
}

.cta-secondary {
    background: transparent;
    color: #fff;
}

.cta-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.4);
}

main {
    padding: 8rem 6%;
    margin: 0 auto;
}

.section {
    margin-bottom: 12rem;
}

.section-header {
    margin-bottom: 4rem;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    letter-spacing: -2px;
    margin-bottom: 1.5rem;
}

.section-description {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.8;
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 3rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 58, 92, 0.05), rgba(201,169,110, 0.05));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.card:hover::before {
    opacity: 1;
}

.card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.card-number {
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(135deg, #1a3a5c, #c9a96e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    opacity: 0.3;
}

.card h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.card p {
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.05rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.skill-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.skill-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(26, 58, 92, 0.3);
    transform: translateX(5px);
}

.skill-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 0.8rem;
}

.skill-name {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 0.5rem;
}

.skill-bar {
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    margin-top: 1rem;
    border-radius: 2px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, #1a3a5c, #c9a96e);
    border-radius: 2px;
    transition: width 1s ease;
}

.skill-percentage {
    margin-top: 0.8rem;
    text-align: right;
    font-size: 1.1rem;
    font-weight: 700;
    color: rgba(26, 58, 92, 0.8);
    border-radius: 2px;
    transition: width 1s ease;
}
    

/*  PAGE CONTACT */

.contact-main {
    min-height: 100vh;
    padding: 12rem 6% 6rem;
    margin: 0 auto;
}

.contact-header {
    text-align: center;
    margin-bottom: 6rem;
}

.page-title {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 800;
    letter-spacing: -2px;
    margin-bottom: 1.5rem;
    padding-bottom: 0.1em;
    background: linear-gradient(135deg, #fff 0%, rgba(255, 255, 255, 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-description {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0 auto;
    line-height: 1.8;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: start;
}

.contact-info {
    position: sticky;
    top: 12rem;
}

.info-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 3rem;
    margin-bottom: 2rem;
}

.info-card h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 2rem;
    letter-spacing: -0.5px;
}

.info-item {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.info-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.info-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 0.5rem;
}

.info-value {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.info-value a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s ease;
}

.info-value a:hover {
    color: #1a3a5c;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-link {
    width: 50px;
    height: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.social-link:hover {
    background: rgba(26, 58, 92, 0.1);
    border-color: rgba(26, 58, 92, 0.3);
    color: #1a3a5c;
    transform: translateY(-3px);
}

.form-container {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 3rem;
}

.form-container h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 2rem;
    letter-spacing: -0.5px;
}

form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

label {
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 0.3px;
}

input,
textarea {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    color: #fff;
    font-family: inherit;
    transition: all 0.3s ease;
}

input:focus,
textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(26, 58, 92, 0.5);
    box-shadow: 0 0 0 3px rgba(26, 58, 92, 0.1);
}

textarea {
    resize: vertical;
    min-height: 150px;
}

button[type="submit"] {
    background: linear-gradient(135deg, #1a3a5c, #c9a96e);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 1.2rem 3rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
    box-shadow: 0 10px 40px rgba(26, 58, 92, 0.3);
}

button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 50px rgba(26, 58, 92, 0.4);
}

button[type="submit"]:active {
    transform: translateY(0);
}

.response-time {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.response-time p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.4);
}

.response-time strong {
    color: #1a3a5c;
}

/*  PAGE LOGIN / CONNEXION */

.login-wrapper {
    margin: 100px auto;
    padding: 20px;
}

.login-wrapper h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2rem;
}

.login-wrapper form {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 10px;
}

.login-wrapper input {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    background: #1a1f3a;
    border: 1px solid #1a3a5c;
    border-radius: 5px;
    color: #fff;
    font-size: 1rem;
}

.login-wrapper button {
    width: 100%;
    padding: 15px;
    background: #1a3a5c;
    border: none;
    border-radius: 5px;
    color: #fff;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
}

.login-wrapper button:hover {
    background: #2563eb;
}

.error-message {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.5s ease;
    padding: 0;
    margin: 0 0 15px 0;
    text-align: center;
    border-radius: 8px;
}

.error-message.show {
    opacity: 1;
    max-height: 100px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    font-size: 0.95rem;
    font-weight: 500;
}

.error-message.show::before {
    content: '⚠ ';
    margin-right: 0.5rem;
}

/* PAGE TABLEAU DE BORD */

.dashboard-wrapper {
    padding: 10rem 6% 4rem;
    margin: 0 auto;
}

.dashboard-hero {
    text-align: center;
    margin-bottom: 4rem;
    padding: 3rem 0;
}

.dashboard-hero h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    letter-spacing: -3px;
    margin-bottom: 1rem;
    padding-bottom: 0.1em;
    background: linear-gradient(135deg, #fff 0%, rgba(255, 255, 255, 0.7) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dashboard-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 0.5rem;
}

.dashboard-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.btn-dashboard {
    padding: 0.9rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-dashboard:hover {
    background: rgba(26, 58, 92, 0.15);
    border-color: rgba(26, 58, 92, 0.4);
    color: #fff;
    transform: translateY(-2px);
}

.btn-dashboard.logout {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.btn-dashboard.logout:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.5);
}

.dashboard-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.project-form-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.project-form-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #1a3a5c, #c9a96e);
}

.form-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.form-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #1a3a5c, #c9a96e);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.form-header h3 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin: 0;
}

.project-form {
    display: grid;
    gap: 2rem;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.form-field label {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.6);
}

.form-field input,
.form-field textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.2rem 1.5rem;
    font-size: 1rem;
    color: #fff;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-field textarea {
    resize: vertical;
    min-height: 140px;
    font-family: inherit;
}

.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.06);
    border-color: #1a3a5c;
    box-shadow: 0 0 0 4px rgba(26, 58, 92, 0.1);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.btn-submit {
    padding: 1.2rem 3rem;
    background: linear-gradient(135deg, #1a3a5c, #c9a96e);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(26, 58, 92, 0.3);
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(26, 58, 92, 0.4);
}

.btn-cancel {
    padding: 1.2rem 2rem;
    background: transparent;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-cancel:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
}

.projects-section {
    margin-top: 4rem;
}

.section-header {
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.section-header > div {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: -2px;
}

.projects-count {
    background: rgba(26, 58, 92, 0.15);
    color: #1a3a5c;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
}

.btn-add-project {
    padding: 0.9rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: #fff;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 700;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-add-project:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 2rem;
    list-style: none;
}

/* COMPÉTENCES GRID */
.competences-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    list-style: none;
}

.competence-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
}

.competence-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(26, 58, 92, 0.3);
    transform: translateX(5px);
}

.competence-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.competence-order {
    background: rgba(26, 58, 92, 0.15);
    color: #1a3a5c;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 700;
}

.skill-percentage {
    margin-top: 0.8rem;
    text-align: right;
    font-size: 1.2rem;
    font-weight: 800;
    color: #1a3a5c;
}

/* FORM STYLES */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.range-display {
    text-align: center;
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(26, 58, 92, 0.1);
    border-radius: 8px;
}

.range-display span {
    font-size: 2rem;
    font-weight: 900;
    color: #1a3a5c;
}

input[type="range"] {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    outline: none;
    -webkit-appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #1a3a5c, #c9a96e);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(26, 58, 92, 0.5);
}

input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #1a3a5c, #c9a96e);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(26, 58, 92, 0.5);
    border: none;
}

input[type="range"]:hover::-webkit-slider-thumb {
    transform: scale(1.2);
}

input[type="range"]:hover::-moz-range-thumb {
    transform: scale(1.2);
}

.project-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 2.5rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 58, 92, 0.05), rgba(201,169,110, 0.05));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.project-card:hover::before {
    opacity: 1;
}

.project-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.project-title {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #fff;
    margin: 0;
}

.project-number {
    background: rgba(26, 58, 92, 0.2);
    color: #1a3a5c;
    width: 35px;
    height: 35px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.9rem;
}

.project-description {
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.project-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 1;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #1a3a5c;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.project-link:hover {
    color: #c9a96e;
    gap: 0.7rem;
}

.project-actions {
    display: flex;
    gap: 0.8rem;
    position: relative;
    z-index: 1;
}

.action-btn {
    padding: 0.7rem 1.3rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid;
    display: inline-block;
}

.btn-edit {
    background: rgba(26, 58, 92, 0.1);
    border-color: rgba(26, 58, 92, 0.3);
    color: #1a3a5c;
}

.btn-edit:hover {
    background: rgba(26, 58, 92, 0.2);
    border-color: rgba(26, 58, 92, 0.5);
    transform: translateY(-2px);
}

.btn-delete {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.btn-delete:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.5);
    transform: translateY(-2px);
}

.empty-state {
    text-align: center;
    padding: 5rem 2rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 16px;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

.empty-state p {
    color: rgba(255, 255, 255, 0.4);
    font-size: 1.2rem;
}

.access-denied {
    text-align: center;
    padding: 5rem 2rem;
    margin-top: 5rem;
}

.access-denied-card {
    background: rgba(239, 68, 68, 0.05);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 20px;
    padding: 4rem 3rem;
    margin: 0 auto;
}

.access-denied h2 {
    color: #ef4444;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin: 3rem 0;
}

/*  PAGE MES PROJETS */

.projects-page-wrapper {
    padding: 10rem 6% 4rem;
    margin: 0 auto;
}

.projects-hero {
    text-align: center;
    margin-bottom: 5rem;
}

.projects-hero h1 {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 900;
    letter-spacing: -3px;
    margin-bottom: 1rem;
    padding-bottom: 0.1em;
    background: linear-gradient(135deg, #fff 0%, rgba(255, 255, 255, 0.7) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.projects-hero p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0 auto;
}

.projects-container {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 2rem;
    align-items: start;
}

.projects-sidebar {
    position: sticky;
    top: 10rem;
    max-height: calc(100vh - 12rem);
    overflow-y: auto;
}

.projects-sidebar::-webkit-scrollbar {
    width: 6px;
}

.projects-sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.projects-sidebar::-webkit-scrollbar-thumb {
    background: rgba(26, 58, 92, 0.5);
    border-radius: 10px;
}

.sidebar-header {
    margin-bottom: 1.5rem;
}

.sidebar-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.sidebar-count {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

.projects-list-sidebar {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.project-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.project-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateX(5px);
}

.project-item.active {
    background: rgba(26, 58, 92, 0.1);
    border-color: rgba(26, 58, 92, 0.4);
}

.project-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #1a3a5c, #c9a96e);
    border-radius: 0 4px 4px 0;
}

.project-item-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #fff;
}

.project-item.active .project-item-title {
    color: #1a3a5c;
}

.project-item-desc {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-viewer {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    overflow: hidden;
    position: sticky;
    top: 10rem;
}

.viewer-header {
    background: rgba(255, 255, 255, 0.03);
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.viewer-title {
    font-size: 1.3rem;
    font-weight: 700;
}

.viewer-url {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.viewer-actions {
    display: flex;
    gap: 0.5rem;
}

.viewer-btn {
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.viewer-btn:hover {
    background: rgba(26, 58, 92, 0.2);
    border-color: rgba(26, 58, 92, 0.4);
    color: #1a3a5c;
}

.viewer-content {
    height: 700px;
    background: #fff;
    position: relative;
}

.viewer-content iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.viewer-placeholder {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.2);
    color: rgba(255, 255, 255, 0.5);
}

.viewer-placeholder-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

.viewer-placeholder p {
    font-size: 1.1rem;
}

.no-projects-message {
    text-align: center;
    padding: 5rem 2rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 16px;
}

.no-projects-message-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

.no-projects-message p {
    color: rgba(255, 255, 255, 0.4);
    font-size: 1.2rem;
}

/* BOUTON SCROLL TO TOP - TOUTES LES PAGES */

.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #1a3a5c, #c9a96e);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 10px 30px rgba(26, 58, 92, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(26, 58, 92, 0.5);
}

.scroll-to-top:active {
    transform: translateY(-2px);
}

/* ============================================================
   RESPONSIVE MOBILE-FIRST — Bootstrap navbar + CSS Grid
   Base = mobile | md (768px) = tablette | lg (1024px) = desktop
   ============================================================ */

/* Navbar Bootstrap custom */
#mainNav {
    background: rgba(10, 14, 39, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1rem 0;
}

#mainNav .navbar-brand {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff !important;
    letter-spacing: -0.5px;
}

#mainNav .nav-link {
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 0.8rem;
}

#mainNav .nav-link:hover {
    color: #fff !important;
}

/* Menu mobile collapse : fond opaque plein écran */

/* ── BASE MOBILE ── */

#banniere {
    height: auto;
    min-height: 100svh;
    padding: 7rem 5% 4rem;
}

.hero-content { padding: 0; }

.hero-content h2 {
    font-size: clamp(2.5rem, 12vw, 4rem);
    letter-spacing: -2px;
}

.hero-content .tagline {
    font-size: 1rem;
    margin-bottom: 2rem;
}

.cta-group {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.cta-button {
    width: 100%;
    text-align: center;
    padding: 1rem 2rem;
}

main {
    padding: 4rem 5%;
}

.section { margin-bottom: 5rem; }

.section-title {
    font-size: clamp(2rem, 8vw, 3rem);
    letter-spacing: -1px;
}

.section-description { font-size: 1rem; }

.cards-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.card { padding: 2rem; }
.card h3 { font-size: 1.4rem; }

.skills-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
}

.skill-card { padding: 1.5rem; }

.contact-container {
    grid-template-columns: 1fr;
    gap: 2rem;
}

.contact-info { position: static; }
.info-card, .form-container { padding: 2rem; }

button[type="submit"] { width: 100%; }

.login-wrapper {
    margin: 7rem auto 2rem;
    padding: 0 5%;
}

.dashboard-wrapper { padding: 7rem 5% 3rem; }

.dashboard-actions {
    flex-direction: column;
    align-items: stretch;
}

.btn-dashboard { text-align: center; }
.project-form-card { padding: 2rem; }
.form-row { grid-template-columns: 1fr; }
.form-actions { flex-direction: column; }
.btn-submit, .btn-cancel { width: 100%; text-align: center; }

.projects-grid { grid-template-columns: 1fr; }
.competences-grid { grid-template-columns: 1fr; }

.project-header { flex-direction: column; gap: 0.8rem; }
.project-actions { flex-direction: column; }
.action-btn { text-align: center; }

.projects-page-wrapper { padding: 7rem 5% 3rem; }

.projects-hero h1 {
    font-size: clamp(2.5rem, 10vw, 4rem);
    letter-spacing: -2px;
}

.projects-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.projects-sidebar { position: static; max-height: none; }
.project-viewer { position: static; }
.viewer-content { height: 400px; }

.viewer-header {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
    padding: 1rem 1.2rem;
}

.viewer-actions { align-self: flex-end; }

.scroll-to-top {
    bottom: 1rem;
    right: 1rem;
    width: 42px;
    height: 42px;
    font-size: 1.2rem;
}

/* ── TABLETTE (≥ 768px) ── */

/* ── DESKTOP (≥ 1024px) ── */

/* ── TITRES CARDS (blanc pur) ── */
.card h3 {
    color: #fff !important;
}

/* ── SECTION À PROPOS avec onglets ── */
.apropos-tabs-wrapper {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 2.5rem;
}

.apropos-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-wrap: wrap;
}

.apropos-tab {
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.7rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: -1px;
}

.apropos-tab:hover {
    color: rgba(255, 255, 255, 0.8);
}

.apropos-tab.active {
    color: #fff;
    border-bottom-color: #1a3a5c;
}

.apropos-panel {
    display: none;
}

.apropos-panel.active {
    display: block;
}

.apropos-panel p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.9;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.apropos-panel p:last-child {
    margin-bottom: 0;
}

/* Langues */
.langue-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.langue-item:last-child {
    border-bottom: none;
}

.langue-nom {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
}

.langue-niveau {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.45);
}

/* ── Surcharge Bootstrap tabs — thème sombre ── */
.apropos-nav,
.skills-nav {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-wrap: wrap;
    gap: 0;
}

.apropos-nav .nav-link,
.skills-nav .nav-link {
    color: rgba(255, 255, 255, 0.45);
    font-weight: 600;
    font-size: 0.95rem;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    padding: 0.7rem 1.5rem;
    margin-bottom: -1px;
    transition: all 0.3s ease;
}

.apropos-nav .nav-link:hover,
.skills-nav .nav-link:hover {
    color: rgba(255, 255, 255, 0.8);
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

.apropos-nav .nav-link.active,
.skills-nav .nav-link.active {
    color: #fff;
    background: none;
    border-bottom-color: #1a3a5c;
}

.apropos-tab-content,
.tab-content {
    padding-top: 1.5rem;
}

.apropos-bs-wrapper {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 2rem 2.5rem;
}

.apropos-bs-wrapper .tab-pane p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.9;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.apropos-bs-wrapper .tab-pane p:last-child {
    margin-bottom: 0;
}

.langue-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.langue-item:last-child { border-bottom: none; }
.langue-nom { font-size: 1rem; font-weight: 700; color: #fff; }
.langue-niveau { font-size: 0.9rem; color: rgba(255, 255, 255, 0.45); }
/* ============================================================
   ANIMATIONS — HERO
   ============================================================ */

#heroCanvas {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
}

#banniere { z-index: 1; position: relative; }

/* Label animé */
.hero-label {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(74,143,168,0.08);
    border: 1px solid rgba(74,143,168,0.25);
    border-radius: 50px;
    padding: 0.45rem 1.2rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.7);
    margin-bottom: 2.5rem;
}

.label-dot {
    width: 8px; height: 8px;
    background: #4a8fa8;
    border-radius: 50%;
    animation: pulse-dot 1.8s ease-in-out infinite;
    box-shadow: 0 0 8px #4a8fa8;
}

@keyframes pulse-dot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.6; }
}

/* Titre hero gradient animé */
.hero-title {
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 800;
    letter-spacing: -3px;
    line-height: 1.05;
    margin-bottom: 1.8rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1em;
}

.gradient-text {
    background: linear-gradient(135deg, #4a8fa8 0%, #c9a96e 40%, #e8d5b0 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Word reveal animation */
.word-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(.16,1,.3,1), transform 0.8s cubic-bezier(.16,1,.3,1);
    transition-delay: var(--d, 0s);
}

.word-visible {
    opacity: 1;
    transform: translateY(0);
}

/* CTA row */
.hero-cta-row {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2.2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.35s cubic-bezier(.16,1,.3,1);
    position: relative;
    overflow: hidden;
}

.cta-primary {
    background: linear-gradient(135deg, #1a3a5c, #c9a96e);
    color: #fff;
    box-shadow: 0 8px 32px rgba(26,58,92,0.35);
}

.cta-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #c9a96e, #1a3a5c);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.cta-primary:hover::before { opacity: 1; }
.cta-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 48px rgba(26,58,92,0.5); color: #fff; }
.cta-primary span, .cta-primary svg { position: relative; z-index: 1; }

.cta-secondary {
    background: transparent;
    color: rgba(255,255,255,0.8);
    border: 1.5px solid rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
}

.cta-secondary:hover {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.35);
    color: #fff;
    transform: translateY(-3px);
}

/* Scroll hint */
.hero-scroll-hint {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    color: rgba(255,255,255,0.3);
    font-size: 0.7rem;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.scroll-line {
    width: 1.5px;
    height: 50px;
    background: linear-gradient(to bottom, rgba(74,143,168,0.6), transparent);
    animation: scrollAnim 2s ease-in-out infinite;
}

@keyframes scrollAnim {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    51% { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ── SCROLL PROGRESS BAR ── */
#scrollBar {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, #1a3a5c, #c9a96e, #e8d5b0);
    z-index: 9999;
    transition: width 0.1s linear;
    border-radius: 0 2px 2px 0;
}

/* ── SCROLL REVEAL SECTIONS ── */
.reveal {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 0.9s cubic-bezier(.16,1,.3,1), transform 0.9s cubic-bezier(.16,1,.3,1);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.skill-card, .experience-card, .certif-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(.16,1,.3,1), transform 0.6s cubic-bezier(.16,1,.3,1), box-shadow 0.3s ease;
}

.skill-card.child-revealed,
.experience-card.child-revealed,
.certif-card.child-revealed {
    opacity: 1;
    transform: translateY(0);
}

/* 3D tilt — transition on leave */
.skill-card, .experience-card, .certif-card {
    transition: opacity 0.6s cubic-bezier(.16,1,.3,1),
                transform 0.4s cubic-bezier(.16,1,.3,1),
                border-color 0.3s ease,
                box-shadow 0.3s ease;
}

/* ── SECTION LABEL ANIMATED LINE ── */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
}

.section-label::before {
    content: '';
    display: inline-block;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, #1a3a5c, #c9a96e);
    border-radius: 2px;
    animation: lineGrow 0.6s ease forwards;
}

@keyframes lineGrow {
    from { width: 0; opacity: 0; }
    to { width: 30px; opacity: 1; }
}

/* ── SKILL BAR TRANSITION ── */
.skill-progress {
    transition: width 1.2s cubic-bezier(.16,1,.3,1) !important;
}

/* ── GLOWING CARDS ON HOVER ── */
.skill-card:hover {
    border-color: rgba(74,143,168,0.4);
    box-shadow: 0 0 30px rgba(74,143,168,0.08), 0 20px 60px rgba(0,0,0,0.3);
}

.experience-card:hover {
    border-color: rgba(201,169,110,0.4);
    box-shadow: 0 0 30px rgba(201,169,110,0.08), 0 20px 60px rgba(0,0,0,0.3);
}

.certif-card:hover {
    border-color: rgba(232,213,176,0.4);
    box-shadow: 0 0 30px rgba(232,213,176,0.08), 0 20px 60px rgba(0,0,0,0.3);
}

/* ── FOOTER GLOW ── */
footer {
    background: linear-gradient(to top, rgba(26,58,92,0.04), transparent);
}

/* ── MOBILE HERO ── */
@media (max-width: 767px) {
    .hero-title {
        font-size: clamp(2.5rem, 12vw, 4rem);
        letter-spacing: -2px;
    }
    .hero-cta-row {
        flex-direction: column;
        align-items: center;
    }
    .cta-button { width: 100%; justify-content: center; }
}

/* ── EXPERIENCE / CERTIF CARD STYLES ── */
.experience-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.experience-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 3px;
    background: linear-gradient(90deg, #1a3a5c, #c9a96e);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.experience-card:hover::before { transform: scaleX(1); }

.experience-logo {
    width: 52px; height: 52px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1.5rem; overflow: hidden;
}

.exp-logo-img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }

.experience-body { flex: 1; display: flex; flex-direction: column; }
.experience-title { font-size: 1.2rem; font-weight: 700; color: #fff; margin-bottom: 0.3rem; }
.experience-role { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 2px; color: #1a3a5c; font-weight: 600; margin-bottom: 0.3rem; }
.experience-date { font-size: 0.82rem; color: rgba(255,255,255,0.35); margin-bottom: 1rem; }
.experience-desc { font-size: 0.92rem; color: rgba(255,255,255,0.6); line-height: 1.7; flex: 1; margin-bottom: 1.5rem; }

.exp-btn-more {
    background: transparent;
    border: 1px solid rgba(26,58,92,0.35);
    border-radius: 50px;
    color: #1a3a5c;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.55rem 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-start;
    letter-spacing: 0.3px;
}

.exp-btn-more:hover {
    background: rgba(26,58,92,0.12);
    border-color: #1a3a5c;
    transform: translateX(4px);
}

/* MODAUX */
.exp-modal-content { background: #0c1230; border: 1px solid rgba(255,255,255,0.1); border-radius: 20px; color: #fff; }
.exp-modal-header { background: rgba(255,255,255,0.03); border-bottom: 1px solid rgba(255,255,255,0.07); border-radius: 20px 20px 0 0; padding: 1.5rem 2rem; }
.exp-modal-header .modal-title { font-size: 1.4rem; font-weight: 700; }
.exp-modal-body { padding: 2rem; }
.exp-modal-meta { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-bottom: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid rgba(255,255,255,0.06); }
.exp-modal-role { background: rgba(26,58,92,0.15); color: #1a3a5c; padding: 0.35rem 1rem; border-radius: 20px; font-size: 0.82rem; font-weight: 600; }
.exp-modal-date { background: rgba(255,255,255,0.05); color: rgba(255,255,255,0.55); padding: 0.35rem 1rem; border-radius: 20px; font-size: 0.82rem; }
.exp-modal-body p { color: rgba(255,255,255,0.7); line-height: 1.8; margin-bottom: 1.2rem; }
.exp-modal-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.7rem; }
.exp-modal-list li { color: rgba(255,255,255,0.7); padding-left: 1.5rem; position: relative; line-height: 1.6; }
.exp-modal-list li::before { content: '→'; position: absolute; left: 0; color: #1a3a5c; font-weight: 700; }

/* CERTIF CARDS */
.certif-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.certif-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 3px;
    background: linear-gradient(90deg, #c9a96e, #e8d5b0);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.certif-card:hover::after { transform: scaleX(1); }

.certif-logo { width: 65px; height: 65px; flex-shrink: 0; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 14px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.certif-logo-img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.certif-body { flex: 1; }
.certif-title { font-size: 1.15rem; font-weight: 700; color: #fff; margin-bottom: 0.4rem; }
.certif-desc { font-size: 0.88rem; color: rgba(255,255,255,0.55); line-height: 1.6; margin-bottom: 1rem; }
.certif-btn { display: inline-flex; align-items: center; gap: 0.4rem; color: #c9a96e; font-size: 0.88rem; font-weight: 600; text-decoration: none; transition: all 0.3s ease; }
.certif-btn:hover { color: #e8d5b0; transform: translateX(4px); text-decoration: none; }

/* ============================================================
   PALETTE MARINE & SABLE — SURCHARGES FINALES
   ============================================================ */

:root {
    --marine:       #0d1b2a;
    --marine-mid:   #112236;
    --marine-light: #1a3a5c;
    --sable:        #c9a96e;
    --sable-light:  #e8d5b0;
    --sable-pale:   #f5ecd7;
    --accent:       #4a8fa8;
    --text:         #e8d5b0;
    --text-muted:   rgba(232,213,176,0.5);
    --border:       rgba(201,169,110,0.15);
    --border-hover: rgba(201,169,110,0.4);
}

body {
    background: var(--marine);
    color: var(--sable-pale);
}

/* Navbar marine */
#mainNav {
    background: rgba(13,27,42,0.97) !important;
    border-bottom: 1px solid rgba(201,169,110,0.1);
}

#mainNav .navbar-brand {
    color: var(--sable-light) !important;
    letter-spacing: 1px;
}

#mainNav .nav-link {
    color: rgba(232,213,176,0.6) !important;
}

#mainNav .nav-link:hover {
    color: var(--sable-light) !important;
}

/* Hero background */
.hero-bg {
    background:
        radial-gradient(ellipse at 30% 60%, rgba(26,58,92,0.4) 0%, transparent 55%),
        radial-gradient(ellipse at 75% 30%, rgba(201,169,110,0.12) 0%, transparent 50%);
}

/* Hero label */
.hero-label {
    background: rgba(201,169,110,0.08);
    border: 1px solid rgba(201,169,110,0.2);
    color: rgba(232,213,176,0.7);
}

.label-dot {
    background: var(--sable);
    box-shadow: 0 0 8px var(--sable);
    animation: pulse-dot 1.8s ease-in-out infinite;
}

/* Hero title */
.hero-title { color: var(--sable-pale); }

.gradient-text {
    background: linear-gradient(135deg, #c9a96e 0%, #4a8fa8 50%, #e8d5b0 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 5s ease infinite;
}

/* Tagline */
.tagline { color: rgba(232,213,176,0.6); }

/* CTA buttons */
.cta-primary {
    background: linear-gradient(135deg, #1a3a5c, #4a8fa8);
    box-shadow: 0 8px 32px rgba(26,58,92,0.5);
    border: 1px solid rgba(74,143,168,0.3);
}

.cta-primary::before {
    background: linear-gradient(135deg, #c9a96e, #4a8fa8);
}

.cta-primary:hover {
    box-shadow: 0 16px 48px rgba(201,169,110,0.25);
}

.cta-secondary {
    border: 1.5px solid rgba(201,169,110,0.25);
    color: rgba(232,213,176,0.8);
}

.cta-secondary:hover {
    background: rgba(201,169,110,0.07);
    border-color: rgba(201,169,110,0.5);
    color: var(--sable-light);
}

/* Scroll hint */
.scroll-line {
    background: linear-gradient(to bottom, rgba(201,169,110,0.7), transparent);
}

/* Progress bar */
#scrollBar {
    background: linear-gradient(90deg, #1a3a5c, #4a8fa8, #c9a96e);
}

/* Section label */
.section-label {
    color: rgba(201,169,110,0.7);
}

.section-label::before {
    background: linear-gradient(90deg, #c9a96e, #4a8fa8);
}

.section-title { color: var(--sable-pale); }
.section-description { color: rgba(232,213,176,0.55); }

/* Skill cards */
.skill-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(201,169,110,0.1);
}

.skill-card:hover {
    border-color: rgba(201,169,110,0.35);
    box-shadow: 0 0 30px rgba(201,169,110,0.06), 0 20px 60px rgba(0,0,0,0.4);
}

.skill-category { color: rgba(201,169,110,0.5); }
.skill-name { color: var(--sable-pale); }

.skill-bar { background: rgba(201,169,110,0.08); }

.skill-progress {
    background: linear-gradient(90deg, #1a3a5c, #4a8fa8);
}

.skill-percentage { color: var(--sable); }

/* Tabs Bootstrap */
.apropos-nav .nav-link,
.skills-nav .nav-link {
    color: rgba(201,169,110,0.45);
    border-bottom: 2px solid transparent;
}

.apropos-nav .nav-link:hover,
.skills-nav .nav-link:hover {
    color: rgba(201,169,110,0.8);
    border-bottom-color: rgba(201,169,110,0.2);
}

.apropos-nav .nav-link.active,
.skills-nav .nav-link.active {
    color: var(--sable-light) !important;
    background: none !important;
    border-bottom-color: var(--sable) !important;
}

.apropos-nav,
.skills-nav {
    border-bottom: 1px solid rgba(201,169,110,0.1);
}

.apropos-bs-wrapper {
    background: rgba(201,169,110,0.02);
    border: 1px solid rgba(201,169,110,0.1);
}

.apropos-bs-wrapper .tab-pane p { color: rgba(232,213,176,0.7); }

.langue-nom { color: var(--sable-pale); }
.langue-niveau { color: rgba(201,169,110,0.5); }
.langue-item { border-bottom: 1px solid rgba(201,169,110,0.07); }

/* Experience cards */
.experience-card {
    background: rgba(255,255,255,0.015);
    border: 1px solid rgba(201,169,110,0.1);
}

.experience-card::before {
    background: linear-gradient(90deg, #1a3a5c, #c9a96e);
}

.experience-card:hover {
    border-color: rgba(201,169,110,0.3);
    box-shadow: 0 0 30px rgba(201,169,110,0.05), 0 20px 60px rgba(0,0,0,0.4);
}

.experience-logo {
    background: rgba(201,169,110,0.06);
    border: 1px solid rgba(201,169,110,0.12);
}

.experience-title { color: var(--sable-pale); }
.experience-role { color: var(--sable); }
.experience-date { color: rgba(201,169,110,0.4); }
.experience-desc { color: rgba(232,213,176,0.55); }

.exp-btn-more {
    border: 1px solid rgba(201,169,110,0.3);
    color: var(--sable);
    border-radius: 50px;
}

.exp-btn-more:hover {
    background: rgba(201,169,110,0.1);
    border-color: var(--sable);
}

/* Modaux */
.exp-modal-content {
    background: #0f2035;
    border: 1px solid rgba(201,169,110,0.15);
}

.exp-modal-header {
    background: rgba(201,169,110,0.03);
    border-bottom: 1px solid rgba(201,169,110,0.08);
}

.exp-modal-role {
    background: rgba(201,169,110,0.12);
    color: var(--sable);
}

.exp-modal-date {
    background: rgba(255,255,255,0.04);
    color: rgba(232,213,176,0.55);
}

.exp-modal-body p { color: rgba(232,213,176,0.7); }
.exp-modal-list li { color: rgba(232,213,176,0.7); }
.exp-modal-list li::before { color: var(--sable); }

/* Certif cards */
.certif-card {
    background: rgba(255,255,255,0.015);
    border: 1px solid rgba(201,169,110,0.1);
}

.certif-card::after {
    background: linear-gradient(90deg, #4a8fa8, #c9a96e);
}

.certif-card:hover {
    border-color: rgba(201,169,110,0.3);
    box-shadow: 0 0 30px rgba(201,169,110,0.05), 0 20px 60px rgba(0,0,0,0.4);
}

.certif-logo {
    background: rgba(201,169,110,0.06);
    border: 1px solid rgba(201,169,110,0.12);
}

.certif-title { color: var(--sable-pale); }
.certif-desc { color: rgba(232,213,176,0.55); }
.certif-btn { color: var(--accent); }
.certif-btn:hover { color: var(--sable); }

/* Formation card */
.card {
    background: rgba(201,169,110,0.03);
    border: 1px solid rgba(201,169,110,0.1);
}

.card h3 { color: var(--sable-pale) !important; }
.card p { color: rgba(232,213,176,0.6); }

/* Footer */
footer {
    border-top: 1px solid rgba(201,169,110,0.08);
    background: linear-gradient(to top, rgba(201,169,110,0.03), transparent);
}

footer p { color: rgba(201,169,110,0.35); }

/* Scroll to top */
.scroll-to-top {
    background: linear-gradient(135deg, #1a3a5c, #4a8fa8);
    box-shadow: 0 10px 30px rgba(26,58,92,0.4);
    border: 1px solid rgba(201,169,110,0.15);
}

.scroll-to-top:hover {
    box-shadow: 0 15px 40px rgba(201,169,110,0.2);
}

/* Grain légèrement plus visible pour texture */
.grain { opacity: 0.04; }

/* Skill card soft skills */
.skill-card-icon .skill-icon {
    background: rgba(201,169,110,0.08);
    border: 1px solid rgba(201,169,110,0.15);
}

/* Login */
.login-wrapper input {
    border: 1px solid rgba(201,169,110,0.3);
    background: rgba(13,27,42,0.8);
}

.login-wrapper button {
    background: linear-gradient(135deg, #1a3a5c, #4a8fa8);
}

/* Contact */
input, textarea {
    border: 1px solid rgba(201,169,110,0.15);
    background: rgba(201,169,110,0.03);
    color: var(--sable-pale);
}

input:focus, textarea:focus {
    border-color: rgba(201,169,110,0.4);
    box-shadow: 0 0 0 3px rgba(201,169,110,0.08);
}

button[type="submit"] {
    background: linear-gradient(135deg, #1a3a5c, #4a8fa8);
    box-shadow: 0 10px 40px rgba(26,58,92,0.4);
}

/* Particles canvas color est géré en JS */

/* Fix "Alternant" invisible — word-reveal dans hero-title */
.hero-title .word-reveal {
    color: var(--sable-pale);
    -webkit-text-fill-color: var(--sable-pale);
}

/* S'assurer que seul .gradient-text a le clip */
.hero-title .gradient-text {
    -webkit-text-fill-color: transparent;
}

/* ============================================================
   PALETTE MARINE & SABLE — PAGES CONTACT / PROJETS / LOGIN
   ============================================================ */

/* PAGE CONTACT — alertes */
.custom-alert {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.5s ease;
    padding: 0;
    margin: 0 0 1rem;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 500;
}

.custom-alert.show {
    opacity: 1;
    max-height: 120px;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
}

.custom-alert-success.show {
    background: rgba(74,143,168,0.1);
    border: 1px solid rgba(74,143,168,0.35);
    color: #a8d5e2;
}

.custom-alert-error.show {
    background: rgba(180,70,70,0.1);
    border: 1px solid rgba(180,70,70,0.35);
    color: #e2a8a8;
}

/* Contact — info card */
.info-card {
    background: rgba(201,169,110,0.03);
    border: 1px solid rgba(201,169,110,0.1);
}

.info-card h2 { color: var(--sable-pale); }
.info-label { color: rgba(201,169,110,0.5); }
.info-value { color: var(--sable-light); }
.info-value a { color: var(--sable-light); }
.info-value a:hover { color: var(--sable); }
.info-item { border-bottom: 1px solid rgba(201,169,110,0.07); }

.social-link {
    border: 1px solid rgba(201,169,110,0.15);
    color: rgba(201,169,110,0.6);
}

.social-link:hover {
    background: rgba(201,169,110,0.08);
    border-color: rgba(201,169,110,0.4);
    color: var(--sable);
}

/* Contact — form */
.form-container {
    background: rgba(201,169,110,0.02);
    border: 1px solid rgba(201,169,110,0.1);
}

.form-container h2 { color: var(--sable-pale); }

label { color: rgba(232,213,176,0.75); }

.response-time p { color: rgba(201,169,110,0.4); }
.response-time strong { color: var(--sable); }
.response-time { border-top: 1px solid rgba(201,169,110,0.07); }

/* page-title (contact, projets) */
.page-title {
    background: linear-gradient(135deg, var(--sable-pale) 0%, var(--sable) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-description { color: rgba(232,213,176,0.55); }

/* PAGE PROJETS */
.projects-hero h1 {
    background: linear-gradient(135deg, var(--sable-pale) 0%, var(--sable) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.projects-hero p { color: rgba(232,213,176,0.55); }

.projects-sidebar {
    background: rgba(201,169,110,0.02);
    border: 1px solid rgba(201,169,110,0.08);
    border-radius: 16px;
    padding: 1.5rem;
}

.sidebar-header h2 { color: var(--sable-pale); }
.sidebar-count { color: rgba(201,169,110,0.45); }

.projects-sidebar::-webkit-scrollbar-track { background: rgba(201,169,110,0.05); }
.projects-sidebar::-webkit-scrollbar-thumb { background: rgba(201,169,110,0.3); }

.project-item {
    background: rgba(201,169,110,0.02);
    border: 1px solid rgba(201,169,110,0.08);
}

.project-item:hover {
    background: rgba(201,169,110,0.04);
    border-color: rgba(201,169,110,0.2);
}

.project-item.active {
    background: rgba(26,58,92,0.3);
    border-color: rgba(74,143,168,0.4);
}

.project-item.active::before {
    background: linear-gradient(180deg, #4a8fa8, #c9a96e);
}

.project-item-title { color: var(--sable-pale); }
.project-item.active .project-item-title { color: var(--sable); }
.project-item-desc { color: rgba(201,169,110,0.45); }

.project-viewer {
    background: rgba(201,169,110,0.02);
    border: 1px solid rgba(201,169,110,0.08);
}

.viewer-header {
    background: rgba(201,169,110,0.03);
    border-bottom: 1px solid rgba(201,169,110,0.08);
}

.viewer-title { color: var(--sable-pale); }
.viewer-url { color: rgba(201,169,110,0.4); }

.viewer-btn {
    background: rgba(201,169,110,0.05);
    border: 1px solid rgba(201,169,110,0.12);
    color: rgba(201,169,110,0.6);
}

.viewer-btn:hover {
    background: rgba(201,169,110,0.12);
    border-color: rgba(201,169,110,0.4);
    color: var(--sable);
}

.no-projects-message {
    border: 1px dashed rgba(201,169,110,0.15);
    background: rgba(201,169,110,0.02);
}

.no-projects-message p { color: rgba(201,169,110,0.4); }

/* PAGE LOGIN */
.login-wrapper h2 { color: var(--sable-pale); }

.login-wrapper form {
    background: rgba(201,169,110,0.03);
    border: 1px solid rgba(201,169,110,0.1);
    border-radius: 16px;
}

.login-wrapper input {
    background: rgba(13,27,42,0.8);
    border: 1px solid rgba(201,169,110,0.2);
    color: var(--sable-pale);
}

.login-wrapper input:focus {
    border-color: rgba(201,169,110,0.5);
    outline: none;
    box-shadow: 0 0 0 3px rgba(201,169,110,0.08);
}

.login-wrapper button {
    background: linear-gradient(135deg, #1a3a5c, #4a8fa8);
    border: none;
    transition: all 0.3s ease;
}

.login-wrapper button:hover {
    background: linear-gradient(135deg, #4a8fa8, #c9a96e);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(201,169,110,0.2);
}

.error-message.show {
    background: rgba(180,70,70,0.1);
    border: 1px solid rgba(180,70,70,0.3);
    color: #e2a8a8;
}

/* TABLEAU DE BORD */
.dashboard-hero h2 {
    background: linear-gradient(135deg, var(--sable-pale) 0%, var(--sable) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dashboard-subtitle { color: rgba(201,169,110,0.45); }

.btn-dashboard {
    background: rgba(201,169,110,0.05);
    border: 1px solid rgba(201,169,110,0.15);
    color: rgba(232,213,176,0.75);
}

.btn-dashboard:hover {
    background: rgba(74,143,168,0.12);
    border-color: rgba(74,143,168,0.4);
    color: var(--sable-pale);
}

.project-form-card {
    background: rgba(201,169,110,0.02);
    border: 1px solid rgba(201,169,110,0.1);
}

.project-form-card::before {
    background: linear-gradient(90deg, #1a3a5c, #c9a96e);
}

.form-header h3 { color: var(--sable-pale); }

.form-field label { color: rgba(201,169,110,0.55); }

.form-field input,
.form-field textarea {
    background: rgba(13,27,42,0.6);
    border: 1.5px solid rgba(201,169,110,0.12);
    color: var(--sable-pale);
}

.form-field input:focus,
.form-field textarea:focus {
    border-color: rgba(201,169,110,0.45);
    box-shadow: 0 0 0 4px rgba(201,169,110,0.07);
}

.btn-submit {
    background: linear-gradient(135deg, #1a3a5c, #4a8fa8);
    box-shadow: 0 10px 30px rgba(26,58,92,0.35);
}

.btn-submit:hover {
    background: linear-gradient(135deg, #4a8fa8, #c9a96e);
    box-shadow: 0 15px 40px rgba(201,169,110,0.2);
}

.btn-cancel {
    border: 1.5px solid rgba(201,169,110,0.2);
    color: rgba(232,213,176,0.6);
}

.btn-cancel:hover {
    background: rgba(201,169,110,0.06);
    border-color: rgba(201,169,110,0.4);
    color: var(--sable-pale);
}

.project-title { color: var(--sable-pale); }
.project-number { background: rgba(74,143,168,0.15); color: #4a8fa8; }
.project-description { color: rgba(232,213,176,0.55); }
.projects-count { background: rgba(201,169,110,0.12); color: var(--sable); }
.project-link { color: var(--accent); }
.project-link:hover { color: var(--sable); }

.btn-edit {
    background: rgba(74,143,168,0.1);
    border-color: rgba(74,143,168,0.3);
    color: #4a8fa8;
}

.btn-edit:hover {
    background: rgba(74,143,168,0.2);
    border-color: rgba(74,143,168,0.5);
}

.btn-add-project {
    background: rgba(201,169,110,0.07);
    border: 1px solid rgba(201,169,110,0.2);
    color: var(--sable-light);
}

.btn-add-project:hover {
    background: rgba(201,169,110,0.12);
    border-color: rgba(201,169,110,0.4);
}

.competence-card {
    background: rgba(201,169,110,0.02);
    border: 1px solid rgba(201,169,110,0.08);
}

.competence-card:hover {
    background: rgba(201,169,110,0.04);
    border-color: rgba(201,169,110,0.25);
}

.competence-order { background: rgba(74,143,168,0.12); color: #4a8fa8; }
.divider { border-top: 1px solid rgba(201,169,110,0.07); }

.empty-state {
    background: rgba(201,169,110,0.02);
    border: 1px dashed rgba(201,169,110,0.12);
}

.empty-state p { color: rgba(201,169,110,0.4); }

.range-display { background: rgba(74,143,168,0.08); }
.range-display span { color: var(--sable); }

input[type="range"]::-webkit-slider-thumb {
    background: linear-gradient(135deg, #1a3a5c, #c9a96e);
}

input[type="range"]::-moz-range-thumb {
    background: linear-gradient(135deg, #1a3a5c, #c9a96e);
}

/* ============================================================
   FIX — PAGE CONTACT padding sous navbar
   ============================================================ */

/* La page contact utilise <main> sans classe spécifique,
   on cible via .contact-header en premier enfant de main */
.contact-header {
    padding-top: 7rem;
}

/* ============================================================
   TABLEAU DE BORD — CHARTE MARINE & SABLE
   ============================================================ */

/* Hero dashboard */
.db-hero {
    padding-top: 8rem;
    padding-bottom: 4rem;
    text-align: center;
    position: relative;
}

.db-hero-label {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(201,169,110,0.08);
    border: 1px solid rgba(201,169,110,0.2);
    border-radius: 50px;
    padding: 0.45rem 1.2rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(201,169,110,0.7);
    margin-bottom: 1.5rem;
}

.db-hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    letter-spacing: -2px;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--sable-pale) 0%, var(--sable) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.db-hero-sub {
    font-size: 1rem;
    color: rgba(201,169,110,0.5);
    margin-bottom: 2rem;
}

.db-logout-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.8rem;
    background: rgba(180,70,70,0.08);
    border: 1px solid rgba(180,70,70,0.25);
    border-radius: 50px;
    color: #e2a8a8;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.db-logout-btn:hover {
    background: rgba(180,70,70,0.15);
    border-color: rgba(180,70,70,0.45);
    color: #ffbaba;
    transform: translateY(-2px);
}

/* Stat cards */
.db-stat-card {
    background: rgba(201,169,110,0.03);
    border: 1px solid rgba(201,169,110,0.1);
    border-radius: 16px;
    padding: 1.8rem;
    text-align: center;
    transition: all 0.3s ease;
}

.db-stat-card:hover {
    border-color: rgba(201,169,110,0.25);
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

.db-stat-accent {
    border-color: rgba(74,143,168,0.2);
    background: rgba(74,143,168,0.04);
}

.db-stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: -2px;
    background: linear-gradient(135deg, #c9a96e, #4a8fa8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.4rem;
}

.db-stat-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(201,169,110,0.45);
    font-weight: 600;
}

/* Section dashboard */
.db-section {
    margin-bottom: 3rem;
}

.db-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.db-section-title {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--sable-pale);
    margin: 0;
}

.db-section-icon {
    width: 44px;
    height: 44px;
    background: rgba(201,169,110,0.08);
    border: 1px solid rgba(201,169,110,0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--sable);
    flex-shrink: 0;
}

/* Divider stylisé */
.db-divider {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin: 3rem 0;
    color: rgba(201,169,110,0.4);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.db-divider::before,
.db-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201,169,110,0.2), transparent);
}

/* Formulaire — form-header */
.form-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.db-form-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #1a3a5c, #4a8fa8);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--sable-light);
    flex-shrink: 0;
}

.form-header h3 {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--sable-pale);
    margin: 0;
}

/* Range custom */
.db-range-track {
    width: 100%;
    height: 4px;
    background: rgba(201,169,110,0.1);
    border-radius: 4px;
    margin-top: 0.8rem;
    overflow: hidden;
}

.db-range-fill {
    height: 100%;
    background: linear-gradient(90deg, #1a3a5c, #c9a96e);
    border-radius: 4px;
    transition: width 0.2s ease;
}

input[type="range"] {
    margin-bottom: 0;
}

/* ============================================================
   ONGLETS DASHBOARD
   ============================================================ */

.db-tabs {
    border-bottom: 1px solid rgba(201,169,110,0.12);
    gap: 0.5rem;
    flex-wrap: wrap;
}

.db-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.8rem 1.8rem;
    background: transparent;
    border: 1px solid rgba(201,169,110,0.1);
    border-bottom: 2px solid transparent;
    border-radius: 10px 10px 0 0;
    color: rgba(201,169,110,0.5);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
    margin-bottom: -1px;
}

.db-tab-btn:hover {
    color: rgba(201,169,110,0.8);
    background: rgba(201,169,110,0.04);
    border-color: rgba(201,169,110,0.2);
    border-bottom-color: transparent;
}

.db-tab-btn.active {
    color: var(--sable-light);
    background: rgba(201,169,110,0.06);
    border-color: rgba(201,169,110,0.2);
    border-bottom-color: var(--sable);
}

.db-tab-icon {
    font-size: 1rem;
    opacity: 0.7;
}

.db-tab-btn.active .db-tab-icon { opacity: 1; }

.db-tab-count {
    background: rgba(201,169,110,0.15);
    color: var(--sable);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    min-width: 22px;
    text-align: center;
}

.db-tab-content {
    padding-top: 2rem;
}

/* tab-pane override pour thème sombre */
.db-tab-content .tab-pane p {
    color: rgba(232,213,176,0.7);
}

/* ============================================================
   FIX — formulaire form-card visible + grain désactivé dashboard
   ============================================================ */

/* Supprimer grain sur le dashboard */
body:has(.db-hero) .grain { display: none; }

/* Form card bien visible */
.project-form-card {
    background: rgba(13, 27, 42, 0.8) !important;
    border: 1px solid rgba(201,169,110,0.15) !important;
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 2rem;
}

.project-form-card::before {
    background: linear-gradient(90deg, #1a3a5c, #c9a96e) !important;
}

/* Assure que les form-field inputs sont visibles dans le form-card */
.project-form-card .form-field input,
.project-form-card .form-field textarea {
    background: rgba(255,255,255,0.04) !important;
    border: 1.5px solid rgba(201,169,110,0.15) !important;
    color: var(--sable-pale) !important;
}

.project-form-card .form-field label {
    color: rgba(201,169,110,0.6) !important;
}

/* Stats panel transition */
.db-stats-panel {
    transition: opacity 0.3s ease;
}