/*
Theme Name: the7dtchild
Author: Dream-Theme
Author URI: http://dream-theme.com/
Description: The7 is perfectly scalable, performance and SEO optimized, responsive, retina ready multipurpose WordPress theme. It will fit every site – big or small. From huge corporate portals to studio or personal sites – The7 will become a great foundation for your next project!
Version: 1.0.0
License: This WordPress theme is comprised of two parts: (1) The PHP code and integrated HTML are licensed under the GPL license as is WordPress itself.  You will find a copy of the license text in the same directory as this text file. Or you can read it here: http://wordpress.org/about/gpl/ (2) All other parts of the theme including, but not limited to the CSS code, images, and design are licensed according to the license purchased. Read about licensing details here: http://themeforest.net/licenses/regular_extended
Template: dt-the7
*/

/* =========
   Layout global
   ========= */

.section {
  padding: 2.5rem 0;
}

.section .container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* =========
   Typo chapo
   ========= */

.chapo {
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 52rem;
  margin-bottom: 2rem;
  color: rgba(0, 0, 0, 0.8);
}

/* =========
   Grilles & cartes
   ========= */

.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Variante grille inversée (image à gauche, texte à droite) sur desktop */
@media (min-width: 992px) {
  /* On bascule les grilles en flex pour mieux contrôler l'ordre des colonnes */
  .grid {
    display: flex;
    gap: 2rem;
  }

  .grid-2 {
    display: flex;
  }

  .grid-2 > * {
    flex: 1 1 0;
  }

  .grid-reverse {
    flex-direction: row-reverse;
  }

  /* Forcer grid-3 et grid-4 à garder leur comportement grid */
  .grid-3,
  .grid-4 {
    display: grid; /* Force le mode grille sur desktop */
  }
}

.card {
  background: #fff;
  border: 1px solid #e3e3e3;
  padding: 1.5rem;
  border-radius: 6px;
  text-align: center;
}
.card .btn-primary {
  margin-top: 1rem;
}

/* =========
   Visuels (images)
   ========= */

.visuel {
  margin: 0;
}

.visuel img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
  object-fit: cover;
}

/* =========
   Processus de réalisation
   ========= */

.section.processus {
  margin-bottom: 2.5rem;
}

/* Texte d'intro du processus */
.section.processus > .container > p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* Timeline verticale */
.processus-steps {
  position: relative;
  display: grid;
  gap: 1.8rem;
  grid-template-columns: 1fr;
  margin-top: 1.5rem;
  margin-bottom: 2.5rem;
  padding-left: 2.5rem;
}

.processus-steps::before {
  content: "";
  position: absolute;
  left: 1rem;
  top: 0.3rem;
  bottom: 0.3rem;
  width: 2px;
  background: #e3e3e3;
}

.processus-step {
  position: relative;
  text-align: left;
  font-size: 1rem; /* ← Taille de base cohérente */
  line-height: 1.6;
}

.processus-step::before {
  content: "";
  position: absolute;
  left: -1.9rem;
  top: 0.35rem;
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 999px;
  background: #9ab400;
}

.processus-step h4 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.1rem; /* ← Légèrement plus grand pour les titres */
  font-weight: 600;
  color: #333;
}

.processus-step p {
  margin: 0;
  font-size: 1rem; /* ← Même taille que le texte direct */
  line-height: 1.6;
  color: rgba(0, 0, 0, 0.75);
}

/* Responsif */
@media (max-width: 768px) {
  .section {
    padding: 2rem 0;
  }

  .processus-steps {
    padding-left: 2rem;
  }
  
  .processus-step::before {
    left: -1.4rem;
  }
}

/* =========
   Boutons
   ========= */

.btn-primary {
  display: inline-block;
  padding: 0.9rem 1.8rem;
  background: #9ab400;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  transition: background 0.2s ease;
}

.btn-primary:hover {
  background: #7d9300;
}

/* Bloc générique de CTA AMD */
.cta-amd {
  margin-top: 1.5rem;
}

/* Variantes d’alignement */
.cta-amd--center {
  text-align: center;
}

.cta-amd--right {
  text-align: right;
}


/* =========
   CTA final
   ========= */

.section.cta-final {
  text-align: center;
  background: #233026;
  color: #ffffff;
}

.section.cta-final .container {
  max-width: 900px;
}

