/*
 Theme Name: Astra Child
 Template: astra
 Description: Thème enfant Astra pour Clovis Conseil et assurances
 Author: Sébastien LECH
 Version: 1.0.0
*/

/* -------------------------------------------------------------
   PALETTE DE COULEURS
------------------------------------------------------------- */
:root {
    --blue-dark: #0A3A75;
    --blue-main: #1E6CD3;
    --blue-light: #4BA7FF;
    --grey-text: #6B6B6B;
    --blue-soft: #F4F8FF;
    --blue-verysoft: #E9F3FF;
    --white: #FFFFFF;
}

/* -------------------------------------------------------------
   TYPOGRAPHIE
------------------------------------------------------------- */
body {
    font-family: 'Montserrat', sans-serif;
    color: var(--grey-text);
    font-size: 15px;
}

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

h1 { font-size: 32px; }
h2 { font-size: 26px; }
h3 { font-size: 20px; }

p {
    font-size: 15px;
    line-height: 1.55;
}

.section-blue h3,
.section-blue h2,
.section-blue .title {
    color: #ffffff !important;
}

/* -------------------------------------------------------------
   BOUTONS
------------------------------------------------------------- */
a.btn-primary {
    background: var(--blue-main);
    color: #fff !important;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 15px;
    text-decoration: none;
    display: inline-block;
    transition: .3s;
}


a.btn-primary:hover {
    background: var(--blue-light);
}

a.btn-outline {
    border: 2px solid var(--blue-main);
    color: var(--blue-dark) !important;
    padding: 10px 22px;
    border-radius: 6px;
    font-size: 15px;
    text-decoration: none;
    display: inline-block;
    transition: .3s;
}

a.btn-outline:hover {
    background: var(--blue-main);
    color: #fff !important;
}

/* -------------------------------------------------------------
   ANIMATIONS ON SCROLL
------------------------------------------------------------- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: .8s ease-out;
}

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

/* -------------------------------------------------------------
   STRUCTURE DES SECTIONS
------------------------------------------------------------- */
.section {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (max-width: 768px) {
    .section {
        padding: 60px 0;  /* Version mobile */
    }
}

.section-fullscreen {
    padding: 40px 18px !important;
}

.section-blue {
    background: var(--blue-dark);
    padding: 40px 18px !important;
    color: #fff;
}

/* -------------------------------------------------------------
   CARTES
------------------------------------------------------------- */


.card {
    background: #FFFFFF;
    border-radius: 14px;
    width: 300px;
    padding: 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
}

/* Titre */
.card-title {
    font-size: 20px;
    margin-bottom: 15px;
}

/* Zone image centrée */
.card-image-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 10px 0 15px;
}

/* Image */
.card-image {
    width: 160px;
    height: 110px;
    object-fit: cover;
    border-radius: 10px;
}

/* Texte */
.card-text {
    font-size: 15px;
    color: var(--grey-text);
    line-height: 1.5;
}



/* -------------------------------------------------------------
   PARTENAIRES
------------------------------------------------------------- */
/* Section partenaires */
.partners-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
    padding: 20px 10px;
}

.partners-container img {
    max-width: 150px;         /* Taille idéale */
    opacity: 0.9;
    transition: 0.3s ease;
    filter: grayscale(30%);   /* effet pro */
}

.partners-container img:hover {
    opacity: 1;
    transform: scale(1.05);
    filter: grayscale(0%);
}

/* Responsive */
@media (max-width: 768px) {
    .partners-container img {
        max-width: 110px;
    }
}



/* -------------------------------------------------------------
   TIMELINE
------------------------------------------------------------- */
.timeline-step {
    text-align: center;
    width: 260px;
}

.timeline-step .num {
    font-size: 40px;
    color: var(--blue-main);
    font-weight: 700;
}

/* -------------------------------------------------------------
   FORMULAIRE - CENTRAGE & STYLE
------------------------------------------------------------- */
#contact .form-box,
.wpforms-container,
.wpcf7 {
    max-width: 600px !important;
    width: 100%;
    margin: 0 auto !important;
    display: block !important;
}

#contact .form-box p,
.wpcf7 p,
.wpforms-container p {
    text-align: center !important;
}

/* -------------------------------------------------------------
   POP-UP CONTACT
------------------------------------------------------------- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.55);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Conteneur pop-up */
.modal-container {
    background: #ffffff;
    width: 90%;
    max-width: 550px;
    padding: 32px 36px;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    animation: modalFade .25s ease-out;
}

/* Bouton fermer */
.modal-close {
    float: right;
    cursor: pointer;
    font-size: 34px;
    color: var(--blue-dark);
    margin-top: -10px;
}

/* Animation d’apparition */
@keyframes modalFade {
    from { opacity: 0; transform: translateY(25px); }
    to { opacity: 1; transform: translateY(0); }
}

/* -------------------------------------------------------------
   BOUTON TÉLÉPHONE FLOTTANT
------------------------------------------------------------- */
.phone-fixed {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background: var(--blue-main);
    color: #fff !important;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 28px;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    z-index: 9999;
    transition: 0.2s ease-out;
}

.phone-fixed:hover {
    background: var(--blue-light);
    transform: scale(1.08);
}

/* Responsive mobile */
@media(max-width: 768px) {
    .phone-fixed {
        width: 55px;
        height: 55px;
        font-size: 26px;
        bottom: 18px;
        right: 18px;
		top: auto;
    }
}

