/* ----------- BASE ----------- */
body {
    font-family: 'Arial', sans-serif;
    background: #f4f7fa;
    color: #23272b;
    margin: 0;
    padding: 0;
}
/* Softer link color */
a {
    color: #b23a48;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}
/* Softer hover */
a:hover {
    color: #8c2f39;
    text-decoration: underline;
}
/* Softer blue for headings */
h1, h2, h3, h4, h5, h6 {
    color: #345678;
}
.header, .navbar, .footer {
    background: #345678;
    color: #fff;
}
.main-content {
    max-width: 900px;
    margin: 40px auto 0;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    padding: 32px 24px;
    box-sizing: border-box;
}
.header, .navbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    background: transparent !important; /* <-- Ajoute cette ligne */
}
.header {
    flex-direction: row;
    justify-content: space-between;
    padding: 10px;
    position: relative;
}
.title {
    text-align: center;
    flex-grow: 2;
    font-size: 1.5rem;
}
.title h1, h1 {
    text-align: center;
    margin-top: 20px;
    background: transparent; /* Enlève tout fond */
    color: #fff;             /* Texte blanc pour contraster sur fond bleu */
}
.logo img {
    margin-right: 10px;
    max-width: 220px;
    max-height: 220px;
    width: 16vw;
    height: auto;
    transition: max-width 0.3s, max-height 0.3s;
}
header {
    margin: 20px;
    border-radius: 16px;
}
.radius {
    background: #345678;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.navbar {
    justify-content: center;
    padding: 10px;
}
.navbar .menu {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-direction: row;
}
.navbar .menu a, .menu .dropdown-label, .dropbtn, .dropdown-label {
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    background: #b23a48;
    color: #fff;
    border-radius: 5px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}
.navbar .menu a:hover, .menu .dropdown-label:hover, .dropdown-label:hover, .dropbtn:hover,
.menu .dropdown:hover .dropdown-label {
    background: #8c2f39;
    transform: scale(1.05);
}
.menu .dropdown, .dropdown {
    position: relative;
    min-width: 110px;
    display: inline-block;
}
.menu .dropdown-content, .dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 100%;
    background: #b23a48;
    box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2);
    border-radius: 0 0 5px 5px;
    z-index: 1;
}
.menu .dropdown-content a, .dropdown-content a {
    color: #fff;
    padding: 12px 16px;
    display: block;
    transition: background-color 0.3s;
    width: 100%;
    box-sizing: border-box;
}
.menu .dropdown-content a:hover, .dropdown-content a:hover {
    background: #8c2f39;
}
.menu .dropdown:hover .dropdown-content, .dropdown:hover .dropdown-content {
    display: block;
}

/* ----------- SKILLS ----------- */
.skills-section {
    margin: 40px 0;
    text-align: center;
}
.skills-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    margin-top: 16px;
}
.skill-card,
.skills-list a.skill-card {
    text-decoration: none;
    background: #f8f8f8;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 16px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.2s, background 0.2s;
    font-weight: normal;
    color: #002147;
}
.skill-card img,
.skills-list a.skill-card img {
    width: 48px;
    height: 48px;
    margin-bottom: 8px;
}
.skill-card span,
.skills-list a.skill-card span {
    color: #002147;
}
.skill-card:hover,
.skills-list a.skill-card:hover {
    transform: translateY(-6px) scale(1.05);
    background: #e6ecf3;
}

/* ----------- CTA ----------- */
.cta-section {
    text-align: center;
    margin: 48px 0 0 0;
}
.cta-button {
    text-decoration: none;
    display: inline-block;
    margin-top: 16px;
    padding: 12px 32px;
    background: #b23a48;
    color: #fff;
    border-radius: 6px;
    font-size: 1.1em;
    font-weight: bold;
    transition: background 0.2s, transform 0.2s;
}
.cta-button:hover {
    text-decoration: none;
    color: #fff;
    background: #8c2f39;
    transform: scale(1.05);
}