/* Force la couleur du H2 dans le CTA, même à l'intérieur des wrappers Elementor/The7 */
.section.cta-final h2,
.section.cta-final .container h2,
.section.cta-final .content h2 {
  color: #ffffff !important;
}

.section.cta-final h3 {
  color: #ffffff; !important;
}

.section.cta-final p {
  color: #ffffff;
}

/* =========
   Blockquote (témoignage)
   ========= */

blockquote {
  border-left: 4px solid #9ab400;
  margin: 0;
  padding: 1rem 1.5rem;
  background: #f9faf4;
}

/* =========
   Responsif
   ========= */

@media (max-width: 992px) {
  .grid-2,
  .grid-3,
  .grid-4,
  .processus-steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 2rem 0;
  }
}

/* ====== FAQ AMD (bloc RankMath) ====== */

.section.faq {
  background: #f9faf4;
}

.section.faq .container {
  max-width: 900px;
}

/* Liste globale */
.faq-section {
  margin-top: 2rem;
}

.rank-math-list {
  margin: 0;
  padding: 0;
}

/* Un item de FAQ */
.rank-math-list-item {
  border-bottom: 1px solid #e3e3e3;
  padding: 1.25rem 0;
}

/* Question */
.rank-math-question {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  cursor: pointer; /* utile pour l’accordéon */
}

/* Réponse */
.rank-math-answer {
  font-size: 0.98rem;
  line-height: 1.6;
  color: rgba(0, 0, 0, 0.8);
}

/* Dernier item sans bordure */
.rank-math-list-item:last-child {
  border-bottom: none;
}

/* État replié par défaut (géré par JS) */
.rank-math-answer.is-collapsed {
  display: none;
}

/* Question cliquable + état ouvert */
.rank-math-question {
  position: relative;
  padding-right: 1.5rem;
}

.rank-math-question.is-open {
  color: #9ab400;
}

/* Petit indicateur + / - à droite (optionnel) */
.rank-math-question::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0;
}

.rank-math-question.is-open::after {
  content: "−";
}

/* Grille 2 colonnes pour certains champs CF7 */
.wpcf7 .wpcf7-form .form-grid-2col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem 2rem;
  margin-bottom: 1.5rem;
}

/* Empêcher les <p> internes de casser la grille (Elementor / theme) */
.wpcf7 .wpcf7-form .form-grid-2col p {
  margin: 0;
}

/* Forcer les labels à se comporter comme des blocs */
.wpcf7 .wpcf7-form .form-grid-2col label {
  display: block;
}

/* Mobile : 1 colonne */
@media (max-width: 768px) {
  .wpcf7 .wpcf7-form .form-grid-2col {
    grid-template-columns: 1fr;
  }
}

