/*
Theme Name: generatepress-child
Description: thème enfant gp
Author: Romain Gouleau
Author URI: https://www.air65-parachutisme.fr/
Template: generatepress
Version: 1.0
*/

/* =========================
   IMAGES CONTENU PRINCIPAL
   ========================= */
.fl-rich-text img:not(.emoji) {
  display: block;
  width: 100%;
  max-width: 760px;
  height: auto;
  margin: 28px auto;
  border-radius: 20px;

  /* Ombre premium : noir + halo bleu */
  box-shadow: 
    0 10px 25px rgba(0, 0, 0, 0.08),
    0 20px 45px rgba(234, 244, 251, 0.8);

  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Hover léger (effet moderne) */
.fl-rich-text img:not(.emoji):hover {
  transform: translateY(-3px);
  box-shadow: 
    0 14px 35px rgba(0, 0, 0, 0.12),
    0 25px 60px rgba(234, 244, 251, 1);
}

/* Images dans liens */
.fl-rich-text a img:not(.emoji) {
  border: 0;
}

/* =========================
   CARTES (LISTE DES CENTRES)
   ========================= */
.fl-rich-text .seo-builder-places-list img:not(.emoji) {
  max-width: 100%;
  margin: 0 0 12px 0;
  border-radius: 14px;
  box-shadow: 
    0 8px 20px rgba(0, 0, 0, 0.06),
    0 12px 30px rgba(234, 244, 251, 0.6);
}

/* =========================
   MAP GOOGLE
   ========================= */
.fl-rich-text .seo-map iframe {
  border-radius: 20px !important;
  box-shadow: 
    0 10px 25px rgba(0, 0, 0, 0.08),
    0 20px 45px rgba(234, 244, 251, 0.7);
  overflow: hidden;
}

/* =========================
   TABLEAUX (optionnel mais propre)
   ========================= */
.fl-rich-text table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  overflow: hidden;
  border-radius: 16px;
  background: #fff;

  box-shadow: 
    0 10px 25px rgba(0, 0, 0, 0.06),
    0 15px 35px rgba(234, 244, 251, 0.5);
}

.fl-rich-text table td,
.fl-rich-text table th {
  padding: 14px 16px;
  border: 1px solid #e8e8e8;
}

.fl-rich-text table th {
  background: #f8fafc;
  font-weight: 700;
}

/* =========================
   BONUS : SMOOTH RENDER
   ========================= */
.fl-rich-text img {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.ext-link {
    color: #2563eb;
    text-decoration: underline;
    cursor: pointer;
    font-size: 14px;
}

.ext-link:hover {
    color: #1d4ed8;
    text-decoration: none;
}

.ext-link:active {
    color: #1e40af;
}

.seo-builder-children img{
	border-radius:20px;
	box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}


table {
    margin: 20px auto;
    border-collapse: collapse;
    width: 100%;
    max-width: 700px;
    text-align: center;
    font-family: inherit;
}

table tr:first-child th {
    background-color: #65BAFE;
    color: #fff;
    font-weight: bold;
}

table td {
    border: 1px solid #ddd;
    padding: 12px;
}

/* Ligne d'en-tête */
table tr:first-child td {
    background-color: #65BAFE;
    color: #fff;
    font-weight: bold;
}

/* Alternance lignes */
table tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* Effet hover */
table tr:hover {
    background-color: #f1f1f1;
}

/* ===============================
   IMAGE SEO BUILDER (ton cas)
   =============================== */

.seo-builder-img {
    margin: 30px 0;
    text-align: center;
}

/* Conteneur visuel */
.seo-builder-img img {
    
    /* Override inline */
    max-width: 600px !important;
    width: 100% !important;
    height: auto !important;

    /* Style premium */
    border-radius: 14px;

    /* Ombre moderne */
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12),
                0 4px 10px rgba(0, 0, 0, 0.06);

    /* Transition fluide */
    transition: all 0.3s ease;

    /* Qualité visuelle */
    filter: contrast(1.02) brightness(1.01);
}

/* Effet hover léger */
.seo-builder-img img:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.18),
                0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Version mobile */
@media (max-width: 768px) {
    .seo-builder-img img {
        max-width: 100% !important;
        border-radius: 10px;
    }
}
.navigation-branding img, .site-logo.mobile-header-logo img {
    height: 140px !important;
}

/* Breadcrumb Yoast */
#breadcrumbs,
.breadcrumbs {
    text-align: center;
    font-size: 13px;
    color: #777;
    margin: 10px 0 20px;
}

.seo-cocon-links {
    margin-top: 40px;
}

.seo-cocon-links h2 {
    font-size: 28px;
    margin-bottom: 20px;
}

.seo-cocon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 15px;
}

.seo-cocon-grid a {
    display: block;
    padding: 16px 18px;
    border-radius: 10px;
    background: #f8f9fb;
    border: 1px solid #e3e6ea;
    text-decoration: none;
    font-weight: 500;
    color: #1a1a1a;
    transition: all 0.2s ease;
}

.seo-cocon-grid a:hover {
    background: #ffffff;
    border-color: #2fbf71;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    color: #2fbf71;
}

.seo-builder-cta {
    text-align: center;
    margin-top: 20px;
	margin-bottom: 20px;
}