/* ----------- FOOTER ----------- */
.footer {
    background: #345678;
    color: #fff;
    text-align: center;
    padding: 20px 10px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    border-radius: 10px;
    margin: 20px;
}
.footer h3 {
    color: #fff;
    background: transparent;
}
.footer .plan-du-site, .footer .rgpd, .footer .enterprise-info {
    margin-bottom: 20px;
    flex: 1;
    min-width: 200px;
}
.footer .plan-du-site h3, .footer .rgpd h3, .footer .enterprise-info h3 {
    border-bottom: 1px solid #fff;
    padding-bottom: 5px;
}
.footer .plan-du-site ul, .footer .rgpd ul, .footer .enterprise-info ul {
    list-style: none;
    padding: 0;
}
.footer .plan-du-site ul li, .footer .rgpd ul li, .footer .enterprise-info ul li {
    margin: 5px 0;
}
.footer .plan-du-site a, .footer .rgpd a, .footer .enterprise-info a {
    color: #fff;
}
.footer .plan-du-site a:hover, .footer .rgpd a:hover, .footer .enterprise-info a:hover {
    text-decoration: underline;
}
/* Footer top: centré au début du footer, au-dessus du plan du site en mobile, centré en bas en desktop */
.footer-top {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #b23a48 60%, #8c2f39 100%);
    color: #fff;
    border-radius: 50%;
    width: 54px;
    height: 54px;
    font-size: 2em;
    font-weight: bold;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(0,0,0,0.13);
    margin: 18px auto 0 auto;
    border: 2px solid #fff3;
    position: relative;
    z-index: 2;
    cursor: pointer;
    grid-column: 1/-1;
}
.footer-top:hover,
.footer-top:focus {
    background: linear-gradient(135deg, #8c2f39 60%, #b23a48 100%);
    color: #fff;
    box-shadow: 0 6px 24px rgba(0,0,0,0.18);
    transform: translateY(-6px) scale(1.10);
    outline: none;
    border-color: #bb181a;
}
.footer-top span {
    line-height: 1;
    font-size: 1em;
    pointer-events: none;
    color: #f7d774; /* Softer yellow */
    /* Si tu préfères un blanc pur : color: #fff; */
    text-shadow: 0 1px 2px rgba(0,0,0,0.18); /* Optionnel : légère ombre pour le contraste */
}
.footer-top:hover span,
.footer-top:focus span {
    color: #e6c200; /* Softer yellow on hover */
}
@media (max-width: 900px) {
    .footer {
        flex-direction: column;
        align-items: stretch;
    }
    .footer-top {
        width: 100%;
        height: 48px;
        border-radius: 16px;
        font-size: 1.3em;
        margin: 0 0 12px 0;
        position: static;
        order: -1;
    }
}

/* ----------- VIDEO ----------- */
.video-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 24px 0;
}
.video-container iframe {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

/* ----------- QUOTE ----------- */
.quote-section {
    margin: 40px 0;
    text-align: center;
}
.quote-section blockquote {
    font-size: 1.2em;
    color: #555;
    font-style: italic;
    background: #fbeaea;
    border-left: 5px solid #cc0000;
    padding: 16px 24px;
    border-radius: 8px;
    display: inline-block;
}
#quote_author {
    display: block;
    margin-top: 8px;
    font-size: 0.95em;
    color: #888;
}

/* ----------- SITE LICENSE ----------- */
.site-license {
    text-align: center;
    margin: 24px 0 8px 0;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    font-size: 0.9em;
    color: #333;
}
body.dark-mode .site-license {
    color: #e0e0e0;
}

/* ----------- TABLES ----------- */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}
th, td {
    padding: 12px 15px;
    text-align: left;
    border: 1px solid #ddd;
}
th {
    background: #f2f2f2;
    font-weight: bold;
}
tr:hover {
    background: #f5f5f5;
}

