/*
Theme Name: Leb Theme
Theme URI:
Author:
Author URI:
Description: Thème personnalisé pour le projet Levrard
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: leb
Tags: custom-blocks, acf-pro
*/

/* reset */
/* ------------------------------------------------------ */
/* -- VIEWPORT -- */

@viewport{width: device-width;zoom: 1;}
@media screen and (max-width: 400px) {@-ms-viewport { width: device-width; }}
@-webkit-viewport{width: device-width;}
@-moz-viewport{width: device-width;}
@-ms-viewport{width: device-width;}
@-o-viewport{width: device-width;}
@viewport{width: device-width;}

/* ###################################################### */

/* ------------------------------------------------------ */
/* -- FIREFOX BOLD FIX -- */
html {
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    font-smoothing: antialiased;
    font-weight: 300;
}

@-moz-document url-prefix() {
    body { font-weight: lighter !important; }
}

/* ###################################################### */

/* ------------------------------------------------------ */
/* -- RESET / BOXSIZING -- */
* {
    box-sizing: border-box;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-kerning: auto;
}

body,address,article,aside,audio,blockquote,canvas,dd,div,dl,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,header,input,noscript,ol,output,p, pre,section,table,tfoot,ul,video {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    transition:all .2s linear;
    -o-transition:all .2s linear;
    -moz-transition:all .2s linear;
    -webkit-transition:all .2s linear;
    overflow-x:hidden;
}

a{
    text-decoration:none;
}

p:empty{display:none;}
.no-gutter {
    padding-left:0;
    padding-right:0;
}


.container-main-fullw{
    width:96%;max-width:1920px;margin:auto;
}

/*css pour le formulaire */
/**
 * Styles pour le formulaire de contact Levrard
 */

/* Variables */
:root {
    --levrard-red: #E73331;
    --levrard-dark-red: #E73331;
    --levrard-white: #ffffff;
    --levrard-gray: #E9E9E9;
    --levrard-gray-light: #FAEDED;
    --levrard-gray-light-border: #F89494;
    --levrard-dark-gray: #2C2C2C;
    --levrard-current: #2C2C2C;
    --levrard-text: #2C2C2C;
    --levrard-border: #e1e5e9;
    --levrard-secondary: #8BEFFA;
    --levrard-secondary-2: #FA8B2A;
}

/* Container principal */
.contact-form-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--levrard-white);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* En-tête du formulaire */
.form-header {
    background: linear-gradient(135deg, var(--levrard-red), var(--levrard-dark-red));
    color: var(--levrard-white);
    padding: 30px;
    text-align: center;
}

.form-header h3 {
    margin: 0 0 10px 0;
    font-size: 28px;
    font-weight: 700;
}

.form-header p {
    margin: 0;
    font-size: 16px;
    opacity: 0.9;
}

/* Sections du formulaire */
.form-section {
    padding: 25px 30px;
    border-bottom: 1px solid var(--levrard-border);
}

.form-section:last-child {
    border-bottom: none;
}

