/*
 Theme Name:     Divi Child ADFI
 Theme URI:      https://www.elegantthemes.com/gallery/divi/
 Description:    Thème enfant pour le site ADFI Alsace
 Author:         Claudia
 Template:       Divi
 Version:        1.0.0
*/

/* ==========================================================================
   1. VARIABLES & BASE
   ========================================================================== */
:root {
    --primary: #09467f;
    --accent-red: #d1675d;
    --accent-orange: #F7942E;
    --accent-green: #2ecc71;
    --text-main: #2d3748;
    --shadow-soft: 0 10px 40px rgba(0,0,0,0.06);
    --radius-lg: 20px;
    --radius-md: 12px;
}

.adfi-content-wrapper {
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    max-width: 1000px;
    margin: 40px auto;
    color: var(--text-main);
    padding: 0 24px;
    line-height: 1.7;
}

/* ==========================================================================
   2. TYPOGRAPHIE & EFFETS MARQUEURS
   ========================================================================== */
h1, h2, h3 { color: #1a202c; letter-spacing: -0.02em; }

.title-red, .title-green, .title-blue, .card-title, .highlight-alert, .title-adfi {
    position: relative;
    display: inline-block;
    z-index: 1;
}

.title-red::after, .title-green::after, .title-blue::after, .title-adfi::after,
.card-title::after, .highlight-alert::after {
    content: "";
    position: absolute;
    left: -2px; bottom: -3px;
    width: 105%; height: 8px;
    z-index: -1; opacity: 0.5;
    border-radius: 10px;
    transform: rotate(-1deg);
}

.title-adfi::after, .highlight-alert::after { background: var(--accent-orange); }
.title-red::after { background: var(--accent-red); }
.title-green::after { background: var(--accent-green); }
.title-blue::after { background: var(--primary); }

.adfi-title-box { text-align: center; padding: 60px 0; }
.keyword { position: relative; font-weight: 800; }
.keyword::after { content: ""; position: absolute; left: 0; bottom: 8px; width: 100%; height: 12px; z-index: -1; opacity: 0.3; }
.informe::after { background: var(--primary); }
.accompagne::after { background: var(--accent-green); }
.soutient::after { background: var(--accent-red); }

/* ==========================================================================
   3. CARTES & GRILLES
   ========================================================================== */
.adfi-container, .trust-row, .signs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.adfi-card, .trust-card {
    background: #fff;
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
}

.sign-item {
    background: #fff;
    border-left: 6px solid var(--primary);
    padding: 25px;
    border-radius: var(--radius-md);
    box-shadow: 4px 4px 20px rgba(0,0,0,0.03);
}

/* ==========================================================================
   4. QUESTIONNAIRE - JAUGE PLEINE COULEUR FIXE
   ========================================================================== */
.evaluation-widget {
    display: flex;
    align-items: stretch; 
    gap: 20px;
    background: #f8fafc;
    border: 1px solid #fff;
    padding: 25px;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    margin: 30px 0;
}

.gauge-wrapper {
    display: flex;
    width: 12px; 
    flex-shrink: 0;
}

.gauge-track {
    flex-grow: 1;
    background: #e2e8f0;
    border-radius: 50px;
    transition: background-color 0.4s ease;
    box-shadow: inset 1px 1px 3px rgba(0,0,0,0.05);
}

.check-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px;
    background: white;
    border-radius: 10px;
    border: 1px solid transparent;
    transition: 0.2s;
    cursor: pointer;
    font-size: 0.9rem;
}