/* ----------- MISC ----------- */
blockquote {
    border-left: 4px solid #d81920;
    padding-left: 16px;
    margin: 0 0 20px 0;
    color: #555;
    font-style: italic;
}
code {
    background: #f4f4f4;
    padding: 2px 4px;
    border-radius: 4px;
    font-family: 'Courier New', Courier, monospace;
}
pre {
    background: #f4f4f4;
    padding: 10px;
    border-radius: 4px;
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* ----------- FORMS ----------- */
input, textarea, select {
    font-family: 'Arial', sans-serif;
    font-size: 1em;
    color: #333;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 10px;
    margin-bottom: 20px;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.3s;
}
input:focus, textarea:focus, select:focus {
    border-color: #b23a48;
    outline: none;
}
input[type="submit"], button {
    background: #b23a48;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s, transform 0.3s;
}
input[type="submit"]:hover, button:hover {
    background: #8c2f39;
    transform: translateY(-2px);
}

/* ----------- RESPONSIVE ----------- */
@media (max-width: 700px) {
    .header {
        flex-direction: column;
        padding: 8px 4px 4px 4px;
        min-height: unset;
        margin: 0 0 8px 0;
    }
    .logo img {
        max-width: 54px;
        max-height: 54px;
        width: 16vw;
        margin: 0 auto 6px auto;
        display: block;
    }
    .title {
        font-size: 1.1rem;
        margin: 0;
        padding: 0;
    }
    .title h1, h1 {
        font-size: 1.2em;
        margin: 0 0 6px 0;
        padding: 0;
        color: #fff;
    }
    .navbar .menu { flex-direction: column; width: 100%; }
    .container {
        display: flex;
        flex-direction: column;
        gap: 20px;
        padding: 12px;
        border: 1px solid #ddd;
        background: #fff;
        border-radius: 10px;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }
    .skills-list { flex-direction: column; align-items: center; }
    .main-content { padding: 8px; }
    .theme-toggle {
        top: 8px;
        right: 8px;
        width: 32px;
        height: 32px;
        font-size: 1em;
    }
}

/* ----------- DARK MODE ----------- */
body.dark-mode {
    background: #181a1b;
    color: #e0e0e0;
}
body.dark-mode .header,
body.dark-mode .header,
body.dark-mode .navbar,
body.dark-mode .footer {
    background: #232b33;
    color: #e0e0e0;
}
body.dark-mode .main-content {
    background: #232b33;
    color: #e0e0e0;
}
body.dark-mode h1,
body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode h5,
body.dark-mode h6 {
    color: #f7d774;
}
body.dark-mode a {
    color: #e57373;
}
body.dark-mode .skill-card,
body.dark-mode .skills-list a.skill-card {
    background: #232b33;
    color: #f7d774;
}
body.dark-mode .skill-card span,
body.dark-mode .skills-list a.skill-card span {
    color: #f7d774;
}
body.dark-mode .cta-button {
    background: #e57373;
    color: #232b33;
}
body.dark-mode .cta-button:hover {
    background: #b23a48;
    color: #fff;
}
body.dark-mode .site-license {
    background: #23272b;
    color: #e0e0e0;
}
body.dark-mode blockquote {
    background: #232b33;
    color: #f7d774;
    border-left: 5px solid #e57373;
}
body.dark-mode input,
body.dark-mode textarea,
body.dark-mode select {
    background: #181a1b;
    color: #f7d774;
    border: 1px solid #444;
}
body.dark-mode input[type="submit"], 
body.dark-mode button {
    background: #e57373;
    color: #232b33;
}
body.dark-mode input[type="submit"]:hover, 
body.dark-mode button:hover {
    background: #b23a48;
    color: #fff;
}

/* ----------- DARK MODE BUTTON ----------- */
.theme-toggle {
    position: absolute;
    top: 18px;
    right: 18px;
    background: #345678;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    font-size: 1.3em;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
    z-index: 1000;
}
.theme-toggle:hover {
    background: #1f1f1f;
}
body.dark-mode .theme-toggle {
    background: #232b33;
    color: #345678;
}
body.dark-mode .theme-toggle:hover {
    background: #f7d774;
}
.footer-top,
.footer-top:hover,
.footer-top:focus,
.footer-top span,
.footer-top:hover span,
.footer-top:focus span {
    text-decoration: none !important;
}

.footer-top {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #d81920 60%, #bb181a 100%);
    color: #fff;
    border-radius: 50%;
    width: 54px;
    height: 54px;
    font-size: 2em;
    font-weight: bold;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(0,0,0,0.13);
    transition: background 0.2s, transform 0.2s, color 0.2s, box-shadow 0.2s;
    margin: 18px auto 0 auto;
    border: 2px solid #fff3;
    position: relative;
    top: 0;
    z-index: 2;
    cursor: pointer;
}
.footer-top:hover,
.footer-top:focus {
    background: linear-gradient(135deg, #bb181a 60%, #d81920 100%);
    color: #fff;
    box-shadow: 0 6px 24px rgba(0,0,0,0.18);
    transform: translateY(-6px) scale(1.10);
    outline: none;
    border-color: #bb181a;
}
.footer-top span {
    line-height: 1;
    font-size: 1em;
    pointer-events: none;
    color: #ffe066; /* Jaune pâle, bien visible sur rouge */
    /* Si tu préfères un blanc pur : color: #fff; */
    text-shadow: 0 1px 2px rgba(0,0,0,0.18); /* Optionnel : légère ombre pour le contraste */
}
.footer-top:hover span,
.footer-top:focus span {
    color: #ffd700; /* Un jaune plus vif au survol */
}
html {
    scroll-behavior: smooth;
}