.seo-builder-btn {
    display: inline-block;
    padding: 12px 20px;
    background: #65BAFE;
    color: #fff !important;
    text-decoration: none;
    font-weight: 600;
    border-radius: 6px;
    font-size: 15px;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* 🔥 hover propre (pas de noir) */
.seo-builder-btn:hover {
    background: #106CD9; /* légèrement plus foncé */
    color: #fff !important;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

/* 🔒 sécurité si ton thème force les liens */
.seo-builder-btn:visited,
.seo-builder-btn:active,
.seo-builder-btn:focus {
    color: #fff !important;
    text-decoration: none;
}

#breadcrumbs a,
.breadcrumbs a {
    color: #777;
    text-decoration: none;
}

#breadcrumbs a:hover,
.breadcrumbs a:hover {
    text-decoration: underline;
}

.attachment-large {
	max-width:600px !important;
}

.seo-builder-children img,
.fl-module-rich-text img {
    max-width:100%;
    height:auto;
}

/* Images injectées par SEO Builder */
.seo-builder-children img,
.page img.attachment-large {
  width: 100% !important;
  height: auto !important;
}

.fl-module-rich-text img,
.seo-builder-children img,
.page img {
    max-width:100%;
    height:auto;
}

h3{
font-weight: bold;
}

.entry-title {
    text-align: center;
}

.entry-meta {
    text-align: center;
}

.nf-form-title {
    text-align: center;
}

.nf-form-fields-required{
    text-align: center;
}

.wp-block-embed {
    text-align: center;
}

.wp-block-embed iframe {
    margin: 40px auto;
}

p iframe[src*="youtube.com"] {
    display: block;
    margin: 40px auto;
}


.fl-callout-title{
	text-align: center !important;
}


.header-widget {
    float: none;
    overflow: hidden;
    max-width: 100%;
	width:100%;
    margin: 0;
    margin: 0;
	text-align:center;
}

#container-header-align{
	width:100%;
	}
#header-paiement {
	margin-right: 25%;
    display: inline-block;
	color:white;
	position: relative;
    bottom: 50px;
}
#header-contact {
	margin-left: 25%;
    display: inline-block;
	position: relative;
    bottom: 50px;

}
#logo-header-align {
    display: inline-block;
}

.wp-image-1435{
    display: inline-block;
    margin-right: 0;
}


body .grid-container {
    max-width: 100%;
}

.paiement{
	color:white !important;
    font-weight:bold;
	font-size:18px;
}
.tel{
	color:white !important;
     font-weight:bold;
	font-size:18px;
}

site-header a, .site-header a:visited {
    color: white !important;
}
.fa{
	color:white;
}

.auto-faq {
    margin-top:60px;
    padding-top:30px;
    border-top:1px solid #eee;
}

.auto-faq h2 {
    margin-bottom:25px;
}

.auto-faq h3 {
    font-size:18px;
    margin-top:20px;
}

.auto-faq p {
    margin-bottom:15px;
}

.separate-containers .site-main {
	margin:0px !important;
}


.auto-faq details {
    border-bottom: 1px solid #eee;
    padding: 15px 0;
}

.auto-faq summary {
    font-weight: 600;
    font-size: 18px;
    cursor: pointer;
    list-style: none;
    position: relative;
    padding-right: 25px;
}

.auto-faq summary::-webkit-details-marker {
    display: none;
}

.auto-faq summary:after {
    content: "+";
    position: absolute;
    right: 0;
    font-weight: bold;
    transition: transform 0.2s ease;
}

.auto-faq details[open] summary:after {
    content: "–";
}

.auto-faq .faq-answer {
    margin-top: 10px;
}


.inside-header {
    padding: 0px;
}
.custom-author-box {
        flex-direction: column;
        text-align: center;
    }

.custom-author-box img {
    border-radius: 50%;
    width: 120px;
    height: 120px;
    object-fit: cover;
    flex-shrink: 0;
}

.sail-backlinks {
    margin-top: 60px;
}

.sail-backlinks h3 {
    margin-bottom: 25px;
}

.sail-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.sail-item {
    text-decoration: none;
    color: inherit;
}

.sail-thumb img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 6px;
}

.sail-title {
    margin-top: 10px;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.3;
}

.sail-item:hover .sail-title {
    text-decoration: underline;
}

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

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


/* Mobile */
@media (max-width: 768px) {

    .custom-author-box {
        flex-direction: column;
        text-align: center;
    }

    .custom-author-box img {
        width: 100px;
        height: 100px;
        margin-bottom: 10px;
    }

    .author-content {
        text-align: center;
    }
}


.author-name {
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 5px;
}

.author-bio {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
}

.related-posts {
    margin-top: 60px;
}

.related-posts h2 {
    margin-bottom: 25px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.related-item {
    text-decoration: none;
    color: inherit;
}

.related-thumb img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 6px;
}

.related-title {
    margin-top: 10px;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.3;
}

.related-item:hover .related-title {
    text-decoration: underline;
}

/* =========================
   TABLEAUX - DESKTOP NORMAL
   ========================= */

.fl-rich-text table,
table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    display: table; /* 🔥 IMPORTANT : retour normal desktop */
}

/* cellules normales desktop */
.fl-rich-text table th,
.fl-rich-text table td,
table th,
table td {
    white-space: normal; /* 🔥 évite les colonnes énormes */
}

/* =========================
   TABLEAUX - MOBILE SCROLL
   ========================= */

@media (max-width: 768px) {

    .fl-rich-text table,
    table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        width: 100%;
    }

    .fl-rich-text table th,
    .fl-rich-text table td,
    table th,
    table td {
        white-space: nowrap; /* 🔥 permet le scroll horizontal */
        font-size: 14px;
        padding: 10px;
    }
}

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

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



@media screen and (max-width: 1070px) {

	#header-paiement {
	margin-right: 0%;
    display: block;
	color:white;
	position: static;
	margin-bottom: 10px;
}
#header-contact {
	margin-left: 0%;
    display: block;
	position: static;

}
#logo-header-align {
    display: inline-block;
	margin-bottom: 10px;
}
	
#container-header-align {
    margin-top: 10px;
	margin-bottom: 10px;
}
}