/* Bouton menu Mia stylé */
.mia-menu-btn {
    background: var(--gradient-ia);
    color: #fff;
    border: none;
    border-radius: 30px;
    padding: 10px 24px 10px 18px;
    font-size: 1.05rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    box-shadow: var(--shadow);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: box-shadow 0.2s, transform 0.2s, background 0.3s;
    margin-left: 12px;
    outline: none;
    position: relative;
    z-index: 10;
}
.mia-menu-btn i {
    font-size: 1.2em;
    margin-right: 2px;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.12));
}
.mia-menu-btn:hover, .mia-menu-btn:focus {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px) scale(1.04);
    background: linear-gradient(135deg, #00dfd8 0%, #007cf0 60%, #ff0080 100%);
}
.mia-menu-btn:active {
    transform: scale(0.98);
}
:root {
    --primary-blue: #0d47a1;
    --secondary-orange: #ff5722;
    --gradient-ia: linear-gradient(135deg, #007cf0 0%, #00dfd8 50%, #ff0080 100%);
    --light-bg: #f9f9f9;
    --white: #ffffff;
    --shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 8px 25px rgba(0,0,0,0.15);
}

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

body {
    font-family: 'Roboto', sans-serif;
    background: var(--light-bg);
    color: #333;
    line-height: 1.6;
}

h1, h2, h3 {
    font-family: 'Montserrat', sans-serif;
    color: var(--primary-blue);
}

a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary-orange);
}

/* Hero avec gradient IA */
.hero {
    background: var(--gradient-ia);
    padding: 60px 20px 40px;
    text-align: center;
    color: white;
    position: relative;
    margin-bottom: 30px;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 4px solid white;
    animation: fadeIn 1s ease-in-out;
    margin-bottom: 20px;
    object-fit: cover;
}

.hero h1 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.hero-title-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.hero-subtitle {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 20px;
    white-space: normal;
    text-overflow: unset;
    line-height: 1.4;
}

/* Bouton CV */
.btn-cv {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
}

.btn-cv:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
    border-color: white;
}

