/* ============================ */
/* STYLES GLOBAUX ET DE BASE    */
/* ============================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    color: #333;
}

/* ============================ */
/* STYLES D'INTERNATIONALISATION (i18n) */
/* ============================ */

.lang {
    opacity: 0;
    transition: opacity 0.3s ease-in;
}

body.page-index #hero-banner .button{
  visibility: hidden;                
  transform: translateY(-50px); 
}

[data-key-placeholder] {
    color: transparent;
}

html.lang-ready .lang {
    opacity: 1;
}

html.lang-ready [data-key-placeholder] {
    color: initial;
}

@keyframes slideIn {
    0% {
        transform: translateY(-50px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

html.lang-ready .navbar,
html.lang-ready body.page-index #hero-banner h1,
html.lang-ready body.page-index #hero-banner p,
html.lang-ready body.page-index #hero-banner::after,
html.lang-ready body.page-index #hero-banner .btn-floating,
html.lang-ready body.page-index #below-banner,
html.lang-ready body.page-index .features-grid,
html.lang-ready body.page-presentation #presentation-banner h1,
html.lang-ready body.page-presentation #presentation-content .section-card,
html.lang-ready body.page-cours #courses-banner h1,
html.lang-ready body.page-cours #courses-cta .button,
html.lang-ready body.page-cours #courses-intro,
html.lang-ready body.page-cours .course-card,
html.lang-ready body.page-contact #contact-banner h1,
html.lang-ready body.page-contact .contact-card,
html.lang-ready body.page-tarifs #pricing-banner h1,
html.lang-ready body.page-tarifs #pricing-intro,
html.lang-ready body.page-tarifs #pricing .pricing-cards,
html.lang-ready body.page-temoignages #testimonials-banner h1,
html.lang-ready body.page-temoignages .testimonial,
html.lang-ready body.page-temoignages #testimonials-intro,
html.lang-ready body.page-temoignages #testimonials-content {
    visibility: visible;
    animation: slideIn 0.8s ease-in-out;
}

/*html.lang-ready #hero-banner .btn-floating{
  visibility: visible;
  animation: slideIn 0.8s ease-in-out forwards;
}*/
/* ============================ */
/* MENU DE NAVIGATION           */
/* ============================ */

.navbar {
    background-color: #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    visibility: hidden;
}

.menu {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-grow: 1;
}

.menu li {
    margin: 0 15px;
}

.menu li a {
    color: #f2f2f2;
    text-decoration: none;
    font-size: 17px;
}

.menu li a:hover {
    color: #e74c3c;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}
/*
.language-icons {
  display: flex;
  gap: 10px;
  align-items: center;
}
*/
.language-icons {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: flex-end;
}

.language-icons button {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
}

.language-icons img {
    width: 24px;
    height: 24px;
    display: inline-block;
    vertical-align: middle;
}

/* Styles pour les drapeaux (utilisés avec les icônes de langue ou ailleurs) */
.flag-icon {
    width: 16px;
    height: auto;
    margin-left: 5px;
    position: relative;
    top: -5px;
    vertical-align: baseline;
}

/*
.language-icons img {
  width: 24px;
  height: 24px;
}
*/

#social-media {
    margin-top: 30px;
    margin-bottom: 15px;
    text-align: center;
}

#social-media p.lang[data-key="followUs"] {
    font-size: 24px;
    color: #2a1f68;
    font-weight: bold;
    margin-bottom: 5px;
}

#social-media a {
    margin: 0 15px;
    text-decoration: none;
}

#social-media a i {
    font-size: 40px;
    transition: color 0.3s ease;
}

#social-media .facebook {
    color: #4267b2;
}
#social-media .facebook:hover {
    color: #3b5998;
}

#social-media .instagram {
    color: #e1306c;
} /* Couleur de base non utilisée car gradient */
#social-media .instagram i {
    background: radial-gradient(circle at 30% 30%, #fdf497, #fd5949, #d6249f, #285aeb);
    -webkit-background-clip: text;
    color: transparent;
    font-size: 40px; /* redondant avec #social-media a i mais peut être gardé pour spécificité */
    display: inline-block; /* Assurer que le background s'applique correctement */
    width: 40px; /* Assurer que le background s'applique correctement */
    height: 40px; /* Assurer que le background s'applique correctement */
}
#social-media .instagram:hover i {
    background: linear-gradient(to bottom right, #405de6, #f58529, #dd2a7b);
    -webkit-background-clip: text;
    color: transparent;
}

