/* -----------------------------------------------------
   BASE
-------------------------------------------------------*/

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

body {
    font-family: 'Inter', sans-serif;
    background: #fafafa;
    color: #2b2b2b;
    line-height: 1.6;
}

/* Container global */
.container-header {
    max-width: 1300px;
    margin: auto;
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* -----------------------------------------------------
   HEADER
-------------------------------------------------------*/

.site-header {
    background: white;
    border-bottom: 1px solid #e5e5e5;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    height: 100px;
    width: auto;
}

/* Menu */
nav a {
    margin-left: 30px;
    text-decoration: none;
    font-weight: 500;
    color: #333;
    transition: 0.2s;
}

nav a:hover {
    color: #0056b9;
}

.btn-ats {
    padding: 8px 16px;
    border: 1px solid #0056b9;
    color: #0056b9 !important;
    border-radius: 6px;
    margin-left: 40px;
    transition: all 0.3s;
}

.btn-ats:hover {
    background: #0056b9;
    color: white !important;
}

/* -----------------------------------------------------
   HERO
-------------------------------------------------------*/
/* HERO MODERNE */
.hero {
    position: relative;
    height: 48vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;

    background: radial-gradient(circle at top left, #1e3a8a, #0f172a);
    background-size: cover;
    overflow: hidden;
}

/* Pattern léger pour l'effet premium */
.hero-overlay {
    position: absolute;
    inset: 0;
    background-image: url("https://www.transparenttextures.com/patterns/cubes.png");
    opacity: 0.15;
}

/* Texte */
.hero-content {
    position: relative;
    z-index: 10;
    max-width: 700px;
    padding: 20px;
}

.hero h1 {
    color: #fff; /* déjà le cas mais on renforce */
    text-shadow: 0 3px 6px rgba(0,0,0,0.4);
}


.hero p {
    font-size: 1.25rem;
    font-weight: 300;
    opacity: 0.9;
    margin-bottom: 30px;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.35); /* 35% */
}

/* CTA */
.btn-primary {
    background: #facc15;
    color: #111;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    transition: 0.25s;
}
.btn-primary:hover {
    background: #fde047;
}

/* Animation */
.fade-in {
    animation: fadeIn 1.5s ease-out forwards;
    opacity: 0;
}

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

/* -----------------------------------------------------
   SECTIONS
-------------------------------------------------------*/

.section {
    padding: 80px 60px;
    max-width: 1300px;
    margin: auto;
}

.section h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 50px;
}

/* -----------------------------------------------------
   GRID / CARDS
-------------------------------------------------------*/

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(270px,1fr));
    gap: 25px;
}

.card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #e5e5e5;
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-4px);
    border-color: #0056b9;
}

/* -----------------------------------------------------
   CONTACT SECTION
-------------------------------------------------------*/

.contact-box {
    text-align: center;
}

.btn-secondary {
    display: inline-block;
    margin-top: 10px;
    padding: 12px 26px;
    background: #0056b9;
    color: white;
    border-radius: 6px;
    text-decoration: none;
}

.btn-secondary:hover {
    background: #003f8f;
}

/* -----------------------------------------------------
   FOOTER
-------------------------------------------------------*/

.footer {
    background: #0e1a25;
    padding: 35px;
    text-align: center;
    margin-top: 40px;
    color: #c9d1d9;
}

.footer a {
    color: #ffcc00;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* -----------------------------------------------------
   RESPONSIVE
-------------------------------------------------------*/

@media (max-width: 768px) {

    .container-header {
        flex-direction: column;
        text-align: center;
    }

    nav {
        margin-top: 15px;
    }

    nav a {
        display: inline-block;
        margin: 10px 15px;
    }

    .hero h1 {
        font-size: 30px;
    }

    .section {
        padding: 50px 25px;
    }
}
/* -----------------------------------------------------
   CONTACT PAGE (NOUVELLE VERSION)
-------------------------------------------------------*/

/* Header Contact */
.contact-header {
    text-align: center;
    padding: 70px 20px 30px;
}
.contact-header h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 10px;
}
.contact-header p {
    font-size: 18px;
    color: #444;
}