.row:hover { border-color: #e2e8f0; background: #fff; }

.q-check {
    width: 18px; height: 18px;
    accent-color: var(--primary);
    flex-shrink: 0;
    margin-top: 2px;
}

/* ==========================================================================
   5. ÉTAPES, FORMATION & BANNIÈRES
   ========================================================================== */
.steps-container { list-style: none; padding: 0; }
.step-box { display: flex; align-items: center; gap: 25px; background: white; padding: 30px; border-radius: var(--radius-lg); margin-bottom: 20px; box-shadow: var(--shadow-soft); }
.step-number { background: var(--primary); color: white; width: 45px; height: 45px; border-radius: 15px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.2rem; flex-shrink: 0; }

.modules-table { width: 100%; border-radius: var(--radius-md); overflow: hidden; border-collapse: separate; border-spacing: 0; box-shadow: var(--shadow-soft); margin: 30px 0; }
.modules-table th { background: var(--primary); color: white; padding: 18px; text-align: left; }
.modules-table td { background: white; padding: 18px; border-bottom: 1px solid #f0f0f0; font-size: 0.95rem; }


/* --- SECTION FORMATION : LOOK PRO & MODERNE --- */

/* Timeline du programme */
.program-timeline {
    position: relative;
    margin: 30px 0;
    padding-left: 30px;
    border-left: 3px solid var(--primary);
}

.program-step {
    position: relative;
    margin-bottom: 25px;
    background: white;
    padding: 20px;
    border-radius: var(--radius-md);
    box-shadow: 4px 4px 15px rgba(0,0,0,0.03);
}

.program-step::before {
    content: "";
    position: absolute;
    left: -38px;
    top: 25px;
    width: 14px;
    height: 14px;
    background: var(--primary);
    border-radius: 50%;
    border: 3px solid white;
}

/* Grille des thématiques (Remplace le tableau) */
.themes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.theme-item {
    background: white;
    padding: 25px;
    border-radius: var(--radius-md);
  
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease;
}

.theme-item:hover { transform: translateY(-5px); }

.theme-item h4 { 
    color: var(--primary); 
    margin-bottom: 10px; 
    font-size: 1.1rem;
}

/* Badge de durée/public */
.info-badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 15px 0;
}

.info-badge {
    background: #eef2f7;
    color: var(--primary);
    padding: 6px 15px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Note Pro stylisée */
.note-pros {
    background: linear-gradient(to right, #f8fafc, #ffffff);
    border-left: 5px solid var(--accent-orange);
    padding: 25px;
    border-radius: var(--radius-md);
    font-style: italic;
    box-shadow: var(--shadow-soft);
}






/* ==========================================================================
   7. RESPONSIVE (MOBILE)
   ========================================================================== */
@media (max-width: 768px) {
    .evaluation-widget {
        gap: 12px;
        padding: 15px;
    }
    .gauge-wrapper { width: 8px; }
    .row { font-size: 0.82rem; padding: 8px; }
}

#logo {
	max-height:95%!important;
}

@media (min-width: 768px) {

	nav#top-menu-nav, #top-menu, nav.et-menu-nav, .et-menu {
		float: left;
		display: flex;
		align-items: baseline;
	}

	.adfi-btn-menu {
		display: inline;
		padding: 10px;
		z-index: 1000;
	}

	.adfi-btn-menu btn{
		cursor:pointer;
	}

}

@media (max-width: 980px) {
  .et_header_style_left #logo {
    max-width: 30%;
  }
	.btn-hover {
		font-size:11px!important;
	}
	#et-top-navigation {
		padding-left:0px!important;
	}
}

/* ==========================================================================
   6. BOUTONS MODERNES (EFFET BRUSH / SWIPE)
   ========================================================================== */

.btn-hover {
font-size: 16px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  text-align: center;
  border: none;
  background-size: 300% 100%;
  border-radius: 50px;
  moz-transition: all .4s ease-in-out;
  -o-transition: all .4s ease-in-out;
  -webkit-transition: all .4s ease-in-out;
  transition: all .4s ease-in-out;
  padding: 10px;
  margin: 0px 10px;
}

.btn-hover:hover {
    background-position: 100% 0;
    moz-transition: all .4s ease-in-out;
    -o-transition: all .4s ease-in-out;
    -webkit-transition: all .4s ease-in-out;
    transition: all .4s ease-in-out;
}

.btn-hover:focus {
    outline: none;
}