/* ============================ */
/* BANDEAUX GÉNÉRIQUES          */
/* ============================ */

#hero-banner,
#testimonials-banner,
#presentation-banner,
#courses-banner,
body.page-tarifs #pricing-banner,
body.page-contact #contact-banner {
    position: relative;
    background-size: cover;
    background-position: center;
    padding: 6rem 1rem;
    text-align: center;
    color: #fff;
}

#hero-banner::before,
#testimonials-banner::before,
#presentation-banner::before,
#courses-banner::before,
body.page-tarifs #pricing-banner::before,
body.page-contact #contact-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

#hero-banner h1,
#testimonials-banner h1,
#presentation-banner h1,
#courses-banner h1,
body.page-tarifs #pricing-banner h1,
body.page-contact #contact-banner h1 {
    visibility: hidden;
    font-size: 3em;
    font-weight: bold;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    position: relative;
    z-index: 2;
}

/* Spécifique Hero */
#hero-banner {
    background-image: url("../images/banners/bandeau-index.png");
    padding: 3rem 1rem;
}
#hero-banner p {
    font-size: 1.3em;
    text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.7);
}

.button {
    background-color: #e74c3c;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}
.button:hover {
    background-color: #c0392b;
}

#qualities-section {
    padding: 40px;
    background: #fff;
    text-align: center;
}
.qualities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 20px;
}
.quality {
    padding: 20px;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}
.quality:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.testimonial {
    background: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}
.testimonial-text {
    font-size: 1rem;
    line-height: 1.5;
}
.testimonial-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #e0e0e0;
    padding-top: 0.75rem;
    font-size: 0.9rem;
}
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.flag-icon {
    width: 20px;
    vertical-align: middle;
}
.testimonial-date {
    font-style: italic;
    color: #555;
}

.courses-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem auto;
    max-width: 1200px;
    padding: 0 1rem;
}
.course-card {
    background: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}
.course-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}
.course-card .course-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.4rem;
    color: #2a1f68;
}
.course-card .course-title i {
    color: #e74c3c;
    font-size: 1.3rem;
}
.course-card p {
    line-height: 1.5;
    color: #555;
}

.field {
    position: relative;
    margin-bottom: 1.5rem;
}
.field i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    pointer-events: none;
}
.field input,
.field textarea {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #fff;
    transition: border-color 0.2s;
}
.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: #2a1f68;
}
.field label {
    position: absolute;
    left: 3rem;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    padding: 0 0.25rem;
    color: #2a1f68;
    transition: top 0.2s, font-size 0.2s;
    white-space: nowrap;
}
.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label {
    top: -0.6rem;
    font-size: 0.85rem;
}
.required {
    color: red;
    margin-left: 0.25rem;
    font-size: 0.9rem;
}

footer {
    background: #333;
    color: #fff;
    padding: 20px 0;
    text-align: center;
}
footer .footer-contact a{
  color:#d2d2d2;             /* même blanc que le texte */
  text-decoration:underline;
}
footer .footer-contact a:hover{
  color:#e74c3c;          /* (option) passe au rouge au survol */
}

.footer-contact i {
    margin-right: 0.5rem;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    .navbar .menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        background: #333;
        display: none;
    }
    .navbar .menu.open {
        display: flex;
    }
    .menu li {
        margin: 0;
        border-top: 1px solid #444;
    }
    .menu li:first-child {
        border-top: none;
    }
    .menu li a {
        display: block;
        padding: 12px 20px;
    }
}

/* —————— Lien actif permanent —————— */
.navbar .menu a.active {
    color: #e74c3c !important;
}
.navbar .menu a.active:hover {
    color: #e74c3c !important;
}

/* —————— Conteneur réseaux sociaux —————— */
#social-placeholder {
    background-color: #f4f4f4;
    padding: 2rem 0;
    text-align: center;
}

/* Le contenu injecté social.html */
#social-placeholder #social-media a {
    margin: 0 1rem;
}
#social-placeholder #social-media i {
    font-size: 2.5rem;
    transition: color 0.3s ease;
}