.btn-cv i {
    margin-right: 6px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Navigation sticky */
.nav-sticky {
    position: sticky;
    top: 0;
    background: var(--white);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.nav-sticky a {
    margin: 0 15px;
    padding: 8px 15px;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s;
}

.nav-sticky a:hover {
    background: var(--primary-blue);
    color: white;
}

/* Container principal */
.container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Sections avec effet hover */
section {
    background: var(--white);
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
    scroll-margin-top: 100px;
}

section:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s, transform 0.6s;
}

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

.icon {
    margin-right: 8px;
    color: var(--primary-blue);
}

ul {
    padding-left: 20px;
}

li {
    margin-bottom: 10px;
}

iframe {
    width: 100%;
    height: 360px;
    border: 0;
    border-radius: 12px;
    margin-top: 15px;
}

.skills i {
    margin-right: 8px;
    color: var(--secondary-orange);
}

/* Switch de langue */
.lang-switch {
    position: absolute;
    top: 20px;
    right: 20px;
}

.lang-switch button {
    margin-left: 5px;
    padding: 8px 15px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 5px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    backdrop-filter: blur(10px);
    transition: all 0.3s;
}

.lang-switch button:hover {
    background: rgba(255, 255, 255, 0.3);
}

.lang-switch button.active {
    background: white;
    color: var(--primary-blue);
}

/* Téléchargement CV */
.cv-download {
    display: inline-flex;
    align-items: center;
    font-size: 1rem;
    font-weight: bold;
    color: white;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 15px;
    border-radius: 5px;
    margin-top: 10px;
    transition: all 0.3s;
}

.cv-download:hover {
    color: var(--secondary-orange);
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Boutons */
.contact-btn {
    margin-top: 10px;
    padding: 10px 20px;
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

.contact-btn:hover {
    background: #094081;
}

/* Formulaire */
form input, form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 14px;
    transition: border 0.3s;
}

form input:focus, form textarea:focus {
    border-color: var(--primary-blue);
    outline: none;
}

form button {
    background: var(--primary-blue);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

form button:hover {
    background: #094081;
}

/* Header content */
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.profile-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-blue);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.title-section {
    flex: 1;
}

.header-image {
    width: 300px;
    height: auto;
    margin-left: 20px;
    margin-bottom: 20px;
    border-radius: 4px;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

/* Cartes compétences cliquables */
.skill-card {
    cursor: pointer;
    padding: 15px;
    border-left: 4px solid var(--primary-blue);
    margin-bottom: 10px;
    transition: all 0.3s;
    border-radius: 5px;
}

.skill-card:hover {
    background: #f0f8ff;
    border-left: 4px solid var(--secondary-orange);
}

.skill-card.expanded {
    background: #f0f8ff;
    border-left: 4px solid var(--secondary-orange);
}

.skill-details {
    display: none;
    margin-top: 10px;
    padding: 10px;
    background: white;
    border-radius: 5px;
    border-left: 3px solid #e0e0e0;
}

.skill-card.expanded .skill-details {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}

/* Tags cliquables */
.tags-container {
    margin: 15px 0;
    display: flex;
    flex-wrap: wrap;
}

.tag {
    display: inline-block;
    background: #e3f2fd;
    padding: 5px 12px;
    margin: 5px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.tag:hover {
    background: var(--primary-blue);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.tag.active {
    background: var(--primary-blue);
    color: white;
}

.highlight {
    background: #fff9c4;
    transition: background 0.5s;
}

/* Section expertise */
.expertise-equation {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    text-align: center;
    font-style: italic;
}

.btn-thesis {
    display: inline-flex;
    align-items: center;
    background: var(--primary-blue);
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    margin-top: 10px;
    transition: background 0.3s;
}

.btn-thesis:hover {
    background: #094081;
    color: white;
}

/* Modales */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    position: relative;
}

.modal-info {
    max-width: 700px;
    max-height: 90%;
    overflow-y: auto;
    text-align: left;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #777;
}

/* Image dans la colonne de gauche */
.profile-image-left {
    width: 100%;
    max-width: 250px;
    height: auto;
    border-radius: 8px;
    margin: 20px auto;
    display: block;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Formulaire de contact - ajusté pour s'étendre sur les deux colonnes */
#contact-form {
    grid-column: 1 / -1;
    max-width: 1200px;
    margin: 0 auto;
    width: calc(100% - 40px);
}

/* Mode Handicap */
.handicap-switch {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 1001;
}

.handicap-switch button {
margin-left: 5px;
padding: 8px 15px;
font-weight: bold;
cursor: pointer;
border-radius: 5px;
border: none;
background: rgba(255, 255, 255, 0.2);
color: white;
backdrop-filter: blur(10px);
transition: all 0.3s;
}

.handicap-switch button:hover {
background: rgba(255, 255, 255, 0.3);
}

.handicap-switch button.active {
background: white;
color: var(--primary-blue);
}

.handicap-btn {
    margin-left: 5px;
    padding: 8px 15px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 5px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    backdrop-filter: blur(10px);
    transition: all 0.3s;
}

.handicap-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.handicap-btn.active {
    background: white;
    color: var(--primary-blue);
}

/* Modal Handicap */
.modal-handicap {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal-handicap-content {
    background: white;
    padding: 30px;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.handicap-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 20px 0;
}

.handicap-option {
    display: flex;
    align-items: center;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
    text-align: left;
    border: 1px solid #e0e0e0;
}

.handicap-option:hover {
    background: #f0f8ff;
}

.handicap-option i {
    margin-right: 10px;
    font-size: 1.2rem;
    width: 30px;
    text-align: center;
}

.handicap-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.btn-handicap {
    padding: 10px 20px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
}

.btn-confirm {
    background: var(--primary-blue);
    color: white;
}

.btn-cancel {
    background: #f0f0f0;
    color: #333;
}

.btn-handicap:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Styles pour le mode handicap activé */
body.handicap-mode {
    font-size: 18px;
    line-height: 1.8;
}

body.handicap-mode h1,
body.handicap-mode h2,
body.handicap-mode h3 {
    font-size: 1.3em;
    letter-spacing: 1px;
    color: #333 !important;
}

body.handicap-mode section {
    background: #f9f9f9 !important;
    border: 2px solid #e0e0e0 !important;
    color: #333 !important;
}

body.handicap-mode .nav-sticky a {
    padding: 12px 20px;
    font-size: 1.1em;
    color: #333 !important;
}

body.handicap-mode .skill-card {
    padding: 20px;
    margin-bottom: 15px;
    background: white !important;
    color: #333 !important;
}

body.handicap-mode .tag {
    padding: 8px 16px;
    font-size: 1em;
    background: #e3f2fd !important;
    color: #333 !important;
}

body.handicap-mode .contact-btn,
body.handicap-mode .btn-thesis {
    padding: 12px 24px;
    font-size: 1.1em;
    background: var(--primary-blue) !important;
    color: white !important;
}

body.handicap-mode form input,
body.handicap-mode form textarea {
    font-size: 16px;
    padding: 15px;
    background: white !important;
    color: #333 !important;
    border: 1px solid #ccc !important;
}

/* Mode contraste élevé - CORRIGÉ */
body.high-contrast {
background: #000000 !important;
color: #ffff00 !important;
}

body.high-contrast section {
background: #000000 !important;
color: #ffff00 !important;
border: 2px solid #ffff00 !important;
}

body.high-contrast h1,
body.high-contrast h2,
body.high-contrast h3 {
color: #ffff00 !important;
}

body.high-contrast a {
color: #00ffff !important;
}

body.high-contrast .icon {
color: #ffff00 !important;
}

body.high-contrast .nav-sticky {
background: #000000 !important;
}

body.high-contrast .nav-sticky a {
color: #ffff00 !important;
background: transparent !important;
}

body.high-contrast .nav-sticky a:hover {
background: #ffff00 !important;
color: #000000 !important;
}

body.high-contrast .handicap-btn {
background: rgba(255, 255, 255, 0.3) !important;
color: #ffff00 !important;
}

body.high-contrast .modal-content,
body.high-contrast .modal-handicap-content {
background: #000000 !important;
color: #ffff00 !important;
border: 2px solid #ffff00 !important;
}

body.high-contrast .modal-content p,
body.high-contrast .modal-handicap-content p {
color: #ffff00 !important;
}

body.high-contrast .close-modal {
color: #ffff00 !important;
}

/* CORRECTIONS SPÉCIFIQUES POUR LES ÉLÉMENTS INTERACTIFS */
body.high-contrast .tag {
background: #000000 !important;
color: #ffff00 !important;
border: 1px solid #ffff00 !important;
}

body.high-contrast .tag:hover,
body.high-contrast .tag.active {
background: #ffff00 !important;
color: #000000 !important;
}

body.high-contrast .skill-card {
background: #000000 !important;
color: #ffff00 !important;
border-left: 4px solid #ffff00 !important;
}

body.high-contrast .skill-card:hover {
background: #222222 !important;
border-left: 4px solid #00ffff !important;
}

body.high-contrast .skill-details {
background: #111111 !important;
color: #ffff00 !important;
border-left: 3px solid #ffff00 !important;
}

body.high-contrast .highlight {
background: #333300 !important;
color: #ffff00 !important;
}

body.high-contrast .contact-btn,
body.high-contrast .btn-thesis {
background: #ffff00 !important;
color: #000000 !important;
border: 2px solid #ffff00 !important;
}

body.high-contrast .contact-btn:hover,
body.high-contrast .btn-thesis:hover {
background: #000000 !important;
color: #ffff00 !important;
}

body.high-contrast .cv-download {
background: rgba(255, 255, 0, 0.3) !important;
color: #ffff00 !important;
border: 1px solid #ffff00 !important;
}

body.high-contrast .cv-download:hover {
background: #ffff00 !important;
color: #000000 !important;
}

body.high-contrast form input,
body.high-contrast form textarea {
background: #000000 !important;
color: #ffff00 !important;
border: 2px solid #ffff00 !important;
}

body.high-contrast form input:focus,
body.high-contrast form textarea:focus {
border-color: #00ffff !important;
background: #111111 !important;
}

body.high-contrast form button {
background: #ffff00 !important;
color: #000000 !important;
border: 2px solid #ffff00 !important;
}

body.high-contrast form button:hover {
background: #000000 !important;
color: #ffff00 !important;
}

body.high-contrast .handicap-option {
background: #000000 !important;
color: #ffff00 !important;
border: 1px solid #ffff00 !important;
}

body.high-contrast .handicap-option:hover {
background: #ffff00 !important;
color: #000000 !important;
}

body.high-contrast .btn-handicap {
border: 2px solid #ffff00 !important;
}

body.high-contrast .btn-confirm {
background: #ffff00 !important;
color: #000000 !important;
}

body.high-contrast .btn-cancel {
background: #000000 !important;
color: #ffff00 !important;
}

body.high-contrast .btn-handicap:hover {
background: #00ffff !important;
color: #000000 !important;
}

body.high-contrast .reset-handicap {
background: #ffff00 !important;
color: #000000 !important;
border: 2px solid #ffff00 !important;
}

body.high-contrast .reset-handicap:hover {
background: #000000 !important;
color: #ffff00 !important;
}

/* Correction pour les liens dans les listes */
body.high-contrast .edu-link {
color: #00ffff !important;
}

body.high-contrast .edu-link:hover {
color: #ffff00 !important;
}

/* Correction pour les iframes */
body.high-contrast iframe {
border: 2px solid #ffff00 !important;
}

/* CORRECTIONS SPÉCIFIQUES POUR LES ÉLÉMENTS INTERACTIFS */
body.high-contrast .tag {
background: #000000 !important;
color: #ffff00 !important;
border: 1px solid #ffff00 !important;
}

body.high-contrast .tag:hover,
body.high-contrast .tag.active {
background: #ffff00 !important;
color: #000000 !important;
}

body.high-contrast .skill-card {
background: #000000 !important;
color: #ffff00 !important;
border-left: 4px solid #ffff00 !important;
}

body.high-contrast .skill-card:hover {
background: #222222 !important;
border-left: 4px solid #00ffff !important;
}

body.high-contrast .skill-details {
background: #111111 !important;
color: #ffff00 !important;
border-left: 3px solid #ffff00 !important;
}

body.high-contrast .highlight {
background: #333300 !important;
color: #ffff00 !important;
}

body.high-contrast .contact-btn,
body.high-contrast .btn-thesis {
background: #ffff00 !important;
color: #000000 !important;
border: 2px solid #ffff00 !important;
}

body.high-contrast .contact-btn:hover,
body.high-contrast .btn-thesis:hover {
background: #000000 !important;
color: #ffff00 !important;
}

body.high-contrast .cv-download {
background: rgba(255, 255, 0, 0.3) !important;
color: #ffff00 !important;
border: 1px solid #ffff00 !important;
}

body.high-contrast .cv-download:hover {
background: #ffff00 !important;
color: #000000 !important;
}

body.high-contrast form input,
body.high-contrast form textarea {
background: #000000 !important;
color: #ffff00 !important;
border: 2px solid #ffff00 !important;
}

body.high-contrast form input:focus,
body.high-contrast form textarea:focus {
border-color: #00ffff !important;
background: #111111 !important;
}

body.high-contrast form button {
background: #ffff00 !important;
color: #000000 !important;
border: 2px solid #ffff00 !important;
}

body.high-contrast form button:hover {
background: #000000 !important;
color: #ffff00 !important;
}

body.high-contrast .handicap-option {
background: #000000 !important;
color: #ffff00 !important;
border: 1px solid #ffff00 !important;
}

body.high-contrast .handicap-option:hover {
background: #ffff00 !important;
color: #000000 !important;
}

body.high-contrast .btn-handicap {
border: 2px solid #ffff00 !important;
}

body.high-contrast .btn-confirm {
background: #ffff00 !important;
color: #000000 !important;
}

body.high-contrast .btn-cancel {
background: #000000 !important;
color: #ffff00 !important;
}

body.high-contrast .btn-handicap:hover {
background: #00ffff !important;
color: #000000 !important;
}

body.high-contrast .reset-handicap {
background: #ffff00 !important;
color: #000000 !important;
border: 2px solid #ffff00 !important;
}

body.high-contrast .reset-handicap:hover {
background: #000000 !important;
color: #ffff00 !important;
}

/* Correction pour les liens dans les listes */
body.high-contrast .edu-link {
color: #00ffff !important;
}

body.high-contrast .edu-link:hover {
color: #ffff00 !important;
}

/* Correction pour les iframes */
body.high-contrast iframe {
border: 2px solid #ffff00 !important;
}

/* Mode dyslexie - STYLE AMÉLIORÉ comme EasyReading */
body.dyslexia-friendly {
font-family: 'Comic Sans MS', 'Arial Rounded MT Bold', sans-serif !important;
letter-spacing: 1.2px !important;
line-height: 1.9 !important;
word-spacing: 2px !important;
}

body.dyslexia-friendly * {
font-family: inherit !important;
}

body.dyslexia-friendly h1,
body.dyslexia-friendly h2,
body.dyslexia-friendly h3 {
font-weight: bold !important;
letter-spacing: 2px !important;
line-height: 1.6 !important;
color: #2c3e50 !important;
text-transform: uppercase !important;
}

body.dyslexia-friendly p,
body.dyslexia-friendly li,
body.dyslexia-friendly span,
body.dyslexia-friendly div {
font-size: 19px !important;
line-height: 1.9 !important;
color: #34495e !important;
text-align: justify !important;
}

body.dyslexia-friendly section {
background: #f8f9fa !important;
border-left: 5px solid #3498db !important;
padding: 30px !important;
}

body.dyslexia-friendly .skill-card {
background: #ecf0f1 !important;
border-left: 5px solid #e74c3c !important;
margin: 15px 0 !important;
padding: 20px !important;
}

body.dyslexia-friendly .tag {
background: #d6eaf8 !important;
color: #2c3e50 !important;
font-weight: bold !important;
padding: 8px 15px !important;
margin: 5px !important;
}

body.dyslexia-friendly a {
color: #2980b9 !important;
text-decoration: underline !important;
font-weight: bold !important;
}

body.dyslexia-friendly .nav-sticky a {
background: #3498db !important;
color: white !important;
padding: 12px 20px !important;
margin: 5px !important;
border-radius: 5px !important;
}

body.dyslexia-friendly .contact-btn,
body.dyslexia-friendly .btn-thesis {
background: #e74c3c !important;
color: white !important;
padding: 15px 25px !important;
font-size: 18px !important;
font-weight: bold !important;
border-radius: 8px !important;
}

/* Amélioration spécifique pour la lisibilité */
body.dyslexia-friendly .hero-subtitle {
font-size: 1.3rem !important;
line-height: 1.8 !important;
font-weight: bold !important;
}

body.dyslexia-friendly .icon {
color: #e74c3c !important;
font-size: 1.3em !important;
}

/* Espacement amélioré pour les listes */
body.dyslexia-friendly ul,
body.dyslexia-friendly ol {
padding-left: 30px !important;
}

body.dyslexia-friendly li {
margin-bottom: 15px !important;
padding-left: 10px !important;
}

/* Formulaire adapté */
body.dyslexia-friendly form input,
body.dyslexia-friendly form textarea {
font-size: 18px !important;
padding: 15px !important;
border: 2px solid #bdc3c7 !important;
background: #ecf0f1 !important;
color: #2c3e50 !important;
}

body.dyslexia-friendly form input:focus,
body.dyslexia-friendly form textarea:focus {
border-color: #3498db !important;
outline: none !important;
box-shadow: 0 0 10px rgba(52, 152, 219, 0.5) !important;
}

/* Amélioration spécifique pour la lisibilité */
body.dyslexia-friendly .hero-subtitle {
font-size: 1.3rem !important;
line-height: 1.8 !important;
font-weight: bold !important;
}

body.dyslexia-friendly .icon {
color: #e74c3c !important;
font-size: 1.3em !important;
}

/* Espacement amélioré pour les listes */
body.dyslexia-friendly ul,
body.dyslexia-friendly ol {
padding-left: 30px !important;
}

body.dyslexia-friendly li {
margin-bottom: 15px !important;
padding-left: 10px !important;
}

/* Formulaire adapté */
body.dyslexia-friendly form input,
body.dyslexia-friendly form textarea {
font-size: 18px !important;
padding: 15px !important;
border: 2px solid #bdc3c7 !important;
background: #ecf0f1 !important;
color: #2c3e50 !important;
}

body.dyslexia-friendly form input:focus,
body.dyslexia-friendly form textarea:focus {
border-color: #3498db !important;
outline: none !important;
box-shadow: 0 0 10px rgba(52, 152, 219, 0.5) !important;
}

/* Bouton de réinitialisation */
.reset-handicap {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    display: none;
}

.reset-handicap:hover {
    background: #094081;
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 968px) {
    .container {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .header-image {
        display: none;
    }
    
    #contact-form {
        grid-column: 1;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 50px 15px 30px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        white-space: normal;
        text-overflow: unset;
    }
    
    .nav-sticky {
        position: relative;
        flex-direction: column;
        align-items: center;
    }
    
    .nav-sticky a {
        margin: 5px 0;
        width: 100%;
        text-align: center;
    }
    
    .profile-header {
        flex-direction: column;
        text-align: center;
    }
    
    .lang-switch {
        position: relative;
        top: auto;
        right: auto;
        text-align: center;
        margin-bottom: 15px;
    }
    
    .handicap-switch {
        position: relative;
        top: auto;
        left: auto;
        text-align: center;
        margin-bottom: 15px;
    }
    
    .header-image {
        width: 100%;
        margin: 15px 0;
    }
    
    section {
        scroll-margin-top: 20px;
    }
    
    .reset-handicap {
        bottom: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    section {
        padding: 15px;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero-photo {
        width: 120px;
        height: 120px;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
}

/* Liens éducation */
.edu-link {
    font-size: 0.8em;
    color: var(--primary-blue);
}