/* ==== Ligne de 3 blocs : Email / Tél / RDV ==== */
.info-row {
    max-width: 1100px;
    margin: 50px auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
    padding: 0 20px;
}

.small-card {
    background: #ffffff;
    padding: 25px;
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.07);
    text-align: center;
}
.small-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
    font-weight: 600;
}
.small-card p {
    color: #555;
    line-height: 1.4;
}
.small-card a {
    text-decoration: none;
    color: #4b4bff;
    font-weight: 600;
}

/* ==== Formulaire de Contact ==== */

.contact-form {
    max-width: 900px;
    margin: 40px auto 0;
    background: #ffffff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.contact-form h3 {
    text-align: center;
    font-size: 26px;
    margin-bottom: 25px;
}

.contact-form form {
    display: grid;
    gap: 22px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    border-radius: 10px;
    border: 1px solid #ccc;
    background: #fafafa;
    transition: 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #4b4bff;
    background: #fff;
}

.contact-form textarea {
    min-height: 140px;
}

.contact-form button {
    background: #4b4bff;
    color: #fff;
    padding: 14px 22px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}
.contact-form button:hover {
    background: #3a3aff;
}

/* ==== MAP ==== */

.map-container {
    margin: 60px auto;
    max-width: 1100px;
    padding: 0 20px;
}
.map-container iframe {
    width: 100%;
    height: 380px;
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.07);
}

/* ==== Responsive ==== */

@media (max-width: 768px) {
    .contact-form {
        padding: 25px;
    }
    .contact-header h1 {
        font-size: 32px;
    }
}
/* -----------------------------------------------------
   ANIMATIONS DÉLICATES (fade-in, zoom, slide)
-------------------------------------------------------*/

.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Animation légère des cartes */
.card {
    transition: transform .3s ease, box-shadow .3s ease;
}
.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

/* Animation bouton */
.btn-primary,
.btn-secondary {
    transition: background .3s ease, transform .2s ease;
}
.btn-primary:hover,
.btn-secondary:hover {
    transform: scale(1.04);
}

/* Icônes services plus visibles */
.card-icon {
    font-size: 38px;
    margin-bottom: 12px;
    display: block;
}
/* ===========================
   MENTIONS / CONFIDENTIALITÉ
============================*/

.legal-container {
    max-width: 900px;
    margin: 60px auto;
    padding: 20px;
}

.legal-container h1 {
    font-size: 36px;
    margin-bottom: 25px;
}

.legal-container h2 {
    margin-top: 40px;
    font-size: 24px;
    font-weight: 600;
}

.legal-container p, 
.legal-container ul {
    margin-top: 10px;
    color: #333;
    line-height: 1.7;
}

.legal-container ul {
    padding-left: 20px;
}

.footer-links a {
    color: #ffcc00;
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}
/* ========= PAGE CARRIÈRE (compatibilité) ========= */

.section .grid .card {
    background: #ffffff;       /* visible */
    border: 1px solid #e3e3e3; /* contour */
}

.section .grid {
    margin-top: 40px;
}

.section .grid .card h3 a {
    color: #111 !important;
}

.section .grid .card .resume {
    color: #444 !important;
}

.section .grid .btn {
    display: inline-block;
    background: #0056b9;
    color: #fff !important;
    padding: 10px 18px;
    border-radius: 6px;
    text-decoration: none;
    margin-top: 15px;
}

.section .grid .btn:hover {
    background: #003f8f;
}
/* Correction affichage Carrière */
.grid .card .btn {
    background: #0056b9;
    color: white;
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
}
#careerFrame {
    min-height: 800px;
    width: 100%;
}