/* Grille 3 colonnes (si utilisée) */
.wpcf7 .wpcf7-form .form-grid-3col {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

/* =========
   Section qualification (bloc info en haut de page produit)
   ========= */

.section-qualification {
  background: #f9faf4;
  padding: 2rem 0;
}

.qualification-block {
  background: #fffdf0;
  border-left: 4px solid #9ab400;
  padding: 1.5rem 2rem;
  border-radius: 6px;
}

.qualification-block h2 {
  font-size: 1.4rem;
  color: #333;
  margin-top: 0;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.qualification-block .chapo {
  font-size: 1rem;
  margin-bottom: 1.25rem;
}

/* =========
   Checklist (liste avec checkmarks)
   ========= */

.checklist {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1.5rem;
}

ul.checklist {
  list-style: none;
  margin: 0;
  padding-left: 0;
}

.checklist li {
  position: relative;
  padding: 0.6rem 0 0.6rem 2rem;
  line-height: 1.6;
}

.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.6rem;
  color: #9ab400;
  font-weight: bold;
  font-size: 1.2rem;
}

/* =========
   Note légale (texte discret)
   ========= */

.legal-note {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.5;
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  background: rgba(154, 180, 0, 0.05);
  border-radius: 4px;
}

/* =========
   Lien info (lien discret avec flèche)
   ========= */

.link-info {
  margin-bottom: 0;
}

.link-info a {
  color: #9ab400;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.link-info a:hover {
  color: #7d9300;
  text-decoration: underline;
}

/* =========
   Responsif
   ========= */

@media (max-width: 768px) {
  .section-qualification {
    padding: 1.5rem 0;
  }
  
  .qualification-block {
    padding: 1.25rem 1.5rem;
  }
  
  .qualification-block h2 {
    font-size: 1.2rem;
  }
}

/* =========
   Tableau comparatif
   ========= */

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.comparison-table thead {
  background: #9ab400;
  color: #fff;
}

.comparison-table th {
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 1rem;
}

.comparison-table td {
  padding: 1rem;
  border-bottom: 1px solid #e3e3e3;
  font-size: 0.95rem;
  line-height: 1.6;
}

.comparison-table tbody tr:last-child td {
  border-bottom: none;
}

.comparison-table tbody tr:hover {
  background: #f9faf4;
}

/* Responsive */
@media (max-width: 768px) {
  .comparison-table {
    font-size: 0.85rem;
  }
  
  .comparison-table th,
  .comparison-table td {
    padding: 0.75rem 0.5rem;
  }
}

/* Wrapper de scroll horizontal si besoin */
.table-responsive {
  overflow-x: auto;
}

/* Mode cartes sur très petit écran */
@media screen and (max-width: 600px) {
  .comparison-table {
    width: 100%;
    border-radius: 0;
    box-shadow: none;
  }

  .comparison-table thead {
    display: none;
  }

  .comparison-table tbody tr {
    display: block;
    margin-bottom: 1rem;
    border: 1px solid #e3e3e3;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
  }

  .comparison-table td {
    display: block;
    text-align: right;
    border-bottom: 1px solid #e3e3e3;
    padding: 0.5rem 0.75rem 0.5rem 50%;
    position: relative;
  }

  .comparison-table tbody tr:last-child td {
    border-bottom: 1px solid #e3e3e3;
  }

  .comparison-table td::before {
    content: attr(data-label);
    position: absolute;
    left: 0.75rem;
    top: 0;
    bottom: 0;
    width: 45%;
    display: flex;
    align-items: center;
    font-weight: 600;
    text-align: left;
    color: #4a4a4a;
    pointer-events: none;
  }
}

/* ====== Module réalisations AMD (spécifique à cette page) ====== */

/* Barre de filtres */
.realisations-filters {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 2px solid #eee;
  padding: 14px 32px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.realisations-filters .btn {
  padding: 7px 20px;
  border-radius: 20px;
  border: 2px solid #9a9c42;
  color: #9a9c42;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
}

.realisations-filters .btn.active,
.realisations-filters .btn:hover {
  background: #9a9c42;
  color: #fff;
}

/* Titre de section */
.realisations-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #2b2922;
  display: inline-block;
  padding-bottom: 8px;
  border-bottom: 3px solid #9a9c42;
  margin-bottom: 32px;
}

/* Grille de cartes (3 colonnes desktop) */
.realisations-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.section-apropos-organisation .grid.grid-4 + .grid.grid-4 {
  margin-top: 2rem;
}

/* Carte réalisation */
.realisations-card {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e5e5e0;
  background: #fff;
  transition: box-shadow 0.2s;
}

.realisations-card:hover {
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.13);
}

/* Image principale */
.realisations-photo {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  background: #f4f4f0;
}

/* Pied de carte : logo + texte */
.realisations-foot {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
}

/* Logo client / enseigne */
.realisations-logo {
  width: 88px;
  height: 44px;
  object-fit: contain;
  flex-shrink: 0;
  border-right: 1px solid #eee;
  padding-right: 14px;
  display: block;
}

/* Colonne texte à droite du logo */
.realisations-foot-content {
  display: flex;
  flex-direction: column;
}

/* Badge secteur */
.realisations-badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 10px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 5px;
}

.realisations-badge--green {
  background: #eaf2ea;
  color: #3d7a3d;
}

.realisations-badge--blue {
  background: #e8edf7;
  color: #2e4f9a;
}

/* Nom + ville */
.realisations-name {
  font-size: 0.92rem;
  font-weight: 700;
  margin: 2px 0;
}

.realisations-city {
  font-size: 0.8rem;
  color: #888;
  margin: 0 0 6px;
}

/* On laisse les liens prendre le style global du site */

/* Responsive */
@media (max-width: 900px) {
  .realisations-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .realisations-grid {
    grid-template-columns: 1fr;
  }

  .realisations-filters {
    padding: 10px 16px;
  }
}