.form-section h4 {
    margin: 0 0 20px 0;
    color: var(--levrard-dark-gray);
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.form-section h4::before {
    content: "";
    width: 4px;
    height: 20px;
    background: var(--levrard-red);
    margin-right: 12px;
    border-radius: 2px;
}

/* Lignes et colonnes */
.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-row:last-child {
    margin-bottom: 0;
}

.form-col {
    flex: 1;
}

.form-col-full {
    width: 100%;
}

/* Champs de formulaire */
.wpcf7-form-control.form-control {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--levrard-border);
    border-radius: 10px;
    font-size: 16px;
    font-family: inherit;
    color: var(--levrard-text);
    background: var(--levrard-white);
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.wpcf7-form-control.form-control:focus {
    outline: none;
    border-color: var(--levrard-red);
    box-shadow: 0 0 0 3px rgba(233, 57, 52, 0.1);
}

.wpcf7-form-control.form-control::placeholder {
    color: #aaa;
}

/* Select spécifique */
select.wpcf7-form-control.form-control {
    cursor: pointer;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8"><path fill="%23666" d="M6 8L0 2h12z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 12px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

/* Textarea */
textarea.wpcf7-form-control.form-control {
    resize: vertical;
    min-height: 120px;
}

/* Sélecteur d'urgence */
.urgence-selector {
    margin-top: 15px;
    padding: 20px;
    background: #fff5f5;
    border-radius: 10px;
    border: 1px solid #fecaca;
}

.urgence-radio {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.urgence-radio .wpcf7-list-item {
    margin: 0;
    display: flex;
    align-items: center;
    background: var(--levrard-white);
    padding: 10px 15px;
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.urgence-radio .wpcf7-list-item:hover {
    border-color: var(--levrard-red);
    background: #fef2f2;
}

.urgence-radio .wpcf7-list-item input[type="radio"] {
    margin-right: 8px;
    accent-color: var(--levrard-red);
}

.urgence-radio .wpcf7-list-item.selected {
    border-color: var(--levrard-red);
    background: var(--levrard-red);
    color: var(--levrard-white);
}

/* Préférences de contact */
.contact-method,
.time-prefs {
    margin-bottom: 15px;
}

.contact-method .wpcf7-checkbox,
.time-prefs .wpcf7-checkbox {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.contact-checkbox .wpcf7-list-item,
.time-checkbox .wpcf7-list-item {
    margin: 0;
    display: flex;
    align-items: center;
    background: var(--levrard-gray);
    padding: 12px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.contact-checkbox .wpcf7-list-item:hover,
.time-checkbox .wpcf7-list-item:hover {
    background: #e3f2fd;
    border-color: var(--levrard-red);
}

.contact-checkbox .wpcf7-list-item input[type="checkbox"],
.time-checkbox .wpcf7-list-item input[type="checkbox"] {
    margin-right: 8px;
    accent-color: var(--levrard-red);
}

/* Section de consentement */
.consent {
    background: var(--levrard-gray);
}

.consent-checkbox,
.newsletter-checkbox {
    margin-bottom: 15px;
}

.consent-checkbox .wpcf7-list-item,
.newsletter-checkbox .wpcf7-list-item {
    margin: 0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.consent-checkbox input[type="checkbox"],
.newsletter-checkbox input[type="checkbox"] {
    margin-top: 2px;
    accent-color: var(--levrard-red);
}

/* Bouton de soumission */
.form-submit {
    padding: 30px;
    text-align: center;
    background: var(--levrard-gray);
}

.btn-submit {
    background: var(--levrard-red);
    color: var(--levrard-white);
    border: none;
    padding: 16px 40px;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(233, 57, 52, 0.3);
}

.btn-submit:hover {
    background: var(--levrard-dark-red);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(233, 57, 52, 0.4);
}

/* Messages de retour */
.wpcf7-response-output {
    margin: 20px 0;
    padding: 15px 20px;
    border-radius: 10px;
    font-weight: 500;
}

.wpcf7-mail-sent-ok {
    background: #f0f9ff;
    color: #0369a1;
    border: 1px solid #0ea5e9;
}

.wpcf7-mail-sent-ng,
.wpcf7-validation-errors {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #f87171;
}

.wpcf7-spam-blocked {
    background: #fffbeb;
    color: #d97706;
    border: 1px solid #fbbf24;
}

/* Champs en erreur */
.wpcf7-not-valid {
    border-color: #f87171 !important;
    box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.1) !important;
}

.wpcf7-not-valid-tip {
    color: #dc2626;
    font-size: 14px;
    margin-top: 5px;
    font-weight: 500;
}

/* Loader */
.wpcf7-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--levrard-red);
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 15px;
    }

    .contact-form-container {
        margin: 0 15px;
        border-radius: 12px;
    }

    .form-section {
        padding: 20px;
    }

    .form-header {
        padding: 25px 20px;
    }

    .form-header h3 {
        font-size: 24px;
    }

    .urgence-radio,
    .contact-method .wpcf7-checkbox,
    .time-prefs .wpcf7-checkbox {
        flex-direction: column;
        gap: 10px;
    }

    .btn-submit {
        width: 100%;
        padding: 14px 20px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .contact-form-container {
        margin: 0 10px;
    }

    .form-section {
        padding: 15px;
    }

    .form-header {
        padding: 20px 15px;
    }

    .form-header h3 {
        font-size: 20px;
    }
}


/*page contact*/
/**
 * Styles pour la page de contact Levrard
 */

/**
 * Styles pour la page de contact Levrard
 */

/* Variables */
:root {
    --levrard-red: #E73331;
    --levrard-dark-red: #E73331;
    --levrard-white: #ffffff;
    --levrard-gray: #f5f5f5;
    --levrard-dark-gray: #333333;
    --levrard-text: #363636;
    --levrard-border: #e1e5e9;
}

/* Container global */
.contact-page {
    background: var(--levrard-gray);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Actions rapides sous la bannière */
.contact-actions {
    padding: 30px 0;
    background: var(--levrard-white);
    border-bottom: 1px solid var(--levrard-border);
}

.contact-actions .quick-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-emergency,
.btn-devis {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-emergency {
    background: var(--levrard-red);
    color: var(--levrard-white);
}

.btn-emergency:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(233, 57, 52, 0.3);
    color: var(--levrard-white);
}

.btn-devis {
    background: var(--levrard-white);
    color: var(--levrard-red);
    border: 2px solid var(--levrard-red);
}

.btn-devis:hover {
    background: var(--levrard-red);
    color: var(--levrard-white);
    transform: translateY(-2px);
}

.btn-emergency i,
.btn-devis i {
    font-size: 20px;
}

.btn-emergency span,
.btn-devis span {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.btn-emergency strong {
    font-size: 16px;
}

.btn-emergency small {
    font-size: 14px;
    opacity: 0.9;
}

/* Section principale */
.contact-main {
    padding: 80px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: start;
}

/* Section informations */
.contact-info-section {
    background: var(--levrard-white);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    height: fit-content;
    position: sticky;
    top: 20px;
}

.info-block {
    display: flex;
    gap: 15px;
    margin-bottom: 35px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--levrard-border);
}

.info-block:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.info-icon {
    width: 50px;
    height: 50px;
    background: var(--levrard-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--levrard-white);
    font-size: 20px;
    flex-shrink: 0;
}

.emergency-info .info-icon {
    background: #ff6b35;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.info-content h3 {
    margin: 0 0 8px 0;
    color: var(--levrard-dark-gray);
    font-size: 18px;
    font-weight: 600;
}

.info-content p {
    margin: 0 0 10px 0;
    color: #666;
    font-size: 14px;
}

.info-phone {
    color: var(--levrard-red);
    font-weight: 700;
    font-size: 18px;
    text-decoration: none;
}

.info-phone:hover {
    text-decoration: underline;
}

.horaires p {
    margin: 5px 0;
    font-size: 14px;
}

.zone-list {
    list-style: none;
    padding: 0;
    margin: 10px 0 0 0;
}

.zone-list li {
    padding: 4px 0;
    font-size: 14px;
    color: #666;
}

.zone-list li::before {
    content: "📍";
    margin-right: 8px;
}

/* Section agences */
.agences-section {
    padding: 80px 0;
    background: var(--levrard-white);
}

.agences-section h2 {
    text-align: center;
    font-size: 36px;
    margin: 0 0 15px 0;
    color: var(--levrard-dark-gray);
}

.section-subtitle {
    text-align: center;
    font-size: 18px;
    color: #666;
    margin: 0 0 50px 0;
}

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

.agence-card {
    background: var(--levrard-gray);
    border-radius: 12px;
    padding: 25px;
    position: relative;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.agence-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--levrard-red);
}

.main-agence {
    background: linear-gradient(135deg, #fff5f5, #fef2f2);
    border-color: var(--levrard-red);
}

.main-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: var(--levrard-red);
    color: var(--levrard-white);
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
}

.agence-card h3 {
    margin: 0 0 20px 0;
    color: var(--levrard-dark-gray);
    font-size: 20px;
}

.agence-address,
.agence-phone,
.agence-coverage {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 14px;
}

.agence-address i,
.agence-phone i,
.agence-coverage i {
    color: var(--levrard-red);
    margin-top: 2px;
    width: 16px;
}

.agence-phone a {
    color: var(--levrard-red);
    text-decoration: none;
    font-weight: 600;
}

.agence-phone a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 968px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-info-section {
        position: static;
        order: -1;
    }
}
@media (max-width: 768px) {
    .contact-actions .quick-actions {
        flex-direction: column;
        align-items: center;
    }

    .btn-emergency,
    .btn-devis {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .contact-main,
    .agences-section {
        padding: 50px 0;
    }

    .contact-info-section {
        padding: 25px;
    }

    .agences-section h2 {
        font-size: 28px;
    }
}
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .contact-actions {
        padding: 20px 0;
    }

    .info-block {
        flex-direction: column;
        gap: 10px;
    }

    .info-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .agence-card {
        padding: 20px;
    }
}
@media (max-width: 768px) {
    /* NIVEAU 1 : Grid principal */
    .contact-grid {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 10px !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    /* NIVEAU 2 : Section formulaire */
    .contact-form-section {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }

    /* NIVEAU 3 : Wrapper Contact Form 7 */
    .wpcf7 {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }

    /* NIVEAU 4 : Form wrapper */
    .wpcf7-form {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }

    /* NIVEAU 5 : Container final */
    .contact-form-container {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
        border-radius: 12px !important;
    }

    /* Form header et sections - paddings réduits */
    .form-header {
        padding: 20px 15px !important;
        box-sizing: border-box !important;
    }

    .form-section {
        padding: 20px 15px !important;
        box-sizing: border-box !important;
    }

    .form-submit {
        padding: 25px 15px !important;
        box-sizing: border-box !important;
    }

    /* Contact info aussi */
    .contact-info-section {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 20px 15px !important;
        box-sizing: border-box !important;
        position: static !important;
    }

    /* Form rows en colonne */
    .form-row {
        flex-direction: column !important;
        gap: 15px !important;
        margin-bottom: 15px !important;
    }
}
.factu {
    margin-top: 2%;
}