.btn-hover.color-4 {
    background-image: linear-gradient(to right, #fc6076, #ff9a44, #ef9d43, #e75516);
    box-shadow: 0 4px 15px 0 rgba(252, 104, 110, 0.75);
}
.btn-hover.color-10 {
        background-image: linear-gradient(to right, #ed6ea0, #ec8c69, #f7186a , #FBB03B);
    box-shadow: 0 4px 15px 0 rgba(236, 116, 149, 0.75);
}


.underlined {
	color: black;
  flex: 1;
  font-size: 1.2em;
  line-height: 1.2;
  text-decoration: none;
  background-image: linear-gradient(to right,yellow 0,yellow 100%);
  background-position: 0 1.2em;
  background-size: 0 100%;
  background-repeat: no-repeat;
  transition: background 0.5s;
  padding: 10px 5px;
    padding-left: 5px;
  font-weight: 600;
  background-color: #f7942e0d;
  border-radius: 40px;
  padding-left: 15px;
}
.underlined:hover {
  background-size: 100% 100%;
}

.underlined--gradient {
  background-position: 0 -0.1em;
  background-image: linear-gradient(to right,yellow 0,#f7942e0d 100%);
}


/* ==========================================================================
FORMULAIRES    ========================================================================== */

.wpcf7 {
    max-width: 700px;
    margin: 30px auto;
    background: #ffffff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.06);
}

.wpcf7 label {
    display: block;
    font-weight: 700;
    color: #09467f;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.wpcf7-form-control:not(.wpcf7-submit) {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background-color: #f8fafc;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.wpcf7-form-control:not(.wpcf7-submit):focus {
    outline: none;
    border-color: #09467f;
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(9, 70, 127, 0.1);
}

.wpcf7-textarea {
    min-height: 150px;
    resize: vertical;
}

.wpcf7-select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2309467f' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
}

.wpcf7-submit {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 14px 40px !important;
    border-radius: 100px !important;
    text-transform: uppercase !important;
    font-weight: 700 !important;
    font-size: 0.85rem !important;
    letter-spacing: 1px !important;
    cursor: pointer !important;
    border: none !important;
    background: #09467f !important;
    color: white !important;
    transition: all 0.4s ease !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important;
    width: auto !important;
    margin-top: 10px !important;
}

.wpcf7-submit:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 25px rgba(9, 70, 127, 0.25) !important;
    background: #073561 !important;
}

.wpcf7-response-output {
    margin: 20px 0 0 0 !important;
    padding: 15px !important;
    border-radius: 12px !important;
    border: none !important;
    font-size: 0.9rem !important;
    text-align: center !important;
}

.wpcf7-mail-sent-ok { background: #d4edda !important; color: #155724 !important; }
.wpcf7-validation-errors { background: #f8d7da !important; color: #721c24 !important; }
.wpcf7 p br { display: none !important; }







/* ==========================================================================
   FOOTER MODERN ADFI
   ========================================================================== */
.adfi-footer, .footer-grid, .footer-bottom {
    background-color: #1a202c; /* Gris très foncé pour le contraste */
    color: #e2e8f0!important;
    padding: 10px 0 30px 0;
    margin-top: 80px;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-title {
    color: #ffffff;
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background: var(--accent-orange); /* Rappel de votre couleur ADFI */
}

/* Liens du footer */
.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #cbd5e0;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--accent-orange);
}

/* Zone urgence */
.footer-emergency {
    margin-top: 20px;
    background: rgba(209, 103, 93, 0.2); /* Fond rouge très léger */
    border: 1px solid var(--accent-red);
    padding: 10px 15px;
    border-radius: 8px;
    color: #feb2b2;
    display: inline-block;
    font-weight: 700;
}

.footer-legal-mention {
    margin-top: 15px;
    font-size: 0.8rem;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    text-align: center;
    font-size: 0.8rem;
    opacity: 0.6;
}

/* Responsive */
@media (max-width: 768px) {
    .adfi-footer {
        text-align: center;
    }
    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
}