/* -------------------------------------------------------------
   RESPONSIVE GÉNÉRAL
------------------------------------------------------------- */
@media(max-width: 900px) {
    h1 { font-size: 26px; }
    h2 { font-size: 22px; }

    .card {
        width: 100%;
        max-width: 320px;
        margin: auto;
    }

    .timeline-step {
        width: 100%;
        margin-bottom: 40px;
    }

    .section-fullscreen {
        padding: 50px 15px;
    }
}

@media(max-width: 600px) {
    .modal-container {
        padding: 22px 20px;
        border-radius: 14px;
    }
}

/* -------------------------------------------------------------
   POPUP TÉLÉPHONE 
------------------------------------------------------------- */
/* Popup téléphone plus compacte */
#phonePopup .modal-container.phone-modal {
    max-width: 450px !important;
    width: 90% !important;
    padding: 24px 24px !important;
    border-radius: 18px !important;
    text-align: center;
}

#phonePopup h2 {
    font-size: 26px !important;
    margin-bottom: 10px !important;
}

#phonePopup p {
    font-size: 16px !important;
    margin-bottom: 16px !important;
}

#phonePopup .btn-primary {
    font-size: 16px !important;
    padding: 10px 22px !important;
}

#phonePopup .modal-close {
    font-size: 22px !important;
    margin-top: -5px;
}

/* =========================================
   STYLE FORMULAIRE DEMANDE DE CONSEIL
   ========================================= */

/* Conteneur principal du formulaire */
.clovis-form-container {
    max-width: 850px;
    margin: 40px auto;
    padding: 40px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 25px rgba(0,0,0,0.08);
}

/* Alignement des champs sur une grille fluide */
.clovis-form-container .ff-el-group {
    margin-bottom: 22px !important;
}

/* Les deux champs "Prénom" et "Nom" côte à côte */
.clovis-form-container .ff-name-first-last .ff-el-group {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.clovis-form-container .ff-name-first-last .ff-el-group > div {
    width: 100%;
}

/* Alignement des labels */
.clovis-form-container label {
    font-weight: 600;
    margin-bottom: 6px !important;
    display: block;
}

/* Style propre sur les inputs */
.clovis-form-container input[type="text"],
.clovis-form-container input[type="email"],
.clovis-form-container input[type="number"],
.clovis-form-container textarea,
.clovis-form-container select {
    width: 100%;
    padding: 10px 14px !important;
    border: 1px solid #d1d1d1;
    border-radius: 6px;
    font-size: 16px;
}

/* 2 colonnes pour toutes les options radio / checkbox de ce groupe */
.clovis-form-container .situation-familiale .ff-el-input--content {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 10px 40px;
}

/* Style des checkbox et radio – alignement propre */
.clovis-form-container .ff-el-input--content {
    display: flex;
    flex-wrap: wrap;
    gap: 18px 40px; /* espacement vertical / horizontal */
}

.clovis-form-container .ff-el-input--content label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

/* Améliorer l’affichage des groupes comme Situation, Famille… */
.clovis-form-container .ff-el-group .ff-el-input--label {
    margin-bottom: 10px;
    display: block;
    font-weight: 600;
}

/* Bouton Envoyer */
.clovis-form-container .ff-btn-submit {
    background: #0A3A75 !important;
    color: #fff !important;
    border-radius: 8px !important;
    padding: 14px 30px !important;
    font-size: 18px !important;
    border: none !important;
    cursor: pointer;
}

.clovis-form-container .ff-btn-submit:hover {
    background: #072a56 !important;
}
.floating-phone-button {
    position: fixed;
    top: 260px;
    right: 50px;
    z-index: 9999;
    background-color: #1663db;
    color: white;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    font-size: 24px;
    transition: transform 0.2s ease;
	justify-content: center;
	background: #1663db;
	font-size: 40px; /* 🔁 ajuste ici pour agrandir ou réduire */
}

.floating-phone-button:hover {
    transform: scale(1.1);
    background-color: #095ab5;
}


/* Tuiles modales */
.modal-overlay {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    position: relative;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    animation: fadeIn 0.3s ease-in-out;
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.modal-close:hover {
    color: #000;
}

.modal-overlay.show {
    display: flex;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}
@media (max-width: 768px) {
    .floating-phone-button {
        width: 56px;
        height: 56px;
        font-size: 24px;
        bottom: 20px;
        right: 20px;
        top: auto; /* Ne garde plus la position haute */
    }
}
.expertises-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}
@media (max-width: 1024px) {
    .expertises-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .expertises-grid {
        grid-template-columns: 1fr;
    }
}
/* =========================================================
   CENTRAGE PARFAIT DES TUILES EXPERTISES
   ========================================================= */

#expertises > div {
    display: grid !important;
    grid-template-columns: repeat(4, 300px);
    gap: 40px;

    justify-content: center;   /* ⬅️ clé du centrage */
    align-content: center;

    margin: 0 auto;
    padding: 20px 0;
}

/* Les cartes gardent leur largeur naturelle */
#expertises .card {
    width: 300px !important;
}
@media (max-width: 1200px) {
    #expertises > div {
        grid-template-columns: repeat(2, 300px);
    }
}

@media (max-width: 700px) {
    #expertises > div {
        grid-template-columns: 1fr;
    }

    #expertises .card {
        width: 100% !important;
        max-width: 320px;
    }
}
